Linux has a 'clocks' property in DTB to specify (a list of) clocks
required for a device. The snapdragon DTS file in U-Boot uses a
'clock' property for the same purpose.
Change this to 'clocks', so that the Linux DTB can also be used to
configure U-Boot devices.
compatible = "qcom,msm-uartdm-v1.4";
reg = <0x78b0000 0x200>;
u-boot,dm-pre-reloc;
- clock = <&clkc 4>;
+ clocks = <&clkc 4>;
};
restart@4ab000 {
bus-width = <0x8>;
index = <0x0>;
non-removable;
- clock = <&clkc 0>;
+ clocks = <&clkc 0>;
clock-frequency = <100000000>;
};
reg = <0x7864900 0x11c 0x7864000 0x800>;
index = <0x1>;
bus-width = <0x4>;
- clock = <&clkc 1>;
+ clocks = <&clkc 1>;
clock-frequency = <200000000>;
};
struct clk clk;
int ret;
- ret = fdtdec_get_int_array(gd->fdt_blob, dev->of_offset, "clock", clkd,
+ ret = fdtdec_get_int_array(gd->fdt_blob, dev->of_offset, "clocks", clkd,
2);
if (ret)
return ret;
struct clk clk;
int ret;
- ret = fdtdec_get_int_array(gd->fdt_blob, dev->of_offset, "clock", clkd,
- 2);
+ ret = fdtdec_get_int_array(gd->fdt_blob, dev->of_offset, "clocks",
+ clkd, 2);
if (ret)
return ret;