Skip to content

Commit 7d307da

Browse files
martinezjavierdlan17
authored andcommitted
riscv: dts: spacemit: Define the P1 PMIC regulators for Milk-V Jupiter
Define the SpacemiT P1 PMIC voltage regulators and their constraints. The power management hardware design on the Milk-V Jupiter is identical to the Banana Pi BPI-F3, so the DT Nodes were taken from k1-bananapi-f3.dts. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Reviewed-by: Yixun Lan <dlan@gentoo.org> Link: https://lore.kernel.org/r/20251206134532.1741648-4-javierm@redhat.com Signed-off-by: Yixun Lan <dlan@gentoo.org>
1 parent ae9d03f commit 7d307da

1 file changed

Lines changed: 110 additions & 0 deletions

File tree

arch/riscv/boot/dts/spacemit/k1-milkv-jupiter.dts

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,116 @@
9595
pinctrl-0 = <&i2c8_cfg>;
9696
pinctrl-names = "default";
9797
status = "okay";
98+
99+
pmic@41 {
100+
compatible = "spacemit,p1";
101+
reg = <0x41>;
102+
interrupts = <64>;
103+
vin-supply = <&reg_vcc_4v>;
104+
105+
regulators {
106+
buck1 {
107+
regulator-min-microvolt = <500000>;
108+
regulator-max-microvolt = <3450000>;
109+
regulator-ramp-delay = <5000>;
110+
regulator-always-on;
111+
};
112+
113+
buck2 {
114+
regulator-min-microvolt = <500000>;
115+
regulator-max-microvolt = <3450000>;
116+
regulator-ramp-delay = <5000>;
117+
regulator-always-on;
118+
};
119+
120+
buck3_1v8: buck3 {
121+
regulator-min-microvolt = <500000>;
122+
regulator-max-microvolt = <1800000>;
123+
regulator-ramp-delay = <5000>;
124+
regulator-always-on;
125+
};
126+
127+
buck4 {
128+
regulator-min-microvolt = <500000>;
129+
regulator-max-microvolt = <3300000>;
130+
regulator-ramp-delay = <5000>;
131+
regulator-always-on;
132+
};
133+
134+
buck5 {
135+
regulator-min-microvolt = <500000>;
136+
regulator-max-microvolt = <3450000>;
137+
regulator-ramp-delay = <5000>;
138+
regulator-always-on;
139+
};
140+
141+
buck6 {
142+
regulator-min-microvolt = <500000>;
143+
regulator-max-microvolt = <3450000>;
144+
regulator-ramp-delay = <5000>;
145+
regulator-always-on;
146+
};
147+
148+
aldo1 {
149+
regulator-min-microvolt = <500000>;
150+
regulator-max-microvolt = <3400000>;
151+
regulator-boot-on;
152+
};
153+
154+
aldo2 {
155+
regulator-min-microvolt = <500000>;
156+
regulator-max-microvolt = <3400000>;
157+
};
158+
159+
aldo3 {
160+
regulator-min-microvolt = <500000>;
161+
regulator-max-microvolt = <3400000>;
162+
};
163+
164+
aldo4 {
165+
regulator-min-microvolt = <500000>;
166+
regulator-max-microvolt = <3400000>;
167+
};
168+
169+
dldo1 {
170+
regulator-min-microvolt = <500000>;
171+
regulator-max-microvolt = <3400000>;
172+
regulator-boot-on;
173+
};
174+
175+
dldo2 {
176+
regulator-min-microvolt = <500000>;
177+
regulator-max-microvolt = <3400000>;
178+
};
179+
180+
dldo3 {
181+
regulator-min-microvolt = <500000>;
182+
regulator-max-microvolt = <3400000>;
183+
};
184+
185+
dldo4 {
186+
regulator-min-microvolt = <500000>;
187+
regulator-max-microvolt = <3400000>;
188+
regulator-always-on;
189+
};
190+
191+
dldo5 {
192+
regulator-min-microvolt = <500000>;
193+
regulator-max-microvolt = <3400000>;
194+
};
195+
196+
dldo6 {
197+
regulator-min-microvolt = <500000>;
198+
regulator-max-microvolt = <3400000>;
199+
regulator-always-on;
200+
};
201+
202+
dldo7 {
203+
regulator-min-microvolt = <500000>;
204+
regulator-max-microvolt = <3400000>;
205+
};
206+
};
207+
};
98208
};
99209

100210
&uart0 {

0 commit comments

Comments
 (0)