]>
Commit | Line | Data |
---|---|---|
853d2694 AK |
1 | /* |
2 | * Google Peach Pi Rev 10+ board device tree source | |
3 | * | |
4 | * Copyright (c) 2014 Google, Inc | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2 as | |
8 | * published by the Free Software Foundation. | |
9 | */ | |
10 | ||
11 | /dts-v1/; | |
12 | #include <dt-bindings/input/input.h> | |
13 | #include <dt-bindings/gpio/gpio.h> | |
064ac050 | 14 | #include <dt-bindings/interrupt-controller/irq.h> |
fa781dda | 15 | #include <dt-bindings/clock/maxim,max77802.h> |
23c76dc6 | 16 | #include <dt-bindings/regulator/maxim,max77802.h> |
853d2694 | 17 | #include "exynos5800.dtsi" |
4f0d20ec | 18 | #include "exynos5420-cpus.dtsi" |
853d2694 AK |
19 | |
20 | / { | |
21 | model = "Google Peach Pi Rev 10+"; | |
22 | ||
23 | compatible = "google,pi-rev16", | |
24 | "google,pi-rev15", "google,pi-rev14", | |
25 | "google,pi-rev13", "google,pi-rev12", | |
26 | "google,pi-rev11", "google,pi-rev10", | |
27 | "google,pi", "google,peach", "samsung,exynos5800", | |
28 | "samsung,exynos5"; | |
29 | ||
8060098b DA |
30 | aliases { |
31 | /* Assign 20 so we don't get confused w/ builtin ones */ | |
32 | i2c20 = "/spi@12d40000/cros-ec@0/i2c-tunnel"; | |
33 | }; | |
34 | ||
0a0752c6 | 35 | backlight: backlight { |
522c8ff5 TB |
36 | compatible = "pwm-backlight"; |
37 | pwms = <&pwm 0 1000000 0>; | |
38 | brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; | |
39 | default-brightness-level = <7>; | |
0a0752c6 AK |
40 | enable-gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>; |
41 | power-supply = <&tps65090_fet1>; | |
522c8ff5 TB |
42 | pinctrl-0 = <&pwm0_out>; |
43 | pinctrl-names = "default"; | |
853d2694 AK |
44 | }; |
45 | ||
1d1b00aa JMC |
46 | chosen { |
47 | stdout-path = "serial3:115200n8"; | |
48 | }; | |
49 | ||
853d2694 AK |
50 | fixed-rate-clocks { |
51 | oscclk { | |
52 | compatible = "samsung,exynos5420-oscclk"; | |
53 | clock-frequency = <24000000>; | |
54 | }; | |
55 | }; | |
56 | ||
57 | gpio-keys { | |
58 | compatible = "gpio-keys"; | |
59 | ||
60 | pinctrl-names = "default"; | |
1f3cde4b | 61 | pinctrl-0 = <&power_key_irq &lid_irq>; |
853d2694 AK |
62 | |
63 | power { | |
64 | label = "Power"; | |
65 | gpios = <&gpx1 2 GPIO_ACTIVE_LOW>; | |
66 | linux,code = <KEY_POWER>; | |
36a0282a | 67 | wakeup-source; |
853d2694 | 68 | }; |
1f3cde4b JMC |
69 | |
70 | lid-switch { | |
71 | label = "Lid"; | |
72 | gpios = <&gpx3 4 GPIO_ACTIVE_LOW>; | |
73 | linux,input-type = <5>; /* EV_SW */ | |
74 | linux,code = <0>; /* SW_LID */ | |
75 | debounce-interval = <1>; | |
36a0282a | 76 | wakeup-source; |
1f3cde4b JMC |
77 | }; |
78 | ||
853d2694 AK |
79 | }; |
80 | ||
522c8ff5 TB |
81 | memory { |
82 | reg = <0x20000000 0x80000000>; | |
853d2694 | 83 | }; |
d3343157 | 84 | |
db91fb2c TB |
85 | sound { |
86 | compatible = "google,snow-audio-max98091"; | |
87 | ||
a8d80b6b | 88 | samsung,model = "Peach-Pi-I2S-MAX98091"; |
db91fb2c TB |
89 | samsung,i2s-controller = <&i2s0>; |
90 | samsung,audio-codec = <&max98091>; | |
91 | }; | |
92 | ||
d3343157 VG |
93 | usb300_vbus_reg: regulator-usb300 { |
94 | compatible = "regulator-fixed"; | |
95 | regulator-name = "P5.0V_USB3CON0"; | |
96 | regulator-min-microvolt = <5000000>; | |
97 | regulator-max-microvolt = <5000000>; | |
31b9903c | 98 | gpio = <&gph0 0 GPIO_ACTIVE_HIGH>; |
d3343157 VG |
99 | pinctrl-names = "default"; |
100 | pinctrl-0 = <&usb300_vbus_en>; | |
101 | enable-active-high; | |
102 | }; | |
103 | ||
104 | usb301_vbus_reg: regulator-usb301 { | |
105 | compatible = "regulator-fixed"; | |
106 | regulator-name = "P5.0V_USB3CON1"; | |
107 | regulator-min-microvolt = <5000000>; | |
108 | regulator-max-microvolt = <5000000>; | |
31b9903c | 109 | gpio = <&gph0 1 GPIO_ACTIVE_HIGH>; |
d3343157 VG |
110 | pinctrl-names = "default"; |
111 | pinctrl-0 = <&usb301_vbus_en>; | |
112 | enable-active-high; | |
113 | }; | |
8060098b DA |
114 | |
115 | vbat: fixed-regulator { | |
116 | compatible = "regulator-fixed"; | |
117 | regulator-name = "vbat-supply"; | |
118 | regulator-boot-on; | |
119 | regulator-always-on; | |
120 | }; | |
0a0752c6 AK |
121 | |
122 | panel: panel { | |
123 | compatible = "auo,b133htn01"; | |
124 | power-supply = <&tps65090_fet6>; | |
125 | backlight = <&backlight>; | |
25e9092a JMC |
126 | |
127 | port { | |
128 | panel_in: endpoint { | |
129 | remote-endpoint = <&dp_out>; | |
130 | }; | |
131 | }; | |
0a0752c6 | 132 | }; |
3cb18180 JMC |
133 | |
134 | mmc1_pwrseq: mmc1_pwrseq { | |
135 | compatible = "mmc-pwrseq-simple"; | |
136 | reset-gpios = <&gpx0 0 GPIO_ACTIVE_LOW>; /* WIFI_EN */ | |
137 | clocks = <&max77802 MAX77802_CLK_32K_CP>; | |
138 | clock-names = "ext_clock"; | |
139 | }; | |
853d2694 AK |
140 | }; |
141 | ||
7b488038 NKC |
142 | &adc { |
143 | status = "okay"; | |
144 | vdd-supply = <&ldo9_reg>; | |
145 | }; | |
146 | ||
8b51c5e7 BZ |
147 | &cpu0 { |
148 | cpu-supply = <&buck2_reg>; | |
149 | }; | |
150 | ||
151 | &cpu4 { | |
152 | cpu-supply = <&buck6_reg>; | |
153 | }; | |
154 | ||
522c8ff5 TB |
155 | &dp { |
156 | status = "okay"; | |
157 | pinctrl-names = "default"; | |
158 | pinctrl-0 = <&dp_hpd_gpio>; | |
159 | samsung,color-space = <0>; | |
522c8ff5 TB |
160 | samsung,color-depth = <1>; |
161 | samsung,link-rate = <0x0a>; | |
162 | samsung,lane-count = <2>; | |
31b9903c | 163 | samsung,hpd-gpio = <&gpx2 6 GPIO_ACTIVE_HIGH>; |
25e9092a JMC |
164 | |
165 | ports { | |
166 | port { | |
167 | dp_out: endpoint { | |
168 | remote-endpoint = <&panel_in>; | |
169 | }; | |
170 | }; | |
171 | }; | |
522c8ff5 | 172 | }; |
6a7da0d4 | 173 | |
522c8ff5 TB |
174 | &fimd { |
175 | status = "okay"; | |
176 | samsung,invert-vclk; | |
177 | }; | |
8b2f8379 | 178 | |
522c8ff5 TB |
179 | &hdmi { |
180 | status = "okay"; | |
181 | hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>; | |
182 | pinctrl-names = "default"; | |
183 | pinctrl-0 = <&hdmi_hpd_irq>; | |
184 | ddc = <&i2c_2>; | |
1dcd48c8 RS |
185 | |
186 | hdmi-en-supply = <&tps65090_fet7>; | |
187 | vdd-supply = <&ldo8_reg>; | |
188 | vdd_osc-supply = <&ldo10_reg>; | |
189 | vdd_pll-supply = <&ldo8_reg>; | |
853d2694 AK |
190 | }; |
191 | ||
064ac050 JMC |
192 | &hsi2c_4 { |
193 | status = "okay"; | |
194 | clock-frequency = <400000>; | |
195 | ||
fa781dda | 196 | max77802: max77802-pmic@9 { |
064ac050 JMC |
197 | compatible = "maxim,max77802"; |
198 | interrupt-parent = <&gpx3>; | |
199 | interrupts = <1 IRQ_TYPE_NONE>; | |
200 | pinctrl-names = "default"; | |
201 | pinctrl-0 = <&max77802_irq>, <&pmic_selb>, | |
202 | <&pmic_dvs_1>, <&pmic_dvs_2>, <&pmic_dvs_3>; | |
203 | wakeup-source; | |
204 | reg = <0x9>; | |
205 | #clock-cells = <1>; | |
206 | ||
207 | inb1-supply = <&tps65090_dcdc2>; | |
208 | inb2-supply = <&tps65090_dcdc1>; | |
209 | inb3-supply = <&tps65090_dcdc2>; | |
210 | inb4-supply = <&tps65090_dcdc2>; | |
211 | inb5-supply = <&tps65090_dcdc1>; | |
212 | inb6-supply = <&tps65090_dcdc2>; | |
213 | inb7-supply = <&tps65090_dcdc1>; | |
214 | inb8-supply = <&tps65090_dcdc1>; | |
215 | inb9-supply = <&tps65090_dcdc1>; | |
216 | inb10-supply = <&tps65090_dcdc1>; | |
217 | ||
218 | inl1-supply = <&buck5_reg>; | |
219 | inl2-supply = <&buck7_reg>; | |
220 | inl3-supply = <&buck9_reg>; | |
221 | inl4-supply = <&buck9_reg>; | |
222 | inl5-supply = <&buck9_reg>; | |
223 | inl6-supply = <&tps65090_dcdc2>; | |
224 | inl7-supply = <&buck9_reg>; | |
225 | inl9-supply = <&tps65090_dcdc2>; | |
226 | inl10-supply = <&buck7_reg>; | |
227 | ||
228 | regulators { | |
229 | buck1_reg: BUCK1 { | |
230 | regulator-name = "vdd_mif"; | |
231 | regulator-min-microvolt = <800000>; | |
232 | regulator-max-microvolt = <1300000>; | |
233 | regulator-always-on; | |
234 | regulator-boot-on; | |
235 | regulator-ramp-delay = <12500>; | |
23c76dc6 JMC |
236 | regulator-state-mem { |
237 | regulator-off-in-suspend; | |
238 | }; | |
064ac050 JMC |
239 | }; |
240 | ||
241 | buck2_reg: BUCK2 { | |
242 | regulator-name = "vdd_arm"; | |
243 | regulator-min-microvolt = <800000>; | |
244 | regulator-max-microvolt = <1500000>; | |
245 | regulator-always-on; | |
246 | regulator-boot-on; | |
247 | regulator-ramp-delay = <12500>; | |
23c76dc6 JMC |
248 | regulator-state-mem { |
249 | regulator-off-in-suspend; | |
250 | }; | |
064ac050 JMC |
251 | }; |
252 | ||
253 | buck3_reg: BUCK3 { | |
254 | regulator-name = "vdd_int"; | |
255 | regulator-min-microvolt = <800000>; | |
256 | regulator-max-microvolt = <1400000>; | |
257 | regulator-always-on; | |
258 | regulator-boot-on; | |
259 | regulator-ramp-delay = <12500>; | |
23c76dc6 JMC |
260 | regulator-state-mem { |
261 | regulator-off-in-suspend; | |
262 | }; | |
064ac050 JMC |
263 | }; |
264 | ||
265 | buck4_reg: BUCK4 { | |
266 | regulator-name = "vdd_g3d"; | |
267 | regulator-min-microvolt = <700000>; | |
268 | regulator-max-microvolt = <1400000>; | |
269 | regulator-always-on; | |
270 | regulator-boot-on; | |
271 | regulator-ramp-delay = <12500>; | |
23c76dc6 JMC |
272 | regulator-state-mem { |
273 | regulator-off-in-suspend; | |
274 | }; | |
064ac050 JMC |
275 | }; |
276 | ||
277 | buck5_reg: BUCK5 { | |
278 | regulator-name = "vdd_1v2"; | |
279 | regulator-min-microvolt = <1200000>; | |
280 | regulator-max-microvolt = <1200000>; | |
281 | regulator-always-on; | |
282 | regulator-boot-on; | |
23c76dc6 JMC |
283 | regulator-state-mem { |
284 | regulator-off-in-suspend; | |
285 | }; | |
064ac050 JMC |
286 | }; |
287 | ||
288 | buck6_reg: BUCK6 { | |
289 | regulator-name = "vdd_kfc"; | |
290 | regulator-min-microvolt = <800000>; | |
291 | regulator-max-microvolt = <1500000>; | |
292 | regulator-always-on; | |
293 | regulator-boot-on; | |
294 | regulator-ramp-delay = <12500>; | |
23c76dc6 JMC |
295 | regulator-state-mem { |
296 | regulator-off-in-suspend; | |
297 | }; | |
064ac050 JMC |
298 | }; |
299 | ||
300 | buck7_reg: BUCK7 { | |
301 | regulator-name = "vdd_1v35"; | |
302 | regulator-min-microvolt = <1350000>; | |
303 | regulator-max-microvolt = <1350000>; | |
304 | regulator-always-on; | |
305 | regulator-boot-on; | |
23c76dc6 JMC |
306 | regulator-state-mem { |
307 | regulator-on-in-suspend; | |
308 | }; | |
064ac050 JMC |
309 | }; |
310 | ||
311 | buck8_reg: BUCK8 { | |
312 | regulator-name = "vdd_emmc"; | |
313 | regulator-min-microvolt = <2850000>; | |
314 | regulator-max-microvolt = <2850000>; | |
315 | regulator-always-on; | |
316 | regulator-boot-on; | |
23c76dc6 JMC |
317 | regulator-state-mem { |
318 | regulator-off-in-suspend; | |
319 | }; | |
064ac050 JMC |
320 | }; |
321 | ||
322 | buck9_reg: BUCK9 { | |
323 | regulator-name = "vdd_2v"; | |
324 | regulator-min-microvolt = <2000000>; | |
325 | regulator-max-microvolt = <2000000>; | |
326 | regulator-always-on; | |
327 | regulator-boot-on; | |
23c76dc6 JMC |
328 | regulator-state-mem { |
329 | regulator-on-in-suspend; | |
330 | }; | |
064ac050 JMC |
331 | }; |
332 | ||
333 | buck10_reg: BUCK10 { | |
334 | regulator-name = "vdd_1v8"; | |
335 | regulator-min-microvolt = <1800000>; | |
336 | regulator-max-microvolt = <1800000>; | |
337 | regulator-always-on; | |
338 | regulator-boot-on; | |
23c76dc6 JMC |
339 | regulator-state-mem { |
340 | regulator-on-in-suspend; | |
341 | }; | |
064ac050 JMC |
342 | }; |
343 | ||
344 | ldo1_reg: LDO1 { | |
345 | regulator-name = "vdd_1v0"; | |
346 | regulator-min-microvolt = <1000000>; | |
347 | regulator-max-microvolt = <1000000>; | |
348 | regulator-always-on; | |
23c76dc6 JMC |
349 | regulator-state-mem { |
350 | regulator-on-in-suspend; | |
351 | regulator-mode = <MAX77802_OPMODE_LP>; | |
352 | }; | |
064ac050 JMC |
353 | }; |
354 | ||
355 | ldo2_reg: LDO2 { | |
356 | regulator-name = "vdd_1v2_2"; | |
357 | regulator-min-microvolt = <1200000>; | |
358 | regulator-max-microvolt = <1200000>; | |
359 | }; | |
360 | ||
361 | ldo3_reg: LDO3 { | |
362 | regulator-name = "vdd_1v8_3"; | |
363 | regulator-min-microvolt = <1800000>; | |
364 | regulator-max-microvolt = <1800000>; | |
365 | regulator-always-on; | |
23c76dc6 JMC |
366 | regulator-state-mem { |
367 | regulator-on-in-suspend; | |
368 | regulator-mode = <MAX77802_OPMODE_LP>; | |
369 | }; | |
064ac050 JMC |
370 | }; |
371 | ||
372 | vqmmc_sdcard: ldo4_reg: LDO4 { | |
373 | regulator-name = "vdd_sd"; | |
374 | regulator-min-microvolt = <1800000>; | |
375 | regulator-max-microvolt = <2800000>; | |
376 | regulator-always-on; | |
23c76dc6 JMC |
377 | regulator-state-mem { |
378 | regulator-off-in-suspend; | |
379 | }; | |
064ac050 JMC |
380 | }; |
381 | ||
382 | ldo5_reg: LDO5 { | |
383 | regulator-name = "vdd_1v8_5"; | |
384 | regulator-min-microvolt = <1800000>; | |
385 | regulator-max-microvolt = <1800000>; | |
386 | regulator-always-on; | |
23c76dc6 JMC |
387 | regulator-state-mem { |
388 | regulator-off-in-suspend; | |
389 | }; | |
064ac050 JMC |
390 | }; |
391 | ||
392 | ldo6_reg: LDO6 { | |
393 | regulator-name = "vdd_1v8_6"; | |
394 | regulator-min-microvolt = <1800000>; | |
395 | regulator-max-microvolt = <1800000>; | |
396 | regulator-always-on; | |
23c76dc6 JMC |
397 | regulator-state-mem { |
398 | regulator-off-in-suspend; | |
399 | }; | |
064ac050 JMC |
400 | }; |
401 | ||
402 | ldo7_reg: LDO7 { | |
403 | regulator-name = "vdd_1v8_7"; | |
404 | regulator-min-microvolt = <1800000>; | |
405 | regulator-max-microvolt = <1800000>; | |
406 | }; | |
407 | ||
408 | ldo8_reg: LDO8 { | |
409 | regulator-name = "vdd_ldo8"; | |
410 | regulator-min-microvolt = <1000000>; | |
411 | regulator-max-microvolt = <1000000>; | |
412 | regulator-always-on; | |
23c76dc6 JMC |
413 | regulator-state-mem { |
414 | regulator-off-in-suspend; | |
415 | }; | |
064ac050 JMC |
416 | }; |
417 | ||
418 | ldo9_reg: LDO9 { | |
419 | regulator-name = "vdd_ldo9"; | |
420 | regulator-min-microvolt = <1800000>; | |
421 | regulator-max-microvolt = <1800000>; | |
422 | regulator-always-on; | |
23c76dc6 JMC |
423 | regulator-state-mem { |
424 | regulator-on-in-suspend; | |
425 | regulator-mode = <MAX77802_OPMODE_LP>; | |
426 | }; | |
064ac050 JMC |
427 | }; |
428 | ||
429 | ldo10_reg: LDO10 { | |
430 | regulator-name = "vdd_ldo10"; | |
431 | regulator-min-microvolt = <1800000>; | |
432 | regulator-max-microvolt = <1800000>; | |
433 | regulator-always-on; | |
23c76dc6 JMC |
434 | regulator-state-mem { |
435 | regulator-off-in-suspend; | |
436 | }; | |
064ac050 JMC |
437 | }; |
438 | ||
439 | ldo11_reg: LDO11 { | |
440 | regulator-name = "vdd_ldo11"; | |
441 | regulator-min-microvolt = <1800000>; | |
442 | regulator-max-microvolt = <1800000>; | |
443 | regulator-always-on; | |
23c76dc6 JMC |
444 | regulator-state-mem { |
445 | regulator-on-in-suspend; | |
446 | regulator-mode = <MAX77802_OPMODE_LP>; | |
447 | }; | |
064ac050 JMC |
448 | }; |
449 | ||
450 | ldo12_reg: LDO12 { | |
451 | regulator-name = "vdd_ldo12"; | |
452 | regulator-min-microvolt = <3000000>; | |
453 | regulator-max-microvolt = <3000000>; | |
454 | regulator-always-on; | |
23c76dc6 JMC |
455 | regulator-state-mem { |
456 | regulator-off-in-suspend; | |
457 | }; | |
064ac050 JMC |
458 | }; |
459 | ||
460 | ldo13_reg: LDO13 { | |
461 | regulator-name = "vdd_ldo13"; | |
462 | regulator-min-microvolt = <1800000>; | |
463 | regulator-max-microvolt = <1800000>; | |
464 | regulator-always-on; | |
23c76dc6 JMC |
465 | regulator-state-mem { |
466 | regulator-on-in-suspend; | |
467 | regulator-mode = <MAX77802_OPMODE_LP>; | |
468 | }; | |
064ac050 JMC |
469 | }; |
470 | ||
471 | ldo14_reg: LDO14 { | |
472 | regulator-name = "vdd_ldo14"; | |
473 | regulator-min-microvolt = <1800000>; | |
474 | regulator-max-microvolt = <1800000>; | |
475 | regulator-always-on; | |
23c76dc6 JMC |
476 | regulator-state-mem { |
477 | regulator-off-in-suspend; | |
478 | }; | |
064ac050 JMC |
479 | }; |
480 | ||
481 | ldo15_reg: LDO15 { | |
482 | regulator-name = "vdd_ldo15"; | |
483 | regulator-min-microvolt = <1000000>; | |
484 | regulator-max-microvolt = <1000000>; | |
485 | regulator-always-on; | |
23c76dc6 JMC |
486 | regulator-state-mem { |
487 | regulator-off-in-suspend; | |
488 | }; | |
064ac050 JMC |
489 | }; |
490 | ||
491 | ldo17_reg: LDO17 { | |
492 | regulator-name = "vdd_g3ds"; | |
493 | regulator-min-microvolt = <900000>; | |
494 | regulator-max-microvolt = <1400000>; | |
495 | regulator-always-on; | |
23c76dc6 JMC |
496 | regulator-state-mem { |
497 | regulator-off-in-suspend; | |
498 | }; | |
064ac050 JMC |
499 | }; |
500 | ||
501 | ldo18_reg: LDO18 { | |
502 | regulator-name = "ldo_18"; | |
503 | regulator-min-microvolt = <1800000>; | |
504 | regulator-max-microvolt = <1800000>; | |
505 | }; | |
506 | ||
507 | ldo19_reg: LDO19 { | |
508 | regulator-name = "ldo_19"; | |
509 | regulator-min-microvolt = <1800000>; | |
510 | regulator-max-microvolt = <1800000>; | |
511 | }; | |
512 | ||
513 | ldo20_reg: LDO20 { | |
514 | regulator-name = "ldo_20"; | |
515 | regulator-min-microvolt = <1800000>; | |
516 | regulator-max-microvolt = <1800000>; | |
517 | regulator-always-on; | |
518 | }; | |
519 | ||
520 | ldo21_reg: LDO21 { | |
521 | regulator-name = "ldo_21"; | |
522 | regulator-min-microvolt = <2800000>; | |
523 | regulator-max-microvolt = <2800000>; | |
524 | }; | |
525 | ||
526 | ldo23_reg: LDO23 { | |
527 | regulator-name = "ldo_23"; | |
528 | regulator-min-microvolt = <3300000>; | |
529 | regulator-max-microvolt = <3300000>; | |
530 | }; | |
531 | ldo24_reg: LDO24 { | |
532 | regulator-name = "ldo_24"; | |
533 | regulator-min-microvolt = <2800000>; | |
534 | regulator-max-microvolt = <2800000>; | |
535 | }; | |
536 | ||
537 | ldo25_reg: LDO25 { | |
538 | regulator-name = "ldo_25"; | |
539 | regulator-min-microvolt = <3300000>; | |
540 | regulator-max-microvolt = <3300000>; | |
541 | }; | |
542 | ||
543 | ldo26_reg: LDO26 { | |
544 | regulator-name = "ldo_26"; | |
545 | regulator-min-microvolt = <1200000>; | |
546 | regulator-max-microvolt = <1200000>; | |
547 | }; | |
548 | ||
549 | ldo27_reg: LDO27 { | |
550 | regulator-name = "ldo_27"; | |
551 | regulator-min-microvolt = <1200000>; | |
552 | regulator-max-microvolt = <1200000>; | |
553 | }; | |
554 | ||
555 | ldo28_reg: LDO28 { | |
556 | regulator-name = "ldo_28"; | |
557 | regulator-min-microvolt = <1800000>; | |
558 | regulator-max-microvolt = <1800000>; | |
559 | }; | |
560 | ||
561 | ldo29_reg: LDO29 { | |
562 | regulator-name = "ldo_29"; | |
563 | regulator-min-microvolt = <1800000>; | |
564 | regulator-max-microvolt = <1800000>; | |
565 | }; | |
566 | ||
567 | ldo30_reg: LDO30 { | |
568 | regulator-name = "vdd_mifs"; | |
569 | regulator-min-microvolt = <1000000>; | |
570 | regulator-max-microvolt = <1000000>; | |
571 | regulator-always-on; | |
23c76dc6 JMC |
572 | regulator-state-mem { |
573 | regulator-off-in-suspend; | |
574 | }; | |
064ac050 JMC |
575 | }; |
576 | ||
577 | ldo32_reg: LDO32 { | |
578 | regulator-name = "ldo_32"; | |
579 | regulator-min-microvolt = <3000000>; | |
580 | regulator-max-microvolt = <3000000>; | |
581 | }; | |
582 | ||
583 | ldo33_reg: LDO33 { | |
584 | regulator-name = "ldo_33"; | |
585 | regulator-min-microvolt = <2800000>; | |
586 | regulator-max-microvolt = <2800000>; | |
587 | }; | |
588 | ||
589 | ldo34_reg: LDO34 { | |
590 | regulator-name = "ldo_34"; | |
591 | regulator-min-microvolt = <3000000>; | |
592 | regulator-max-microvolt = <3000000>; | |
593 | }; | |
594 | ||
595 | ldo35_reg: LDO35 { | |
596 | regulator-name = "ldo_35"; | |
597 | regulator-min-microvolt = <1200000>; | |
598 | regulator-max-microvolt = <1200000>; | |
599 | }; | |
600 | }; | |
601 | }; | |
602 | }; | |
603 | ||
522c8ff5 TB |
604 | &hsi2c_7 { |
605 | status = "okay"; | |
8be6a6d0 | 606 | clock-frequency = <400000>; |
522c8ff5 TB |
607 | |
608 | max98091: codec@10 { | |
609 | compatible = "maxim,max98091"; | |
610 | reg = <0x10>; | |
611 | interrupts = <2 0>; | |
612 | interrupt-parent = <&gpx0>; | |
613 | pinctrl-names = "default"; | |
614 | pinctrl-0 = <&max98091_irq>; | |
2fad972d TB |
615 | clocks = <&pmu_system_controller 0>; |
616 | clock-names = "mclk"; | |
d3343157 | 617 | }; |
dc0cf1a3 JMC |
618 | |
619 | light-sensor@44 { | |
620 | compatible = "isil,isl29018"; | |
621 | reg = <0x44>; | |
622 | vcc-supply = <&tps65090_fet5>; | |
623 | }; | |
522c8ff5 | 624 | }; |
d3343157 | 625 | |
132fd5be JMC |
626 | &hsi2c_8 { |
627 | status = "okay"; | |
628 | clock-frequency = <333000>; | |
629 | /* Atmel mXT540S */ | |
630 | trackpad@4b { | |
631 | compatible = "atmel,maxtouch"; | |
632 | reg = <0x4b>; | |
633 | interrupt-parent = <&gpx1>; | |
634 | interrupts = <1 IRQ_TYPE_EDGE_FALLING>; | |
635 | wakeup-source; | |
636 | pinctrl-names = "default"; | |
637 | pinctrl-0 = <&trackpad_irq>; | |
638 | linux,gpio-keymap = <KEY_RESERVED | |
639 | KEY_RESERVED | |
640 | KEY_RESERVED /* GPIO 0 */ | |
641 | KEY_RESERVED /* GPIO 1 */ | |
642 | BTN_LEFT /* GPIO 2 */ | |
643 | KEY_RESERVED>; /* GPIO 3 */ | |
644 | }; | |
645 | }; | |
646 | ||
522c8ff5 TB |
647 | &hsi2c_9 { |
648 | status = "okay"; | |
649 | clock-frequency = <400000>; | |
650 | ||
651 | tpm@20 { | |
652 | compatible = "infineon,slb9645tt"; | |
653 | reg = <0x20>; | |
654 | ||
655 | /* Unused irq; but still need to configure the pins */ | |
656 | pinctrl-names = "default"; | |
657 | pinctrl-0 = <&tpm_irq>; | |
d3343157 VG |
658 | }; |
659 | }; | |
660 | ||
522c8ff5 | 661 | &i2c_2 { |
853d2694 | 662 | status = "okay"; |
522c8ff5 TB |
663 | samsung,i2c-sda-delay = <100>; |
664 | samsung,i2c-max-bus-freq = <66000>; | |
665 | samsung,i2c-slave-addr = <0x50>; | |
853d2694 AK |
666 | }; |
667 | ||
522c8ff5 | 668 | &i2s0 { |
853d2694 AK |
669 | status = "okay"; |
670 | }; | |
671 | ||
7c44e911 JMC |
672 | &mfc { |
673 | samsung,mfc-r = <0x43000000 0x800000>; | |
674 | samsung,mfc-l = <0x51000000 0x800000>; | |
675 | }; | |
676 | ||
853d2694 AK |
677 | &mmc_0 { |
678 | status = "okay"; | |
679 | num-slots = <1>; | |
65354307 | 680 | mmc-hs200-1_8v; |
4f59ebed | 681 | mmc-hs400-1_8v; |
aaa25a5a | 682 | cap-mmc-highspeed; |
853d2694 | 683 | non-removable; |
4f59ebed | 684 | clock-frequency = <800000000>; |
853d2694 AK |
685 | samsung,dw-mshc-ciu-div = <3>; |
686 | samsung,dw-mshc-sdr-timing = <0 4>; | |
687 | samsung,dw-mshc-ddr-timing = <0 2>; | |
4f59ebed SJ |
688 | samsung,dw-mshc-hs400-timing = <0 2>; |
689 | samsung,read-strobe-delay = <90>; | |
853d2694 | 690 | pinctrl-names = "default"; |
4f59ebed | 691 | pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_rclk>; |
aaa25a5a | 692 | bus-width = <8>; |
853d2694 AK |
693 | }; |
694 | ||
3cb18180 JMC |
695 | &mmc_1 { |
696 | status = "okay"; | |
697 | num-slots = <1>; | |
37522162 | 698 | non-removable; |
3cb18180 | 699 | cap-sdio-irq; |
b2706879 | 700 | keep-power-in-suspend; |
3cb18180 JMC |
701 | clock-frequency = <400000000>; |
702 | samsung,dw-mshc-ciu-div = <1>; | |
703 | samsung,dw-mshc-sdr-timing = <0 1>; | |
704 | samsung,dw-mshc-ddr-timing = <0 2>; | |
705 | pinctrl-names = "default"; | |
706 | pinctrl-0 = <&sd1_clk>, <&sd1_cmd>, <&sd1_int>, <&sd1_bus1>, | |
707 | <&sd1_bus4>, <&sd1_bus8>, <&wifi_en>; | |
708 | bus-width = <4>; | |
709 | cap-sd-highspeed; | |
710 | mmc-pwrseq = <&mmc1_pwrseq>; | |
711 | vqmmc-supply = <&buck10_reg>; | |
712 | }; | |
713 | ||
853d2694 AK |
714 | &mmc_2 { |
715 | status = "okay"; | |
716 | num-slots = <1>; | |
aaa25a5a | 717 | cap-sd-highspeed; |
853d2694 AK |
718 | card-detect-delay = <200>; |
719 | clock-frequency = <400000000>; | |
720 | samsung,dw-mshc-ciu-div = <3>; | |
721 | samsung,dw-mshc-sdr-timing = <2 3>; | |
722 | samsung,dw-mshc-ddr-timing = <1 2>; | |
723 | pinctrl-names = "default"; | |
af6ad88a | 724 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>; |
aaa25a5a | 725 | bus-width = <4>; |
853d2694 AK |
726 | }; |
727 | ||
8b2f8379 | 728 | |
522c8ff5 | 729 | &pinctrl_0 { |
73a9bb2e VS |
730 | pinctrl-names = "default"; |
731 | pinctrl-0 = <&mask_tpm_reset>; | |
732 | ||
3cb18180 JMC |
733 | wifi_en: wifi-en { |
734 | samsung,pins = "gpx0-0"; | |
735 | samsung,pin-function = <1>; | |
736 | samsung,pin-pud = <0>; | |
737 | samsung,pin-drv = <0>; | |
738 | }; | |
739 | ||
522c8ff5 TB |
740 | max98091_irq: max98091-irq { |
741 | samsung,pins = "gpx0-2"; | |
742 | samsung,pin-function = <0>; | |
743 | samsung,pin-pud = <0>; | |
744 | samsung,pin-drv = <0>; | |
745 | }; | |
8b2f8379 | 746 | |
73a9bb2e VS |
747 | /* We need GPX0_6 to be low at sleep time; just keep it low always */ |
748 | mask_tpm_reset: mask-tpm-reset { | |
749 | samsung,pins = "gpx0-6"; | |
750 | samsung,pin-function = <1>; | |
751 | samsung,pin-pud = <0>; | |
752 | samsung,pin-drv = <0>; | |
753 | samsung,pin-val = <0>; | |
754 | }; | |
755 | ||
522c8ff5 TB |
756 | tpm_irq: tpm-irq { |
757 | samsung,pins = "gpx1-0"; | |
758 | samsung,pin-function = <0>; | |
759 | samsung,pin-pud = <0>; | |
760 | samsung,pin-drv = <0>; | |
8b2f8379 | 761 | }; |
8b2f8379 | 762 | |
132fd5be JMC |
763 | trackpad_irq: trackpad-irq { |
764 | samsung,pins = "gpx1-1"; | |
765 | samsung,pin-function = <0xf>; | |
766 | samsung,pin-pud = <0>; | |
767 | samsung,pin-drv = <0>; | |
768 | }; | |
769 | ||
522c8ff5 TB |
770 | power_key_irq: power-key-irq { |
771 | samsung,pins = "gpx1-2"; | |
772 | samsung,pin-function = <0>; | |
773 | samsung,pin-pud = <0>; | |
774 | samsung,pin-drv = <0>; | |
775 | }; | |
4c2d3f38 | 776 | |
8060098b DA |
777 | ec_irq: ec-irq { |
778 | samsung,pins = "gpx1-5"; | |
779 | samsung,pin-function = <0>; | |
780 | samsung,pin-pud = <0>; | |
781 | samsung,pin-drv = <0>; | |
782 | }; | |
783 | ||
784 | tps65090_irq: tps65090-irq { | |
785 | samsung,pins = "gpx2-5"; | |
786 | samsung,pin-function = <0>; | |
787 | samsung,pin-pud = <0>; | |
788 | samsung,pin-drv = <0>; | |
789 | }; | |
790 | ||
522c8ff5 TB |
791 | dp_hpd_gpio: dp_hpd_gpio { |
792 | samsung,pins = "gpx2-6"; | |
793 | samsung,pin-function = <0>; | |
794 | samsung,pin-pud = <3>; | |
795 | samsung,pin-drv = <0>; | |
796 | }; | |
db91fb2c | 797 | |
064ac050 JMC |
798 | max77802_irq: max77802-irq { |
799 | samsung,pins = "gpx3-1"; | |
800 | samsung,pin-function = <0>; | |
801 | samsung,pin-pud = <0>; | |
802 | samsung,pin-drv = <0>; | |
803 | }; | |
804 | ||
1f3cde4b JMC |
805 | lid_irq: lid-irq { |
806 | samsung,pins = "gpx3-4"; | |
807 | samsung,pin-function = <0xf>; | |
808 | samsung,pin-pud = <0>; | |
809 | samsung,pin-drv = <0>; | |
810 | }; | |
811 | ||
522c8ff5 TB |
812 | hdmi_hpd_irq: hdmi-hpd-irq { |
813 | samsung,pins = "gpx3-7"; | |
814 | samsung,pin-function = <0>; | |
815 | samsung,pin-pud = <1>; | |
816 | samsung,pin-drv = <0>; | |
db91fb2c | 817 | }; |
064ac050 JMC |
818 | |
819 | pmic_dvs_1: pmic-dvs-1 { | |
820 | samsung,pins = "gpy7-6"; | |
821 | samsung,pin-function = <1>; | |
822 | samsung,pin-pud = <0>; | |
823 | samsung,pin-drv = <0>; | |
824 | }; | |
825 | }; | |
826 | ||
3cb18180 JMC |
827 | &pinctrl_1 { |
828 | /* Adjust WiFi drive strengths lower for EMI */ | |
829 | sd1_clk: sd1-clk { | |
830 | samsung,pin-drv = <2>; | |
831 | }; | |
832 | ||
833 | sd1_cmd: sd1-cmd { | |
834 | samsung,pin-drv = <2>; | |
835 | }; | |
836 | ||
837 | sd1_bus1: sd1-bus-width1 { | |
838 | samsung,pin-drv = <2>; | |
839 | }; | |
840 | ||
841 | sd1_bus4: sd1-bus-width4 { | |
842 | samsung,pin-drv = <2>; | |
843 | }; | |
844 | ||
845 | sd1_bus8: sd1-bus-width8 { | |
846 | samsung,pin-drv = <2>; | |
847 | }; | |
848 | }; | |
849 | ||
064ac050 JMC |
850 | &pinctrl_2 { |
851 | pmic_dvs_2: pmic-dvs-2 { | |
852 | samsung,pins = "gpj4-2"; | |
853 | samsung,pin-function = <1>; | |
854 | samsung,pin-pud = <0>; | |
855 | samsung,pin-drv = <0>; | |
856 | }; | |
857 | ||
858 | pmic_dvs_3: pmic-dvs-3 { | |
859 | samsung,pins = "gpj4-3"; | |
860 | samsung,pin-function = <1>; | |
861 | samsung,pin-pud = <0>; | |
862 | samsung,pin-drv = <0>; | |
863 | }; | |
db91fb2c TB |
864 | }; |
865 | ||
522c8ff5 | 866 | &pinctrl_3 { |
8060098b DA |
867 | /* Drive SPI lines at x2 for better integrity */ |
868 | spi2-bus { | |
869 | samsung,pin-drv = <2>; | |
870 | }; | |
871 | ||
872 | /* Drive SPI chip select at x2 for better integrity */ | |
873 | ec_spi_cs: ec-spi-cs { | |
874 | samsung,pins = "gpb1-2"; | |
875 | samsung,pin-function = <1>; | |
876 | samsung,pin-pud = <0>; | |
877 | samsung,pin-drv = <2>; | |
878 | }; | |
879 | ||
522c8ff5 TB |
880 | usb300_vbus_en: usb300-vbus-en { |
881 | samsung,pins = "gph0-0"; | |
882 | samsung,pin-function = <1>; | |
883 | samsung,pin-pud = <0>; | |
884 | samsung,pin-drv = <0>; | |
885 | }; | |
853d2694 | 886 | |
522c8ff5 TB |
887 | usb301_vbus_en: usb301-vbus-en { |
888 | samsung,pins = "gph0-1"; | |
889 | samsung,pin-function = <1>; | |
890 | samsung,pin-pud = <0>; | |
891 | samsung,pin-drv = <0>; | |
853d2694 | 892 | }; |
064ac050 JMC |
893 | |
894 | pmic_selb: pmic-selb { | |
895 | samsung,pins = "gph0-2", "gph0-3", "gph0-4", "gph0-5", | |
896 | "gph0-6"; | |
897 | samsung,pin-function = <1>; | |
898 | samsung,pin-pud = <0>; | |
899 | samsung,pin-drv = <0>; | |
900 | }; | |
853d2694 AK |
901 | }; |
902 | ||
b8bb9baa AA |
903 | &pmu_system_controller { |
904 | assigned-clocks = <&pmu_system_controller 0>; | |
905 | assigned-clock-parents = <&clock CLK_FIN_PLL>; | |
906 | }; | |
907 | ||
522c8ff5 | 908 | &rtc { |
6a7da0d4 | 909 | status = "okay"; |
fa781dda JMC |
910 | clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>; |
911 | clock-names = "rtc", "rtc_src"; | |
6a7da0d4 RS |
912 | }; |
913 | ||
8060098b DA |
914 | &spi_2 { |
915 | status = "okay"; | |
916 | num-cs = <1>; | |
917 | samsung,spi-src-clk = <0>; | |
31b9903c | 918 | cs-gpios = <&gpb1 2 GPIO_ACTIVE_HIGH>; |
8060098b DA |
919 | |
920 | cros_ec: cros-ec@0 { | |
921 | compatible = "google,cros-ec-spi"; | |
922 | interrupt-parent = <&gpx1>; | |
923 | interrupts = <5 0>; | |
924 | pinctrl-names = "default"; | |
925 | pinctrl-0 = <&ec_spi_cs &ec_irq>; | |
926 | reg = <0>; | |
927 | spi-max-frequency = <3125000>; | |
27e6699c | 928 | google,has-vbc-nvram; |
8060098b DA |
929 | |
930 | controller-data { | |
931 | samsung,spi-feedback-delay = <1>; | |
932 | }; | |
933 | ||
934 | i2c-tunnel { | |
935 | compatible = "google,cros-ec-i2c-tunnel"; | |
936 | #address-cells = <1>; | |
937 | #size-cells = <0>; | |
938 | google,remote-bus = <0>; | |
939 | ||
940 | battery: sbs-battery@b { | |
941 | compatible = "sbs,sbs-battery"; | |
942 | reg = <0xb>; | |
943 | sbs,poll-retry-count = <1>; | |
944 | sbs,i2c-retry-count = <2>; | |
945 | }; | |
946 | ||
947 | power-regulator@48 { | |
948 | compatible = "ti,tps65090"; | |
949 | reg = <0x48>; | |
950 | ||
951 | /* | |
952 | * Config irq to disable internal pulls | |
953 | * even though we run in polling mode. | |
954 | */ | |
955 | pinctrl-names = "default"; | |
956 | pinctrl-0 = <&tps65090_irq>; | |
957 | ||
958 | vsys1-supply = <&vbat>; | |
959 | vsys2-supply = <&vbat>; | |
960 | vsys3-supply = <&vbat>; | |
961 | infet1-supply = <&vbat>; | |
a130548d JMC |
962 | infet2-supply = <&tps65090_dcdc1>; |
963 | infet3-supply = <&tps65090_dcdc2>; | |
964 | infet4-supply = <&tps65090_dcdc2>; | |
965 | infet5-supply = <&tps65090_dcdc2>; | |
966 | infet6-supply = <&tps65090_dcdc2>; | |
967 | infet7-supply = <&tps65090_dcdc1>; | |
8060098b DA |
968 | vsys-l1-supply = <&vbat>; |
969 | vsys-l2-supply = <&vbat>; | |
970 | ||
971 | regulators { | |
972 | tps65090_dcdc1: dcdc1 { | |
973 | ti,enable-ext-control; | |
974 | }; | |
975 | tps65090_dcdc2: dcdc2 { | |
976 | ti,enable-ext-control; | |
977 | }; | |
978 | tps65090_dcdc3: dcdc3 { | |
979 | ti,enable-ext-control; | |
980 | }; | |
981 | tps65090_fet1: fet1 { | |
982 | regulator-name = "vcd_led"; | |
983 | }; | |
984 | tps65090_fet2: fet2 { | |
985 | regulator-name = "video_mid"; | |
986 | regulator-always-on; | |
987 | }; | |
988 | tps65090_fet3: fet3 { | |
989 | regulator-name = "wwan_r"; | |
990 | regulator-always-on; | |
991 | }; | |
992 | tps65090_fet4: fet4 { | |
993 | regulator-name = "sdcard"; | |
994 | regulator-always-on; | |
995 | }; | |
996 | tps65090_fet5: fet5 { | |
997 | regulator-name = "camout"; | |
ae845476 | 998 | regulator-always-on; |
8060098b DA |
999 | }; |
1000 | tps65090_fet6: fet6 { | |
1001 | regulator-name = "lcd_vdd"; | |
1002 | }; | |
1003 | tps65090_fet7: fet7 { | |
1004 | regulator-name = "video_mid_1a"; | |
1005 | regulator-always-on; | |
1006 | }; | |
1007 | tps65090_ldo1: ldo1 { | |
1008 | }; | |
1009 | tps65090_ldo2: ldo2 { | |
1010 | }; | |
1011 | }; | |
1012 | ||
1013 | charger { | |
1014 | compatible = "ti,tps65090-charger"; | |
1015 | }; | |
1016 | }; | |
1017 | }; | |
1018 | }; | |
1019 | }; | |
1020 | ||
3a3cf6c4 | 1021 | &serial_3 { |
6a7da0d4 | 1022 | status = "okay"; |
6a7da0d4 RS |
1023 | }; |
1024 | ||
e1c69efc SS |
1025 | &usbdrd_dwc3_0 { |
1026 | dr_mode = "host"; | |
1027 | }; | |
1028 | ||
1029 | &usbdrd_dwc3_1 { | |
1030 | dr_mode = "host"; | |
1031 | }; | |
1032 | ||
2c3b655c | 1033 | &usbdrd_phy0 { |
d3343157 VG |
1034 | vbus-supply = <&usb300_vbus_reg>; |
1035 | }; | |
1036 | ||
2c3b655c | 1037 | &usbdrd_phy1 { |
d3343157 VG |
1038 | vbus-supply = <&usb301_vbus_reg>; |
1039 | }; | |
1040 | ||
853d2694 AK |
1041 | /* |
1042 | * Use longest HW watchdog in SoC (32 seconds) since the hardware | |
1043 | * watchdog provides no debugging information (compared to soft/hard | |
1044 | * lockup detectors) and so should be last resort. | |
1045 | */ | |
1046 | &watchdog { | |
1047 | timeout-sec = <32>; | |
1048 | }; | |
db91fb2c | 1049 | |
8060098b | 1050 | #include "cros-ec-keyboard.dtsi" |
7b488038 | 1051 | #include "cros-adc-thermistors.dtsi" |