platform: starfive: correct system clock device tree node
authorNam Cao <namcao@linutronix.de>
Thu, 22 Feb 2024 08:16:14 +0000 (09:16 +0100)
committerAnup Patel <anup@brainfault.org>
Thu, 22 Feb 2024 12:28:17 +0000 (17:58 +0530)
Starfive names the system clock device tree node "starfive,jh7110-clkgen"
in all their git repositories. However, a different name is used in
upstream U-Boot (and also Linux): "starfive,jh7110-syscrg". Since
OpenSBI gets the device tree from U-Boot, this inconsistency leads the
problem that OpenSBI doesn't know the system clock device exists.

Correct this name to keep the consistency.

Signed-off-by: Nam Cao <namcao@linutronix.de>
Acked-by: Minda Chen <minda.chen@starfivetech.com>
Tested-by: Minda Chen <minda.chen@starfivetech.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
platform/generic/starfive/jh7110.c

index dcd6306be5fc996b0f0a6cdf69df2c5bfce1aff5..4b221750e0b55ab662e5f3e1f9628a8f1101d4f3 100644 (file)
@@ -252,7 +252,7 @@ static int starfive_jh7110_inst_init(void *fdt)
                jh7110_inst.pmu_reg_base = addr;
        }
 
-       noff = fdt_node_offset_by_compatible(fdt, -1, "starfive,jh7110-clkgen");
+       noff = fdt_node_offset_by_compatible(fdt, -1, "starfive,jh7110-syscrg");
        if (-1 < noff) {
                rc = fdt_get_node_addr_size(fdt, noff, 0, &addr, NULL);
                if (rc)