Skip to content

Commit e65a13a

Browse files
ryan-wannerclaudiubeznea
authored andcommitted
ARM: dts: microchip: sama7d65: Add MCP16502 to sama7d65 curiosity
Add MCP16502 to the sama7d65_curiosity board to control voltages in the MPU. The device is connected to twi 10 interface Signed-off-by: Ryan Wanner <[email protected]> Link: https://lore.kernel.org/r/60f6b7764227bb42c74404e8ca1388477183b7b5.1743523114.git.Ryan.Wanner@microchip.com [claudiu.beznea: drop regulator-suspend-voltage for ldo2 as it is not needed] Signed-off-by: Claudiu Beznea <[email protected]>
1 parent 7116fb2 commit e65a13a

File tree

1 file changed

+134
-0
lines changed

1 file changed

+134
-0
lines changed

arch/arm/boot/dts/microchip/at91-sama7d65_curiosity.dts

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@
3030
device_type = "memory";
3131
reg = <0x60000000 0x40000000>;
3232
};
33+
34+
reg_5v: regulator-5v {
35+
compatible = "regulator-fixed";
36+
regulator-name = "5V_MAIN";
37+
regulator-min-microvolt = <5000000>;
38+
regulator-max-microvolt = <5000000>;
39+
regulator-always-on;
40+
};
41+
3342
};
3443

3544
&dma0 {
@@ -117,6 +126,131 @@
117126
label = "VDDCPU";
118127
};
119128
};
129+
130+
pmic@5b {
131+
compatible = "microchip,mcp16502";
132+
reg = <0x5b>;
133+
lvin-supply = <&reg_5v>;
134+
pvin1-supply = <&reg_5v>;
135+
pvin2-supply = <&reg_5v>;
136+
pvin3-supply = <&reg_5v>;
137+
pvin4-supply = <&reg_5v>;
138+
status = "okay";
139+
140+
regulators {
141+
vdd_3v3: VDD_IO {
142+
regulator-name = "VDD_IO";
143+
regulator-min-microvolt = <3300000>;
144+
regulator-max-microvolt = <3300000>;
145+
regulator-initial-mode = <2>;
146+
regulator-allowed-modes = <2>, <4>;
147+
regulator-always-on;
148+
149+
regulator-state-standby {
150+
regulator-on-in-suspend;
151+
regulator-suspend-microvolt = <3300000>;
152+
regulator-mode = <4>;
153+
};
154+
155+
regulator-state-mem {
156+
regulator-off-in-suspend;
157+
regulator-mode = <4>;
158+
};
159+
};
160+
161+
vddioddr: VDD_DDR {
162+
regulator-name = "VDD_DDR";
163+
regulator-min-microvolt = <1350000>;
164+
regulator-max-microvolt = <1350000>;
165+
regulator-initial-mode = <2>;
166+
regulator-allowed-modes = <2>, <4>;
167+
regulator-always-on;
168+
169+
regulator-state-standby {
170+
regulator-on-in-suspend;
171+
regulator-suspend-microvolt = <1350000>;
172+
regulator-mode = <4>;
173+
};
174+
175+
regulator-state-mem {
176+
regulator-on-in-suspend;
177+
regulator-suspend-microvolt = <1350000>;
178+
regulator-mode = <4>;
179+
};
180+
};
181+
182+
vddcore: VDD_CORE {
183+
regulator-name = "VDD_CORE";
184+
regulator-min-microvolt = <1050000>;
185+
regulator-max-microvolt = <1050000>;
186+
regulator-initial-mode = <2>;
187+
regulator-allowed-modes = <2>, <4>;
188+
regulator-always-on;
189+
190+
regulator-state-standby {
191+
regulator-on-in-suspend;
192+
regulator-suspend-microvolt = <1050000>;
193+
regulator-mode = <4>;
194+
};
195+
196+
regulator-state-mem {
197+
regulator-off-in-suspend;
198+
regulator-mode = <4>;
199+
};
200+
};
201+
202+
vddcpu: VDD_OTHER {
203+
regulator-name = "VDD_OTHER";
204+
regulator-min-microvolt = <1050000>;
205+
regulator-max-microvolt = <1250000>;
206+
regulator-initial-mode = <2>;
207+
regulator-allowed-modes = <2>, <4>;
208+
regulator-ramp-delay = <3125>;
209+
regulator-always-on;
210+
211+
regulator-state-standby {
212+
regulator-on-in-suspend;
213+
regulator-suspend-microvolt = <1050000>;
214+
regulator-mode = <4>;
215+
};
216+
217+
regulator-state-mem {
218+
regulator-off-in-suspend;
219+
regulator-mode = <4>;
220+
};
221+
};
222+
223+
vldo1: LDO1 {
224+
regulator-name = "LDO1";
225+
regulator-min-microvolt = <1800000>;
226+
regulator-max-microvolt = <1800000>;
227+
regulator-always-on;
228+
229+
regulator-state-standby {
230+
regulator-suspend-microvolt = <1800000>;
231+
regulator-on-in-suspend;
232+
};
233+
234+
regulator-state-mem {
235+
regulator-off-in-suspend;
236+
};
237+
};
238+
239+
vldo2: LDO2 {
240+
regulator-name = "LDO2";
241+
regulator-min-microvolt = <1200000>;
242+
regulator-max-microvolt = <3700000>;
243+
244+
regulator-state-standby {
245+
regulator-on-in-suspend;
246+
};
247+
248+
regulator-state-mem {
249+
regulator-off-in-suspend;
250+
};
251+
};
252+
};
253+
};
120254
};
121255

122256
&main_xtal {

0 commit comments

Comments
 (0)