riscv: dts: starfive: Enable axp15060 pmic for cpufreq
authorMason Huo <mason.huo@starfivetech.com>
Tue, 6 Jun 2023 10:56:54 +0000 (18:56 +0800)
committerConor Dooley <conor.dooley@microchip.com>
Tue, 6 Jun 2023 11:32:06 +0000 (12:32 +0100)
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>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi

index 2a6d81609284cb57c1132851a891cc6ce3812c70..9714da5550d70558ee31037bcd0b57561dfd2960 100644 (file)
        pinctrl-names = "default";
        pinctrl-0 = <&i2c5_pins>;
        status = "okay";
+
+       axp15060: pmic@36 {
+               compatible = "x-powers,axp15060";
+               reg = <0x36>;
+               interrupts = <0>;
+               interrupt-controller;
+               #interrupt-cells = <1>;
+
+               regulators {
+                       vdd_cpu: dcdc2 {
+                               regulator-always-on;
+                               regulator-min-microvolt = <500000>;
+                               regulator-max-microvolt = <1540000>;
+                               regulator-name = "vdd-cpu";
+                       };
+               };
+       };
 };
 
 &i2c6 {