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