blob: 2015f10071f9b6e3ac6de2e8bee617b3bed0f3d8 [file] [log] [blame]
Marek Szyprowskiec601ff2014-07-16 02:54:07 +09001/*
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
Sylwester Nawrocki3635ace2015-02-03 15:06:20 +010010#include <dt-bindings/sound/samsung-i2s.h>
Marek Szyprowski081a15e2014-07-16 02:54:07 +090011#include <dt-bindings/input/input.h>
Markus Reichlee2020a2015-05-09 03:05:51 +090012#include <dt-bindings/clock/maxim,max77686.h>
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090013#include "exynos4412.dtsi"
Chanwoo Choi4a804672016-04-11 12:57:55 +090014#include "exynos4412-ppmu-common.dtsi"
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090015#include <dt-bindings/gpio/gpio.h>
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090016
17/ {
Tomasz Figa62d38092015-01-23 14:47:42 +010018 chosen {
19 stdout-path = &serial_1;
20 };
21
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090022 firmware@0204F000 {
23 compatible = "samsung,secure-firmware";
24 reg = <0x0204F000 0x1000>;
25 };
26
Marek Szyprowski081a15e2014-07-16 02:54:07 +090027 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>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090035 gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
Marek Szyprowski081a15e2014-07-16 02:54:07 +090036 linux,code = <KEY_POWER>;
37 label = "power key";
38 debounce-interval = <10>;
Sudeep Holla36a02822016-01-28 15:59:58 +000039 wakeup-source;
Marek Szyprowski081a15e2014-07-16 02:54:07 +090040 };
41 };
42
Sylwester Nawrocki5a852742014-07-16 03:16:44 +090043 sound: sound {
Sylwester Nawrocki16696332015-02-03 15:06:21 +010044 compatible = "simple-audio-card";
Sylwester Nawrocki59760002014-11-22 23:37:02 +090045 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>;
Sylwester Nawrocki16696332015-02-03 15:06:21 +010055
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 };
Sylwester Nawrocki5a852742014-07-16 03:16:44 +090069 };
70
Marek Szyprowski225da7e2015-02-05 00:35:58 +090071 emmc_pwrseq: pwrseq {
72 pinctrl-0 = <&sd1_cd>;
73 pinctrl-names = "default";
74 compatible = "mmc-pwrseq-emmc";
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +090075 reset-gpios = <&gpk1 2 GPIO_ACTIVE_LOW>;
Marek Szyprowski225da7e2015-02-05 00:35:58 +090076 };
77
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090078 camera {
79 status = "okay";
80 pinctrl-names = "default";
81 pinctrl-0 = <>;
Marek Szyprowskiec601ff2014-07-16 02:54:07 +090082 };
83
84 fixed-rate-clocks {
85 xxti {
86 compatible = "samsung,clock-xxti";
87 clock-frequency = <0>;
88 };
89
90 xusbxti {
91 compatible = "samsung,clock-xusbxti";
92 clock-frequency = <24000000>;
93 };
94 };
95
Lukasz Majewskibf4a0be2015-01-30 08:26:02 +090096 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 };
108 };
109 };
Marek Szyprowskiec601ff2014-07-16 02:54:07 +0900110};
Marek Szyprowski081a15e2014-07-16 02:54:07 +0900111
Chanwoo Choi4f20aa02016-04-11 12:57:58 +0900112&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
Bartlomiej Zolnierkiewiczf4499742015-08-12 07:38:45 +0900159&cpu0 {
160 cpu0-supply = <&buck2_reg>;
161};
162
Marek Szyprowski225da7e2015-02-05 00:35:58 +0900163/* RSTN signal for eMMC */
164&sd1_cd {
165 samsung,pin-pud = <0>;
166 samsung,pin-drv = <0>;
167};
168
Marek Szyprowski081a15e2014-07-16 02:54:07 +0900169&pinctrl_1 {
170 gpio_power_key: power_key {
171 samsung,pins = "gpx1-3";
172 samsung,pin-pud = <0>;
173 };
Daniel Drakeeea66532014-08-18 11:39:50 -0500174
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>;
180 };
Marek Szyprowski25616582015-02-04 23:44:15 +0900181
182 hdmi_hpd: hdmi-hpd {
183 samsung,pins = "gpx3-7";
184 samsung,pin-pud = <1>;
185 };
Marek Szyprowski081a15e2014-07-16 02:54:07 +0900186};
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200187
188&ehci {
189 status = "okay";
190};
191
192&exynos_usbphy {
193 status = "okay";
194};
195
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};
203
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};
211
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};
219
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};
227
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200228&hdmi {
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900229 hpd-gpio = <&gpx3 7 GPIO_ACTIVE_HIGH>;
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200230 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};
238
239&hsotg {
240 dr_mode = "peripheral";
241 status = "okay";
242 vusb_d-supply = <&ldo15_reg>;
243 vusb_a-supply = <&ldo12_reg>;
244};
245
246&i2c_0 {
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200247 samsung,i2c-sda-delay = <100>;
248 samsung,i2c-max-bus-freq = <400000>;
249 status = "okay";
250
251 usb3503: usb3503@08 {
252 compatible = "smsc,usb3503";
253 reg = <0x08>;
254
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900255 intn-gpios = <&gpx3 0 GPIO_ACTIVE_HIGH>;
256 connect-gpios = <&gpx3 4 GPIO_ACTIVE_HIGH>;
257 reset-gpios = <&gpx3 5 GPIO_ACTIVE_HIGH>;
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200258 initial-mode = <1>;
259 };
260
261 max77686: pmic@09 {
262 compatible = "maxim,max77686";
263 interrupt-parent = <&gpx3>;
264 interrupts = <2 0>;
265 pinctrl-names = "default";
266 pinctrl-0 = <&max77686_irq>;
267 reg = <0x09>;
268 #clock-cells = <1>;
269
270 voltage-regulators {
271 ldo1_reg: LDO1 {
272 regulator-name = "VDD_ALIVE_1.0V";
273 regulator-min-microvolt = <1000000>;
274 regulator-max-microvolt = <1000000>;
275 regulator-always-on;
276 };
277
278 ldo2_reg: LDO2 {
279 regulator-name = "VDDQ_M1_2_1.8V";
280 regulator-min-microvolt = <1800000>;
281 regulator-max-microvolt = <1800000>;
282 regulator-always-on;
283 };
284
285 ldo3_reg: LDO3 {
286 regulator-name = "VDDQ_EXT_1.8V";
287 regulator-min-microvolt = <1800000>;
288 regulator-max-microvolt = <1800000>;
289 regulator-always-on;
290 };
291
292 ldo4_reg: LDO4 {
293 regulator-name = "VDDQ_MMC2_2.8V";
294 regulator-min-microvolt = <2800000>;
295 regulator-max-microvolt = <2800000>;
296 regulator-always-on;
297 regulator-boot-on;
298 };
299
300 ldo5_reg: LDO5 {
301 regulator-name = "VDDQ_MMC1_3_1.8V";
302 regulator-min-microvolt = <1800000>;
303 regulator-max-microvolt = <1800000>;
304 regulator-always-on;
305 regulator-boot-on;
306 };
307
308 ldo6_reg: LDO6 {
309 regulator-name = "VDD10_MPLL_1.0V";
310 regulator-min-microvolt = <1000000>;
311 regulator-max-microvolt = <1000000>;
312 regulator-always-on;
313 };
314
315 ldo7_reg: LDO7 {
316 regulator-name = "VDD10_XPLL_1.0V";
317 regulator-min-microvolt = <1000000>;
318 regulator-max-microvolt = <1000000>;
319 regulator-always-on;
320 };
321
Tobias Jakobi00e5e8c2015-09-21 19:59:00 +0200322 ldo8_reg: LDO8 {
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200323 regulator-name = "VDD10_HDMI_1.0V";
324 regulator-min-microvolt = <1000000>;
325 regulator-max-microvolt = <1000000>;
326 };
327
Tobias Jakobi00e5e8c2015-09-21 19:59:00 +0200328 ldo10_reg: LDO10 {
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200329 regulator-name = "VDDQ_MIPIHSI_1.8V";
330 regulator-min-microvolt = <1800000>;
331 regulator-max-microvolt = <1800000>;
332 };
333
334 ldo11_reg: LDO11 {
335 regulator-name = "VDD18_ABB1_1.8V";
336 regulator-min-microvolt = <1800000>;
337 regulator-max-microvolt = <1800000>;
338 regulator-always-on;
339 };
340
341 ldo12_reg: LDO12 {
342 regulator-name = "VDD33_USB_3.3V";
343 regulator-min-microvolt = <3300000>;
344 regulator-max-microvolt = <3300000>;
345 regulator-always-on;
346 regulator-boot-on;
347 };
348
349 ldo13_reg: LDO13 {
350 regulator-name = "VDDQ_C2C_W_1.8V";
351 regulator-min-microvolt = <1800000>;
352 regulator-max-microvolt = <1800000>;
353 regulator-always-on;
354 regulator-boot-on;
355 };
356
357 ldo14_reg: LDO14 {
358 regulator-name = "VDD18_ABB0_2_1.8V";
359 regulator-min-microvolt = <1800000>;
360 regulator-max-microvolt = <1800000>;
361 regulator-always-on;
362 regulator-boot-on;
363 };
364
365 ldo15_reg: LDO15 {
366 regulator-name = "VDD10_HSIC_1.0V";
367 regulator-min-microvolt = <1000000>;
368 regulator-max-microvolt = <1000000>;
369 regulator-always-on;
370 regulator-boot-on;
371 };
372
373 ldo16_reg: LDO16 {
374 regulator-name = "VDD18_HSIC_1.8V";
375 regulator-min-microvolt = <1800000>;
376 regulator-max-microvolt = <1800000>;
377 regulator-always-on;
378 regulator-boot-on;
379 };
380
381 ldo20_reg: LDO20 {
382 regulator-name = "LDO20_1.8V";
383 regulator-min-microvolt = <1800000>;
384 regulator-max-microvolt = <1800000>;
385 regulator-boot-on;
386 };
387
388 ldo21_reg: LDO21 {
389 regulator-name = "LDO21_3.3V";
390 regulator-min-microvolt = <3300000>;
391 regulator-max-microvolt = <3300000>;
392 regulator-always-on;
393 regulator-boot-on;
394 };
395
396 ldo25_reg: LDO25 {
397 regulator-name = "VDDQ_LCD_1.8V";
398 regulator-min-microvolt = <1800000>;
399 regulator-max-microvolt = <1800000>;
400 regulator-always-on;
401 regulator-boot-on;
402 };
403
404 buck1_reg: BUCK1 {
405 regulator-name = "vdd_mif";
Chanwoo Choi918f7c22016-04-11 12:57:57 +0900406 regulator-min-microvolt = <900000>;
407 regulator-max-microvolt = <1100000>;
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200408 regulator-always-on;
409 regulator-boot-on;
410 };
411
412 buck2_reg: BUCK2 {
413 regulator-name = "vdd_arm";
414 regulator-min-microvolt = <900000>;
415 regulator-max-microvolt = <1350000>;
416 regulator-always-on;
417 regulator-boot-on;
418 };
419
420 buck3_reg: BUCK3 {
421 regulator-name = "vdd_int";
Chanwoo Choi918f7c22016-04-11 12:57:57 +0900422 regulator-min-microvolt = <900000>;
423 regulator-max-microvolt = <1050000>;
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200424 regulator-always-on;
425 regulator-boot-on;
426 };
427
428 buck4_reg: BUCK4 {
429 regulator-name = "vdd_g3d";
430 regulator-min-microvolt = <900000>;
431 regulator-max-microvolt = <1100000>;
432 regulator-microvolt-offset = <50000>;
433 };
434
435 buck5_reg: BUCK5 {
436 regulator-name = "VDDQ_CKEM1_2_1.2V";
437 regulator-min-microvolt = <1200000>;
438 regulator-max-microvolt = <1200000>;
439 regulator-always-on;
440 regulator-boot-on;
441 };
442
443 buck6_reg: BUCK6 {
444 regulator-name = "BUCK6_1.35V";
445 regulator-min-microvolt = <1350000>;
446 regulator-max-microvolt = <1350000>;
447 regulator-always-on;
448 regulator-boot-on;
449 };
450
451 buck7_reg: BUCK7 {
452 regulator-name = "BUCK7_2.0V";
453 regulator-min-microvolt = <2000000>;
454 regulator-max-microvolt = <2000000>;
455 regulator-always-on;
456 };
457
458 buck8_reg: BUCK8 {
459 regulator-name = "BUCK8_2.8V";
460 regulator-min-microvolt = <2800000>;
461 regulator-max-microvolt = <2800000>;
462 };
463 };
464 };
465};
466
467&i2c_1 {
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200468 status = "okay";
469 max98090: max98090@10 {
470 compatible = "maxim,max98090";
471 reg = <0x10>;
472 interrupt-parent = <&gpx0>;
473 interrupts = <0 0>;
474 clocks = <&i2s0 CLK_I2S_CDCLK>;
475 clock-names = "mclk";
476 #sound-dai-cells = <0>;
477 };
478};
479
480&i2c_2 {
481 status = "okay";
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200482};
483
484&i2c_8 {
485 status = "okay";
486};
487
488&i2s0 {
489 pinctrl-0 = <&i2s0_bus>;
490 pinctrl-names = "default";
491 status = "okay";
492 clocks = <&clock_audss EXYNOS_I2S_BUS>,
493 <&clock_audss EXYNOS_DOUT_AUD_BUS>,
494 <&clock_audss EXYNOS_SCLK_I2S>;
495 clock-names = "iis", "i2s_opclk0", "i2s_opclk1";
496};
497
498&mixer {
499 status = "okay";
500};
501
502&mshc_0 {
503 pinctrl-0 = <&sd4_clk &sd4_cmd &sd4_bus4 &sd4_bus8>;
504 pinctrl-names = "default";
505 vmmc-supply = <&ldo20_reg &buck8_reg>;
506 mmc-pwrseq = <&emmc_pwrseq>;
507 status = "okay";
508
509 num-slots = <1>;
510 broken-cd;
511 card-detect-delay = <200>;
512 samsung,dw-mshc-ciu-div = <3>;
513 samsung,dw-mshc-sdr-timing = <2 3>;
514 samsung,dw-mshc-ddr-timing = <1 2>;
515 bus-width = <8>;
516 cap-mmc-highspeed;
517};
518
519&rtc {
520 status = "okay";
521 clocks = <&clock CLK_RTC>, <&max77686 MAX77686_CLK_AP>;
522 clock-names = "rtc", "rtc_src";
523};
524
525&sdhci_2 {
526 bus-width = <4>;
527 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus4>;
528 pinctrl-names = "default";
529 vmmc-supply = <&ldo4_reg &ldo21_reg>;
Javier Martinez Canillasc10d3292015-10-08 07:39:58 +0900530 cd-gpios = <&gpk2 2 GPIO_ACTIVE_HIGH>;
Krzysztof Kozlowski49c1a162015-04-06 21:06:50 +0200531 cd-inverted;
532 status = "okay";
533};
534
535&serial_0 {
536 status = "okay";
537};
538
539&serial_1 {
540 status = "okay";
541};
542
543&tmu {
544 vtmu-supply = <&ldo10_reg>;
545 status = "okay";
546};
547
548&watchdog {
549 status = "okay";
550};