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>;
330 regulator-name = "vdd10_hdmi";
331 regulator-min-microvolt = <1000000>;
332 regulator-max-microvolt = <1000000>;
337 regulator-name = "ldo9";
341 regulator-name = "vdd18_mipi";
342 regulator-min-microvolt = <1800000>;
343 regulator-max-microvolt = <1800000>;
348 regulator-name = "vddq_mmc01";
349 regulator-min-microvolt = <1800000>;
350 regulator-max-microvolt = <1800000>;
352 * Having it off prevents accessing MMC after
354 * MMC Device 1: Clock OFF has been failed.
360 regulator-name = "vdd33_usb3";
361 regulator-min-microvolt = <3300000>;
362 regulator-max-microvolt = <3300000>;
367 regulator-name = "vddq_abbg0";
368 regulator-min-microvolt = <1800000>;
369 regulator-max-microvolt = <1800000>;
374 regulator-name = "vddq_abbg1";
375 regulator-min-microvolt = <1800000>;
376 regulator-max-microvolt = <1800000>;
381 regulator-name = "vdd10_usb3";
382 regulator-min-microvolt = <1000000>;
383 regulator-max-microvolt = <1000000>;
388 regulator-name = "ldo16";
392 regulator-name = "cam_sensor_core";
393 regulator-min-microvolt = <1200000>;
394 regulator-max-microvolt = <1200000>;
398 regulator-name = "ldo18";
399 regulator-min-microvolt = <1800000>;
400 regulator-max-microvolt = <1800000>;
404 regulator-name = "ldo19";
408 regulator-name = "vdd_mmc0";
409 regulator-min-microvolt = <1800000>;
410 regulator-max-microvolt = <1800000>;
415 regulator-name = "vddf_2v8";
416 regulator-min-microvolt = <2850000>;
417 regulator-max-microvolt = <2850000>;
421 regulator-name = "ldo22";
425 regulator-name = "dp_p3v3";
426 regulator-min-microvolt = <3300000>;
427 regulator-max-microvolt = <3300000>;
432 regulator-name = "cam_af";
433 regulator-min-microvolt = <2800000>;
434 regulator-max-microvolt = <2800000>;
438 regulator-name = "eth_p3v3";
439 regulator-min-microvolt = <3300000>;
440 regulator-max-microvolt = <3300000>;
445 regulator-name = "usb30_extclk";
446 regulator-min-microvolt = <3300000>;
447 regulator-max-microvolt = <3300000>;
452 regulator-name = "ldo27";
456 regulator-name = "ldo28";
460 regulator-name = "ldo29";
464 regulator-name = "vddq_e1_e2";
465 regulator-min-microvolt = <1200000>;
466 regulator-max-microvolt = <1200000>;
471 regulator-name = "ldo31";
474 /* On revisions with ti,ina231 this is sensor VS */
476 regulator-name = "vs_power_meter";
477 regulator-min-microvolt = <3300000>;
478 regulator-max-microvolt = <3300000>;
482 regulator-name = "ldo33";
486 regulator-name = "ldo34";
490 regulator-name = "ldo35";
498 max98090: max98090@10 {
499 compatible = "maxim,max98090";
501 interrupt-parent = <&gpj3>;
502 interrupts = <0 IRQ_TYPE_NONE>;
503 clocks = <&audi2s0 CLK_I2S_CDCLK>;
504 clock-names = "mclk";
505 #sound-dai-cells = <0>;
511 mmc-pwrseq = <&emmc_pwrseq>;
512 cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>;
513 card-detect-delay = <200>;
514 samsung,dw-mshc-ciu-div = <3>;
515 samsung,dw-mshc-sdr-timing = <0 4>;
516 samsung,dw-mshc-ddr-timing = <0 2>;
517 pinctrl-names = "default";
518 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>;
522 vmmc-supply = <&ldo20_reg>;
523 vqmmc-supply = <&ldo11_reg>;
528 card-detect-delay = <200>;
529 samsung,dw-mshc-ciu-div = <3>;
530 samsung,dw-mshc-sdr-timing = <0 4>;
531 samsung,dw-mshc-ddr-timing = <0 2>;
532 pinctrl-names = "default";
533 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4 &sd2_wp>;
536 vmmc-supply = <&ldo21_reg>;
537 vqmmc-supply = <&ldo4_reg>;
541 emmc_nrst_pin: emmc-nrst {
542 samsung,pins = "gpd1-0";
543 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
544 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
545 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
549 samsung,pins = "gpm5-0";
550 samsung,pin-function = <EXYNOS_PIN_FUNC_2>;
551 /* Pin is floating so be sure to disable write-protect */
552 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>;
553 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>;
556 pmic_dvs_3: pmic-dvs-3 {
557 samsung,pins = "gpx0-0";
558 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
559 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
560 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
563 pmic_dvs_2: pmic-dvs-2 {
564 samsung,pins = "gpx0-1";
565 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
566 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
567 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
570 pmic_dvs_1: pmic-dvs-1 {
571 samsung,pins = "gpx0-2";
572 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>;
573 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
574 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
575 samsung,pin-val = <1>;
578 max77802_irq: max77802-irq {
579 samsung,pins = "gpx0-4";
580 samsung,pin-function = <EXYNOS_PIN_FUNC_F>;
581 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>;
582 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>;
591 * PWM 3 -- on MIPI connector for backlight
593 pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>;
594 pinctrl-names = "default";
600 clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>;
601 clock-names = "rtc", "rtc_src";
621 vtmu-supply = <&ldo10_reg>;
625 vtmu-supply = <&ldo10_reg>;
629 vtmu-supply = <&ldo10_reg>;
633 vtmu-supply = <&ldo10_reg>;
641 dr_mode = "peripheral";
645 vdd33-supply = <&ldo12_reg>;
646 vdd10-supply = <&ldo15_reg>;
650 vdd33-supply = <&ldo12_reg>;
651 vdd10-supply = <&ldo15_reg>;