riscv: dts: starfive: Enable axp15060 pmic for cpufreq
authorMason Huo <mason.huo@starfivetech.com>
Thu, 4 May 2023 05:31:44 +0000 (14:31 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 24 Jul 2023 23:25:00 +0000 (08:25 +0900)
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 <mason.huo@starfivetech.com>
[Backported patch : https://lore.kernel.org/all/20230421031431.23010-2-mason.huo@starfivetech.com/]
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>
Change-Id: I79e08462d7bd09766526418d65fb4299fc122fdc

arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi

index 63eecf3..eed8777 100644 (file)
        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 {