riscv: dts: statfive: Add clock and power supply for cpu
authorMason Huo <mason.huo@starfivetech.com>
Fri, 3 Mar 2023 05:17:50 +0000 (13:17 +0800)
committerMason Huo <mason.huo@starfivetech.com>
Fri, 3 Mar 2023 05:58:52 +0000 (13:58 +0800)
To enable the cpufreq-dt driver, config the cpu
with clock & power supply regulator.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dts

index cf36ed3..7056854 100644 (file)
        pinctrl-0 = <&mclk_ext_pins>;
        status = "okay";
 };
+
+&cpu1 {
+       cpu-supply = <&cpu_vdd>;
+       clocks = <&clkgen JH7110_CPU_CORE>;
+       clock-names = "cpu";
+};