Commit 6a73ff3f authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Maxime Ripard

ARM: dts: sun5i: hsg-h702: add axp209 regulator nodes

This patch adds the regulator nodes for the axp209 by including
the axp209 dtsi. As the inputs of these regulators are from the
axp209's PS output, which is basically just a mux over the 2
inputs, it is considered to be unregulated. Thus we do not provide
input supply properties for them.

The regulator names and constraints are based on the board
schematics and the SoC datasheet.

DCDC2 is used as the cpu power supply. This patch also references
it from the cpu node.

LDO3 powers the USB WiFi module. This patch also references it
from the usb-phy node.

Also get rid of axp209 properties already set in axp209.dtsi.
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 0d4e2934
...@@ -68,11 +68,7 @@ mmc0: mmc@01c0f000 { ...@@ -68,11 +68,7 @@ mmc0: mmc@01c0f000 {
}; };
usbphy: phy@01c13400 { usbphy: phy@01c13400 {
/* usb1_vbus-supply = <&reg_ldo3>;
* There doesn't seem to be a GPIO for controlling
* usb1 vbus, despite the fex file saying otherwise.
*/
usb1_vbus-supply = <&reg_vcc5v0>;
status = "okay"; status = "okay";
}; };
...@@ -105,11 +101,8 @@ i2c0: i2c@01c2ac00 { ...@@ -105,11 +101,8 @@ i2c0: i2c@01c2ac00 {
status = "okay"; status = "okay";
axp209: pmic@34 { axp209: pmic@34 {
compatible = "x-powers,axp209";
reg = <0x34>; reg = <0x34>;
interrupts = <0>; interrupts = <0>;
interrupt-controller;
#interrupt-cells = <1>;
}; };
}; };
...@@ -131,3 +124,40 @@ i2c2: i2c@01c2b400 { ...@@ -131,3 +124,40 @@ i2c2: i2c@01c2b400 {
}; };
}; };
}; };
#include "axp209.dtsi"
&cpu0 {
cpu-supply = <&reg_dcdc2>;
};
&reg_dcdc2 {
regulator-always-on;
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1500000>;
regulator-name = "vdd-cpu";
};
&reg_dcdc3 {
regulator-always-on;
regulator-min-microvolt = <1000000>;
regulator-max-microvolt = <1400000>;
regulator-name = "vdd-int-dll";
};
&reg_ldo1 {
regulator-name = "vdd-rtc";
};
&reg_ldo2 {
regulator-always-on;
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
regulator-name = "avcc";
};
&reg_ldo3 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vcc-wifi";
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment