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

ARM: dts: sun6i: hummingbird: Use axp22x.dtsi for AXP221 regulators

Now that we have axp22x.dtsi describing common axp22x hardware, use
it and reference the nodes instead of declaring the whole tree.

Also drop the "always-on" from the vdd-gpu regulator, since we don't
support the GPU anyway.

And add a regulator reference for cpu0.
Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 976d84fc
...@@ -69,6 +69,10 @@ wifi_pwrseq: wifi_pwrseq { ...@@ -69,6 +69,10 @@ wifi_pwrseq: wifi_pwrseq {
}; };
}; };
&cpu0 {
cpu-supply = <&reg_dcdc3>;
};
&ehci0 { &ehci0 {
status = "okay"; status = "okay";
}; };
...@@ -121,7 +125,7 @@ &ir { ...@@ -121,7 +125,7 @@ &ir {
&mmc0 { &mmc0 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>;
vmmc-supply = <&vcc_3v0>; vmmc-supply = <&reg_dcdc1>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
cd-inverted; cd-inverted;
...@@ -136,7 +140,7 @@ &mmc0_pins_a { ...@@ -136,7 +140,7 @@ &mmc0_pins_a {
&mmc1 { &mmc1 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins_a>, <&wifi_reset_pin_hummingbird>; pinctrl-0 = <&mmc1_pins_a>, <&wifi_reset_pin_hummingbird>;
vmmc-supply = <&vcc_wifi>; vmmc-supply = <&reg_aldo1>;
mmc-pwrseq = <&wifi_pwrseq>; mmc-pwrseq = <&wifi_pwrseq>;
bus-width = <4>; bus-width = <4>;
non-removable; non-removable;
...@@ -173,66 +177,61 @@ wifi_reset_pin_hummingbird: wifi_reset_pin@0 { ...@@ -173,66 +177,61 @@ wifi_reset_pin_hummingbird: wifi_reset_pin@0 {
&p2wi { &p2wi {
status = "okay"; status = "okay";
axp221: pmic@68 { axp22x: pmic@68 {
compatible = "x-powers,axp221"; compatible = "x-powers,axp221";
reg = <0x68>; reg = <0x68>;
interrupt-parent = <&nmi_intc>; interrupt-parent = <&nmi_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>; interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller; };
#interrupt-cells = <1>; };
#include "axp22x.dtsi"
regulators { &reg_aldo1 {
x-powers,dcdc-freq = <3000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vcc-wifi";
};
vcc_3v0: dcdc1 { &reg_aldo3 {
regulator-always-on;
regulator-min-microvolt = <2700000>;
regulator-max-microvolt = <3300000>;
regulator-name = "avcc";
};
&reg_dcdc1 {
regulator-always-on; regulator-always-on;
regulator-min-microvolt = <3000000>; regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>; regulator-max-microvolt = <3000000>;
regulator-name = "vcc-3v0"; regulator-name = "vcc-3v0";
}; };
vdd_gpu: dcdc2 { &reg_dcdc2 {
regulator-always-on;
regulator-min-microvolt = <700000>; regulator-min-microvolt = <700000>;
regulator-max-microvolt = <1320000>; regulator-max-microvolt = <1320000>;
regulator-name = "vdd-gpu"; regulator-name = "vdd-gpu";
}; };
vdd_cpu: dcdc3 { &reg_dcdc3 {
regulator-always-on; regulator-always-on;
regulator-min-microvolt = <700000>; regulator-min-microvolt = <700000>;
regulator-max-microvolt = <1320000>; regulator-max-microvolt = <1320000>;
regulator-name = "vdd-cpu"; regulator-name = "vdd-cpu";
}; };
vdd_sys_dll: dcdc4 { &reg_dcdc4 {
regulator-always-on; regulator-always-on;
regulator-min-microvolt = <1100000>; regulator-min-microvolt = <700000>;
regulator-max-microvolt = <1100000>; regulator-max-microvolt = <1320000>;
regulator-name = "vdd-sys-dll"; regulator-name = "vdd-sys-dll";
}; };
vcc_dram: dcdc5 { &reg_dcdc5 {
regulator-always-on; regulator-always-on;
regulator-min-microvolt = <1500000>; regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>; regulator-max-microvolt = <1500000>;
regulator-name = "vcc-dram"; regulator-name = "vcc-dram";
};
vcc_wifi: aldo1 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-name = "vcc_wifi";
};
avcc: aldo3 {
regulator-always-on;
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
regulator-name = "avcc";
};
};
};
}; };
&reg_usb1_vbus { &reg_usb1_vbus {
......
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