1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Hardkernel Odroid XU board device tree source 4 * 5 * Copyright (c) 2013 Samsung Electronics Co., Ltd. 6 * http://www.samsung.com 7 * Copyright (c) 2016 Krzysztof Kozlowski 8 */ 9 10/dts-v1/; 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" 17 18/ { 19 model = "Hardkernel Odroid XU"; 20 compatible = "hardkernel,odroid-xu", "samsung,exynos5410", "samsung,exynos5"; 21 22 aliases { 23 ethernet = ðernet; 24 }; 25 26 memory@40000000 { 27 device_type = "memory"; 28 reg = <0x40000000 0x7ea00000>; 29 }; 30 31 chosen { 32 stdout-path = "serial2:115200n8"; 33 }; 34 35 emmc_pwrseq: pwrseq { 36 pinctrl-0 = <&emmc_nrst_pin>; 37 pinctrl-names = "default"; 38 compatible = "mmc-pwrseq-emmc"; 39 reset-gpios = <&gpd1 0 GPIO_ACTIVE_LOW>; 40 }; 41 42 fan0: pwm-fan { 43 compatible = "pwm-fan"; 44 pwms = <&pwm 0 20972 0>; 45 #cooling-cells = <2>; 46 cooling-levels = <0 130 170 230>; 47 }; 48 49 fin_pll: xxti { 50 compatible = "fixed-clock"; 51 clock-frequency = <24000000>; 52 clock-output-names = "fin_pll"; 53 #clock-cells = <0>; 54 }; 55 56 firmware@2073000 { 57 compatible = "samsung,secure-firmware"; 58 reg = <0x02073000 0x1000>; 59 }; 60 61 sound: sound { 62 compatible = "simple-audio-card"; 63 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", 73 "Speakers", "SPKL", 74 "Speakers", "SPKR"; 75 76 simple-audio-card,format = "i2s"; 77 simple-audio-card,bitclock-master = <&link0_codec>; 78 simple-audio-card,frame-master = <&link0_codec>; 79 80 simple-audio-card,cpu { 81 sound-dai = <&audi2s0 0>; 82 system-clock-frequency = <19200000>; 83 }; 84 85 link0_codec: simple-audio-card,codec { 86 sound-dai = <&max98090>; 87 clocks = <&audi2s0 CLK_I2S_CDCLK>; 88 }; 89 }; 90}; 91 92&adc { 93 vdd-supply = <&ldo10_reg>; 94 status = "okay"; 95}; 96 97&audi2s0 { 98 status = "okay"; 99}; 100 101&clock { 102 clocks = <&fin_pll>; 103 assigned-clocks = <&clock CLK_FOUT_EPLL>; 104 assigned-clock-rates = <192000000>; 105}; 106 107&clock_audss { 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>; 112 113 assigned-clock-parents = <&clock CLK_FOUT_EPLL>, 114 <&clock_audss EXYNOS_MOUT_AUDSS>; 115 116 assigned-clock-rates = <0>, 117 <0>, 118 <96000000>, 119 <19200000>; 120}; 121 122&cpu0_thermal { 123 thermal-sensors = <&tmu_cpu0 0>; 124 polling-delay-passive = <0>; 125 polling-delay = <0>; 126 127 trips { 128 cpu_alert0: cpu-alert-0 { 129 temperature = <50000>; /* millicelsius */ 130 hysteresis = <5000>; /* millicelsius */ 131 type = "active"; 132 }; 133 cpu_alert1: cpu-alert-1 { 134 temperature = <60000>; /* millicelsius */ 135 hysteresis = <5000>; /* millicelsius */ 136 type = "active"; 137 }; 138 cpu_alert2: cpu-alert-2 { 139 temperature = <70000>; /* millicelsius */ 140 hysteresis = <5000>; /* millicelsius */ 141 type = "active"; 142 }; 143 cpu_crit0: cpu-crit-0 { 144 temperature = <120000>; /* millicelsius */ 145 hysteresis = <0>; /* millicelsius */ 146 type = "critical"; 147 }; 148 }; 149 150 cooling-maps { 151 map0 { 152 trip = <&cpu_alert0>; 153 cooling-device = <&fan0 0 1>; 154 }; 155 map1 { 156 trip = <&cpu_alert1>; 157 cooling-device = <&fan0 1 2>; 158 }; 159 map2 { 160 trip = <&cpu_alert2>; 161 cooling-device = <&fan0 2 3>; 162 }; 163 }; 164}; 165 166&hsi2c_4 { 167 samsung,i2c-sda-delay = <100>; 168 samsung,i2c-max-bus-freq = <400000>; 169 status = "okay"; 170 171 usb3503: usb-hub@8 { 172 compatible = "smsc,usb3503"; 173 reg = <0x08>; 174 175 intn-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>; 176 connect-gpios = <&gpx0 6 GPIO_ACTIVE_HIGH>; 177 reset-gpios = <&gpx1 4 GPIO_ACTIVE_LOW>; 178 initial-mode = <1>; 179 180 clock-names = "refclk"; 181 clocks = <&pmu_system_controller 0>; 182 refclk-frequency = <24000000>; 183 }; 184 185 max77802: pmic@9 { 186 compatible = "maxim,max77802"; 187 reg = <0x9>; 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>, 192 <&pmic_dvs_3>; 193 wakeup-source; 194 #clock-cells = <1>; 195 196 inl1-supply = <&buck5_reg>; 197 inl2-supply = <&buck7_reg>; 198 inl3-supply = <&buck9_reg>; 199 inl4-supply = <&buck9_reg>; 200 inl5-supply = <&buck9_reg>; 201 inl6-supply = <&buck10_reg>; 202 inl7-supply = <&buck9_reg>; 203 /* inl9 supply is BOOST, not configured here */ 204 inl10-supply = <&buck7_reg>; 205 206 regulators { 207 buck1_reg: BUCK1 { 208 regulator-name = "vdd_mif"; 209 regulator-min-microvolt = <800000>; 210 regulator-max-microvolt = <1300000>; 211 regulator-always-on; 212 regulator-boot-on; 213 }; 214 215 buck2_reg: BUCK2 { 216 regulator-name = "vdd_arm"; 217 regulator-min-microvolt = <800000>; 218 regulator-max-microvolt = <1500000>; 219 regulator-always-on; 220 regulator-boot-on; 221 }; 222 223 buck3_reg: BUCK3 { 224 regulator-name = "vdd_int"; 225 regulator-min-microvolt = <800000>; 226 regulator-max-microvolt = <1400000>; 227 regulator-always-on; 228 regulator-boot-on; 229 }; 230 231 buck4_reg: BUCK4 { 232 regulator-name = "vdd_g3d"; 233 regulator-min-microvolt = <800000>; 234 regulator-max-microvolt = <1400000>; 235 regulator-always-on; 236 regulator-boot-on; 237 }; 238 239 buck5_reg: BUCK5 { 240 regulator-name = "vdd_mem"; 241 regulator-min-microvolt = <800000>; 242 regulator-max-microvolt = <1500000>; 243 regulator-always-on; 244 regulator-boot-on; 245 }; 246 247 buck6_reg: BUCK6 { 248 regulator-name = "vdd_kfc"; 249 regulator-min-microvolt = <800000>; 250 regulator-max-microvolt = <1500000>; 251 regulator-always-on; 252 regulator-boot-on; 253 }; 254 255 buck7_reg: BUCK7 { 256 regulator-name = "buck7"; 257 regulator-min-microvolt = <1300000>; 258 regulator-max-microvolt = <1300000>; 259 regulator-always-on; 260 regulator-boot-on; 261 }; 262 263 buck8_reg: BUCK8 { 264 /* vdd_mmc0 */ 265 regulator-name = "vddf_2v85"; 266 regulator-min-microvolt = <2850000>; 267 regulator-max-microvolt = <2850000>; 268 regulator-always-on; 269 regulator-boot-on; 270 }; 271 272 buck9_reg: BUCK9 { 273 regulator-name = "buck9"; 274 regulator-min-microvolt = <3000000>; 275 regulator-max-microvolt = <3000000>; 276 regulator-always-on; 277 regulator-boot-on; 278 }; 279 280 buck10_reg: BUCK10 { 281 regulator-name = "buck10"; 282 regulator-min-microvolt = <2950000>; 283 regulator-max-microvolt = <2950000>; 284 regulator-always-on; 285 regulator-boot-on; 286 }; 287 288 ldo1_reg: LDO1 { 289 regulator-name = "vdd_alive"; 290 regulator-min-microvolt = <1000000>; 291 regulator-max-microvolt = <1000000>; 292 regulator-always-on; 293 }; 294 295 ldo2_reg: LDO2 { 296 regulator-name = "vddq_m1_m2"; 297 regulator-min-microvolt = <1200000>; 298 regulator-max-microvolt = <1200000>; 299 regulator-always-on; 300 }; 301 302 ldo3_reg: LDO3 { 303 regulator-name = "vddq_gpio"; 304 regulator-min-microvolt = <1800000>; 305 regulator-max-microvolt = <1800000>; 306 regulator-always-on; 307 }; 308 309 ldo4_reg: LDO4 { 310 regulator-name = "vddq_mmc2"; 311 regulator-min-microvolt = <1800000>; 312 regulator-max-microvolt = <3000000>; 313 /* Having it off prevents reboot */ 314 regulator-always-on; 315 }; 316 317 ldo5_reg: LDO5 { 318 regulator-name = "vdd18_hsic"; 319 regulator-min-microvolt = <1800000>; 320 regulator-max-microvolt = <1800000>; 321 regulator-always-on; 322 }; 323 324 ldo6_reg: LDO6 { 325 regulator-name = "vdd18_bpll"; 326 regulator-min-microvolt = <1800000>; 327 regulator-max-microvolt = <1800000>; 328 regulator-always-on; 329 }; 330 331 ldo7_reg: LDO7 { 332 regulator-name = "vddq_lcd"; 333 regulator-min-microvolt = <1800000>; 334 regulator-max-microvolt = <1800000>; 335 /* Supplies also GPK and GPJ */ 336 regulator-always-on; 337 }; 338 339 ldo8_reg: LDO8 { 340 regulator-name = "vdd10_hdmi"; 341 regulator-min-microvolt = <1000000>; 342 regulator-max-microvolt = <1000000>; 343 regulator-always-on; 344 }; 345 346 ldo9_reg: LDO9 { 347 regulator-name = "ldo9"; 348 }; 349 350 ldo10_reg: LDO10 { 351 regulator-name = "vdd18_mipi"; 352 regulator-min-microvolt = <1800000>; 353 regulator-max-microvolt = <1800000>; 354 regulator-always-on; 355 }; 356 357 ldo11_reg: LDO11 { 358 regulator-name = "vddq_mmc01"; 359 regulator-min-microvolt = <1800000>; 360 regulator-max-microvolt = <1800000>; 361 /* 362 * Having it off prevents accessing MMC after 363 * reboot with error: 364 * MMC Device 1: Clock OFF has been failed. 365 */ 366 regulator-always-on; 367 }; 368 369 ldo12_reg: LDO12 { 370 regulator-name = "vdd33_usb3"; 371 regulator-min-microvolt = <3300000>; 372 regulator-max-microvolt = <3300000>; 373 regulator-always-on; 374 }; 375 376 ldo13_reg: LDO13 { 377 regulator-name = "vddq_abbg0"; 378 regulator-min-microvolt = <1800000>; 379 regulator-max-microvolt = <1800000>; 380 regulator-always-on; 381 }; 382 383 ldo14_reg: LDO14 { 384 regulator-name = "vddq_abbg1"; 385 regulator-min-microvolt = <1800000>; 386 regulator-max-microvolt = <1800000>; 387 regulator-always-on; 388 }; 389 390 ldo15_reg: LDO15 { 391 regulator-name = "vdd10_usb3"; 392 regulator-min-microvolt = <1000000>; 393 regulator-max-microvolt = <1000000>; 394 regulator-always-on; 395 }; 396 397 ldo16_reg: LDO16 { 398 regulator-name = "ldo16"; 399 }; 400 401 ldo17_reg: LDO17 { 402 regulator-name = "cam_sensor_core"; 403 regulator-min-microvolt = <1200000>; 404 regulator-max-microvolt = <1200000>; 405 }; 406 407 ldo18_reg: LDO18 { 408 regulator-name = "ldo18"; 409 regulator-min-microvolt = <1800000>; 410 regulator-max-microvolt = <1800000>; 411 }; 412 413 ldo19_reg: LDO19 { 414 regulator-name = "ldo19"; 415 }; 416 417 ldo20_reg: LDO20 { 418 regulator-name = "vdd_mmc0"; 419 regulator-min-microvolt = <1800000>; 420 regulator-max-microvolt = <1800000>; 421 }; 422 423 ldo21_reg: LDO21 { 424 /* vdd_mmc2 */ 425 regulator-name = "vddf_2v8"; 426 regulator-min-microvolt = <2850000>; 427 regulator-max-microvolt = <2850000>; 428 }; 429 430 ldo22_reg: LDO22 { 431 regulator-name = "ldo22"; 432 }; 433 434 ldo23_reg: LDO23 { 435 regulator-name = "dp_p3v3"; 436 regulator-min-microvolt = <3300000>; 437 regulator-max-microvolt = <3300000>; 438 regulator-always-on; 439 }; 440 441 ldo24_reg: LDO24 { 442 regulator-name = "cam_af"; 443 regulator-min-microvolt = <2800000>; 444 regulator-max-microvolt = <2800000>; 445 }; 446 447 ldo25_reg: LDO25 { 448 regulator-name = "eth_p3v3"; 449 regulator-min-microvolt = <3300000>; 450 regulator-max-microvolt = <3300000>; 451 regulator-always-on; 452 }; 453 454 ldo26_reg: LDO26 { 455 regulator-name = "usb30_extclk"; 456 regulator-min-microvolt = <3300000>; 457 regulator-max-microvolt = <3300000>; 458 regulator-always-on; 459 }; 460 461 ldo27_reg: LDO27 { 462 regulator-name = "ldo27"; 463 }; 464 465 ldo28_reg: LDO28 { 466 regulator-name = "ldo28"; 467 }; 468 469 ldo29_reg: LDO29 { 470 regulator-name = "ldo29"; 471 }; 472 473 ldo30_reg: LDO30 { 474 regulator-name = "vddq_e1_e2"; 475 regulator-min-microvolt = <1200000>; 476 regulator-max-microvolt = <1200000>; 477 regulator-always-on; 478 }; 479 480 ldo31_reg: LDO31 { 481 regulator-name = "ldo31"; 482 }; 483 484 /* On revisions with ti,ina231 this is sensor VS */ 485 ldo32_reg: LDO32 { 486 regulator-name = "vs_power_meter"; 487 regulator-min-microvolt = <3300000>; 488 regulator-max-microvolt = <3300000>; 489 }; 490 491 ldo33_reg: LDO33 { 492 regulator-name = "ldo33"; 493 }; 494 495 ldo34_reg: LDO34 { 496 regulator-name = "ldo34"; 497 }; 498 499 ldo35_reg: LDO35 { 500 regulator-name = "ldo35"; 501 }; 502 }; 503 }; 504}; 505 506&i2c_1 { 507 status = "okay"; 508 max98090: audio-codec@10 { 509 compatible = "maxim,max98090"; 510 reg = <0x10>; 511 interrupt-parent = <&gpj3>; 512 interrupts = <0 IRQ_TYPE_NONE>; 513 clocks = <&audi2s0 CLK_I2S_CDCLK>; 514 clock-names = "mclk"; 515 #sound-dai-cells = <0>; 516 }; 517}; 518 519&mmc_0 { 520 status = "okay"; 521 mmc-pwrseq = <&emmc_pwrseq>; 522 cd-gpios = <&gpc0 2 GPIO_ACTIVE_LOW>; 523 card-detect-delay = <200>; 524 samsung,dw-mshc-ciu-div = <3>; 525 samsung,dw-mshc-sdr-timing = <0 4>; 526 samsung,dw-mshc-ddr-timing = <0 2>; 527 pinctrl-names = "default"; 528 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_bus1 &sd0_bus4 &sd0_bus8 &sd0_cd>; 529 bus-width = <8>; 530 cap-mmc-highspeed; 531 mmc-hs200-1_8v; 532 vmmc-supply = <&ldo20_reg>; 533 vqmmc-supply = <&ldo11_reg>; 534}; 535 536&mmc_2 { 537 status = "okay"; 538 card-detect-delay = <200>; 539 samsung,dw-mshc-ciu-div = <3>; 540 samsung,dw-mshc-sdr-timing = <0 4>; 541 samsung,dw-mshc-ddr-timing = <0 2>; 542 pinctrl-names = "default"; 543 pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4 &sd2_wp>; 544 bus-width = <4>; 545 cap-sd-highspeed; 546 vmmc-supply = <&ldo21_reg>; 547 vqmmc-supply = <&ldo4_reg>; 548}; 549 550&pinctrl_0 { 551 emmc_nrst_pin: emmc-nrst { 552 samsung,pins = "gpd1-0"; 553 samsung,pin-function = <EXYNOS_PIN_FUNC_2>; 554 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 555 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; 556 }; 557 558 sd2_wp: sd2-wp { 559 samsung,pins = "gpm5-0"; 560 samsung,pin-function = <EXYNOS_PIN_FUNC_2>; 561 /* Pin is floating so be sure to disable write-protect */ 562 samsung,pin-pud = <EXYNOS_PIN_PULL_DOWN>; 563 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV4>; 564 }; 565 566 pmic_dvs_3: pmic-dvs-3 { 567 samsung,pins = "gpx0-0"; 568 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 569 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 570 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; 571 }; 572 573 pmic_dvs_2: pmic-dvs-2 { 574 samsung,pins = "gpx0-1"; 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 }; 579 580 pmic_dvs_1: pmic-dvs-1 { 581 samsung,pins = "gpx0-2"; 582 samsung,pin-function = <EXYNOS_PIN_FUNC_OUTPUT>; 583 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 584 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; 585 samsung,pin-val = <1>; 586 }; 587 588 max77802_irq: max77802-irq { 589 samsung,pins = "gpx0-4"; 590 samsung,pin-function = <EXYNOS_PIN_FUNC_F>; 591 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 592 samsung,pin-drv = <EXYNOS5420_PIN_DRV_LV1>; 593 }; 594}; 595 596&pwm { 597 /* 598 * PWM 0 -- fan 599 * PWM 1 -- Green LED 600 * PWM 2 -- Blue LED 601 * PWM 3 -- on MIPI connector for backlight 602 */ 603 pinctrl-0 = <&pwm0_out &pwm1_out &pwm2_out &pwm3_out>; 604 pinctrl-names = "default"; 605 status = "okay"; 606}; 607 608&rtc { 609 status = "okay"; 610 clocks = <&clock CLK_RTC>, <&max77802 MAX77802_CLK_32K_AP>; 611 clock-names = "rtc", "rtc_src"; 612}; 613 614&serial_0 { 615 status = "okay"; 616}; 617 618&serial_1 { 619 status = "okay"; 620}; 621 622&serial_2 { 623 status = "okay"; 624}; 625 626&serial_3 { 627 status = "okay"; 628}; 629 630&tmu_cpu0 { 631 vtmu-supply = <&ldo10_reg>; 632}; 633 634&tmu_cpu1 { 635 vtmu-supply = <&ldo10_reg>; 636}; 637 638&tmu_cpu2 { 639 vtmu-supply = <&ldo10_reg>; 640}; 641 642&tmu_cpu3 { 643 vtmu-supply = <&ldo10_reg>; 644}; 645 646&usb3_0_oc { 647 /* External pull up */ 648 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 649}; 650 651&usb3_1_oc { 652 /* External pull up */ 653 samsung,pin-pud = <EXYNOS_PIN_PULL_NONE>; 654}; 655 656&usbdrd_dwc3_0 { 657 dr_mode = "peripheral"; 658}; 659 660&usbdrd_dwc3_1 { 661 dr_mode = "host"; 662}; 663 664&usbdrd3_0 { 665 vdd33-supply = <&ldo12_reg>; 666 vdd10-supply = <&ldo15_reg>; 667}; 668 669&usbdrd3_1 { 670 vdd33-supply = <&ldo12_reg>; 671 vdd10-supply = <&ldo15_reg>; 672}; 673 674&usbhost2 { 675 #address-cells = <1>; 676 #size-cells = <0>; 677 678 ethernet: usbether@2 { 679 compatible = "usb0424,9730"; 680 reg = <2>; 681 local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */ 682 }; 683}; 684