From 461f3efd26a4840eced005b72eaf92102e67bec1 Mon Sep 17 00:00:00 2001 From: Mason Huo Date: Thu, 4 May 2023 14:31:44 +0900 Subject: [PATCH] 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 --- .../boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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 { -- 2.7.4