From: Mason Huo Date: Fri, 3 Mar 2023 05:17:50 +0000 (+0800) Subject: riscv: dts: statfive: Add clock and power supply for cpu X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d7a8f12edb8fcf7a0b79aeef005abe6ce3b8e321;p=platform%2Fkernel%2Flinux-starfive.git riscv: dts: statfive: Add clock and power supply for cpu To enable the cpufreq-dt driver, config the cpu with clock & power supply regulator. Signed-off-by: Mason Huo --- diff --git a/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dts b/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dts index cf36ed3..7056854 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dts +++ b/arch/riscv/boot/dts/starfive/jh7110-visionfive-v2.dts @@ -200,3 +200,9 @@ pinctrl-0 = <&mclk_ext_pins>; status = "okay"; }; + +&cpu1 { + cpu-supply = <&cpu_vdd>; + clocks = <&clkgen JH7110_CPU_CORE>; + clock-names = "cpu"; +};