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";
23 device_type = "memory";
24 reg = <0x40000000 0x7ea00000>;
28 stdout-path = "serial2:115200n8";
32 pinctrl-0 = <&emmc_nrst_pin>;
33 pinctrl-names = "default";
34 compatible = "mmc-pwrseq-emmc";
35 reset-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>;
39 compatible = "pwm-fan";
40 pwms = <&pwm 0 20972 0>;
41 cooling-min-state = <0>;
42 cooling-max-state = <3>;
44 cooling-levels = <0 130 170 230>;
48 compatible = "fixed-clock";
49 clock-frequency = <24000000>;
50 clock-output-names = "fin_pll";
55 compatible = "samsung,secure-firmware";
56 reg = <0x02073000 0x1000>;
60 compatible = "simple-audio-card";
62 simple-audio-card,name = "Odroid-XU";
63 simple-audio-card,widgets =
64 "Headphone", "Headphone Jack",
65 "Speakers", "Speakers";
66 simple-audio-card,routing =
67 "Headphone Jack", "HPL",
68 "Headphone Jack", "HPR",
69 "Headphone Jack", "MICBIAS",
70 "IN1", "Headphone Jack",
74 simple-audio-card,format = "i2s";
75 simple-audio-card,bitclock-master = <&link0_codec>;
76 simple-audio-card,frame-master = <&link0_codec>;
78 simple-audio-card,cpu {
79 sound-dai = <&audi2s0 0>;
80 system-clock-frequency = <19200000>;
83 link0_codec: simple-audio-card,codec {
84 sound-dai = <&max98090>;
85 clocks = <&audi2s0 CLK_I2S_CDCLK>;
96 assigned-clocks = <&clock CLK_FOUT_EPLL>;
97 assigned-clock-rates = <192000000>;
101 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
102 <&clock_audss EXYNOS_MOUT_I2S>,
103 <&clock_audss EXYNOS_DOUT_SRP>,
104 <&clock_audss EXYNOS_DOUT_AUD_BUS>;
106 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
107 <&clock_audss EXYNOS_MOUT_AUDSS>;
109 assigned-clock-rates = <0>,
116 thermal-sensors = <&tmu_cpu0 0>;
117 polling-delay-passive = <0>;
121 cpu_alert0: cpu-alert-0 {
122 temperature = <50000>; /* millicelsius */
123 hysteresis = <5000>; /* millicelsius */
126 cpu_alert1: cpu-alert-1 {
127 temperature = <60000>; /* millicelsius */
128 hysteresis = <5000>; /* millicelsius */
131 cpu_alert2: cpu-alert-2 {
132 temperature = <70000>; /* millicelsius */
133 hysteresis = <5000>; /* millicelsius */
136 cpu_crit0: cpu-crit-0 {
137 temperature = <120000>; /* millicelsius */
138 hysteresis = <0>; /* millicelsius */
145 trip = <&cpu_alert0>;
146 cooling-device = <&fan0 0 1>;
149 trip = <&cpu_alert1>;
150 cooling-device = <&fan0 1 2>;
153 trip = <&cpu_alert2>;
154 cooling-device = <&fan0 2 3>;
160 samsung,i2c-sda-delay = <100>;
161 samsung,i2c-max-bus-freq = <400000>;
165 compatible = "smsc,usb3503";
168 intn-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
169 connect-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
170 reset-gpios = <&gpx1 4 GPIO_ACTIVE_HIGH>;
173 clock-names = "refclk";
174 clocks = <&pmu_system_controller 0>;
175 refclk-frequency = <24000000>;
179 compatible = "maxim,max77802";
181 interrupt-parent = <&gpx0>;
182 interrupts = <4 IRQ_TYPE_NONE>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&max77802_irq>, <&pmic_dvs_1>, <&pmic_dvs_2>,
188 inl1-supply = <&buck5_reg>;
189 inl2-supply = <&buck7_reg>;
190 inl3-supply = <&buck9_reg>;
191 inl4-supply = <&buck9_reg>;
192 inl5-supply = <&buck9_reg>;
193 inl6-supply = <&buck10_reg>;
194 inl7-supply = <&buck9_reg>;
195 /* inl9 supply is BOOST, not configured here */
196 inl10-supply = <&buck7_reg>;
200 regulator-name = "vdd_mif";
201 regulator-min-microvolt = <800000>;
202 regulator-max-microvolt = <1300000>;
208 regulator-name = "vdd_arm";
209 regulator-min-microvolt = <800000>;
210 regulator-max-microvolt = <1500000>;
216 regulator-name = "vdd_int";
217 regulator-min-microvolt = <800000>;
218 regulator-max-microvolt = <1400000>;
224 regulator-name = "vdd_g3d";
225 regulator-min-microvolt = <800000>;
226 regulator-max-microvolt = <1400000>;
232 regulator-name = "vdd_mem";
233 regulator-min-microvolt = <800000>;
234 regulator-max-microvolt = <1500000>;
240 regulator-name = "vdd_kfc";
241 regulator-min-microvolt = <800000>;
242 regulator-max-microvolt = <1500000>;
248 regulator-name = "buck7";
249 regulator-min-microvolt = <1300000>;
250 regulator-max-microvolt = <1300000>;
257 regulator-name = "vddf_2v85";
258 regulator-min-microvolt = <2850000>;
259 regulator-max-microvolt = <2850000>;
265 regulator-name = "buck9";
266 regulator-min-microvolt = <3000000>;
267 regulator-max-microvolt = <3000000>;
273 regulator-name = "buck10";
274 regulator-min-microvolt = <2950000>;
275 regulator-max-microvolt = <2950000>;
281 regulator-name = "vdd_alive";
282 regulator-min-microvolt = <1000000>;
283 regulator-max-microvolt = <1000000>;
288 regulator-name = "vddq_m1_m2";
289 regulator-min-microvolt = <1200000>;
290 regulator-max-microvolt = <1200000>;
295 regulator-name = "vddq_gpio";
296 regulator-min-microvolt = <1800000>;
297 regulator-max-microvolt = <1800000>;
302 regulator-name = "vddq_mmc2";
303 regulator-min-microvolt = <1800000>;
304 regulator-max-microvolt = <3000000>;
305 /* Having it off prevents reboot */
310 regulator-name = "vdd18_hsic";
311 regulator-min-microvolt = <1800000>;
312 regulator-max-microvolt = <1800000>;
317 regulator-name = "vdd18_bpll";
318 regulator-min-microvolt = <1800000>;
319 regulator-max-microvolt = <1800000>;
324 regulator-name = "vddq_lcd";
325 regulator-min-microvolt = <1800000>;
326 regulator-max-microvolt = <1800000>;
327 /* Supplies also GPK and GPJ */
332 regulator-name = "vdd10_hdmi";
333 regulator-min-microvolt = <1000000>;
334 regulator-max-microvolt = <1000000>;
339 regulator-name = "ldo9";
343 regulator-name = "vdd18_mipi";
344 regulator-min-microvolt = <1800000>;
345 regulator-max-microvolt = <1800000>;
350 regulator-name = "vddq_mmc01";
351 regulator-min-microvolt = <1800000>;
352 regulator-max-microvolt = <1800000>;
354 * Having it off prevents accessing MMC after
356 * MMC Device 1: Clock OFF has been failed.
362 regulator-name = "vdd33_usb3";
363 regulator-min-microvolt = <3300000>;
364 regulator-max-microvolt = <3300000>;
369 regulator-name = "vddq_abbg0";
370 regulator-min-microvolt = <1800000>;
371 regulator-max-microvolt = <1800000>;
376 regulator-name = "vddq_abbg1";
377 regulator-min-microvolt = <1800000>;
378 regulator-max-microvolt = <1800000>;
383 regulator-name = "vdd10_usb3";
384 regulator-min-microvolt = <1000000>;
385 regulator-max-microvolt = <1000000>;
390 regulator-name = "ldo16";
394 regulator-name = "cam_sensor_core";
395 regulator-min-microvolt = <1200000>;
396 regulator-max-microvolt = <1200000>;
400 regulator-name = "ldo18";
401 regulator-min-microvolt = <1800000>;
402 regulator-max-microvolt = <1800000>;
406 regulator-name = "ldo19";
410 regulator-name = "vdd_mmc0";
411 regulator-min-microvolt = <1800000>;
412 regulator-max-microvolt = <1800000>;
417 regulator-name = "vddf_2v8";
418 regulator-min-microvolt = <2850000>;
419 regulator-max-microvolt = <2850000>;
423 regulator-name = "ldo22";
427 regulator-name = "dp_p3v3";
428 regulator-min-microvolt = <3300000>;
429 regulator-max-microvolt = <3300000>;
434 regulator-name = "cam_af";
435 regulator-min-microvolt = <2800000>;
436 regulator-max-microvolt = <2800000>;
440 regulator-name = "eth_p3v3";
441 regulator-min-microvolt = <3300000>;
442 regulator-max-microvolt = <3300000>;
447 regulator-name = "usb30_extclk";
448 regulator-min-microvolt = <3300000>;
449 regulator-max-microvolt = <3300000>;
454 regulator-name = "ldo27";
458 regulator-name = "ldo28";
462 regulator-name = "ldo29";
466 regulator-name = "vddq_e1_e2";
467 regulator-min-microvolt = <1200000>;
468 regulator-max-microvolt = <1200000>;
473 regulator-name = "ldo31";
476 /* On revisions with ti,ina231 this is sensor VS */
478 regulator-name = "vs_power_meter";
479 regulator-min-microvolt = <3300000>;
480 regulator-max-microvolt = <3300000>;
484 regulator-name = "ldo33";
488 regulator-name = "ldo34";
492 regulator-name = "ldo35";
500 max98090: max98090@10 {
501 compatible = "maxim,max98090";
503 interrupt-parent = <&gpj3>;
504 interrupts = <0 IRQ_TYPE_NONE>;
505 clocks = <&audi2s0 CLK_I2S_CDCLK>;
506 clock-names = "mclk";
507 #sound-dai-cells = <0>;
513 mmc-pwrseq = <&emmc_pwrseq>;
514 cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>;
515 card-detect-delay = <200>;
516 samsung,dw-mshc-ciu-div = <3>;
517 samsung,dw-mshc-sdr-timing = <0 4>;
518 samsung,dw-mshc-ddr-timing = <0 2>;
519 pinctrl-names = "default";
520 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>;
524 vmmc-supply = <&ldo20_reg>;
525 vqmmc-supply = <&ldo11_reg>;
530 card-detect-delay = <200>;
531 samsung,dw-mshc-ciu-div = <3>;
532 samsung,dw-mshc-sdr-timing = <0 4>;
533 samsung,dw-mshc-ddr-timing = <0 2>;
534 pinctrl-names = "default";
535 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>;
538 vmmc-supply = <&ldo21_reg>;
539 vqmmc-supply = <&ldo4_reg>;
543 emmc_nrst_pin: emmc-nrst {
544 samsung,pins = "gpd1-0";
545 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
546 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
547 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
550 pmic_dvs_3: pmic-dvs-3 {
551 samsung,pins = "gpx0-0";
552 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
553 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
554 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
557 pmic_dvs_2: pmic-dvs-2 {
558 samsung,pins = "gpx0-1";
559 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
560 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
561 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
564 pmic_dvs_1: pmic-dvs-1 {
565 samsung,pins = "gpx0-2";
566 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
567 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
568 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
569 samsung,pin-val = <1>;
572 max77802_irq: max77802-irq {
573 samsung,pins = "gpx0-4";
574 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
575 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
576 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
585 * PWM 3 -- on MIPI connector for backlight
587 pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>;
588 pinctrl-names = "default";
594 clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
595 clock-names = "rtc", "rtc_src";
615 vtmu-supply = <&ldo10_reg>;
619 vtmu-supply = <&ldo10_reg>;
623 vtmu-supply = <&ldo10_reg>;
627 vtmu-supply = <&ldo10_reg>;
631 dr_mode = "peripheral";
639 vdd33-supply = <&ldo12_reg>;
640 vdd10-supply = <&ldo15_reg>;
644 vdd33-supply = <&ldo12_reg>;
645 vdd10-supply = <&ldo15_reg>;