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>;
42 cooling-levels = <0 130 170 230>;
46 compatible = "fixed-clock";
47 clock-frequency = <24000000>;
48 clock-output-names = "fin_pll";
53 compatible = "samsung,secure-firmware";
54 reg = <0x02073000 0x1000>;
58 compatible = "simple-audio-card";
60 simple-audio-card,name = "Odroid-XU";
61 simple-audio-card,widgets =
62 "Headphone", "Headphone Jack",
63 "Speakers", "Speakers";
64 simple-audio-card,routing =
65 "Headphone Jack", "HPL",
66 "Headphone Jack", "HPR",
67 "Headphone Jack", "MICBIAS",
68 "IN1", "Headphone Jack",
72 simple-audio-card,format = "i2s";
73 simple-audio-card,bitclock-master = <&link0_codec>;
74 simple-audio-card,frame-master = <&link0_codec>;
76 simple-audio-card,cpu {
77 sound-dai = <&audi2s0 0>;
78 system-clock-frequency = <19200000>;
81 link0_codec: simple-audio-card,codec {
82 sound-dai = <&max98090>;
83 clocks = <&audi2s0 CLK_I2S_CDCLK>;
89 vdd-supply = <&ldo10_reg>;
99 assigned-clocks = <&clock CLK_FOUT_EPLL>;
100 assigned-clock-rates = <192000000>;
104 assigned-clocks = <&clock_audss EXYNOS_MOUT_AUDSS>,
105 <&clock_audss EXYNOS_MOUT_I2S>,
106 <&clock_audss EXYNOS_DOUT_SRP>,
107 <&clock_audss EXYNOS_DOUT_AUD_BUS>;
109 assigned-clock-parents = <&clock CLK_FOUT_EPLL>,
110 <&clock_audss EXYNOS_MOUT_AUDSS>;
112 assigned-clock-rates = <0>,
119 thermal-sensors = <&tmu_cpu0 0>;
120 polling-delay-passive = <0>;
124 cpu_alert0: cpu-alert-0 {
125 temperature = <50000>; /* millicelsius */
126 hysteresis = <5000>; /* millicelsius */
129 cpu_alert1: cpu-alert-1 {
130 temperature = <60000>; /* millicelsius */
131 hysteresis = <5000>; /* millicelsius */
134 cpu_alert2: cpu-alert-2 {
135 temperature = <70000>; /* millicelsius */
136 hysteresis = <5000>; /* millicelsius */
139 cpu_crit0: cpu-crit-0 {
140 temperature = <120000>; /* millicelsius */
141 hysteresis = <0>; /* millicelsius */
148 trip = <&cpu_alert0>;
149 cooling-device = <&fan0 0 1>;
152 trip = <&cpu_alert1>;
153 cooling-device = <&fan0 1 2>;
156 trip = <&cpu_alert2>;
157 cooling-device = <&fan0 2 3>;
163 samsung,i2c-sda-delay = <100>;
164 samsung,i2c-max-bus-freq = <400000>;
168 compatible = "smsc,usb3503";
171 intn-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
172 connect-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>;
173 reset-gpios = <&gpx1 4 GPIO_ACTIVE_LOW>;
176 clock-names = "refclk";
177 clocks = <&pmu_system_controller 0>;
178 refclk-frequency = <24000000>;
182 compatible = "maxim,max77802";
184 interrupt-parent = <&gpx0>;
185 interrupts = <4 IRQ_TYPE_NONE>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&max77802_irq>, <&pmic_dvs_1>, <&pmic_dvs_2>,
191 inl1-supply = <&buck5_reg>;
192 inl2-supply = <&buck7_reg>;
193 inl3-supply = <&buck9_reg>;
194 inl4-supply = <&buck9_reg>;
195 inl5-supply = <&buck9_reg>;
196 inl6-supply = <&buck10_reg>;
197 inl7-supply = <&buck9_reg>;
198 /* inl9 supply is BOOST, not configured here */
199 inl10-supply = <&buck7_reg>;
203 regulator-name = "vdd_mif";
204 regulator-min-microvolt = <800000>;
205 regulator-max-microvolt = <1300000>;
211 regulator-name = "vdd_arm";
212 regulator-min-microvolt = <800000>;
213 regulator-max-microvolt = <1500000>;
219 regulator-name = "vdd_int";
220 regulator-min-microvolt = <800000>;
221 regulator-max-microvolt = <1400000>;
227 regulator-name = "vdd_g3d";
228 regulator-min-microvolt = <800000>;
229 regulator-max-microvolt = <1400000>;
235 regulator-name = "vdd_mem";
236 regulator-min-microvolt = <800000>;
237 regulator-max-microvolt = <1500000>;
243 regulator-name = "vdd_kfc";
244 regulator-min-microvolt = <800000>;
245 regulator-max-microvolt = <1500000>;
251 regulator-name = "buck7";
252 regulator-min-microvolt = <1300000>;
253 regulator-max-microvolt = <1300000>;
260 regulator-name = "vddf_2v85";
261 regulator-min-microvolt = <2850000>;
262 regulator-max-microvolt = <2850000>;
268 regulator-name = "buck9";
269 regulator-min-microvolt = <3000000>;
270 regulator-max-microvolt = <3000000>;
276 regulator-name = "buck10";
277 regulator-min-microvolt = <2950000>;
278 regulator-max-microvolt = <2950000>;
284 regulator-name = "vdd_alive";
285 regulator-min-microvolt = <1000000>;
286 regulator-max-microvolt = <1000000>;
291 regulator-name = "vddq_m1_m2";
292 regulator-min-microvolt = <1200000>;
293 regulator-max-microvolt = <1200000>;
298 regulator-name = "vddq_gpio";
299 regulator-min-microvolt = <1800000>;
300 regulator-max-microvolt = <1800000>;
305 regulator-name = "vddq_mmc2";
306 regulator-min-microvolt = <1800000>;
307 regulator-max-microvolt = <3000000>;
308 /* Having it off prevents reboot */
313 regulator-name = "vdd18_hsic";
314 regulator-min-microvolt = <1800000>;
315 regulator-max-microvolt = <1800000>;
320 regulator-name = "vdd18_bpll";
321 regulator-min-microvolt = <1800000>;
322 regulator-max-microvolt = <1800000>;
327 regulator-name = "vddq_lcd";
328 regulator-min-microvolt = <1800000>;
329 regulator-max-microvolt = <1800000>;
333 regulator-name = "vdd10_hdmi";
334 regulator-min-microvolt = <1000000>;
335 regulator-max-microvolt = <1000000>;
340 regulator-name = "ldo9";
344 regulator-name = "vdd18_mipi";
345 regulator-min-microvolt = <1800000>;
346 regulator-max-microvolt = <1800000>;
351 regulator-name = "vddq_mmc01";
352 regulator-min-microvolt = <1800000>;
353 regulator-max-microvolt = <1800000>;
355 * Having it off prevents accessing MMC after
357 * MMC Device 1: Clock OFF has been failed.
363 regulator-name = "vdd33_usb3";
364 regulator-min-microvolt = <3300000>;
365 regulator-max-microvolt = <3300000>;
370 regulator-name = "vddq_abbg0";
371 regulator-min-microvolt = <1800000>;
372 regulator-max-microvolt = <1800000>;
377 regulator-name = "vddq_abbg1";
378 regulator-min-microvolt = <1800000>;
379 regulator-max-microvolt = <1800000>;
384 regulator-name = "vdd10_usb3";
385 regulator-min-microvolt = <1000000>;
386 regulator-max-microvolt = <1000000>;
391 regulator-name = "ldo16";
395 regulator-name = "cam_sensor_core";
396 regulator-min-microvolt = <1200000>;
397 regulator-max-microvolt = <1200000>;
401 regulator-name = "ldo18";
402 regulator-min-microvolt = <1800000>;
403 regulator-max-microvolt = <1800000>;
407 regulator-name = "ldo19";
411 regulator-name = "vdd_mmc0";
412 regulator-min-microvolt = <1800000>;
413 regulator-max-microvolt = <1800000>;
418 regulator-name = "vddf_2v8";
419 regulator-min-microvolt = <2850000>;
420 regulator-max-microvolt = <2850000>;
424 regulator-name = "ldo22";
428 regulator-name = "dp_p3v3";
429 regulator-min-microvolt = <3300000>;
430 regulator-max-microvolt = <3300000>;
435 regulator-name = "cam_af";
436 regulator-min-microvolt = <2800000>;
437 regulator-max-microvolt = <2800000>;
441 regulator-name = "eth_p3v3";
442 regulator-min-microvolt = <3300000>;
443 regulator-max-microvolt = <3300000>;
448 regulator-name = "usb30_extclk";
449 regulator-min-microvolt = <3300000>;
450 regulator-max-microvolt = <3300000>;
455 regulator-name = "ldo27";
459 regulator-name = "ldo28";
463 regulator-name = "ldo29";
467 regulator-name = "vddq_e1_e2";
468 regulator-min-microvolt = <1200000>;
469 regulator-max-microvolt = <1200000>;
474 regulator-name = "ldo31";
477 /* On revisions with ti,ina231 this is sensor VS */
479 regulator-name = "vs_power_meter";
480 regulator-min-microvolt = <3300000>;
481 regulator-max-microvolt = <3300000>;
485 regulator-name = "ldo33";
489 regulator-name = "ldo34";
493 regulator-name = "ldo35";
501 max98090: max98090@10 {
502 compatible = "maxim,max98090";
504 interrupt-parent = <&gpj3>;
505 interrupts = <0 IRQ_TYPE_NONE>;
506 clocks = <&audi2s0 CLK_I2S_CDCLK>;
507 clock-names = "mclk";
508 #sound-dai-cells = <0>;
514 mmc-pwrseq = <&emmc_pwrseq>;
515 cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>;
516 card-detect-delay = <200>;
517 samsung,dw-mshc-ciu-div = <3>;
518 samsung,dw-mshc-sdr-timing = <0 4>;
519 samsung,dw-mshc-ddr-timing = <0 2>;
520 pinctrl-names = "default";
521 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>;
525 vmmc-supply = <&ldo20_reg>;
526 vqmmc-supply = <&ldo11_reg>;
531 card-detect-delay = <200>;
532 samsung,dw-mshc-ciu-div = <3>;
533 samsung,dw-mshc-sdr-timing = <0 4>;
534 samsung,dw-mshc-ddr-timing = <0 2>;
535 pinctrl-names = "default";
536 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4 &sd2_wp>;
539 vmmc-supply = <&ldo21_reg>;
540 vqmmc-supply = <&ldo4_reg>;
544 emmc_nrst_pin: emmc-nrst {
545 samsung,pins = "gpd1-0";
546 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
547 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
548 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
552 samsung,pins = "gpm5-0";
553 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
554 /* Pin is floating so be sure to disable write-protect */
555 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
556 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
559 pmic_dvs_3: pmic-dvs-3 {
560 samsung,pins = "gpx0-0";
561 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
562 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
563 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
566 pmic_dvs_2: pmic-dvs-2 {
567 samsung,pins = "gpx0-1";
568 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
569 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
570 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
573 pmic_dvs_1: pmic-dvs-1 {
574 samsung,pins = "gpx0-2";
575 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
576 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
577 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
578 samsung,pin-val = <1>;
581 max77802_irq: max77802-irq {
582 samsung,pins = "gpx0-4";
583 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
584 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
585 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
594 * PWM 3 -- on MIPI connector for backlight
596 pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>;
597 pinctrl-names = "default";
603 clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
604 clock-names = "rtc", "rtc_src";
624 vtmu-supply = <&ldo10_reg>;
628 vtmu-supply = <&ldo10_reg>;
632 vtmu-supply = <&ldo10_reg>;
636 vtmu-supply = <&ldo10_reg>;
644 dr_mode = "peripheral";
648 vdd33-supply = <&ldo12_reg>;
649 vdd10-supply = <&ldo15_reg>;
653 vdd33-supply = <&ldo12_reg>;
654 vdd10-supply = <&ldo15_reg>;