Commit | Line | Data |
---|---|---|
8149afe4 KK |
1 | /* |
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" | |
88644b4c | 15 | #include <dt-bindings/clock/maxim,max77802.h> |
8149afe4 KK |
16 | #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 { | |
5a5232d1 | 29 | stdout-path = "serial2:115200n8"; |
8149afe4 KK |
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 | ||
88644b4c KK |
61 | &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 | ||
8149afe4 KK |
442 | &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>; | |
8149afe4 KK |
450 | pinctrl-names = "default"; |
451 | pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>; | |
452 | bus-width = <8>; | |
453 | cap-mmc-highspeed; | |
454 | mmc-hs200-1_8v; | |
88644b4c KK |
455 | vmmc-supply = <&ldo20_reg>; |
456 | vqmmc-supply = <&ldo11_reg>; | |
8149afe4 KK |
457 | }; |
458 | ||
459 | &mmc_2 { | |
460 | status = "okay"; | |
461 | card-detect-delay = <200>; | |
462 | samsung,dw-mshc-ciu-div = <3>; | |
463 | samsung,dw-mshc-sdr-timing = <0 4>; | |
464 | samsung,dw-mshc-ddr-timing = <0 2>; | |
465 | pinctrl-names = "default"; | |
466 | pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>; | |
467 | bus-width = <4>; | |
468 | cap-sd-highspeed; | |
88644b4c KK |
469 | vmmc-supply = <&ldo21_reg>; |
470 | vqmmc-supply = <&ldo4_reg>; | |
8149afe4 KK |
471 | }; |
472 | ||
473 | &pinctrl_0 { | |
474 | emmc_nrst_pin: emmc-nrst { | |
475 | samsung,pins = "gpd1-0"; | |
88644b4c KK |
476 | samsung,pin-function = <2>; |
477 | samsung,pin-pud = <0>; | |
478 | samsung,pin-drv = <0>; | |
479 | }; | |
480 | ||
481 | pmic_dvs_3: pmic-dvs-3 { | |
482 | samsung,pins = "gpx0-0"; | |
483 | samsung,pin-function = <1>; | |
484 | samsung,pin-pud = <0>; | |
485 | samsung,pin-drv = <0>; | |
486 | }; | |
487 | ||
488 | pmic_dvs_2: pmic-dvs-2 { | |
489 | samsung,pins = "gpx0-1"; | |
490 | samsung,pin-function = <1>; | |
491 | samsung,pin-pud = <0>; | |
492 | samsung,pin-drv = <0>; | |
493 | }; | |
494 | ||
495 | pmic_dvs_1: pmic-dvs-1 { | |
496 | samsung,pins = "gpx0-2"; | |
497 | samsung,pin-function = <1>; | |
498 | samsung,pin-pud = <0>; | |
499 | samsung,pin-drv = <0>; | |
500 | samsung,pin-val = <1>; | |
501 | }; | |
502 | ||
503 | max77802_irq: max77802-irq { | |
504 | samsung,pins = "gpx0-4"; | |
505 | samsung,pin-function = <0xf>; | |
8149afe4 KK |
506 | samsung,pin-pud = <0>; |
507 | samsung,pin-drv = <0>; | |
508 | }; | |
509 | }; | |
510 | ||
88644b4c KK |
511 | &pwm { |
512 | /* | |
513 | * PWM 0 -- fan | |
514 | * PWM 1 -- Green LED | |
515 | * PWM 2 -- Blue LED | |
516 | * PWM 3 -- on MIPI connector for backlight | |
517 | */ | |
518 | pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>; | |
519 | pinctrl-names = "default"; | |
520 | status = "okay"; | |
521 | }; | |
522 | ||
523 | &rtc { | |
524 | status = "okay"; | |
525 | clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>; | |
526 | clock-names = "rtc", "rtc_src"; | |
527 | }; | |
528 | ||
8149afe4 KK |
529 | &serial_0 { |
530 | status = "okay"; | |
531 | }; | |
532 | ||
533 | &serial_1 { | |
534 | status = "okay"; | |
535 | }; | |
536 | ||
537 | &serial_2 { | |
538 | status = "okay"; | |
539 | }; | |
540 | ||
541 | &serial_3 { | |
542 | status = "okay"; | |
543 | }; | |
544 | ||
88644b4c KK |
545 | &tmu_cpu0 { |
546 | vtmu-supply = <&ldo10_reg>; | |
547 | }; | |
548 | ||
549 | &tmu_cpu1 { | |
550 | vtmu-supply = <&ldo10_reg>; | |
551 | }; | |
552 | ||
553 | &tmu_cpu2 { | |
554 | vtmu-supply = <&ldo10_reg>; | |
555 | }; | |
556 | ||
557 | &tmu_cpu3 { | |
558 | vtmu-supply = <&ldo10_reg>; | |
559 | }; | |
560 | ||
8149afe4 KK |
561 | &usbdrd_dwc3_0 { |
562 | dr_mode = "host"; | |
563 | }; | |
564 | ||
565 | &usbdrd_dwc3_1 { | |
566 | dr_mode = "peripheral"; | |
567 | }; | |
88644b4c KK |
568 | |
569 | &usbdrd3_0 { | |
570 | vdd33-supply = <&ldo12_reg>; | |
571 | vdd10-supply = <&ldo15_reg>; | |
572 | }; | |
573 | ||
574 | &usbdrd3_1 { | |
575 | vdd33-supply = <&ldo12_reg>; | |
576 | vdd10-supply = <&ldo15_reg>; | |
577 | }; |