Skip to content

Commit 793cc54

Browse files
aiamadeusYixun Lan
authored andcommitted
riscv: dts: spacemit: enable PMIC on OrangePi R2S
Enable the i2c8 interface and add the connected SpacemiT P1 PMIC and its associated regulators to support voltage regulation on the board. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> Reviewed-by: Yixun lan <dlan@kernel.org> Link: https://patch.msgid.link/20260520100000.575719-1-amadeus@jmu.edu.cn Signed-off-by: Yixun Lan <dlan@kernel.org>
1 parent 3ea695e commit 793cc54

1 file changed

Lines changed: 134 additions & 0 deletions

File tree

arch/riscv/boot/dts/spacemit/k1-orangepi-r2s.dts

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
compatible = "xunlong,orangepi-r2s", "spacemit,k1";
1414

1515
aliases {
16+
i2c8 = &i2c8;
1617
serial0 = &uart0;
1718
ethernet0 = &eth0;
1819
ethernet1 = &eth1;
@@ -22,6 +23,15 @@
2223
stdout-path = "serial0";
2324
};
2425

26+
vcc4v0: regulator-vcc4v0 {
27+
compatible = "regulator-fixed";
28+
regulator-name = "vcc4v0";
29+
regulator-always-on;
30+
regulator-boot-on;
31+
regulator-min-microvolt = <4000000>;
32+
regulator-max-microvolt = <4000000>;
33+
};
34+
2535
vcc5v0_usb: regulator-vcc5v0-usb {
2636
compatible = "regulator-fixed";
2737
enable-active-high;
@@ -94,6 +104,130 @@
94104
};
95105
};
96106

107+
&i2c8 {
108+
pinctrl-names = "default";
109+
pinctrl-0 = <&i2c8_cfg>;
110+
status = "okay";
111+
112+
pmic@41 {
113+
compatible = "spacemit,p1";
114+
reg = <0x41>;
115+
interrupts = <64>;
116+
vin1-supply = <&vcc4v0>;
117+
vin2-supply = <&vcc4v0>;
118+
vin3-supply = <&vcc4v0>;
119+
vin4-supply = <&vcc4v0>;
120+
vin5-supply = <&vcc4v0>;
121+
vin6-supply = <&vcc4v0>;
122+
aldoin-supply = <&vcc4v0>;
123+
dldoin1-supply = <&buck5>;
124+
dldoin2-supply = <&buck5>;
125+
126+
regulators {
127+
buck1 {
128+
regulator-min-microvolt = <500000>;
129+
regulator-max-microvolt = <3450000>;
130+
regulator-ramp-delay = <5000>;
131+
regulator-always-on;
132+
};
133+
134+
buck2 {
135+
regulator-min-microvolt = <500000>;
136+
regulator-max-microvolt = <3450000>;
137+
regulator-ramp-delay = <5000>;
138+
regulator-always-on;
139+
};
140+
141+
buck3_1v8: buck3 {
142+
regulator-min-microvolt = <500000>;
143+
regulator-max-microvolt = <1800000>;
144+
regulator-ramp-delay = <5000>;
145+
regulator-always-on;
146+
};
147+
148+
buck4_3v3: buck4 {
149+
regulator-min-microvolt = <500000>;
150+
regulator-max-microvolt = <3300000>;
151+
regulator-ramp-delay = <5000>;
152+
regulator-always-on;
153+
};
154+
155+
buck5: buck5 {
156+
regulator-min-microvolt = <500000>;
157+
regulator-max-microvolt = <3450000>;
158+
regulator-ramp-delay = <5000>;
159+
regulator-always-on;
160+
};
161+
162+
buck6 {
163+
regulator-min-microvolt = <500000>;
164+
regulator-max-microvolt = <3450000>;
165+
regulator-ramp-delay = <5000>;
166+
regulator-always-on;
167+
};
168+
169+
aldo1_3v3: aldo1 {
170+
regulator-min-microvolt = <500000>;
171+
regulator-max-microvolt = <3400000>;
172+
regulator-boot-on;
173+
};
174+
175+
aldo2 {
176+
regulator-min-microvolt = <500000>;
177+
regulator-max-microvolt = <3400000>;
178+
};
179+
180+
aldo3 {
181+
regulator-min-microvolt = <500000>;
182+
regulator-max-microvolt = <3400000>;
183+
};
184+
185+
aldo4 {
186+
regulator-min-microvolt = <500000>;
187+
regulator-max-microvolt = <3400000>;
188+
};
189+
190+
dldo1 {
191+
regulator-min-microvolt = <500000>;
192+
regulator-max-microvolt = <3400000>;
193+
regulator-boot-on;
194+
};
195+
196+
dldo2 {
197+
regulator-min-microvolt = <500000>;
198+
regulator-max-microvolt = <3400000>;
199+
};
200+
201+
dldo3 {
202+
regulator-min-microvolt = <500000>;
203+
regulator-max-microvolt = <3400000>;
204+
};
205+
206+
dldo4 {
207+
regulator-min-microvolt = <500000>;
208+
regulator-max-microvolt = <3400000>;
209+
regulator-always-on;
210+
};
211+
212+
dldo5 {
213+
regulator-min-microvolt = <500000>;
214+
regulator-max-microvolt = <3400000>;
215+
};
216+
217+
dldo6 {
218+
regulator-min-microvolt = <500000>;
219+
regulator-max-microvolt = <3400000>;
220+
regulator-always-on;
221+
};
222+
223+
dldo7 {
224+
regulator-min-microvolt = <500000>;
225+
regulator-max-microvolt = <3400000>;
226+
};
227+
};
228+
};
229+
};
230+
97231
&pdma {
98232
status = "okay";
99233
};

0 commit comments

Comments
 (0)