blob: 2a6245934c8d081f606b71d958a927c444cd496e [file] [log] [blame]
Doug Anderson95e82942012-11-21 13:32:21 +09001/*
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/;
Padmavathi Venna37992792013-06-18 00:02:08 +090012#include "exynos5250.dtsi"
Doug Anderson95e82942012-11-21 13:32:21 +090013
14/ {
15 model = "Google Snow";
Sachin Kamat8bdb31b2014-03-21 02:17:22 +090016 compatible = "google,snow", "samsung,exynos5250", "samsung,exynos5";
Doug Anderson95e82942012-11-21 13:32:21 +090017
Doug Anderson97a4a1b2013-04-16 16:29:01 +000018 aliases {
19 i2c104 = &i2c_104;
20 };
21
Andreas Faerber5fbc3f22014-08-18 14:00:35 -050022 memory {
23 reg = <0x40000000 0x80000000>;
24 };
25
26 chosen {
27 };
28
Sachin Kamat65cedf02014-02-24 08:47:28 +090029 rtc@101E0000 {
30 status = "okay";
31 };
32
Thomas Abrahamf8bfe2b2013-04-04 14:16:11 +090033 pinctrl@11400000 {
Doug Andersonecad1592014-05-16 05:16:11 +090034 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
Thomas Abrahamf8bfe2b2013-04-04 14:16:11 +090041 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 };
Doug Andersonb16be762014-05-16 05:16:14 +090053
Tushar Behera80f78ad2014-05-17 07:43:18 +090054 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
Doug Andersonb16be762014-05-16 05:16:14 +090061 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 };
Rahul Sharma2e747d62014-05-16 05:22:41 +090067
Vivek Gautama491ae62014-05-19 22:23:43 +090068 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
Rahul Sharma2e747d62014-05-16 05:22:41 +090075 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 };
Thomas Abrahamf8bfe2b2013-04-04 14:16:11 +090081 };
82
Doug Andersonf9357e92014-05-16 05:16:07 +090083 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
Doug Anderson95e82942012-11-21 13:32:21 +090099 gpio-keys {
100 compatible = "gpio-keys";
101
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500102 power {
103 label = "Power";
104 gpios = <&gpx1 3 1>;
105 linux,code = <116>; /* KEY_POWER */
106 gpio-key,wakeup;
107 };
108
Doug Anderson95e82942012-11-21 13:32:21 +0900109 lid-switch {
110 label = "Lid";
Thomas Abrahamf8bfe2b2013-04-04 14:16:11 +0900111 gpios = <&gpx3 5 1>;
Doug Anderson95e82942012-11-21 13:32:21 +0900112 linux,input-type = <5>; /* EV_SW */
113 linux,code = <0>; /* SW_LID */
114 debounce-interval = <1>;
115 gpio-key,wakeup;
116 };
117 };
118
Doug Andersonb16be762014-05-16 05:16:14 +0900119 vbat: vbat-fixed-regulator {
120 compatible = "regulator-fixed";
121 regulator-name = "vbat-supply";
122 regulator-boot-on;
123 };
124
Doug Anderson97a4a1b2013-04-16 16:29:01 +0000125 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
Doug Andersonf9357e92014-05-16 05:16:07 +0900138 pinctrl-names = "default";
139 pinctrl-0 = <&arb_our_claim &arb_their_claim>;
140
Doug Anderson97a4a1b2013-04-16 16:29:01 +0000141 /* 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>;
Doug Anderson61d4f052013-04-16 16:29:02 +0000146
147 battery: sbs-battery@b {
148 compatible = "sbs,sbs-battery";
149 reg = <0xb>;
150 sbs,poll-retry-count = <1>;
151 };
Olof Johanssona4591dc2013-04-27 15:14:10 -0700152
Doug Anderson1a395e32014-06-04 15:20:20 -0700153 cros_ec: embedded-controller {
Olof Johanssona4591dc2013-04-27 15:14:10 -0700154 compatible = "google,cros-ec-i2c";
155 reg = <0x1e>;
156 interrupts = <6 0>;
157 interrupt-parent = <&gpx1>;
Doug Andersonecad1592014-05-16 05:16:11 +0900158 pinctrl-names = "default";
159 pinctrl-0 = <&ec_irq>;
Olof Johanssona4591dc2013-04-27 15:14:10 -0700160 wakeup-source;
Olof Johanssona4591dc2013-04-27 15:14:10 -0700161 };
Doug Andersonb16be762014-05-16 05:16:14 +0900162
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 };
Doug Anderson97a4a1b2013-04-16 16:29:01 +0000239 };
240 };
241
Tushar Behera80f78ad2014-05-17 07:43:18 +0900242 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
Tushar Beheraa8d80b62014-07-08 08:20:08 +0900258 samsung,model = "Snow-I2S-MAX98095";
Tushar Behera80f78ad2014-05-17 07:43:18 +0900259 samsung,i2s-controller = <&i2s0>;
260 samsung,audio-codec = <&max98095>;
261 };
262
Vivek Gautama491ae62014-05-19 22:23:43 +0900263 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
Vivek Gautam13cbd1e2013-02-12 15:24:15 -0800278 usb@12110000 {
Doug Andersonc58c1a42013-05-08 10:37:16 -0700279 samsung,vbus-gpio = <&gpx1 1 0>;
Vivek Gautam13cbd1e2013-02-12 15:24:15 -0800280 };
Thomas Abraham8b6076d2013-03-09 17:19:22 +0900281
282 fixed-rate-clocks {
283 xxti {
284 compatible = "samsung,clock-xxti";
285 clock-frequency = <24000000>;
286 };
287 };
Rahul Sharma2e747d62014-05-16 05:22:41 +0900288
289 hdmi {
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500290 hpd-gpio = <&gpx3 7 0>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&hdmi_hpd_irq>;
293 phy = <&hdmiphy>;
294 ddc = <&i2c_2>;
Rahul Sharma2e747d62014-05-16 05:22:41 +0900295 hdmi-en-supply = <&tps65090_fet7>;
296 vdd-supply = <&ldo8_reg>;
297 vdd_osc-supply = <&ldo10_reg>;
298 vdd_pll-supply = <&ldo8_reg>;
299 };
Ajay Kumar62ffa702014-05-19 22:38:18 +0900300
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
Rahul Sharma2f026232014-05-19 22:56:49 +0900310 fimd@14400000 {
311 status = "okay";
312 samsung,invert-vclk;
313 };
Rahul Sharma077054a2014-05-19 22:58:47 +0900314
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 };
Doug Anderson95e82942012-11-21 13:32:21 +0900343};
Doug Anderson1a395e32014-06-04 15:20:20 -0700344
Andreas Faerber10bc0452014-07-30 07:51:51 +0900345&i2c_0 {
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500346 status = "okay";
347 samsung,i2c-sda-delay = <100>;
348 samsung,i2c-max-bus-freq = <378000>;
349
Andreas Faerber10bc0452014-07-30 07:51:51 +0900350 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
Andreas Faerber3428f202014-07-30 07:51:56 +0900495&i2c_1 {
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500496 status = "okay";
497 samsung,i2c-sda-delay = <100>;
498 samsung,i2c-max-bus-freq = <378000>;
499
Andreas Faerber3428f202014-07-30 07:51:56 +0900500 trackpad {
501 reg = <0x67>;
502 compatible = "cypress,cyapa";
503 interrupts = <2 0>;
504 interrupt-parent = <&gpx1>;
505 wakeup-source;
506 };
507};
508
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500509/*
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>;
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500566 broken-cd;
567 card-detect-delay = <200>;
568 samsung,dw-mshc-ciu-div = <3>;
569 samsung,dw-mshc-sdr-timing = <2 3>;
570 samsung,dw-mshc-ddr-timing = <1 2>;
571 pinctrl-names = "default";
572 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4 &sd0_bus8>;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500573 bus-width = <8>;
574 cap-mmc-highspeed;
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500575};
576
577&mmc_2 {
578 status = "okay";
579 num-slots = <1>;
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500580 card-detect-delay = <200>;
581 samsung,dw-mshc-ciu-div = <3>;
582 samsung,dw-mshc-sdr-timing = <2 3>;
583 samsung,dw-mshc-ddr-timing = <1 2>;
584 pinctrl-names = "default";
585 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500586 bus-width = <4>;
587 wp-gpios = <&gpc2 1 0>;
588 cap-sd-highspeed;
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500589};
590
591/*
592 * On Snow we've got SIP WiFi and so can keep drive strengths low to
593 * reduce EMI.
594 */
595&mmc_3 {
596 status = "okay";
597 num-slots = <1>;
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500598 broken-cd;
599 card-detect-delay = <200>;
600 samsung,dw-mshc-ciu-div = <3>;
601 samsung,dw-mshc-sdr-timing = <2 3>;
602 samsung,dw-mshc-ddr-timing = <1 2>;
603 pinctrl-names = "default";
604 pinctrl-0 = <&sd3_clk &sd3_cmd &sd3_bus4>;
Jaehoon Chungaaa25a52014-08-18 11:55:32 -0500605 bus-width = <4>;
606 cap-sd-highspeed;
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500607};
608
Andreas Faerber10bc0452014-07-30 07:51:51 +0900609&pinctrl_0 {
610 max77686_irq: max77686-irq {
611 samsung,pins = "gpx3-2";
612 samsung,pin-function = <0>;
613 samsung,pin-pud = <0>;
614 samsung,pin-drv = <0>;
615 };
616};
Olof Johansson8850e0b2014-07-31 20:17:53 -0700617
Andreas Faerber5fbc3f22014-08-18 14:00:35 -0500618&spi_1 {
619 status = "okay";
620 samsung,spi-src-clk = <0>;
621 num-cs = <1>;
622};
623
Doug Anderson1a395e32014-06-04 15:20:20 -0700624#include "cros-ec-keyboard.dtsi"