1 // SPDX-License-Identifier: GPL-2.0
3 * Hardkernel Odroid XU board device tree source
5 * Copyright (c) 2013 Samsung Electronics Co., Ltd.
6 * http://www.samsung.com
7 * Copyright (c) 2016 Krzysztof Kozlowski
11 #include "exynos5410.dtsi"
12 #include <dt-bindings/clock/maxim,max77802.h>
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/interrupt-controller/irq.h>
15 #include <dt-bindings/sound/samsung-i2s.h>
16 #include "exynos54xx-odroidxu-leds.dtsi"
19 model = "Hardkernel Odroid XU";
20 compatible = "hardkernel,odroid-xu", "samsung,exynos5410", "samsung,exynos5";
27 device_type = "memory";
28 reg = <0x40000000 0x7ea00000>;
32 stdout-path = "serial2:115200n8";
36 pinctrl-0 = <&emmc_nrst_pin>;
37 pinctrl-names = "default";
38 compatible = "mmc-pwrseq-emmc";
39 reset-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>;
43 compatible = "pwm-fan";
44 pwms = <&pwm 0 20972 0>;
46 cooling-levels = <0 130 170 230>;
50 compatible = "fixed-clock";
51 clock-frequency = <24000000>;
52 clock-output-names = "fin_pll";
57 compatible = "samsung,secure-firmware";
58 reg = <0x02073000 0x1000>;
62 compatible = "simple-audio-card";
64 simple-audio-card,name = "Odroid-XU";
65 simple-audio-card,widgets =
66 "Headphone", "Headphone Jack",
67 "Speakers", "Speakers";
68 simple-audio-card,routing =
69 "Headphone Jack", "HPL",
70 "Headphone Jack", "HPR",
71 "Headphone Jack", "MICBIAS",
72 "IN1", "Headphone Jack",
76 simple-audio-card,format = "i2s";
77 simple-audio-card,bitclock-master = <&link0_codec>;
78 simple-audio-card,frame-master = <&link0_codec>;
80 simple-audio-card,cpu {
81 sound-dai = <&audi2s0 0>;
82 system-clock-frequency = <19200000>;
85 link0_codec: simple-audio-card,codec {
86 sound-dai = <&max98090>;
87 clocks = <&audi2s0 CLK_I2S_CDCLK>;
93 vdd-supply = <&ldo10_reg>;
103 assigned-clocks = <&clock CLK_FOUT_EPLL>;
104 assigned-clock-rates = <192000000>;
108 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
109 <&clock_audss EXYNOS_MOUT_I2S>,
110 <&clock_audss EXYNOS_DOUT_SRP>,
111 <&clock_audss EXYNOS_DOUT_AUD_BUS>;
113 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
114 <&clock_audss EXYNOS_MOUT_AUDSS>;
116 assigned-clock-rates = <0>,
123 thermal-sensors = <&tmu_cpu0 0>;
124 polling-delay-passive = <0>;
128 cpu_alert0: cpu-alert-0 {
129 temperature = <50000>; /* millicelsius */
130 hysteresis = <5000>; /* millicelsius */
133 cpu_alert1: cpu-alert-1 {
134 temperature = <60000>; /* millicelsius */
135 hysteresis = <5000>; /* millicelsius */
138 cpu_alert2: cpu-alert-2 {
139 temperature = <70000>; /* millicelsius */
140 hysteresis = <5000>; /* millicelsius */
143 cpu_crit0: cpu-crit-0 {
144 temperature = <120000>; /* millicelsius */
145 hysteresis = <0>; /* millicelsius */
152 trip = <&cpu_alert0>;
153 cooling-device = <&fan0 0 1>;
156 trip = <&cpu_alert1>;
157 cooling-device = <&fan0 1 2>;
160 trip = <&cpu_alert2>;
161 cooling-device = <&fan0 2 3>;
167 samsung,i2c-sda-delay = <100>;
168 samsung,i2c-max-bus-freq = <400000>;
172 compatible = "smsc,usb3503";
175 intn-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
176 connect-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
177 reset-gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
180 clock-names = "refclk";
181 clocks = <&pmu_system_controller 0>;
182 refclk-frequency = <24000000>;
186 compatible = "maxim,max77802";
188 interrupt-parent = <&gpx0>;
189 interrupts = <4 IRQ_TYPE_NONE>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&max77802_irq>, <&pmic_dvs_1>, <&pmic_dvs_2>,
195 inl1-supply = <&buck5_reg>;
196 inl2-supply = <&buck7_reg>;
197 inl3-supply = <&buck9_reg>;
198 inl4-supply = <&buck9_reg>;
199 inl5-supply = <&buck9_reg>;
200 inl6-supply = <&buck10_reg>;
201 inl7-supply = <&buck9_reg>;
202 /* inl9 supply is BOOST, not configured here */
203 inl10-supply = <&buck7_reg>;
207 regulator-name = "vdd_mif";
208 regulator-min-microvolt = <800000>;
209 regulator-max-microvolt = <1300000>;
215 regulator-name = "vdd_arm";
216 regulator-min-microvolt = <800000>;
217 regulator-max-microvolt = <1500000>;
223 regulator-name = "vdd_int";
224 regulator-min-microvolt = <800000>;
225 regulator-max-microvolt = <1400000>;
231 regulator-name = "vdd_g3d";
232 regulator-min-microvolt = <800000>;
233 regulator-max-microvolt = <1400000>;
239 regulator-name = "vdd_mem";
240 regulator-min-microvolt = <800000>;
241 regulator-max-microvolt = <1500000>;
247 regulator-name = "vdd_kfc";
248 regulator-min-microvolt = <800000>;
249 regulator-max-microvolt = <1500000>;
255 regulator-name = "buck7";
256 regulator-min-microvolt = <1300000>;
257 regulator-max-microvolt = <1300000>;
264 regulator-name = "vddf_2v85";
265 regulator-min-microvolt = <2850000>;
266 regulator-max-microvolt = <2850000>;
272 regulator-name = "buck9";
273 regulator-min-microvolt = <3000000>;
274 regulator-max-microvolt = <3000000>;
280 regulator-name = "buck10";
281 regulator-min-microvolt = <2950000>;
282 regulator-max-microvolt = <2950000>;
288 regulator-name = "vdd_alive";
289 regulator-min-microvolt = <1000000>;
290 regulator-max-microvolt = <1000000>;
295 regulator-name = "vddq_m1_m2";
296 regulator-min-microvolt = <1200000>;
297 regulator-max-microvolt = <1200000>;
302 regulator-name = "vddq_gpio";
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <1800000>;
309 regulator-name = "vddq_mmc2";
310 regulator-min-microvolt = <1800000>;
311 regulator-max-microvolt = <3000000>;
312 /* Having it off prevents reboot */
317 regulator-name = "vdd18_hsic";
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <1800000>;
324 regulator-name = "vdd18_bpll";
325 regulator-min-microvolt = <1800000>;
326 regulator-max-microvolt = <1800000>;
331 regulator-name = "vddq_lcd";
332 regulator-min-microvolt = <1800000>;
333 regulator-max-microvolt = <1800000>;
334 /* Supplies also GPK and GPJ */
339 regulator-name = "vdd10_hdmi";
340 regulator-min-microvolt = <1000000>;
341 regulator-max-microvolt = <1000000>;
346 regulator-name = "ldo9";
350 regulator-name = "vdd18_mipi";
351 regulator-min-microvolt = <1800000>;
352 regulator-max-microvolt = <1800000>;
357 regulator-name = "vddq_mmc01";
358 regulator-min-microvolt = <1800000>;
359 regulator-max-microvolt = <1800000>;
361 * Having it off prevents accessing MMC after
363 * MMC Device 1: Clock OFF has been failed.
369 regulator-name = "vdd33_usb3";
370 regulator-min-microvolt = <3300000>;
371 regulator-max-microvolt = <3300000>;
376 regulator-name = "vddq_abbg0";
377 regulator-min-microvolt = <1800000>;
378 regulator-max-microvolt = <1800000>;
383 regulator-name = "vddq_abbg1";
384 regulator-min-microvolt = <1800000>;
385 regulator-max-microvolt = <1800000>;
390 regulator-name = "vdd10_usb3";
391 regulator-min-microvolt = <1000000>;
392 regulator-max-microvolt = <1000000>;
397 regulator-name = "ldo16";
401 regulator-name = "cam_sensor_core";
402 regulator-min-microvolt = <1200000>;
403 regulator-max-microvolt = <1200000>;
407 regulator-name = "ldo18";
408 regulator-min-microvolt = <1800000>;
409 regulator-max-microvolt = <1800000>;
413 regulator-name = "ldo19";
417 regulator-name = "vdd_mmc0";
418 regulator-min-microvolt = <1800000>;
419 regulator-max-microvolt = <1800000>;
424 regulator-name = "vddf_2v8";
425 regulator-min-microvolt = <2850000>;
426 regulator-max-microvolt = <2850000>;
430 regulator-name = "ldo22";
434 regulator-name = "dp_p3v3";
435 regulator-min-microvolt = <3300000>;
436 regulator-max-microvolt = <3300000>;
441 regulator-name = "cam_af";
442 regulator-min-microvolt = <2800000>;
443 regulator-max-microvolt = <2800000>;
447 regulator-name = "eth_p3v3";
448 regulator-min-microvolt = <3300000>;
449 regulator-max-microvolt = <3300000>;
454 regulator-name = "usb30_extclk";
455 regulator-min-microvolt = <3300000>;
456 regulator-max-microvolt = <3300000>;
461 regulator-name = "ldo27";
465 regulator-name = "ldo28";
469 regulator-name = "ldo29";
473 regulator-name = "vddq_e1_e2";
474 regulator-min-microvolt = <1200000>;
475 regulator-max-microvolt = <1200000>;
480 regulator-name = "ldo31";
483 /* On revisions with ti,ina231 this is sensor VS */
485 regulator-name = "vs_power_meter";
486 regulator-min-microvolt = <3300000>;
487 regulator-max-microvolt = <3300000>;
491 regulator-name = "ldo33";
495 regulator-name = "ldo34";
499 regulator-name = "ldo35";
507 max98090: audio-codec@10 {
508 compatible = "maxim,max98090";
510 interrupt-parent = <&gpj3>;
511 interrupts = <0 IRQ_TYPE_NONE>;
512 clocks = <&audi2s0 CLK_I2S_CDCLK>;
513 clock-names = "mclk";
514 #sound-dai-cells = <0>;
520 mmc-pwrseq = <&emmc_pwrseq>;
521 cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>;
522 card-detect-delay = <200>;
523 samsung,dw-mshc-ciu-div = <3>;
524 samsung,dw-mshc-sdr-timing = <0 4>;
525 samsung,dw-mshc-ddr-timing = <0 2>;
526 pinctrl-names = "default";
527 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>;
531 vmmc-supply = <&ldo20_reg>;
532 vqmmc-supply = <&ldo11_reg>;
537 card-detect-delay = <200>;
538 samsung,dw-mshc-ciu-div = <3>;
539 samsung,dw-mshc-sdr-timing = <0 4>;
540 samsung,dw-mshc-ddr-timing = <0 2>;
541 pinctrl-names = "default";
542 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4 &sd2_wp>;
545 vmmc-supply = <&ldo21_reg>;
546 vqmmc-supply = <&ldo4_reg>;
550 emmc_nrst_pin: emmc-nrst {
551 samsung,pins = "gpd1-0";
552 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
553 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
554 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
558 samsung,pins = "gpm5-0";
559 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
560 /* Pin is floating so be sure to disable write-protect */
561 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
562 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
565 pmic_dvs_3: pmic-dvs-3 {
566 samsung,pins = "gpx0-0";
567 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
568 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
569 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
572 pmic_dvs_2: pmic-dvs-2 {
573 samsung,pins = "gpx0-1";
574 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
575 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
576 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
579 pmic_dvs_1: pmic-dvs-1 {
580 samsung,pins = "gpx0-2";
581 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
582 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
583 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
584 samsung,pin-val = <1>;
587 max77802_irq: max77802-irq {
588 samsung,pins = "gpx0-4";
589 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
590 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
591 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
600 * PWM 3 -- on MIPI connector for backlight
602 pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>;
603 pinctrl-names = "default";
609 clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
610 clock-names = "rtc", "rtc_src";
630 vtmu-supply = <&ldo10_reg>;
634 vtmu-supply = <&ldo10_reg>;
638 vtmu-supply = <&ldo10_reg>;
642 vtmu-supply = <&ldo10_reg>;
646 /* External pull up */
647 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
651 /* External pull up */
652 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
656 dr_mode = "peripheral";
664 vdd33-supply = <&ldo12_reg>;
665 vdd10-supply = <&ldo15_reg>;
669 vdd33-supply = <&ldo12_reg>;
670 vdd10-supply = <&ldo15_reg>;
674 #address-cells = <1>;
677 ethernet: usbether@2 {
678 compatible = "usb0424,9730";
680 local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */