Merge tag 'defconfig-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.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 <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/clock/maxim,max77686.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/input/input.h>
16 #include "exynos5250.dtsi"
17
18 / {
19         model = "Google Snow";
20         compatible = "google,snow", "samsung,exynos5250", "samsung,exynos5";
21
22         aliases {
23                 i2c104 = &i2c_104;
24         };
25
26         memory {
27                 reg = <0x40000000 0x80000000>;
28         };
29
30         chosen {
31                 bootargs = "console=tty1";
32         };
33
34         gpio-keys {
35                 compatible = "gpio-keys";
36                 pinctrl-names = "default";
37                 pinctrl-0 = <&power_key_irq &lid_irq>;
38
39                 power {
40                         label = "Power";
41                         gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
42                         linux,code = <KEY_POWER>;
43                         gpio-key,wakeup;
44                 };
45
46                 lid-switch {
47                         label = "Lid";
48                         gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
49                         linux,input-type = <5>; /* EV_SW */
50                         linux,code = <0>; /* SW_LID */
51                         debounce-interval = <1>;
52                         gpio-key,wakeup;
53                 };
54         };
55
56         vbat: vbat-fixed-regulator {
57                 compatible = "regulator-fixed";
58                 regulator-name = "vbat-supply";
59                 regulator-boot-on;
60         };
61
62         i2c-arbitrator {
63                 compatible = "i2c-arb-gpio-challenge";
64                 #address-cells = <1>;
65                 #size-cells = <0>;
66
67                 i2c-parent = <&{/i2c@12CA0000}>;
68
69                 our-claim-gpio = <&gpf0 3 GPIO_ACTIVE_LOW>;
70                 their-claim-gpios = <&gpe0 4 GPIO_ACTIVE_LOW>;
71                 slew-delay-us = <10>;
72                 wait-retry-us = <3000>;
73                 wait-free-us = <50000>;
74
75                 pinctrl-names = "default";
76                 pinctrl-0 = <&arb_our_claim &arb_their_claim>;
77
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>;
83
84                         battery: sbs-battery@b {
85                                 compatible = "sbs,sbs-battery";
86                                 reg = <0xb>;
87                                 sbs,poll-retry-count = <1>;
88                         };
89
90                         cros_ec: embedded-controller {
91                                 compatible = "google,cros-ec-i2c";
92                                 reg = <0x1e>;
93                                 interrupts = <6 IRQ_TYPE_NONE>;
94                                 interrupt-parent = <&gpx1>;
95                                 pinctrl-names = "default";
96                                 pinctrl-0 = <&ec_irq>;
97                                 wakeup-source;
98                         };
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                                         };
134                                         fet1: fet1 {
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                                         };
157                                         fet6: fet6 {
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                         };
176                 };
177         };
178
179         i2c@12CD0000 {
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                 };
188         };
189
190         sound {
191                 compatible = "google,snow-audio-max98095";
192
193                 samsung,model = "Snow-I2S-MAX98095";
194                 samsung,i2s-controller = <&i2s0>;
195                 samsung,audio-codec = <&max98095>;
196         };
197
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>;
203                 gpio = <&gpx2 7 GPIO_ACTIVE_HIGH>;
204                 pinctrl-names = "default";
205                 pinctrl-0 = <&usb3_vbus_en>;
206                 enable-active-high;
207         };
208
209         fixed-rate-clocks {
210                 xxti {
211                         compatible = "samsung,clock-xxti";
212                         clock-frequency = <24000000>;
213                 };
214         };
215
216         backlight: backlight {
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>;
221                 enable-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
222                 power-supply = <&fet1>;
223                 pinctrl-0 = <&pwm0_out>;
224                 pinctrl-names = "default";
225         };
226
227         panel: panel {
228                 compatible = "auo,b116xw03";
229                 power-supply = <&fet6>;
230                 backlight = <&backlight>;
231         };
232 };
233
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>;
267 };
268
269 &i2c_0 {
270         status = "okay";
271         samsung,i2c-sda-delay = <100>;
272         samsung,i2c-max-bus-freq = <378000>;
273
274         max77686: max77686@09 {
275                 compatible = "maxim,max77686";
276                 interrupt-parent = <&gpx3>;
277                 interrupts = <2 IRQ_TYPE_NONE>;
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
419 &i2c_1 {
420         status = "okay";
421         samsung,i2c-sda-delay = <100>;
422         samsung,i2c-max-bus-freq = <378000>;
423
424         trackpad {
425                 reg = <0x67>;
426                 compatible = "cypress,cyapa";
427                 interrupts = <2 IRQ_TYPE_NONE>;
428                 interrupt-parent = <&gpx1>;
429                 wakeup-source;
430         };
431 };
432
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>;
474
475         max98095: codec@11 {
476                 compatible = "maxim,max98095";
477                 reg = <0x11>;
478                 pinctrl-0 = <&max98095_en>;
479                 pinctrl-names = "default";
480         };
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
494 &i2s0 {
495         status = "okay";
496 };
497
498 &mmc_0 {
499         status = "okay";
500         num-slots = <1>;
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>;
508         bus-width = <8>;
509         cap-mmc-highspeed;
510 };
511
512 &mmc_2 {
513         status = "okay";
514         num-slots = <1>;
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>;
521         bus-width = <4>;
522         wp-gpios = <&gpc2 1 GPIO_ACTIVE_HIGH>;
523         cap-sd-highspeed;
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>;
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>;
540         bus-width = <4>;
541         cap-sd-highspeed;
542 };
543
544 &pinctrl_0 {
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
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
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         };
586
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
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";
620         clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
621         clock-names = "rtc", "rtc_src";
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>;
635 };
636
637 &spi_1 {
638         status = "okay";
639         samsung,spi-src-clk = <0>;
640         num-cs = <1>;
641 };
642
643 &usbdrd_dwc3 {
644         dr_mode = "host";
645 };
646
647 &usbdrd_phy {
648         vbus-supply = <&usb3_vbus_reg>;
649 };
650
651 #include "cros-ec-keyboard.dtsi"