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