blob: d9499310a301b735c475ec6a5c3bb955165079be [file] [log] [blame]
Krzysztof Kozlowski8149afe2016-05-03 11:48:18 +02001/*
2 * Hardkernel Odroid XU board device tree source
3 *
4 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 * http://www.samsung.com
6 * Copyright (c) 2016 Krzysztof Kozlowski
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */
12
13/dts-v1/;
14#include "exynos5410.dtsi"
Krzysztof Kozlowski88644b42016-05-31 20:39:04 +020015#include <dt-bindings/clock/maxim,max77802.h>
Krzysztof Kozlowski8149afe2016-05-03 11:48:18 +020016#include <dt-bindings/gpio/gpio.h>
17#include <dt-bindings/interrupt-controller/irq.h>
18#include "exynos54xx-odroidxu-leds.dtsi"
19
20/ {
21 model = "Hardkernel Odroid XU";
22 compatible = "hardkernel,odroid-xu", "samsung,exynos5410", "samsung,exynos5";
23
24 memory {
25 reg = <0x40000000 0x7ea00000>;
26 };
27
28 chosen {
29 linux,stdout-path = &serial_2;
30 };
31
32 emmc_pwrseq: pwrseq {
33 pinctrl-0 = <&emmc_nrst_pin>;
34 pinctrl-names = "default";
35 compatible = "mmc-pwrseq-emmc";
36 reset-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>;
37 };
38
39 fan0: pwm-fan {
40 compatible = "pwm-fan";
41 pwms = <&pwm 0 20972 0>;
42 cooling-min-state = <0>;
43 cooling-max-state = <3>;
44 #cooling-cells = <2>;
45 cooling-levels = <0 130 170 230>;
46 };
47
48 fin_pll: xxti {
49 compatible = "fixed-clock";
50 clock-frequency = <24000000>;
51 clock-output-names = "fin_pll";
52 #clock-cells = <0>;
53 };
54
55 firmware@02073000 {
56 compatible = "samsung,secure-firmware";
57 reg = <0x02073000 0x1000>;
58 };
59};
60
Krzysztof Kozlowski88644b42016-05-31 20:39:04 +020061&cpu0_thermal {
62 thermal-sensors = <&tmu_cpu0 0>;
63 polling-delay-passive = <0>;
64 polling-delay = <0>;
65
66 trips {
67 cpu_alert0: cpu-alert-0 {
68 temperature = <50000>; /* millicelsius */
69 hysteresis = <5000>; /* millicelsius */
70 type = "active";
71 };
72 cpu_alert1: cpu-alert-1 {
73 temperature = <60000>; /* millicelsius */
74 hysteresis = <5000>; /* millicelsius */
75 type = "active";
76 };
77 cpu_alert2: cpu-alert-2 {
78 temperature = <70000>; /* millicelsius */
79 hysteresis = <5000>; /* millicelsius */
80 type = "active";
81 };
82 cpu_crit0: cpu-crit-0 {
83 temperature = <120000>; /* millicelsius */
84 hysteresis = <0>; /* millicelsius */
85 type = "critical";
86 };
87 };
88
89 cooling-maps {
90 map0 {
91 trip = <&cpu_alert0>;
92 cooling-device = <&fan0 0 1>;
93 };
94 map1 {
95 trip = <&cpu_alert1>;
96 cooling-device = <&fan0 1 2>;
97 };
98 map2 {
99 trip = <&cpu_alert2>;
100 cooling-device = <&fan0 2 3>;
101 };
102 };
103};
104
105&hsi2c_4 {
106 samsung,i2c-sda-delay = <100>;
107 samsung,i2c-max-bus-freq = <400000>;
108 status = "okay";
109
110 usb3503: usb-hub@08 {
111 compatible = "smsc,usb3503";
112 reg = <0x08>;
113
114 intn-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
115 connect-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
116 reset-gpios = <&gpx1 4 GPIO_ACTIVE_HIGH>;
117 initial-mode = <1>;
118
119 clock-names = "refclk";
120 clocks = <&pmu_system_controller 0>;
121 refclk-frequency = <24000000>;
122 };
123
124 max77802: pmic@09 {
125 compatible = "maxim,max77802";
126 reg = <0x9>;
127 interrupt-parent = <&gpx0>;
128 interrupts = <4 IRQ_TYPE_NONE>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&max77802_irq>, <&pmic_dvs_1>, <&pmic_dvs_2>,
131 <&pmic_dvs_3>;
132 #clock-cells = <1>;
133
134 inl1-supply = <&buck5_reg>;
135 inl2-supply = <&buck7_reg>;
136 inl3-supply = <&buck9_reg>;
137 inl4-supply = <&buck9_reg>;
138 inl5-supply = <&buck9_reg>;
139 inl6-supply = <&buck10_reg>;
140 inl7-supply = <&buck9_reg>;
141 /* inl9 supply is BOOST, not configured here */
142 inl10-supply = <&buck7_reg>;
143
144 regulators {
145 buck1_reg: BUCK1 {
146 regulator-name = "vdd_mif";
147 regulator-min-microvolt = <800000>;
148 regulator-max-microvolt = <1300000>;
149 regulator-always-on;
150 regulator-boot-on;
151 };
152
153 buck2_reg: BUCK2 {
154 regulator-name = "vdd_arm";
155 regulator-min-microvolt = <800000>;
156 regulator-max-microvolt = <1500000>;
157 regulator-always-on;
158 regulator-boot-on;
159 };
160
161 buck3_reg: BUCK3 {
162 regulator-name = "vdd_int";
163 regulator-min-microvolt = <800000>;
164 regulator-max-microvolt = <1400000>;
165 regulator-always-on;
166 regulator-boot-on;
167 };
168
169 buck4_reg: BUCK4 {
170 regulator-name = "vdd_g3d";
171 regulator-min-microvolt = <800000>;
172 regulator-max-microvolt = <1400000>;
173 regulator-always-on;
174 regulator-boot-on;
175 };
176
177 buck5_reg: BUCK5 {
178 regulator-name = "vdd_mem";
179 regulator-min-microvolt = <800000>;
180 regulator-max-microvolt = <1500000>;
181 regulator-always-on;
182 regulator-boot-on;
183 };
184
185 buck6_reg: BUCK6 {
186 regulator-name = "vdd_kfc";
187 regulator-min-microvolt = <800000>;
188 regulator-max-microvolt = <1500000>;
189 regulator-always-on;
190 regulator-boot-on;
191 };
192
193 buck7_reg: BUCK7 {
194 regulator-name = "buck7";
195 regulator-min-microvolt = <1300000>;
196 regulator-max-microvolt = <1300000>;
197 regulator-always-on;
198 regulator-boot-on;
199 };
200
201 buck8_reg: BUCK8 {
202 /* vdd_mmc0 */
203 regulator-name = "vddf_2v85";
204 regulator-min-microvolt = <2850000>;
205 regulator-max-microvolt = <2850000>;
206 regulator-always-on;
207 regulator-boot-on;
208 };
209
210 buck9_reg: BUCK9 {
211 regulator-name = "buck9";
212 regulator-min-microvolt = <3000000>;
213 regulator-max-microvolt = <3000000>;
214 regulator-always-on;
215 regulator-boot-on;
216 };
217
218 buck10_reg: BUCK10 {
219 regulator-name = "buck10";
220 regulator-min-microvolt = <2950000>;
221 regulator-max-microvolt = <2950000>;
222 regulator-always-on;
223 regulator-boot-on;
224 };
225
226 ldo1_reg: LDO1 {
227 regulator-name = "vdd_alive";
228 regulator-min-microvolt = <1000000>;
229 regulator-max-microvolt = <1000000>;
230 regulator-always-on;
231 };
232
233 ldo2_reg: LDO2 {
234 regulator-name = "vddq_m1_m2";
235 regulator-min-microvolt = <1200000>;
236 regulator-max-microvolt = <1200000>;
237 regulator-always-on;
238 };
239
240 ldo3_reg: LDO3 {
241 regulator-name = "vddq_gpio";
242 regulator-min-microvolt = <1800000>;
243 regulator-max-microvolt = <1800000>;
244 regulator-always-on;
245 };
246
247 ldo4_reg: LDO4 {
248 regulator-name = "vddq_mmc2";
249 regulator-min-microvolt = <1800000>;
250 regulator-max-microvolt = <3000000>;
251 /* Having it off prevents reboot */
252 regulator-always-on;
253 };
254
255 ldo5_reg: LDO5 {
256 regulator-name = "vdd18_hsic";
257 regulator-min-microvolt = <1800000>;
258 regulator-max-microvolt = <1800000>;
259 regulator-always-on;
260 };
261
262 ldo6_reg: LDO6 {
263 regulator-name = "vdd18_bpll";
264 regulator-min-microvolt = <1800000>;
265 regulator-max-microvolt = <1800000>;
266 regulator-always-on;
267 };
268
269 ldo7_reg: LDO7 {
270 regulator-name = "vddq_lcd";
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <1800000>;
273 };
274
275 ldo8_reg: LDO8 {
276 regulator-name = "vdd10_hdmi";
277 regulator-min-microvolt = <1000000>;
278 regulator-max-microvolt = <1000000>;
279 regulator-always-on;
280 };
281
282 ldo9_reg: LDO9 {
283 regulator-name = "ldo9";
284 };
285
286 ldo10_reg: LDO10 {
287 regulator-name = "vdd18_mipi";
288 regulator-min-microvolt = <1800000>;
289 regulator-max-microvolt = <1800000>;
290 regulator-always-on;
291 };
292
293 ldo11_reg: LDO11 {
294 regulator-name = "vddq_mmc01";
295 regulator-min-microvolt = <1800000>;
296 regulator-max-microvolt = <1800000>;
297 /*
298 * Having it off prevents accessing MMC after
299 * reboot with error:
300 * MMC Device 1: Clock OFF has been failed.
301 */
302 regulator-always-on;
303 };
304
305 ldo12_reg: LDO12 {
306 regulator-name = "vdd33_usb3";
307 regulator-min-microvolt = <3300000>;
308 regulator-max-microvolt = <3300000>;
309 regulator-always-on;
310 };
311
312 ldo13_reg: LDO13 {
313 regulator-name = "vddq_abbg0";
314 regulator-min-microvolt = <1800000>;
315 regulator-max-microvolt = <1800000>;
316 regulator-always-on;
317 };
318
319 ldo14_reg: LDO14 {
320 regulator-name = "vddq_abbg1";
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <1800000>;
323 regulator-always-on;
324 };
325
326 ldo15_reg: LDO15 {
327 regulator-name = "vdd10_usb3";
328 regulator-min-microvolt = <1000000>;
329 regulator-max-microvolt = <1000000>;
330 regulator-always-on;
331 };
332
333 ldo16_reg: LDO16 {
334 regulator-name = "ldo16";
335 };
336
337 ldo17_reg: LDO17 {
338 regulator-name = "cam_sensor_core";
339 regulator-min-microvolt = <1200000>;
340 regulator-max-microvolt = <1200000>;
341 };
342
343 ldo18_reg: LDO18 {
344 regulator-name = "ldo18";
345 regulator-min-microvolt = <1800000>;
346 regulator-max-microvolt = <1800000>;
347 };
348
349 ldo19_reg: LDO19 {
350 regulator-name = "ldo19";
351 };
352
353 ldo20_reg: LDO20 {
354 regulator-name = "vdd_mmc0";
355 regulator-min-microvolt = <1800000>;
356 regulator-max-microvolt = <1800000>;
357 };
358
359 ldo21_reg: LDO21 {
360 /* vdd_mmc2 */
361 regulator-name = "vddf_2v8";
362 regulator-min-microvolt = <2850000>;
363 regulator-max-microvolt = <2850000>;
364 };
365
366 ldo22_reg: LDO22 {
367 regulator-name = "ldo22";
368 };
369
370 ldo23_reg: LDO23 {
371 regulator-name = "dp_p3v3";
372 regulator-min-microvolt = <3300000>;
373 regulator-max-microvolt = <3300000>;
374 regulator-always-on;
375 };
376
377 ldo24_reg: LDO24 {
378 regulator-name = "cam_af";
379 regulator-min-microvolt = <2800000>;
380 regulator-max-microvolt = <2800000>;
381 };
382
383 ldo25_reg: LDO25 {
384 regulator-name = "eth_p3v3";
385 regulator-min-microvolt = <3300000>;
386 regulator-max-microvolt = <3300000>;
387 regulator-always-on;
388 };
389
390 ldo26_reg: LDO26 {
391 regulator-name = "usb30_extclk";
392 regulator-min-microvolt = <3300000>;
393 regulator-max-microvolt = <3300000>;
394 regulator-always-on;
395 };
396
397 ldo27_reg: LDO27 {
398 regulator-name = "ldo27";
399 };
400
401 ldo28_reg: LDO28 {
402 regulator-name = "ldo28";
403 };
404
405 ldo29_reg: LDO29 {
406 regulator-name = "ldo29";
407 };
408
409 ldo30_reg: LDO30 {
410 regulator-name = "vddq_e1_e2";
411 regulator-min-microvolt = <1200000>;
412 regulator-max-microvolt = <1200000>;
413 regulator-always-on;
414 };
415
416 ldo31_reg: LDO31 {
417 regulator-name = "ldo31";
418 };
419
420 /* On revisions with ti,ina231 this is sensor VS */
421 ldo32_reg: LDO32 {
422 regulator-name = "vs_power_meter";
423 regulator-min-microvolt = <3300000>;
424 regulator-max-microvolt = <3300000>;
425 };
426
427 ldo33_reg: LDO33 {
428 regulator-name = "ldo33";
429 };
430
431 ldo34_reg: LDO34 {
432 regulator-name = "ldo34";
433 };
434
435 ldo35_reg: LDO35 {
436 regulator-name = "ldo35";
437 };
438 };
439 };
440};
441
Krzysztof Kozlowski8149afe2016-05-03 11:48:18 +0200442&mmc_0 {
443 status = "okay";
444 mmc-pwrseq = <&emmc_pwrseq>;
445 cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>;
446 card-detect-delay = <200>;
447 samsung,dw-mshc-ciu-div = <3>;
448 samsung,dw-mshc-sdr-timing = <0 4>;
449 samsung,dw-mshc-ddr-timing = <0 2>;
450 samsung,dw-mshc-hs400-timing = <0 2>;
451 samsung,read-strobe-delay = <90>;
452 pinctrl-names = "default";
453 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>;
454 bus-width = <8>;
455 cap-mmc-highspeed;
456 mmc-hs200-1_8v;
457 mmc-hs400-1_8v;
Krzysztof Kozlowski88644b42016-05-31 20:39:04 +0200458 vmmc-supply = <&ldo20_reg>;
459 vqmmc-supply = <&ldo11_reg>;
Krzysztof Kozlowski8149afe2016-05-03 11:48:18 +0200460};
461
462&mmc_2 {
463 status = "okay";
464 card-detect-delay = <200>;
465 samsung,dw-mshc-ciu-div = <3>;
466 samsung,dw-mshc-sdr-timing = <0 4>;
467 samsung,dw-mshc-ddr-timing = <0 2>;
468 pinctrl-names = "default";
469 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
470 bus-width = <4>;
471 cap-sd-highspeed;
Krzysztof Kozlowski88644b42016-05-31 20:39:04 +0200472 vmmc-supply = <&ldo21_reg>;
473 vqmmc-supply = <&ldo4_reg>;
Krzysztof Kozlowski8149afe2016-05-03 11:48:18 +0200474};
475
476&pinctrl_0 {
477 emmc_nrst_pin: emmc-nrst {
478 samsung,pins = "gpd1-0";
Krzysztof Kozlowski88644b42016-05-31 20:39:04 +0200479 samsung,pin-function = <2>;
Krzysztof Kozlowski8149afe2016-05-03 11:48:18 +0200480 samsung,pin-pud = <0>;
481 samsung,pin-drv = <0>;
482 };
Krzysztof Kozlowski88644b42016-05-31 20:39:04 +0200483
484 pmic_dvs_3: pmic-dvs-3 {
485 samsung,pins = "gpx0-0";
486 samsung,pin-function = <1>;
487 samsung,pin-pud = <0>;
488 samsung,pin-drv = <0>;
489 };
490
491 pmic_dvs_2: pmic-dvs-2 {
492 samsung,pins = "gpx0-1";
493 samsung,pin-function = <1>;
494 samsung,pin-pud = <0>;
495 samsung,pin-drv = <0>;
496 };
497
498 pmic_dvs_1: pmic-dvs-1 {
499 samsung,pins = "gpx0-2";
500 samsung,pin-function = <1>;
501 samsung,pin-pud = <0>;
502 samsung,pin-drv = <0>;
503 samsung,pin-val = <1>;
504 };
505
506 max77802_irq: max77802-irq {
507 samsung,pins = "gpx0-4";
508 samsung,pin-function = <0xf>;
509 samsung,pin-pud = <0>;
510 samsung,pin-drv = <0>;
511 };
512};
513
514&pwm {
515 /*
516 * PWM 0 -- fan
517 * PWM 1 -- Green LED
518 * PWM 2 -- Blue LED
519 * PWM 3 -- on MIPI connector for backlight
520 */
521 pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>;
522 pinctrl-names = "default";
523 status = "okay";
524};
525
526&rtc {
527 status = "okay";
528 clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
529 clock-names = "rtc", "rtc_src";
Krzysztof Kozlowski8149afe2016-05-03 11:48:18 +0200530};
531
532&serial_0 {
533 status = "okay";
534};
535
536&serial_1 {
537 status = "okay";
538};
539
540&serial_2 {
541 status = "okay";
542};
543
544&serial_3 {
545 status = "okay";
546};
547
Krzysztof Kozlowski88644b42016-05-31 20:39:04 +0200548&tmu_cpu0 {
549 vtmu-supply = <&ldo10_reg>;
550};
551
552&tmu_cpu1 {
553 vtmu-supply = <&ldo10_reg>;
554};
555
556&tmu_cpu2 {
557 vtmu-supply = <&ldo10_reg>;
558};
559
560&tmu_cpu3 {
561 vtmu-supply = <&ldo10_reg>;
562};
563
Krzysztof Kozlowski8149afe2016-05-03 11:48:18 +0200564&usbdrd_dwc3_0 {
565 dr_mode = "host";
566};
567
568&usbdrd_dwc3_1 {
569 dr_mode = "peripheral";
570};
Krzysztof Kozlowski88644b42016-05-31 20:39:04 +0200571
572&usbdrd3_0 {
573 vdd33-supply = <&ldo12_reg>;
574 vdd10-supply = <&ldo15_reg>;
575};
576
577&usbdrd3_1 {
578 vdd33-supply = <&ldo12_reg>;
579 vdd10-supply = <&ldo15_reg>;
580};