Merge branch 'for-4.8/hid-led' into for-linus
[deliverable/linux.git] / arch / arm / boot / dts / exynos4412-odroid-common.dtsi
CommitLineData
ec601ff3
MS
1/*
2 * Common definition for Hardkernel's Exynos4412 based ODROID-X/X2/U2/U3 boards
3 * device tree source
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8*/
9
3635acef 10#include <dt-bindings/sound/samsung-i2s.h>
081a15e3 11#include <dt-bindings/input/input.h>
ee2020a4 12#include <dt-bindings/clock/maxim,max77686.h>
ec601ff3 13#include "exynos4412.dtsi"
4a80467a 14#include "exynos4412-ppmu-common.dtsi"
c10d3290 15#include <dt-bindings/gpio/gpio.h>
ec601ff3
MS
16
17/ {
62d38099
TF
18 chosen {
19 stdout-path = &serial_1;
20 };
21
ec601ff3
MS
22 firmware@0204F000 {
23 compatible = "samsung,secure-firmware";
24 reg = <0x0204F000 0x1000>;
25 };
26
081a15e3
MS
27 gpio_keys {
28 compatible = "gpio-keys";
29 pinctrl-names = "default";
30 pinctrl-0 = <&gpio_power_key>;
31
32 power_key {
33 interrupt-parent = <&gpx1>;
34 interrupts = <3 0>;
c10d3290 35 gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
081a15e3
MS
36 linux,code = <KEY_POWER>;
37 label = "power key";
38 debounce-interval = <10>;
36a0282a 39 wakeup-source;
081a15e3
MS
40 };
41 };
42
5a852743 43 sound: sound {
16696337 44 compatible = "simple-audio-card";
59760009
SN
45 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
46 <&clock_audss EXYNOS_MOUT_I2S>,
47 <&clock_audss EXYNOS_DOUT_SRP>,
48 <&clock_audss EXYNOS_DOUT_AUD_BUS>;
49 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
50 <&clock_audss EXYNOS_MOUT_AUDSS>;
51 assigned-clock-rates = <0>,
52 <0>,
53 <192000000>,
54 <19200000>;
16696337
SN
55
56 simple-audio-card,format = "i2s";
57 simple-audio-card,bitclock-master = <&link0_codec>;
58 simple-audio-card,frame-master = <&link0_codec>;
59
60 simple-audio-card,cpu {
61 sound-dai = <&i2s0 0>;
62 system-clock-frequency = <19200000>;
63 };
64
65 link0_codec: simple-audio-card,codec {
66 sound-dai = <&max98090>;
67 clocks = <&i2s0 CLK_I2S_CDCLK>;
68 };
5a852743
SN
69 };
70
225da7e6
MS
71 emmc_pwrseq: pwrseq {
72 pinctrl-0 = <&sd1_cd>;
73 pinctrl-names = "default";
74 compatible = "mmc-pwrseq-emmc";
c10d3290 75 reset-gpios = <&gpk1 2 GPIO_ACTIVE_LOW>;
225da7e6
MS
76 };
77
ec601ff3
MS
78 camera {
79 status = "okay";
80 pinctrl-names = "default";
81 pinctrl-0 = <>;
49c1a163 82 };
ec601ff3 83
49c1a163
KK
84 fixed-rate-clocks {
85 xxti {
86 compatible = "samsung,clock-xxti";
87 clock-frequency = <0>;
ec601ff3
MS
88 };
89
49c1a163
KK
90 xusbxti {
91 compatible = "samsung,clock-xusbxti";
92 clock-frequency = <24000000>;
ec601ff3 93 };
49c1a163 94 };
ec601ff3 95
49c1a163
KK
96 thermal-zones {
97 cpu_thermal: cpu-thermal {
98 cooling-maps {
99 map0 {
100 /* Corresponds to 800MHz at freq_table */
101 cooling-device = <&cpu0 7 7>;
102 };
103 map1 {
104 /* Corresponds to 200MHz at freq_table */
105 cooling-device = <&cpu0 13 13>;
106 };
107 };
ec601ff3
MS
108 };
109 };
49c1a163 110};
ec601ff3 111
4f20aa0e
CC
112&bus_dmc {
113 devfreq-events = <&ppmu_dmc0_3>, <&ppmu_dmc1_3>;
114 vdd-supply = <&buck1_reg>;
115 status = "okay";
116};
117
118&bus_acp {
119 devfreq = <&bus_dmc>;
120 status = "okay";
121};
122
123&bus_c2c {
124 devfreq = <&bus_dmc>;
125 status = "okay";
126};
127
128&bus_leftbus {
129 devfreq-events = <&ppmu_leftbus_3>, <&ppmu_rightbus_3>;
130 vdd-supply = <&buck3_reg>;
131 status = "okay";
132};
133
134&bus_rightbus {
135 devfreq = <&bus_leftbus>;
136 status = "okay";
137};
138
139&bus_display {
140 devfreq = <&bus_leftbus>;
141 status = "okay";
142};
143
144&bus_fsys {
145 devfreq = <&bus_leftbus>;
146 status = "okay";
147};
148
149&bus_peri {
150 devfreq = <&bus_leftbus>;
151 status = "okay";
152};
153
154&bus_mfc {
155 devfreq = <&bus_leftbus>;
156 status = "okay";
157};
158
f4499741
BZ
159&cpu0 {
160 cpu0-supply = <&buck2_reg>;
161};
162
49c1a163
KK
163/* RSTN signal for eMMC */
164&sd1_cd {
165 samsung,pin-pud = <0>;
166 samsung,pin-drv = <0>;
167};
ec601ff3 168
49c1a163
KK
169&pinctrl_1 {
170 gpio_power_key: power_key {
171 samsung,pins = "gpx1-3";
172 samsung,pin-pud = <0>;
ec601ff3
MS
173 };
174
49c1a163
KK
175 max77686_irq: max77686-irq {
176 samsung,pins = "gpx3-2";
177 samsung,pin-function = <0>;
178 samsung,pin-pud = <0>;
179 samsung,pin-drv = <0>;
ec601ff3
MS
180 };
181
49c1a163
KK
182 hdmi_hpd: hdmi-hpd {
183 samsung,pins = "gpx3-7";
184 samsung,pin-pud = <1>;
ec601ff3 185 };
49c1a163 186};
ec601ff3 187
49c1a163
KK
188&ehci {
189 status = "okay";
190};
ec601ff3 191
49c1a163
KK
192&exynos_usbphy {
193 status = "okay";
194};
ec601ff3 195
49c1a163
KK
196&fimc_0 {
197 status = "okay";
198 assigned-clocks = <&clock CLK_MOUT_FIMC0>,
199 <&clock CLK_SCLK_FIMC0>;
200 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
201 assigned-clock-rates = <0>, <176000000>;
202};
ec601ff3 203
49c1a163
KK
204&fimc_1 {
205 status = "okay";
206 assigned-clocks = <&clock CLK_MOUT_FIMC1>,
207 <&clock CLK_SCLK_FIMC1>;
208 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
209 assigned-clock-rates = <0>, <176000000>;
210};
ec601ff3 211
49c1a163
KK
212&fimc_2 {
213 status = "okay";
214 assigned-clocks = <&clock CLK_MOUT_FIMC2>,
215 <&clock CLK_SCLK_FIMC2>;
216 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
217 assigned-clock-rates = <0>, <176000000>;
218};
ec601ff3 219
49c1a163
KK
220&fimc_3 {
221 status = "okay";
222 assigned-clocks = <&clock CLK_MOUT_FIMC3>,
223 <&clock CLK_SCLK_FIMC3>;
224 assigned-clock-parents = <&clock CLK_MOUT_MPLL_USER_T>;
225 assigned-clock-rates = <0>, <176000000>;
226};
ec601ff3 227
49c1a163 228&hdmi {
c10d3290 229 hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
49c1a163
KK
230 pinctrl-names = "default";
231 pinctrl-0 = <&hdmi_hpd>;
232 vdd-supply = <&ldo8_reg>;
233 vdd_osc-supply = <&ldo10_reg>;
234 vdd_pll-supply = <&ldo8_reg>;
235 ddc = <&i2c_2>;
236 status = "okay";
237};
ec601ff3 238
f1be903d
MS
239&hdmicec {
240 status = "okay";
241};
242
49c1a163
KK
243&hsotg {
244 dr_mode = "peripheral";
245 status = "okay";
246 vusb_d-supply = <&ldo15_reg>;
247 vusb_a-supply = <&ldo12_reg>;
248};
ec601ff3 249
49c1a163 250&i2c_0 {
49c1a163
KK
251 samsung,i2c-sda-delay = <100>;
252 samsung,i2c-max-bus-freq = <400000>;
253 status = "okay";
254
255 usb3503: usb3503@08 {
256 compatible = "smsc,usb3503";
257 reg = <0x08>;
258
c10d3290
JMC
259 intn-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
260 connect-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
261 reset-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
49c1a163
KK
262 initial-mode = <1>;
263 };
ec601ff3 264
49c1a163
KK
265 max77686: pmic@09 {
266 compatible = "maxim,max77686";
267 interrupt-parent = <&gpx3>;
268 interrupts = <2 0>;
269 pinctrl-names = "default";
270 pinctrl-0 = <&max77686_irq>;
271 reg = <0x09>;
272 #clock-cells = <1>;
273
274 voltage-regulators {
275 ldo1_reg: LDO1 {
276 regulator-name = "VDD_ALIVE_1.0V";
277 regulator-min-microvolt = <1000000>;
278 regulator-max-microvolt = <1000000>;
279 regulator-always-on;
280 };
2561658b 281
49c1a163
KK
282 ldo2_reg: LDO2 {
283 regulator-name = "VDDQ_M1_2_1.8V";
284 regulator-min-microvolt = <1800000>;
285 regulator-max-microvolt = <1800000>;
286 regulator-always-on;
287 };
a59acc17 288
49c1a163
KK
289 ldo3_reg: LDO3 {
290 regulator-name = "VDDQ_EXT_1.8V";
291 regulator-min-microvolt = <1800000>;
292 regulator-max-microvolt = <1800000>;
293 regulator-always-on;
294 };
ec601ff3 295
49c1a163
KK
296 ldo4_reg: LDO4 {
297 regulator-name = "VDDQ_MMC2_2.8V";
298 regulator-min-microvolt = <2800000>;
299 regulator-max-microvolt = <2800000>;
300 regulator-always-on;
301 regulator-boot-on;
302 };
ec601ff3 303
49c1a163
KK
304 ldo5_reg: LDO5 {
305 regulator-name = "VDDQ_MMC1_3_1.8V";
306 regulator-min-microvolt = <1800000>;
307 regulator-max-microvolt = <1800000>;
308 regulator-always-on;
309 regulator-boot-on;
310 };
ec601ff3 311
49c1a163
KK
312 ldo6_reg: LDO6 {
313 regulator-name = "VDD10_MPLL_1.0V";
314 regulator-min-microvolt = <1000000>;
315 regulator-max-microvolt = <1000000>;
316 regulator-always-on;
317 };
ec601ff3 318
49c1a163
KK
319 ldo7_reg: LDO7 {
320 regulator-name = "VDD10_XPLL_1.0V";
321 regulator-min-microvolt = <1000000>;
322 regulator-max-microvolt = <1000000>;
323 regulator-always-on;
324 };
ec601ff3 325
00e5e8c4 326 ldo8_reg: LDO8 {
49c1a163
KK
327 regulator-name = "VDD10_HDMI_1.0V";
328 regulator-min-microvolt = <1000000>;
329 regulator-max-microvolt = <1000000>;
330 };
ec601ff3 331
00e5e8c4 332 ldo10_reg: LDO10 {
49c1a163
KK
333 regulator-name = "VDDQ_MIPIHSI_1.8V";
334 regulator-min-microvolt = <1800000>;
335 regulator-max-microvolt = <1800000>;
336 };
ec601ff3 337
49c1a163
KK
338 ldo11_reg: LDO11 {
339 regulator-name = "VDD18_ABB1_1.8V";
340 regulator-min-microvolt = <1800000>;
341 regulator-max-microvolt = <1800000>;
342 regulator-always-on;
343 };
ec601ff3 344
49c1a163
KK
345 ldo12_reg: LDO12 {
346 regulator-name = "VDD33_USB_3.3V";
347 regulator-min-microvolt = <3300000>;
348 regulator-max-microvolt = <3300000>;
349 regulator-always-on;
350 regulator-boot-on;
351 };
ec601ff3 352
49c1a163
KK
353 ldo13_reg: LDO13 {
354 regulator-name = "VDDQ_C2C_W_1.8V";
355 regulator-min-microvolt = <1800000>;
356 regulator-max-microvolt = <1800000>;
357 regulator-always-on;
358 regulator-boot-on;
359 };
ec601ff3 360
49c1a163
KK
361 ldo14_reg: LDO14 {
362 regulator-name = "VDD18_ABB0_2_1.8V";
363 regulator-min-microvolt = <1800000>;
364 regulator-max-microvolt = <1800000>;
365 regulator-always-on;
366 regulator-boot-on;
367 };
ec601ff3 368
49c1a163
KK
369 ldo15_reg: LDO15 {
370 regulator-name = "VDD10_HSIC_1.0V";
371 regulator-min-microvolt = <1000000>;
372 regulator-max-microvolt = <1000000>;
373 regulator-always-on;
374 regulator-boot-on;
375 };
ec601ff3 376
49c1a163
KK
377 ldo16_reg: LDO16 {
378 regulator-name = "VDD18_HSIC_1.8V";
379 regulator-min-microvolt = <1800000>;
380 regulator-max-microvolt = <1800000>;
381 regulator-always-on;
382 regulator-boot-on;
383 };
ec601ff3 384
49c1a163
KK
385 ldo20_reg: LDO20 {
386 regulator-name = "LDO20_1.8V";
387 regulator-min-microvolt = <1800000>;
388 regulator-max-microvolt = <1800000>;
389 regulator-boot-on;
390 };
ec601ff3 391
49c1a163
KK
392 ldo21_reg: LDO21 {
393 regulator-name = "LDO21_3.3V";
394 regulator-min-microvolt = <3300000>;
395 regulator-max-microvolt = <3300000>;
396 regulator-always-on;
397 regulator-boot-on;
398 };
ec601ff3 399
49c1a163
KK
400 ldo25_reg: LDO25 {
401 regulator-name = "VDDQ_LCD_1.8V";
402 regulator-min-microvolt = <1800000>;
403 regulator-max-microvolt = <1800000>;
404 regulator-always-on;
405 regulator-boot-on;
406 };
ec601ff3 407
49c1a163
KK
408 buck1_reg: BUCK1 {
409 regulator-name = "vdd_mif";
918f7c2d
CC
410 regulator-min-microvolt = <900000>;
411 regulator-max-microvolt = <1100000>;
49c1a163
KK
412 regulator-always-on;
413 regulator-boot-on;
ec601ff3 414 };
ec601ff3 415
49c1a163
KK
416 buck2_reg: BUCK2 {
417 regulator-name = "vdd_arm";
418 regulator-min-microvolt = <900000>;
419 regulator-max-microvolt = <1350000>;
420 regulator-always-on;
421 regulator-boot-on;
422 };
5a852743 423
49c1a163
KK
424 buck3_reg: BUCK3 {
425 regulator-name = "vdd_int";
918f7c2d
CC
426 regulator-min-microvolt = <900000>;
427 regulator-max-microvolt = <1050000>;
49c1a163
KK
428 regulator-always-on;
429 regulator-boot-on;
430 };
ec601ff3 431
49c1a163
KK
432 buck4_reg: BUCK4 {
433 regulator-name = "vdd_g3d";
434 regulator-min-microvolt = <900000>;
435 regulator-max-microvolt = <1100000>;
436 regulator-microvolt-offset = <50000>;
437 };
ec601ff3 438
49c1a163
KK
439 buck5_reg: BUCK5 {
440 regulator-name = "VDDQ_CKEM1_2_1.2V";
441 regulator-min-microvolt = <1200000>;
442 regulator-max-microvolt = <1200000>;
443 regulator-always-on;
444 regulator-boot-on;
445 };
233e274a 446
49c1a163
KK
447 buck6_reg: BUCK6 {
448 regulator-name = "BUCK6_1.35V";
449 regulator-min-microvolt = <1350000>;
450 regulator-max-microvolt = <1350000>;
451 regulator-always-on;
452 regulator-boot-on;
453 };
bf4a0bed 454
49c1a163
KK
455 buck7_reg: BUCK7 {
456 regulator-name = "BUCK7_2.0V";
457 regulator-min-microvolt = <2000000>;
458 regulator-max-microvolt = <2000000>;
459 regulator-always-on;
460 };
461
462 buck8_reg: BUCK8 {
463 regulator-name = "BUCK8_2.8V";
464 regulator-min-microvolt = <2800000>;
465 regulator-max-microvolt = <2800000>;
466 };
bf4a0bed
LM
467 };
468 };
49c1a163 469};
2561658b 470
49c1a163 471&i2c_1 {
49c1a163
KK
472 status = "okay";
473 max98090: max98090@10 {
474 compatible = "maxim,max98090";
475 reg = <0x10>;
476 interrupt-parent = <&gpx0>;
477 interrupts = <0 0>;
478 clocks = <&i2s0 CLK_I2S_CDCLK>;
479 clock-names = "mclk";
480 #sound-dai-cells = <0>;
2561658b 481 };
49c1a163 482};
2561658b 483
49c1a163
KK
484&i2c_2 {
485 status = "okay";
49c1a163 486};
2561658b 487
49c1a163
KK
488&i2c_8 {
489 status = "okay";
490};
2561658b 491
49c1a163
KK
492&i2s0 {
493 pinctrl-0 = <&i2s0_bus>;
494 pinctrl-names = "default";
495 status = "okay";
496 clocks = <&clock_audss EXYNOS_I2S_BUS>,
497 <&clock_audss EXYNOS_DOUT_AUD_BUS>,
498 <&clock_audss EXYNOS_SCLK_I2S>;
499 clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
ec601ff3 500};
081a15e3 501
49c1a163
KK
502&mixer {
503 status = "okay";
225da7e6
MS
504};
505
49c1a163
KK
506&mshc_0 {
507 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
508 pinctrl-names = "default";
509 vmmc-supply = <&ldo20_reg &buck8_reg>;
510 mmc-pwrseq = <&emmc_pwrseq>;
511 status = "okay";
512
513 num-slots = <1>;
514 broken-cd;
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 bus-width = <8>;
520 cap-mmc-highspeed;
521};
eea6653a 522
49c1a163
KK
523&rtc {
524 status = "okay";
525 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
526 clock-names = "rtc", "rtc_src";
527};
2561658b 528
49c1a163
KK
529&sdhci_2 {
530 bus-width = <4>;
531 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
532 pinctrl-names = "default";
533 vmmc-supply = <&ldo4_reg &ldo21_reg>;
c10d3290 534 cd-gpios = <&gpk2 2 GPIO_ACTIVE_HIGH>;
49c1a163
KK
535 cd-inverted;
536 status = "okay";
537};
538
539&serial_0 {
540 status = "okay";
541};
542
543&serial_1 {
544 status = "okay";
545};
546
547&tmu {
548 vtmu-supply = <&ldo10_reg>;
549 status = "okay";
550};
551
552&watchdog {
553 status = "okay";
081a15e3 554};
This page took 0.111701 seconds and 5 git commands to generate.