ARM: dts: Fold exynos5250-cros-common into exynos5250-snow
[deliverable/linux.git] / arch / arm / boot / dts / exynos5250-snow.dts
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/;
12 #include "exynos5250.dtsi"
13
14 / {
15 model = "Google Snow";
16 compatible = "google,snow", "samsung,exynos5250", "samsung,exynos5";
17
18 aliases {
19 i2c104 = &i2c_104;
20 };
21
22 memory {
23 reg = <0x40000000 0x80000000>;
24 };
25
26 chosen {
27 };
28
29 rtc@101E0000 {
30 status = "okay";
31 };
32
33 pinctrl@11400000 {
34 ec_irq: ec-irq {
35 samsung,pins = "gpx1-6";
36 samsung,pin-function = <0>;
37 samsung,pin-pud = <0>;
38 samsung,pin-drv = <0>;
39 };
40
41 sd3_clk: sd3-clk {
42 samsung,pin-drv = <0>;
43 };
44
45 sd3_cmd: sd3-cmd {
46 samsung,pin-pud = <3>;
47 samsung,pin-drv = <0>;
48 };
49
50 sd3_bus4: sd3-bus-width4 {
51 samsung,pin-drv = <0>;
52 };
53
54 max98095_en: max98095-en {
55 samsung,pins = "gpx1-7";
56 samsung,pin-function = <0>;
57 samsung,pin-pud = <3>;
58 samsung,pin-drv = <0>;
59 };
60
61 tps65090_irq: tps65090-irq {
62 samsung,pins = "gpx2-6";
63 samsung,pin-function = <0>;
64 samsung,pin-pud = <0>;
65 samsung,pin-drv = <0>;
66 };
67
68 usb3_vbus_en: usb3-vbus-en {
69 samsung,pins = "gpx2-7";
70 samsung,pin-function = <1>;
71 samsung,pin-pud = <0>;
72 samsung,pin-drv = <0>;
73 };
74
75 hdmi_hpd_irq: hdmi-hpd-irq {
76 samsung,pins = "gpx3-7";
77 samsung,pin-function = <0>;
78 samsung,pin-pud = <1>;
79 samsung,pin-drv = <0>;
80 };
81 };
82
83 pinctrl@13400000 {
84 arb_their_claim: arb-their-claim {
85 samsung,pins = "gpe0-4";
86 samsung,pin-function = <0>;
87 samsung,pin-pud = <3>;
88 samsung,pin-drv = <0>;
89 };
90
91 arb_our_claim: arb-our-claim {
92 samsung,pins = "gpf0-3";
93 samsung,pin-function = <1>;
94 samsung,pin-pud = <0>;
95 samsung,pin-drv = <0>;
96 };
97 };
98
99 gpio-keys {
100 compatible = "gpio-keys";
101
102 power {
103 label = "Power";
104 gpios = <&gpx1 3 1>;
105 linux,code = <116>; /* KEY_POWER */
106 gpio-key,wakeup;
107 };
108
109 lid-switch {
110 label = "Lid";
111 gpios = <&gpx3 5 1>;
112 linux,input-type = <5>; /* EV_SW */
113 linux,code = <0>; /* SW_LID */
114 debounce-interval = <1>;
115 gpio-key,wakeup;
116 };
117 };
118
119 vbat: vbat-fixed-regulator {
120 compatible = "regulator-fixed";
121 regulator-name = "vbat-supply";
122 regulator-boot-on;
123 };
124
125 i2c-arbitrator {
126 compatible = "i2c-arb-gpio-challenge";
127 #address-cells = <1>;
128 #size-cells = <0>;
129
130 i2c-parent = <&{/i2c@12CA0000}>;
131
132 our-claim-gpio = <&gpf0 3 1>;
133 their-claim-gpios = <&gpe0 4 1>;
134 slew-delay-us = <10>;
135 wait-retry-us = <3000>;
136 wait-free-us = <50000>;
137
138 pinctrl-names = "default";
139 pinctrl-0 = <&arb_our_claim &arb_their_claim>;
140
141 /* Use ID 104 as a hint that we're on physical bus 4 */
142 i2c_104: i2c@0 {
143 reg = <0>;
144 #address-cells = <1>;
145 #size-cells = <0>;
146
147 battery: sbs-battery@b {
148 compatible = "sbs,sbs-battery";
149 reg = <0xb>;
150 sbs,poll-retry-count = <1>;
151 };
152
153 cros_ec: embedded-controller {
154 compatible = "google,cros-ec-i2c";
155 reg = <0x1e>;
156 interrupts = <6 0>;
157 interrupt-parent = <&gpx1>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&ec_irq>;
160 wakeup-source;
161 };
162
163 power-regulator {
164 compatible = "ti,tps65090";
165 reg = <0x48>;
166
167 /*
168 * Config irq to disable internal pulls
169 * even though we run in polling mode.
170 */
171 pinctrl-names = "default";
172 pinctrl-0 = <&tps65090_irq>;
173
174 vsys1-supply = <&vbat>;
175 vsys2-supply = <&vbat>;
176 vsys3-supply = <&vbat>;
177 infet1-supply = <&vbat>;
178 infet2-supply = <&vbat>;
179 infet3-supply = <&vbat>;
180 infet4-supply = <&vbat>;
181 infet5-supply = <&vbat>;
182 infet6-supply = <&vbat>;
183 infet7-supply = <&vbat>;
184 vsys-l1-supply = <&vbat>;
185 vsys-l2-supply = <&vbat>;
186
187 regulators {
188 dcdc1 {
189 ti,enable-ext-control;
190 };
191 dcdc2 {
192 ti,enable-ext-control;
193 };
194 dcdc3 {
195 ti,enable-ext-control;
196 };
197 fet1 {
198 regulator-name = "vcd_led";
199 ti,overcurrent-wait = <3>;
200 };
201 tps65090_fet2: fet2 {
202 regulator-name = "video_mid";
203 regulator-always-on;
204 ti,overcurrent-wait = <3>;
205 };
206 fet3 {
207 regulator-name = "wwan_r";
208 regulator-always-on;
209 ti,overcurrent-wait = <3>;
210 };
211 fet4 {
212 regulator-name = "sdcard";
213 ti,overcurrent-wait = <3>;
214 };
215 fet5 {
216 regulator-name = "camout";
217 regulator-always-on;
218 ti,overcurrent-wait = <3>;
219 };
220 fet6 {
221 regulator-name = "lcd_vdd";
222 ti,overcurrent-wait = <3>;
223 };
224 tps65090_fet7: fet7 {
225 regulator-name = "video_mid_1a";
226 regulator-always-on;
227 ti,overcurrent-wait = <3>;
228 };
229 ldo1 {
230 };
231 ldo2 {
232 };
233 };
234
235 charger {
236 compatible = "ti,tps65090-charger";
237 };
238 };
239 };
240 };
241
242 i2c@12CD0000 {
243 max98095: codec@11 {
244 compatible = "maxim,max98095";
245 reg = <0x11>;
246 pinctrl-0 = <&max98095_en>;
247 pinctrl-names = "default";
248 };
249 };
250
251 i2s0: i2s@03830000 {
252 status = "okay";
253 };
254
255 sound {
256 compatible = "google,snow-audio-max98095";
257
258 samsung,model = "Snow-I2S-MAX98095";
259 samsung,i2s-controller = <&i2s0>;
260 samsung,audio-codec = <&max98095>;
261 };
262
263 usb3_vbus_reg: regulator-usb3 {
264 compatible = "regulator-fixed";
265 regulator-name = "P5.0V_USB3CON";
266 regulator-min-microvolt = <5000000>;
267 regulator-max-microvolt = <5000000>;
268 gpio = <&gpx2 7 0>;
269 pinctrl-names = "default";
270 pinctrl-0 = <&usb3_vbus_en>;
271 enable-active-high;
272 };
273
274 phy@12100000 {
275 vbus-supply = <&usb3_vbus_reg>;
276 };
277
278 usb@12110000 {
279 samsung,vbus-gpio = <&gpx1 1 0>;
280 };
281
282 fixed-rate-clocks {
283 xxti {
284 compatible = "samsung,clock-xxti";
285 clock-frequency = <24000000>;
286 };
287 };
288
289 hdmi {
290 hpd-gpio = <&gpx3 7 0>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&hdmi_hpd_irq>;
293 phy = <&hdmiphy>;
294 ddc = <&i2c_2>;
295 hdmi-en-supply = <&tps65090_fet7>;
296 vdd-supply = <&ldo8_reg>;
297 vdd_osc-supply = <&ldo10_reg>;
298 vdd_pll-supply = <&ldo8_reg>;
299 };
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
310 fimd@14400000 {
311 status = "okay";
312 samsung,invert-vclk;
313 };
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 };
343 };
344
345 &i2c_0 {
346 status = "okay";
347 samsung,i2c-sda-delay = <100>;
348 samsung,i2c-max-bus-freq = <378000>;
349
350 max77686@09 {
351 compatible = "maxim,max77686";
352 interrupt-parent = <&gpx3>;
353 interrupts = <2 0>;
354 pinctrl-names = "default";
355 pinctrl-0 = <&max77686_irq>;
356 wakeup-source;
357 reg = <0x09>;
358 #clock-cells = <1>;
359
360 voltage-regulators {
361 ldo1_reg: LDO1 {
362 regulator-name = "P1.0V_LDO_OUT1";
363 regulator-min-microvolt = <1000000>;
364 regulator-max-microvolt = <1000000>;
365 regulator-always-on;
366 };
367
368 ldo2_reg: LDO2 {
369 regulator-name = "P1.8V_LDO_OUT2";
370 regulator-min-microvolt = <1800000>;
371 regulator-max-microvolt = <1800000>;
372 regulator-always-on;
373 };
374
375 ldo3_reg: LDO3 {
376 regulator-name = "P1.8V_LDO_OUT3";
377 regulator-min-microvolt = <1800000>;
378 regulator-max-microvolt = <1800000>;
379 regulator-always-on;
380 };
381
382 ldo7_reg: LDO7 {
383 regulator-name = "P1.1V_LDO_OUT7";
384 regulator-min-microvolt = <1100000>;
385 regulator-max-microvolt = <1100000>;
386 regulator-always-on;
387 };
388
389 ldo8_reg: LDO8 {
390 regulator-name = "P1.0V_LDO_OUT8";
391 regulator-min-microvolt = <1000000>;
392 regulator-max-microvolt = <1000000>;
393 regulator-always-on;
394 };
395
396 ldo10_reg: LDO10 {
397 regulator-name = "P1.8V_LDO_OUT10";
398 regulator-min-microvolt = <1800000>;
399 regulator-max-microvolt = <1800000>;
400 regulator-always-on;
401 };
402
403 ldo12_reg: LDO12 {
404 regulator-name = "P3.0V_LDO_OUT12";
405 regulator-min-microvolt = <3000000>;
406 regulator-max-microvolt = <3000000>;
407 regulator-always-on;
408 };
409
410 ldo14_reg: LDO14 {
411 regulator-name = "P1.8V_LDO_OUT14";
412 regulator-min-microvolt = <1800000>;
413 regulator-max-microvolt = <1800000>;
414 regulator-always-on;
415 };
416
417 ldo15_reg: LDO15 {
418 regulator-name = "P1.0V_LDO_OUT15";
419 regulator-min-microvolt = <1000000>;
420 regulator-max-microvolt = <1000000>;
421 regulator-always-on;
422 };
423
424 ldo16_reg: LDO16 {
425 regulator-name = "P1.8V_LDO_OUT16";
426 regulator-min-microvolt = <1800000>;
427 regulator-max-microvolt = <1800000>;
428 regulator-always-on;
429 };
430
431 buck1_reg: BUCK1 {
432 regulator-name = "vdd_mif";
433 regulator-min-microvolt = <950000>;
434 regulator-max-microvolt = <1300000>;
435 regulator-always-on;
436 regulator-boot-on;
437 };
438
439 buck2_reg: BUCK2 {
440 regulator-name = "vdd_arm";
441 regulator-min-microvolt = <850000>;
442 regulator-max-microvolt = <1350000>;
443 regulator-always-on;
444 regulator-boot-on;
445 };
446
447 buck3_reg: BUCK3 {
448 regulator-name = "vdd_int";
449 regulator-min-microvolt = <900000>;
450 regulator-max-microvolt = <1200000>;
451 regulator-always-on;
452 regulator-boot-on;
453 };
454
455 buck4_reg: BUCK4 {
456 regulator-name = "vdd_g3d";
457 regulator-min-microvolt = <850000>;
458 regulator-max-microvolt = <1300000>;
459 regulator-always-on;
460 regulator-boot-on;
461 };
462
463 buck5_reg: BUCK5 {
464 regulator-name = "P1.8V_BUCK_OUT5";
465 regulator-min-microvolt = <1800000>;
466 regulator-max-microvolt = <1800000>;
467 regulator-always-on;
468 regulator-boot-on;
469 };
470
471 buck6_reg: BUCK6 {
472 regulator-name = "P1.35V_BUCK_OUT6";
473 regulator-min-microvolt = <1350000>;
474 regulator-max-microvolt = <1350000>;
475 regulator-always-on;
476 };
477
478 buck7_reg: BUCK7 {
479 regulator-name = "P2.0V_BUCK_OUT7";
480 regulator-min-microvolt = <2000000>;
481 regulator-max-microvolt = <2000000>;
482 regulator-always-on;
483 };
484
485 buck8_reg: BUCK8 {
486 regulator-name = "P2.85V_BUCK_OUT8";
487 regulator-min-microvolt = <2850000>;
488 regulator-max-microvolt = <2850000>;
489 regulator-always-on;
490 };
491 };
492 };
493 };
494
495 &i2c_1 {
496 status = "okay";
497 samsung,i2c-sda-delay = <100>;
498 samsung,i2c-max-bus-freq = <378000>;
499
500 trackpad {
501 reg = <0x67>;
502 compatible = "cypress,cyapa";
503 interrupts = <2 0>;
504 interrupt-parent = <&gpx1>;
505 wakeup-source;
506 };
507 };
508
509 /*
510 * Disabled pullups since external part has its own pullups and
511 * double-pulling gets us out of spec in some cases.
512 */
513 &i2c2_bus {
514 samsung,pin-pud = <0>;
515 };
516
517 &i2c_2 {
518 status = "okay";
519 samsung,i2c-sda-delay = <100>;
520 samsung,i2c-max-bus-freq = <66000>;
521
522 hdmiddc@50 {
523 compatible = "samsung,exynos4210-hdmiddc";
524 reg = <0x50>;
525 };
526 };
527
528 &i2c_3 {
529 status = "okay";
530 samsung,i2c-sda-delay = <100>;
531 samsung,i2c-max-bus-freq = <66000>;
532 };
533
534 &i2c_4 {
535 status = "okay";
536 samsung,i2c-sda-delay = <100>;
537 samsung,i2c-max-bus-freq = <66000>;
538 };
539
540 &i2c_5 {
541 status = "okay";
542 samsung,i2c-sda-delay = <100>;
543 samsung,i2c-max-bus-freq = <66000>;
544 };
545
546 &i2c_7 {
547 status = "okay";
548 samsung,i2c-sda-delay = <100>;
549 samsung,i2c-max-bus-freq = <66000>;
550 };
551
552 &i2c_8 {
553 status = "okay";
554 samsung,i2c-sda-delay = <100>;
555 samsung,i2c-max-bus-freq = <378000>;
556
557 hdmiphy: hdmiphy@38 {
558 compatible = "samsung,exynos4212-hdmiphy";
559 reg = <0x38>;
560 };
561 };
562
563 &mmc_0 {
564 status = "okay";
565 num-slots = <1>;
566 supports-highspeed;
567 broken-cd;
568 card-detect-delay = <200>;
569 samsung,dw-mshc-ciu-div = <3>;
570 samsung,dw-mshc-sdr-timing = <2 3>;
571 samsung,dw-mshc-ddr-timing = <1 2>;
572 pinctrl-names = "default";
573 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4 &sd0_bus8>;
574
575 slot@0 {
576 reg = <0>;
577 bus-width = <8>;
578 };
579 };
580
581 &mmc_2 {
582 status = "okay";
583 num-slots = <1>;
584 supports-highspeed;
585 card-detect-delay = <200>;
586 samsung,dw-mshc-ciu-div = <3>;
587 samsung,dw-mshc-sdr-timing = <2 3>;
588 samsung,dw-mshc-ddr-timing = <1 2>;
589 pinctrl-names = "default";
590 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
591
592 slot@0 {
593 reg = <0>;
594 bus-width = <4>;
595 wp-gpios = <&gpc2 1 0>;
596 };
597 };
598
599 /*
600 * On Snow we've got SIP WiFi and so can keep drive strengths low to
601 * reduce EMI.
602 */
603 &mmc_3 {
604 status = "okay";
605 num-slots = <1>;
606 supports-highspeed;
607 broken-cd;
608 card-detect-delay = <200>;
609 samsung,dw-mshc-ciu-div = <3>;
610 samsung,dw-mshc-sdr-timing = <2 3>;
611 samsung,dw-mshc-ddr-timing = <1 2>;
612 pinctrl-names = "default";
613 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>;
614
615 slot@0 {
616 reg = <0>;
617 bus-width = <4>;
618 };
619 };
620
621 &pinctrl_0 {
622 max77686_irq: max77686-irq {
623 samsung,pins = "gpx3-2";
624 samsung,pin-function = <0>;
625 samsung,pin-pud = <0>;
626 samsung,pin-drv = <0>;
627 };
628 };
629
630 &spi_1 {
631 status = "okay";
632 samsung,spi-src-clk = <0>;
633 num-cs = <1>;
634 };
635
636 #include "cros-ec-keyboard.dtsi"
This page took 0.055604 seconds and 5 git commands to generate.