]>
Commit | Line | Data |
---|---|---|
95e82941 DA |
1 | /* |
2 | * Google Snow board device tree source | |
3 | * | |
4 | * Copyright (c) 2012 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/; | |
3799279f | 12 | #include "exynos5250.dtsi" |
a22d060e | 13 | #include "exynos5250-cros-common.dtsi" |
95e82941 DA |
14 | |
15 | / { | |
16 | model = "Google Snow"; | |
8bdb31b4 | 17 | compatible = "google,snow", "samsung,exynos5250", "samsung,exynos5"; |
95e82941 | 18 | |
97a4a1ba DA |
19 | aliases { |
20 | i2c104 = &i2c_104; | |
21 | }; | |
22 | ||
65cedf0e SK |
23 | rtc@101E0000 { |
24 | status = "okay"; | |
25 | }; | |
26 | ||
f8bfe2b0 | 27 | pinctrl@11400000 { |
ecad159a DA |
28 | ec_irq: ec-irq { |
29 | samsung,pins = "gpx1-6"; | |
30 | samsung,pin-function = <0>; | |
31 | samsung,pin-pud = <0>; | |
32 | samsung,pin-drv = <0>; | |
33 | }; | |
34 | ||
f8bfe2b0 TA |
35 | sd3_clk: sd3-clk { |
36 | samsung,pin-drv = <0>; | |
37 | }; | |
38 | ||
39 | sd3_cmd: sd3-cmd { | |
40 | samsung,pin-pud = <3>; | |
41 | samsung,pin-drv = <0>; | |
42 | }; | |
43 | ||
44 | sd3_bus4: sd3-bus-width4 { | |
45 | samsung,pin-drv = <0>; | |
46 | }; | |
b16be76f | 47 | |
80f78ad8 TB |
48 | max98095_en: max98095-en { |
49 | samsung,pins = "gpx1-7"; | |
50 | samsung,pin-function = <0>; | |
51 | samsung,pin-pud = <3>; | |
52 | samsung,pin-drv = <0>; | |
53 | }; | |
54 | ||
b16be76f DA |
55 | tps65090_irq: tps65090-irq { |
56 | samsung,pins = "gpx2-6"; | |
57 | samsung,pin-function = <0>; | |
58 | samsung,pin-pud = <0>; | |
59 | samsung,pin-drv = <0>; | |
60 | }; | |
2e747d63 | 61 | |
a491ae63 VG |
62 | usb3_vbus_en: usb3-vbus-en { |
63 | samsung,pins = "gpx2-7"; | |
64 | samsung,pin-function = <1>; | |
65 | samsung,pin-pud = <0>; | |
66 | samsung,pin-drv = <0>; | |
67 | }; | |
68 | ||
2e747d63 RS |
69 | hdmi_hpd_irq: hdmi-hpd-irq { |
70 | samsung,pins = "gpx3-7"; | |
71 | samsung,pin-function = <0>; | |
72 | samsung,pin-pud = <1>; | |
73 | samsung,pin-drv = <0>; | |
74 | }; | |
f8bfe2b0 TA |
75 | }; |
76 | ||
f9357e9f DA |
77 | pinctrl@13400000 { |
78 | arb_their_claim: arb-their-claim { | |
79 | samsung,pins = "gpe0-4"; | |
80 | samsung,pin-function = <0>; | |
81 | samsung,pin-pud = <3>; | |
82 | samsung,pin-drv = <0>; | |
83 | }; | |
84 | ||
85 | arb_our_claim: arb-our-claim { | |
86 | samsung,pins = "gpf0-3"; | |
87 | samsung,pin-function = <1>; | |
88 | samsung,pin-pud = <0>; | |
89 | samsung,pin-drv = <0>; | |
90 | }; | |
91 | }; | |
92 | ||
95e82941 DA |
93 | gpio-keys { |
94 | compatible = "gpio-keys"; | |
95 | ||
96 | lid-switch { | |
97 | label = "Lid"; | |
f8bfe2b0 | 98 | gpios = <&gpx3 5 1>; |
95e82941 DA |
99 | linux,input-type = <5>; /* EV_SW */ |
100 | linux,code = <0>; /* SW_LID */ | |
101 | debounce-interval = <1>; | |
102 | gpio-key,wakeup; | |
103 | }; | |
104 | }; | |
105 | ||
b16be76f DA |
106 | vbat: vbat-fixed-regulator { |
107 | compatible = "regulator-fixed"; | |
108 | regulator-name = "vbat-supply"; | |
109 | regulator-boot-on; | |
110 | }; | |
111 | ||
97a4a1ba DA |
112 | i2c-arbitrator { |
113 | compatible = "i2c-arb-gpio-challenge"; | |
114 | #address-cells = <1>; | |
115 | #size-cells = <0>; | |
116 | ||
117 | i2c-parent = <&{/i2c@12CA0000}>; | |
118 | ||
119 | our-claim-gpio = <&gpf0 3 1>; | |
120 | their-claim-gpios = <&gpe0 4 1>; | |
121 | slew-delay-us = <10>; | |
122 | wait-retry-us = <3000>; | |
123 | wait-free-us = <50000>; | |
124 | ||
f9357e9f DA |
125 | pinctrl-names = "default"; |
126 | pinctrl-0 = <&arb_our_claim &arb_their_claim>; | |
127 | ||
97a4a1ba DA |
128 | /* Use ID 104 as a hint that we're on physical bus 4 */ |
129 | i2c_104: i2c@0 { | |
130 | reg = <0>; | |
131 | #address-cells = <1>; | |
132 | #size-cells = <0>; | |
61d4f052 DA |
133 | |
134 | battery: sbs-battery@b { | |
135 | compatible = "sbs,sbs-battery"; | |
136 | reg = <0xb>; | |
137 | sbs,poll-retry-count = <1>; | |
138 | }; | |
a4591dcf | 139 | |
1a395e3b | 140 | cros_ec: embedded-controller { |
a4591dcf OJ |
141 | compatible = "google,cros-ec-i2c"; |
142 | reg = <0x1e>; | |
143 | interrupts = <6 0>; | |
144 | interrupt-parent = <&gpx1>; | |
ecad159a DA |
145 | pinctrl-names = "default"; |
146 | pinctrl-0 = <&ec_irq>; | |
a4591dcf | 147 | wakeup-source; |
a4591dcf | 148 | }; |
b16be76f DA |
149 | |
150 | power-regulator { | |
151 | compatible = "ti,tps65090"; | |
152 | reg = <0x48>; | |
153 | ||
154 | /* | |
155 | * Config irq to disable internal pulls | |
156 | * even though we run in polling mode. | |
157 | */ | |
158 | pinctrl-names = "default"; | |
159 | pinctrl-0 = <&tps65090_irq>; | |
160 | ||
161 | vsys1-supply = <&vbat>; | |
162 | vsys2-supply = <&vbat>; | |
163 | vsys3-supply = <&vbat>; | |
164 | infet1-supply = <&vbat>; | |
165 | infet2-supply = <&vbat>; | |
166 | infet3-supply = <&vbat>; | |
167 | infet4-supply = <&vbat>; | |
168 | infet5-supply = <&vbat>; | |
169 | infet6-supply = <&vbat>; | |
170 | infet7-supply = <&vbat>; | |
171 | vsys-l1-supply = <&vbat>; | |
172 | vsys-l2-supply = <&vbat>; | |
173 | ||
174 | regulators { | |
175 | dcdc1 { | |
176 | ti,enable-ext-control; | |
177 | }; | |
178 | dcdc2 { | |
179 | ti,enable-ext-control; | |
180 | }; | |
181 | dcdc3 { | |
182 | ti,enable-ext-control; | |
183 | }; | |
184 | fet1 { | |
185 | regulator-name = "vcd_led"; | |
186 | ti,overcurrent-wait = <3>; | |
187 | }; | |
188 | tps65090_fet2: fet2 { | |
189 | regulator-name = "video_mid"; | |
190 | regulator-always-on; | |
191 | ti,overcurrent-wait = <3>; | |
192 | }; | |
193 | fet3 { | |
194 | regulator-name = "wwan_r"; | |
195 | regulator-always-on; | |
196 | ti,overcurrent-wait = <3>; | |
197 | }; | |
198 | fet4 { | |
199 | regulator-name = "sdcard"; | |
200 | ti,overcurrent-wait = <3>; | |
201 | }; | |
202 | fet5 { | |
203 | regulator-name = "camout"; | |
204 | regulator-always-on; | |
205 | ti,overcurrent-wait = <3>; | |
206 | }; | |
207 | fet6 { | |
208 | regulator-name = "lcd_vdd"; | |
209 | ti,overcurrent-wait = <3>; | |
210 | }; | |
211 | tps65090_fet7: fet7 { | |
212 | regulator-name = "video_mid_1a"; | |
213 | regulator-always-on; | |
214 | ti,overcurrent-wait = <3>; | |
215 | }; | |
216 | ldo1 { | |
217 | }; | |
218 | ldo2 { | |
219 | }; | |
220 | }; | |
221 | ||
222 | charger { | |
223 | compatible = "ti,tps65090-charger"; | |
224 | }; | |
225 | }; | |
97a4a1ba DA |
226 | }; |
227 | }; | |
228 | ||
e8dd3ee3 YK |
229 | mmc@12200000 { |
230 | status = "okay"; | |
231 | }; | |
232 | ||
233 | mmc@12220000 { | |
234 | status = "okay"; | |
235 | }; | |
236 | ||
95e82941 DA |
237 | /* |
238 | * On Snow we've got SIP WiFi and so can keep drive strengths low to | |
239 | * reduce EMI. | |
240 | */ | |
c8149df0 | 241 | mmc@12230000 { |
e8dd3ee3 | 242 | status = "okay"; |
df08d2eb AF |
243 | pinctrl-names = "default"; |
244 | pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>; | |
95e82941 | 245 | }; |
13cbd1e3 | 246 | |
80f78ad8 TB |
247 | i2c@12CD0000 { |
248 | max98095: codec@11 { | |
249 | compatible = "maxim,max98095"; | |
250 | reg = <0x11>; | |
251 | pinctrl-0 = <&max98095_en>; | |
252 | pinctrl-names = "default"; | |
253 | }; | |
254 | }; | |
255 | ||
256 | i2s0: i2s@03830000 { | |
257 | status = "okay"; | |
258 | }; | |
259 | ||
260 | sound { | |
261 | compatible = "google,snow-audio-max98095"; | |
262 | ||
a8d80b6b | 263 | samsung,model = "Snow-I2S-MAX98095"; |
80f78ad8 TB |
264 | samsung,i2s-controller = <&i2s0>; |
265 | samsung,audio-codec = <&max98095>; | |
266 | }; | |
267 | ||
a491ae63 VG |
268 | usb3_vbus_reg: regulator-usb3 { |
269 | compatible = "regulator-fixed"; | |
270 | regulator-name = "P5.0V_USB3CON"; | |
271 | regulator-min-microvolt = <5000000>; | |
272 | regulator-max-microvolt = <5000000>; | |
273 | gpio = <&gpx2 7 0>; | |
274 | pinctrl-names = "default"; | |
275 | pinctrl-0 = <&usb3_vbus_en>; | |
276 | enable-active-high; | |
277 | }; | |
278 | ||
279 | phy@12100000 { | |
280 | vbus-supply = <&usb3_vbus_reg>; | |
281 | }; | |
282 | ||
13cbd1e3 | 283 | usb@12110000 { |
c58c1a4c | 284 | samsung,vbus-gpio = <&gpx1 1 0>; |
13cbd1e3 | 285 | }; |
8b6076d4 TA |
286 | |
287 | fixed-rate-clocks { | |
288 | xxti { | |
289 | compatible = "samsung,clock-xxti"; | |
290 | clock-frequency = <24000000>; | |
291 | }; | |
292 | }; | |
2e747d63 RS |
293 | |
294 | hdmi { | |
295 | hdmi-en-supply = <&tps65090_fet7>; | |
296 | vdd-supply = <&ldo8_reg>; | |
297 | vdd_osc-supply = <&ldo10_reg>; | |
298 | vdd_pll-supply = <&ldo8_reg>; | |
299 | }; | |
62ffa706 AK |
300 | |
301 | backlight { | |
302 | compatible = "pwm-backlight"; | |
303 | pwms = <&pwm 0 1000000 0>; | |
304 | brightness-levels = <0 100 500 1000 1500 2000 2500 2800>; | |
305 | default-brightness-level = <7>; | |
306 | pinctrl-0 = <&pwm0_out>; | |
307 | pinctrl-names = "default"; | |
308 | }; | |
309 | ||
2f026231 RS |
310 | fimd@14400000 { |
311 | status = "okay"; | |
312 | samsung,invert-vclk; | |
313 | }; | |
077054ae RS |
314 | |
315 | dp-controller@145B0000 { | |
316 | status = "okay"; | |
317 | pinctrl-names = "default"; | |
318 | pinctrl-0 = <&dp_hpd>; | |
319 | samsung,color-space = <0>; | |
320 | samsung,dynamic-range = <0>; | |
321 | samsung,ycbcr-coeff = <0>; | |
322 | samsung,color-depth = <1>; | |
323 | samsung,link-rate = <0x0a>; | |
324 | samsung,lane-count = <2>; | |
325 | samsung,hpd-gpio = <&gpx0 7 0>; | |
326 | ||
327 | display-timings { | |
328 | native-mode = <&timing1>; | |
329 | ||
330 | timing1: timing@1 { | |
331 | clock-frequency = <70589280>; | |
332 | hactive = <1366>; | |
333 | vactive = <768>; | |
334 | hfront-porch = <40>; | |
335 | hback-porch = <40>; | |
336 | hsync-len = <32>; | |
337 | vback-porch = <10>; | |
338 | vfront-porch = <12>; | |
339 | vsync-len = <6>; | |
340 | }; | |
341 | }; | |
342 | }; | |
95e82941 | 343 | }; |
1a395e3b | 344 | |
10bc0450 AF |
345 | &i2c_0 { |
346 | max77686@09 { | |
347 | compatible = "maxim,max77686"; | |
348 | interrupt-parent = <&gpx3>; | |
349 | interrupts = <2 0>; | |
350 | pinctrl-names = "default"; | |
351 | pinctrl-0 = <&max77686_irq>; | |
352 | wakeup-source; | |
353 | reg = <0x09>; | |
354 | #clock-cells = <1>; | |
355 | ||
356 | voltage-regulators { | |
357 | ldo1_reg: LDO1 { | |
358 | regulator-name = "P1.0V_LDO_OUT1"; | |
359 | regulator-min-microvolt = <1000000>; | |
360 | regulator-max-microvolt = <1000000>; | |
361 | regulator-always-on; | |
362 | }; | |
363 | ||
364 | ldo2_reg: LDO2 { | |
365 | regulator-name = "P1.8V_LDO_OUT2"; | |
366 | regulator-min-microvolt = <1800000>; | |
367 | regulator-max-microvolt = <1800000>; | |
368 | regulator-always-on; | |
369 | }; | |
370 | ||
371 | ldo3_reg: LDO3 { | |
372 | regulator-name = "P1.8V_LDO_OUT3"; | |
373 | regulator-min-microvolt = <1800000>; | |
374 | regulator-max-microvolt = <1800000>; | |
375 | regulator-always-on; | |
376 | }; | |
377 | ||
378 | ldo7_reg: LDO7 { | |
379 | regulator-name = "P1.1V_LDO_OUT7"; | |
380 | regulator-min-microvolt = <1100000>; | |
381 | regulator-max-microvolt = <1100000>; | |
382 | regulator-always-on; | |
383 | }; | |
384 | ||
385 | ldo8_reg: LDO8 { | |
386 | regulator-name = "P1.0V_LDO_OUT8"; | |
387 | regulator-min-microvolt = <1000000>; | |
388 | regulator-max-microvolt = <1000000>; | |
389 | regulator-always-on; | |
390 | }; | |
391 | ||
392 | ldo10_reg: LDO10 { | |
393 | regulator-name = "P1.8V_LDO_OUT10"; | |
394 | regulator-min-microvolt = <1800000>; | |
395 | regulator-max-microvolt = <1800000>; | |
396 | regulator-always-on; | |
397 | }; | |
398 | ||
399 | ldo12_reg: LDO12 { | |
400 | regulator-name = "P3.0V_LDO_OUT12"; | |
401 | regulator-min-microvolt = <3000000>; | |
402 | regulator-max-microvolt = <3000000>; | |
403 | regulator-always-on; | |
404 | }; | |
405 | ||
406 | ldo14_reg: LDO14 { | |
407 | regulator-name = "P1.8V_LDO_OUT14"; | |
408 | regulator-min-microvolt = <1800000>; | |
409 | regulator-max-microvolt = <1800000>; | |
410 | regulator-always-on; | |
411 | }; | |
412 | ||
413 | ldo15_reg: LDO15 { | |
414 | regulator-name = "P1.0V_LDO_OUT15"; | |
415 | regulator-min-microvolt = <1000000>; | |
416 | regulator-max-microvolt = <1000000>; | |
417 | regulator-always-on; | |
418 | }; | |
419 | ||
420 | ldo16_reg: LDO16 { | |
421 | regulator-name = "P1.8V_LDO_OUT16"; | |
422 | regulator-min-microvolt = <1800000>; | |
423 | regulator-max-microvolt = <1800000>; | |
424 | regulator-always-on; | |
425 | }; | |
426 | ||
427 | buck1_reg: BUCK1 { | |
428 | regulator-name = "vdd_mif"; | |
429 | regulator-min-microvolt = <950000>; | |
430 | regulator-max-microvolt = <1300000>; | |
431 | regulator-always-on; | |
432 | regulator-boot-on; | |
433 | }; | |
434 | ||
435 | buck2_reg: BUCK2 { | |
436 | regulator-name = "vdd_arm"; | |
437 | regulator-min-microvolt = <850000>; | |
438 | regulator-max-microvolt = <1350000>; | |
439 | regulator-always-on; | |
440 | regulator-boot-on; | |
441 | }; | |
442 | ||
443 | buck3_reg: BUCK3 { | |
444 | regulator-name = "vdd_int"; | |
445 | regulator-min-microvolt = <900000>; | |
446 | regulator-max-microvolt = <1200000>; | |
447 | regulator-always-on; | |
448 | regulator-boot-on; | |
449 | }; | |
450 | ||
451 | buck4_reg: BUCK4 { | |
452 | regulator-name = "vdd_g3d"; | |
453 | regulator-min-microvolt = <850000>; | |
454 | regulator-max-microvolt = <1300000>; | |
455 | regulator-always-on; | |
456 | regulator-boot-on; | |
457 | }; | |
458 | ||
459 | buck5_reg: BUCK5 { | |
460 | regulator-name = "P1.8V_BUCK_OUT5"; | |
461 | regulator-min-microvolt = <1800000>; | |
462 | regulator-max-microvolt = <1800000>; | |
463 | regulator-always-on; | |
464 | regulator-boot-on; | |
465 | }; | |
466 | ||
467 | buck6_reg: BUCK6 { | |
468 | regulator-name = "P1.35V_BUCK_OUT6"; | |
469 | regulator-min-microvolt = <1350000>; | |
470 | regulator-max-microvolt = <1350000>; | |
471 | regulator-always-on; | |
472 | }; | |
473 | ||
474 | buck7_reg: BUCK7 { | |
475 | regulator-name = "P2.0V_BUCK_OUT7"; | |
476 | regulator-min-microvolt = <2000000>; | |
477 | regulator-max-microvolt = <2000000>; | |
478 | regulator-always-on; | |
479 | }; | |
480 | ||
481 | buck8_reg: BUCK8 { | |
482 | regulator-name = "P2.85V_BUCK_OUT8"; | |
483 | regulator-min-microvolt = <2850000>; | |
484 | regulator-max-microvolt = <2850000>; | |
485 | regulator-always-on; | |
486 | }; | |
487 | }; | |
488 | }; | |
489 | }; | |
490 | ||
3428f20b AF |
491 | &i2c_1 { |
492 | trackpad { | |
493 | reg = <0x67>; | |
494 | compatible = "cypress,cyapa"; | |
495 | interrupts = <2 0>; | |
496 | interrupt-parent = <&gpx1>; | |
497 | wakeup-source; | |
498 | }; | |
499 | }; | |
500 | ||
10bc0450 AF |
501 | &pinctrl_0 { |
502 | max77686_irq: max77686-irq { | |
503 | samsung,pins = "gpx3-2"; | |
504 | samsung,pin-function = <0>; | |
505 | samsung,pin-pud = <0>; | |
506 | samsung,pin-drv = <0>; | |
507 | }; | |
508 | }; | |
8850e0ba | 509 | |
1a395e3b | 510 | #include "cros-ec-keyboard.dtsi" |