Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
[deliverable/linux.git] / arch / arm / boot / dts / exynos5250-spring.dts
1 /*
2 * Google Spring board device tree source
3 *
4 * Copyright (c) 2013 Google, Inc
5 * Copyright (c) 2014 SUSE LINUX Products GmbH
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11
12 /dts-v1/;
13 #include <dt-bindings/gpio/gpio.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 Spring";
20 compatible = "google,spring", "samsung,exynos5250", "samsung,exynos5";
21
22 memory {
23 reg = <0x40000000 0x80000000>;
24 };
25
26 chosen {
27 bootargs = "console=tty1";
28 stdout-path = "serial3:115200n8";
29 };
30
31 gpio-keys {
32 compatible = "gpio-keys";
33 pinctrl-names = "default";
34 pinctrl-0 = <&power_key_irq>, <&lid_irq>;
35
36 power {
37 label = "Power";
38 gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_POWER>;
40 wakeup-source;
41 };
42
43 lid-switch {
44 label = "Lid";
45 gpios = <&gpx3 5 GPIO_ACTIVE_LOW>;
46 linux,input-type = <5>; /* EV_SW */
47 linux,code = <0>; /* SW_LID */
48 debounce-interval = <1>;
49 wakeup-source;
50 };
51 };
52
53 usb-hub {
54 compatible = "smsc,usb3503a";
55 reset-gpios = <&gpe1 0 GPIO_ACTIVE_LOW>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&hsic_reset>;
58 };
59
60 fixed-rate-clocks {
61 xxti {
62 compatible = "samsung,clock-xxti";
63 clock-frequency = <24000000>;
64 };
65 };
66 };
67
68 &cpu0 {
69 cpu0-supply = <&buck2_reg>;
70 };
71
72 &dp {
73 status = "okay";
74 pinctrl-names = "default";
75 pinctrl-0 = <&dp_hpd_gpio>;
76 samsung,color-space = <0>;
77 samsung,color-depth = <1>;
78 samsung,link-rate = <0x0a>;
79 samsung,lane-count = <1>;
80 hpd-gpios = <&gpc3 0 GPIO_ACTIVE_HIGH>;
81 };
82
83 &ehci {
84 samsung,vbus-gpio = <&gpx1 1 GPIO_ACTIVE_HIGH>;
85 };
86
87 &fimd {
88 status = "okay";
89 samsung,invert-vclk;
90 };
91
92 &hdmi {
93 hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&hdmi_hpd_irq>;
96 phy = <&hdmiphy>;
97 ddc = <&i2c_2>;
98 hdmi-en-supply = <&ldo8_reg>;
99 vdd-supply = <&ldo8_reg>;
100 vdd_osc-supply = <&ldo10_reg>;
101 vdd_pll-supply = <&ldo8_reg>;
102 };
103
104 &i2c_0 {
105 status = "okay";
106 samsung,i2c-sda-delay = <100>;
107 samsung,i2c-max-bus-freq = <378000>;
108
109 s5m8767-pmic@66 {
110 compatible = "samsung,s5m8767-pmic";
111 reg = <0x66>;
112 interrupt-parent = <&gpx3>;
113 interrupts = <2 IRQ_TYPE_NONE>;
114 pinctrl-names = "default";
115 pinctrl-0 = <&s5m8767_irq &s5m8767_dvs &s5m8767_ds>;
116 wakeup-source;
117
118 s5m8767,pmic-buck-dvs-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>, /* DVS1 */
119 <&gpd1 1 GPIO_ACTIVE_LOW>, /* DVS2 */
120 <&gpd1 2 GPIO_ACTIVE_LOW>; /* DVS3 */
121
122 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 GPIO_ACTIVE_LOW>, /* SET1 */
123 <&gpx2 4 GPIO_ACTIVE_LOW>, /* SET2 */
124 <&gpx2 5 GPIO_ACTIVE_LOW>; /* SET3 */
125
126 /*
127 * The following arrays of DVS voltages are not used, since we are
128 * not using GPIOs to control PMIC bucks, but they must be defined
129 * to please the driver.
130 */
131 s5m8767,pmic-buck2-dvs-voltage = <1350000>, <1300000>,
132 <1250000>, <1200000>,
133 <1150000>, <1100000>,
134 <1000000>, <950000>;
135
136 s5m8767,pmic-buck3-dvs-voltage = <1100000>, <1100000>,
137 <1100000>, <1100000>,
138 <1000000>, <1000000>,
139 <1000000>, <1000000>;
140
141 s5m8767,pmic-buck4-dvs-voltage = <1200000>, <1200000>,
142 <1200000>, <1200000>,
143 <1200000>, <1200000>,
144 <1200000>, <1200000>;
145
146 clocks {
147 compatible = "samsung,s5m8767-clk";
148 #clock-cells = <1>;
149 clock-output-names = "en32khz_ap",
150 "en32khz_cp",
151 "en32khz_bt";
152 };
153
154 regulators {
155 ldo4_reg: LDO4 {
156 regulator-name = "P1.0V_LDO_OUT4";
157 regulator-min-microvolt = <1000000>;
158 regulator-max-microvolt = <1000000>;
159 regulator-always-on;
160 op_mode = <0>;
161 };
162
163 ldo5_reg: LDO5 {
164 regulator-name = "P1.0V_LDO_OUT5";
165 regulator-min-microvolt = <1000000>;
166 regulator-max-microvolt = <1000000>;
167 regulator-always-on;
168 op_mode = <0>;
169 };
170
171 ldo6_reg: LDO6 {
172 regulator-name = "vdd_mydp";
173 regulator-min-microvolt = <1000000>;
174 regulator-max-microvolt = <1000000>;
175 regulator-always-on;
176 op_mode = <3>;
177 };
178
179 ldo7_reg: LDO7 {
180 regulator-name = "P1.1V_LDO_OUT7";
181 regulator-min-microvolt = <1100000>;
182 regulator-max-microvolt = <1100000>;
183 regulator-always-on;
184 op_mode = <3>;
185 };
186
187 ldo8_reg: LDO8 {
188 regulator-name = "P1.0V_LDO_OUT8";
189 regulator-min-microvolt = <1000000>;
190 regulator-max-microvolt = <1000000>;
191 regulator-always-on;
192 op_mode = <3>;
193 };
194
195 ldo10_reg: LDO10 {
196 regulator-name = "P1.8V_LDO_OUT10";
197 regulator-min-microvolt = <1800000>;
198 regulator-max-microvolt = <1800000>;
199 regulator-always-on;
200 op_mode = <3>;
201 };
202
203 ldo11_reg: LDO11 {
204 regulator-name = "P1.8V_LDO_OUT11";
205 regulator-min-microvolt = <1800000>;
206 regulator-max-microvolt = <1800000>;
207 regulator-always-on;
208 op_mode = <0>;
209 };
210
211 ldo12_reg: LDO12 {
212 regulator-name = "P3.0V_LDO_OUT12";
213 regulator-min-microvolt = <3000000>;
214 regulator-max-microvolt = <3000000>;
215 regulator-always-on;
216 op_mode = <3>;
217 };
218
219 ldo13_reg: LDO13 {
220 regulator-name = "P1.8V_LDO_OUT13";
221 regulator-min-microvolt = <1800000>;
222 regulator-max-microvolt = <1800000>;
223 regulator-always-on;
224 op_mode = <0>;
225 };
226
227 ldo14_reg: LDO14 {
228 regulator-name = "P1.8V_LDO_OUT14";
229 regulator-min-microvolt = <1800000>;
230 regulator-max-microvolt = <1800000>;
231 regulator-always-on;
232 op_mode = <3>;
233 };
234
235 ldo15_reg: LDO15 {
236 regulator-name = "P1.0V_LDO_OUT15";
237 regulator-min-microvolt = <1000000>;
238 regulator-max-microvolt = <1000000>;
239 regulator-always-on;
240 op_mode = <3>;
241 };
242
243 ldo16_reg: LDO16 {
244 regulator-name = "P1.8V_LDO_OUT16";
245 regulator-min-microvolt = <1800000>;
246 regulator-max-microvolt = <1800000>;
247 regulator-always-on;
248 op_mode = <3>;
249 };
250
251 ldo17_reg: LDO17 {
252 regulator-name = "P2.8V_LDO_OUT17";
253 regulator-min-microvolt = <2800000>;
254 regulator-max-microvolt = <2800000>;
255 regulator-always-on;
256 op_mode = <0>;
257 };
258
259 ldo25_reg: LDO25 {
260 regulator-name = "vdd_bridge";
261 regulator-min-microvolt = <1200000>;
262 regulator-max-microvolt = <1200000>;
263 regulator-always-on;
264 op_mode = <1>;
265 };
266
267 buck1_reg: BUCK1 {
268 regulator-name = "vdd_mif";
269 regulator-min-microvolt = <950000>;
270 regulator-max-microvolt = <1300000>;
271 regulator-always-on;
272 regulator-boot-on;
273 op_mode = <3>;
274 };
275
276 buck2_reg: BUCK2 {
277 regulator-name = "vdd_arm";
278 regulator-min-microvolt = <850000>;
279 regulator-max-microvolt = <1350000>;
280 regulator-always-on;
281 regulator-boot-on;
282 op_mode = <3>;
283 };
284
285 buck3_reg: BUCK3 {
286 regulator-name = "vdd_int";
287 regulator-min-microvolt = <900000>;
288 regulator-max-microvolt = <1200000>;
289 regulator-always-on;
290 regulator-boot-on;
291 op_mode = <3>;
292 };
293
294 buck4_reg: BUCK4 {
295 regulator-name = "vdd_g3d";
296 regulator-min-microvolt = <850000>;
297 regulator-max-microvolt = <1300000>;
298 regulator-boot-on;
299 op_mode = <3>;
300 };
301
302 buck5_reg: BUCK5 {
303 regulator-name = "P1.8V_BUCK_OUT5";
304 regulator-min-microvolt = <1800000>;
305 regulator-max-microvolt = <1800000>;
306 regulator-always-on;
307 regulator-boot-on;
308 op_mode = <1>;
309 };
310
311 buck6_reg: BUCK6 {
312 regulator-name = "P1.2V_BUCK_OUT6";
313 regulator-min-microvolt = <1200000>;
314 regulator-max-microvolt = <1200000>;
315 regulator-always-on;
316 regulator-boot-on;
317 op_mode = <0>;
318 };
319
320 buck9_reg: BUCK9 {
321 regulator-name = "vdd_ummc";
322 regulator-min-microvolt = <950000>;
323 regulator-max-microvolt = <3000000>;
324 regulator-always-on;
325 regulator-boot-on;
326 op_mode = <3>;
327 };
328 };
329 };
330 };
331
332 &i2c_1 {
333 status = "okay";
334 samsung,i2c-sda-delay = <100>;
335 samsung,i2c-max-bus-freq = <378000>;
336
337 trackpad@4b {
338 compatible = "atmel,maxtouch";
339 reg = <0x4b>;
340 interrupt-parent = <&gpx1>;
341 interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
342 pinctrl-names = "default";
343 pinctrl-0 = <&trackpad_irq>;
344 linux,gpio-keymap = <KEY_RESERVED
345 KEY_RESERVED
346 KEY_RESERVED
347 KEY_RESERVED
348 KEY_RESERVED
349 BTN_LEFT>;
350 wakeup-source;
351 };
352 };
353
354 /*
355 * Disabled pullups since external part has its own pullups and
356 * double-pulling gets us out of spec in some cases.
357 */
358 &i2c2_bus {
359 samsung,pin-pud = <0>;
360 };
361
362 &i2c_2 {
363 status = "okay";
364 samsung,i2c-sda-delay = <100>;
365 samsung,i2c-max-bus-freq = <66000>;
366
367 hdmiddc@50 {
368 compatible = "samsung,exynos4210-hdmiddc";
369 reg = <0x50>;
370 };
371 };
372
373 &i2c_3 {
374 status = "okay";
375 samsung,i2c-sda-delay = <100>;
376 samsung,i2c-max-bus-freq = <66000>;
377 };
378
379 &i2c_4 {
380 status = "okay";
381 samsung,i2c-sda-delay = <100>;
382 samsung,i2c-max-bus-freq = <66000>;
383
384 cros_ec: embedded-controller@1e {
385 compatible = "google,cros-ec-i2c";
386 reg = <0x1e>;
387 interrupts = <6 IRQ_TYPE_NONE>;
388 interrupt-parent = <&gpx1>;
389 wakeup-source;
390 pinctrl-names = "default";
391 pinctrl-0 = <&ec_irq>;
392 };
393 };
394
395 &i2c_5 {
396 status = "okay";
397 samsung,i2c-sda-delay = <100>;
398 samsung,i2c-max-bus-freq = <66000>;
399 };
400
401 &i2c_7 {
402 status = "okay";
403 samsung,i2c-sda-delay = <100>;
404 samsung,i2c-max-bus-freq = <66000>;
405
406 temperature-sensor@4c {
407 compatible = "gmt,g781";
408 reg = <0x4c>;
409 };
410 };
411
412 &i2c_8 {
413 status = "okay";
414 samsung,i2c-sda-delay = <100>;
415 samsung,i2c-max-bus-freq = <378000>;
416
417 hdmiphy: hdmiphy@38 {
418 compatible = "samsung,exynos4212-hdmiphy";
419 reg = <0x38>;
420 };
421 };
422
423 &i2s0 {
424 status = "okay";
425 };
426
427 &mfc {
428 samsung,mfc-r = <0x43000000 0x800000>;
429 samsung,mfc-l = <0x51000000 0x800000>;
430 };
431
432 &mmc_0 {
433 status = "okay";
434 num-slots = <1>;
435 broken-cd;
436 card-detect-delay = <200>;
437 samsung,dw-mshc-ciu-div = <3>;
438 samsung,dw-mshc-sdr-timing = <2 3>;
439 samsung,dw-mshc-ddr-timing = <1 2>;
440 pinctrl-names = "default";
441 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_bus4 &sd0_bus8>;
442 bus-width = <8>;
443 cap-mmc-highspeed;
444 };
445
446 /*
447 * On Spring we've got SIP WiFi and so can keep drive strengths low to
448 * reduce EMI.
449 */
450 &mmc_1 {
451 status = "okay";
452 num-slots = <1>;
453 broken-cd;
454 card-detect-delay = <200>;
455 samsung,dw-mshc-ciu-div = <3>;
456 samsung,dw-mshc-sdr-timing = <2 3>;
457 samsung,dw-mshc-ddr-timing = <1 2>;
458 pinctrl-names = "default";
459 pinctrl-0 = <&sd1_clk &sd1_cmd &sd1_cd &sd1_bus4>;
460 bus-width = <4>;
461 cap-sd-highspeed;
462 };
463
464 &pinctrl_0 {
465 s5m8767_dvs: s5m8767-dvs {
466 samsung,pins = "gpd1-0", "gpd1-1", "gpd1-2";
467 samsung,pin-function = <0>;
468 samsung,pin-pud = <1>;
469 samsung,pin-drv = <0>;
470 };
471
472 dp_hpd_gpio: dp-hpd-gpio {
473 samsung,pins = "gpc3-0";
474 samsung,pin-function = <0>;
475 samsung,pin-pud = <3>;
476 samsung,pin-drv = <0>;
477 };
478
479 trackpad_irq: trackpad-irq {
480 samsung,pins = "gpx1-2";
481 samsung,pin-function = <0xf>;
482 samsung,pin-pud = <0>;
483 samsung,pin-drv = <0>;
484 };
485
486 power_key_irq: power-key-irq {
487 samsung,pins = "gpx1-3";
488 samsung,pin-function = <0xf>;
489 samsung,pin-pud = <0>;
490 samsung,pin-drv = <0>;
491 };
492
493 ec_irq: ec-irq {
494 samsung,pins = "gpx1-6";
495 samsung,pin-function = <0>;
496 samsung,pin-pud = <0>;
497 samsung,pin-drv = <0>;
498 };
499
500 s5m8767_ds: s5m8767-ds {
501 samsung,pins = "gpx2-3", "gpx2-4", "gpx2-5";
502 samsung,pin-function = <0>;
503 samsung,pin-pud = <1>;
504 samsung,pin-drv = <0>;
505 };
506
507 s5m8767_irq: s5m8767-irq {
508 samsung,pins = "gpx3-2";
509 samsung,pin-function = <0>;
510 samsung,pin-pud = <0>;
511 samsung,pin-drv = <0>;
512 };
513
514 lid_irq: lid-irq {
515 samsung,pins = "gpx3-5";
516 samsung,pin-function = <0xf>;
517 samsung,pin-pud = <0>;
518 samsung,pin-drv = <0>;
519 };
520
521 hdmi_hpd_irq: hdmi-hpd-irq {
522 samsung,pins = "gpx3-7";
523 samsung,pin-function = <0>;
524 samsung,pin-pud = <1>;
525 samsung,pin-drv = <0>;
526 };
527 };
528
529 &pinctrl_1 {
530 hsic_reset: hsic-reset {
531 samsung,pins = "gpe1-0";
532 samsung,pin-function = <1>;
533 samsung,pin-pud = <0>;
534 samsung,pin-drv = <0>;
535 };
536 };
537
538 &sd1_bus4 {
539 samsung,pin-drv = <0>;
540 };
541
542 &sd1_cd {
543 samsung,pin-drv = <0>;
544 };
545
546 &sd1_clk {
547 samsung,pin-drv = <0>;
548 };
549
550 &sd1_cmd {
551 samsung,pin-pud = <3>;
552 samsung,pin-drv = <0>;
553 };
554
555 &spi_1 {
556 status = "okay";
557 samsung,spi-src-clk = <0>;
558 num-cs = <1>;
559 };
560
561 #include "cros-ec-keyboard.dtsi"
This page took 0.071865 seconds and 6 git commands to generate.