Skip to content

Commit b43776d

Browse files
evadotmripard
authored andcommitted
ARM: dts: sunxi: Use axp209.dtsi for Olinuxino Lime2
Use axp209.dtsi in sun7i-a20-olinuxino-lime2.dts and correct some regulators. DCDC2 is used for vdd-cpu so it should never be bellow 1V and above 1.4V DCDC3 is used for VDD_INT so same as above. LD01 is used for the RTC, and should have a typical value of 1.3V LD02 is used for AVCC and should have a typical value of 3.0V LD03/4 are used for Port-E/Port-G Power pin, and the schematics recommands to set them to 2.8V as they can be used for CSI0/1. Signed-off-by: Emmanuel Vadot <[email protected]> Signed-off-by: Maxime Ripard <[email protected]>
1 parent 53e32e7 commit b43776d

File tree

1 file changed

+42
-48
lines changed

1 file changed

+42
-48
lines changed

arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts

Lines changed: 42 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -112,57 +112,9 @@
112112
status = "okay";
113113

114114
axp209: pmic@34 {
115-
compatible = "x-powers,axp209";
116115
reg = <0x34>;
117116
interrupt-parent = <&nmi_intc>;
118117
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
119-
120-
interrupt-controller;
121-
#interrupt-cells = <1>;
122-
123-
acin-supply = <&reg_axp_ipsout>;
124-
vin2-supply = <&reg_axp_ipsout>;
125-
vin3-supply = <&reg_axp_ipsout>;
126-
ldo24in-supply = <&reg_axp_ipsout>;
127-
ldo3in-supply = <&reg_axp_ipsout>;
128-
129-
regulators {
130-
vdd_rtc: ldo1 {
131-
regulator-min-microvolt = <1300000>;
132-
regulator-max-microvolt = <1300000>;
133-
regulator-always-on;
134-
};
135-
136-
avcc: ldo2 {
137-
regulator-min-microvolt = <1800000>;
138-
regulator-max-microvolt = <3300000>;
139-
regulator-always-on;
140-
};
141-
142-
vcc_csi0: ldo3 {
143-
regulator-min-microvolt = <700000>;
144-
regulator-max-microvolt = <3500000>;
145-
regulator-always-on;
146-
};
147-
148-
vcc_csi1: ldo4 {
149-
regulator-min-microvolt = <1250000>;
150-
regulator-max-microvolt = <3300000>;
151-
regulator-always-on;
152-
};
153-
154-
vdd_cpu: dcdc2 {
155-
regulator-min-microvolt = <700000>;
156-
regulator-max-microvolt = <2275000>;
157-
regulator-always-on;
158-
};
159-
160-
vdd_int: dcdc3 {
161-
regulator-min-microvolt = <700000>;
162-
regulator-max-microvolt = <3500000>;
163-
regulator-always-on;
164-
};
165-
};
166118
};
167119
};
168120

@@ -236,6 +188,48 @@
236188
status = "okay";
237189
};
238190

191+
#include "axp209.dtsi"
192+
193+
&reg_dcdc2 {
194+
regulator-always-on;
195+
regulator-min-microvolt = <1000000>;
196+
regulator-max-microvolt = <1400000>;
197+
regulator-name = "vdd-cpu";
198+
};
199+
200+
&reg_dcdc3 {
201+
regulator-always-on;
202+
regulator-min-microvolt = <1000000>;
203+
regulator-max-microvolt = <1400000>;
204+
regulator-name = "vdd-int-dll";
205+
};
206+
207+
&reg_ldo1 {
208+
regulator-always-on;
209+
regulator-min-microvolt = <1300000>;
210+
regulator-max-microvolt = <1300000>;
211+
regulator-name = "vdd-rtc";
212+
};
213+
214+
&reg_ldo2 {
215+
regulator-always-on;
216+
regulator-min-microvolt = <3000000>;
217+
regulator-max-microvolt = <3000000>;
218+
regulator-name = "avcc";
219+
};
220+
221+
&reg_ldo3 {
222+
regulator-min-microvolt = <2800000>;
223+
regulator-max-microvolt = <2800000>;
224+
regulator-name = "vddio-csi0";
225+
};
226+
227+
&reg_ldo4 {
228+
regulator-min-microvolt = <2800000>;
229+
regulator-max-microvolt = <2800000>;
230+
regulator-name = "vddio-csi1";
231+
};
232+
239233
&reg_usb0_vbus {
240234
pinctrl-0 = <&usb0_vbus_pin_lime2>;
241235
gpio = <&pio 2 17 GPIO_ACTIVE_HIGH>;

0 commit comments

Comments
 (0)