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