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