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