From: Mason Huo Date: Thu, 4 May 2023 05:31:44 +0000 (+0900) Subject: riscv: dts: starfive: Enable axp15060 pmic for cpufreq X-Git-Tag: accepted/tizen/unified/riscv/20230725.071352~104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=461f3efd26a4840eced005b72eaf92102e67bec1;p=platform%2Fkernel%2Flinux-starfive.git riscv: dts: starfive: Enable axp15060 pmic for cpufreq The VisionFive 2 board has an embedded pmic axp15060, which supports the cpu DVFS through the dcdc2 regulator. This patch enables axp15060 pmic and configs the dcdc2. Signed-off-by: Mason Huo [Backported patch : https://lore.kernel.org/all/20230421031431.23010-2-mason.huo@starfivetech.com/] Signed-off-by: Hoegeun Kwon Change-Id: I79e08462d7bd09766526418d65fb4299fc122fdc --- diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index 63eecf3..eed8777 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -184,6 +184,20 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c5_pins>; status = "okay"; + + axp15060: pmic@36 { + compatible = "x-powers,axp15060"; + reg = <0x36>; + + regulators { + vdd_cpu: dcdc2 { + regulator-always-on; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1540000>; + regulator-name = "vdd-cpu"; + }; + }; + }; }; &i2c6 {