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