1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 3 /dts-v1/; 4 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/rockchip.h> 8 #include <dt-bindings/soc/rockchip,vop2.h> 9 #include "rk3566.dtsi" 10 11 / { 12 model = "Hardkernel ODROID-M1S"; 13 compatible = "hardkernel,odroid-m1s", 14 15 aliases { 16 ethernet0 = &gmac1; 17 mmc0 = &sdhci; 18 mmc1 = &sdmmc0; 19 }; 20 21 chosen { 22 stdout-path = "serial2:1500000 23 }; 24 25 hdmi-con { 26 compatible = "hdmi-connector"; 27 type = "a"; 28 29 port { 30 hdmi_con_in: endpoint 31 remote-endpoin 32 }; 33 }; 34 }; 35 36 leds { 37 compatible = "gpio-leds"; 38 pinctrl-names = "default"; 39 pinctrl-0 = <&pwr_led>, <&sys_ 40 41 led_pwr: led-0 { 42 color = <LED_COLOR_ID_ 43 default-state = "on"; 44 function = LED_FUNCTIO 45 gpios = <&gpio0 RK_PC6 46 linux,default-trigger 47 }; 48 49 led_sys: led-1 { 50 color = <LED_COLOR_ID_ 51 default-state = "on"; 52 function = LED_FUNCTIO 53 gpios = <&gpio0 RK_PB7 54 linux,default-trigger 55 }; 56 }; 57 58 vcc3v3_lcd: regulator-3v3-vcc-lcd { 59 compatible = "regulator-fixed" 60 enable-active-high; 61 gpios = <&gpio0 RK_PC7 GPIO_AC 62 pinctrl-names = "default"; 63 pinctrl-0 = <&lcd_pwren>; 64 regulator-name = "vcc3v3_lcd"; 65 regulator-min-microvolt = <330 66 regulator-max-microvolt = <330 67 vin-supply = <&vcc3v3_sys>; 68 }; 69 70 vcc3v3_pcie: regulator-3v3-vcc-pcie { 71 compatible = "regulator-fixed" 72 enable-active-high; 73 gpios = <&gpio2 RK_PC2 GPIO_AC 74 pinctrl-names = "default"; 75 pinctrl-0 = <&pcie_pwren>; 76 regulator-name = "vcc3v3_pcie" 77 regulator-min-microvolt = <330 78 regulator-max-microvolt = <330 79 vin-supply = <&vcc3v3_sys>; 80 }; 81 82 vcc3v3_sys: regulator-3v3-vcc-sys { 83 compatible = "regulator-fixed" 84 regulator-name = "vcc3v3_sys"; 85 regulator-always-on; 86 regulator-boot-on; 87 regulator-min-microvolt = <330 88 regulator-max-microvolt = <330 89 vin-supply = <&vcc5v0_sys>; 90 }; 91 92 vcc5v0_sys: regulator-5v0-vcc-sys { 93 compatible = "regulator-fixed" 94 regulator-name = "vcc5v0_sys"; 95 regulator-always-on; 96 regulator-boot-on; 97 regulator-min-microvolt = <500 98 regulator-max-microvolt = <500 99 }; 100 101 vcc5v0_usb2_host: regulator-5v0-vcc-us 102 compatible = "regulator-fixed" 103 enable-active-high; 104 gpios = <&gpio3 RK_PB0 GPIO_AC 105 pinctrl-names = "default"; 106 pinctrl-0 = <&usb2_host_pwren> 107 regulator-name = "vcc5v0_usb2_ 108 regulator-min-microvolt = <500 109 regulator-max-microvolt = <500 110 vin-supply = <&vcc5v0_sys>; 111 }; 112 113 vcc5v0_usb2_otg: regulator-5v0-vcc-usb 114 compatible = "regulator-fixed" 115 enable-active-high; 116 gpios = <&gpio0 RK_PA6 GPIO_AC 117 pinctrl-names = "default"; 118 pinctrl-0 = <&usb2_otg_pwren>; 119 regulator-name = "vcc5v0_usb2_ 120 regulator-min-microvolt = <500 121 regulator-max-microvolt = <500 122 vin-supply = <&vcc5v0_sys>; 123 }; 124 125 vcc5v0_usb3_host: regulator-5v0-vcc-us 126 compatible = "regulator-fixed" 127 enable-active-high; 128 gpios = <&gpio0 RK_PA5 GPIO_AC 129 pinctrl-names = "default"; 130 pinctrl-0 = <&usb3_host_pwren> 131 regulator-name = "vcc5v0_usb3_ 132 regulator-min-microvolt = <500 133 regulator-max-microvolt = <500 134 vin-supply = <&vcc5v0_sys>; 135 }; 136 137 sound { 138 compatible = "simple-audio-car 139 simple-audio-card,format = "i2 140 simple-audio-card,name = "Anal 141 simple-audio-card,mclk-fs = <2 142 143 simple-audio-card,cpu { 144 sound-dai = <&i2s1_8ch 145 }; 146 147 simple-audio-card,codec { 148 sound-dai = <&rk809>; 149 }; 150 }; 151 }; 152 153 &combphy1 { 154 status = "okay"; 155 }; 156 157 &combphy2 { 158 status = "okay"; 159 }; 160 161 &cpu0 { 162 cpu-supply = <&vdd_cpu>; 163 }; 164 165 &cpu1 { 166 cpu-supply = <&vdd_cpu>; 167 }; 168 169 &cpu2 { 170 cpu-supply = <&vdd_cpu>; 171 }; 172 173 &cpu3 { 174 cpu-supply = <&vdd_cpu>; 175 }; 176 177 &gmac1 { 178 assigned-clocks = <&cru SCLK_GMAC1_RX_ 179 assigned-clock-parents = <&cru SCLK_GM 180 clock_in_out = "input"; 181 phy-handle = <&rgmii_phy1>; 182 phy-mode = "rgmii-id"; 183 phy-supply = <&vcc_3v3>; 184 pinctrl-names = "default"; 185 pinctrl-0 = <&gmac1m1_miim 186 &gmac1m1_tx_bus2 187 &gmac1m1_rx_bus2 188 &gmac1m1_rgmii_clk 189 &gmac1m1_rgmii_bus 190 &gmac1m1_clkinout>; 191 status = "okay"; 192 }; 193 194 &gpu { 195 mali-supply = <&vdd_gpu>; 196 status = "okay"; 197 }; 198 199 &hdmi { 200 avdd-0v9-supply = <&vdda0v9_image>; 201 avdd-1v8-supply = <&vcca1v8_image>; 202 status = "okay"; 203 }; 204 205 &hdmi_in { 206 hdmi_in_vp0: endpoint { 207 remote-endpoint = <&vp0_out_hd 208 }; 209 }; 210 211 &hdmi_out { 212 hdmi_out_con: endpoint { 213 remote-endpoint = <&hdmi_con_i 214 }; 215 }; 216 217 &hdmi_sound { 218 status = "okay"; 219 }; 220 221 &i2c0 { 222 status = "okay"; 223 224 vdd_cpu: regulator@1c { 225 compatible = "tcs,tcs4525"; 226 reg = <0x1c>; 227 fcs,suspend-voltage-selector = 228 regulator-name = "vdd_cpu"; 229 regulator-always-on; 230 regulator-boot-on; 231 regulator-min-microvolt = <712 232 regulator-max-microvolt = <139 233 regulator-ramp-delay = <2300>; 234 vin-supply = <&vcc3v3_sys>; 235 236 regulator-state-mem { 237 regulator-off-in-suspe 238 }; 239 }; 240 241 rk809: pmic@20 { 242 compatible = "rockchip,rk809"; 243 reg = <0x20>; 244 assigned-clocks = <&cru I2S1_M 245 assigned-clock-parents = <&cru 246 #clock-cells = <1>; 247 clocks = <&cru I2S1_MCLKOUT_TX 248 clock-names = "mclk"; 249 clock-output-names = "rk809-cl 250 interrupt-parent = <&gpio0>; 251 interrupts = <RK_PA3 IRQ_TYPE_ 252 pinctrl-names = "default"; 253 pinctrl-0 = <&pmic_int>, <&i2s 254 #sound-dai-cells = <0>; 255 system-power-controller; 256 wakeup-source; 257 258 vcc1-supply = <&vcc3v3_sys>; 259 vcc2-supply = <&vcc3v3_sys>; 260 vcc3-supply = <&vcc3v3_sys>; 261 vcc4-supply = <&vcc3v3_sys>; 262 vcc5-supply = <&vcc3v3_sys>; 263 vcc6-supply = <&vcc3v3_sys>; 264 vcc7-supply = <&vcc3v3_sys>; 265 vcc8-supply = <&vcc3v3_sys>; 266 vcc9-supply = <&vcc3v3_sys>; 267 268 regulators { 269 vdd_logic: DCDC_REG1 { 270 regulator-name 271 regulator-alwa 272 regulator-boot 273 regulator-init 274 regulator-min- 275 regulator-max- 276 regulator-ramp 277 278 regulator-stat 279 regula 280 }; 281 }; 282 283 vdd_gpu: DCDC_REG2 { 284 regulator-name 285 regulator-alwa 286 regulator-boot 287 regulator-init 288 regulator-min- 289 regulator-max- 290 regulator-ramp 291 292 regulator-stat 293 regula 294 }; 295 }; 296 297 vcc_ddr: DCDC_REG3 { 298 regulator-name 299 regulator-alwa 300 regulator-boot 301 regulator-init 302 303 regulator-stat 304 regula 305 }; 306 }; 307 308 vdd_npu: DCDC_REG4 { 309 regulator-name 310 regulator-init 311 regulator-min- 312 regulator-max- 313 regulator-ramp 314 315 regulator-stat 316 regula 317 }; 318 }; 319 320 vcc_1v8: DCDC_REG5 { 321 regulator-name 322 regulator-alwa 323 regulator-boot 324 regulator-min- 325 regulator-max- 326 327 regulator-stat 328 regula 329 }; 330 }; 331 332 vdda0v9_image: LDO_REG 333 regulator-name 334 regulator-min- 335 regulator-max- 336 337 regulator-stat 338 regula 339 }; 340 }; 341 342 vdda_0v9: LDO_REG2 { 343 regulator-name 344 regulator-alwa 345 regulator-boot 346 regulator-min- 347 regulator-max- 348 349 regulator-stat 350 regula 351 }; 352 }; 353 354 vdda0v9_pmu: LDO_REG3 355 regulator-name 356 regulator-alwa 357 regulator-boot 358 regulator-min- 359 regulator-max- 360 361 regulator-stat 362 regula 363 regula 364 }; 365 }; 366 367 vccio_acodec: LDO_REG4 368 regulator-name 369 regulator-alwa 370 regulator-boot 371 regulator-min- 372 regulator-max- 373 374 regulator-stat 375 regula 376 }; 377 }; 378 379 vccio_sd: LDO_REG5 { 380 regulator-name 381 regulator-min- 382 regulator-max- 383 384 regulator-stat 385 regula 386 }; 387 }; 388 389 vcc3v3_pmu: LDO_REG6 { 390 regulator-name 391 regulator-alwa 392 regulator-boot 393 regulator-min- 394 regulator-max- 395 396 regulator-stat 397 regula 398 regula 399 }; 400 }; 401 402 vcca_1v8: LDO_REG7 { 403 regulator-name 404 regulator-alwa 405 regulator-boot 406 regulator-min- 407 regulator-max- 408 409 regulator-stat 410 regula 411 }; 412 }; 413 414 vcca1v8_pmu: LDO_REG8 415 regulator-name 416 regulator-alwa 417 regulator-boot 418 regulator-min- 419 regulator-max- 420 421 regulator-stat 422 regula 423 regula 424 }; 425 }; 426 427 vcca1v8_image: LDO_REG 428 regulator-name 429 regulator-min- 430 regulator-max- 431 432 regulator-stat 433 regula 434 }; 435 }; 436 437 vcc_3v3: SWITCH_REG1 { 438 regulator-name 439 regulator-alwa 440 regulator-boot 441 442 regulator-stat 443 regula 444 }; 445 }; 446 447 vcc3v3_sd: SWITCH_REG2 448 regulator-name 449 450 regulator-stat 451 regula 452 }; 453 }; 454 }; 455 }; 456 }; 457 458 &i2s0_8ch { 459 status = "okay"; 460 }; 461 462 &i2s1_8ch { 463 pinctrl-names = "default"; 464 pinctrl-0 = <&i2s1m0_sclktx 465 &i2s1m0_lrcktx 466 &i2s1m0_sdi0 467 &i2s1m0_sdo0>; 468 rockchip,trcm-sync-tx-only; 469 status = "okay"; 470 }; 471 472 &mdio1 { 473 rgmii_phy1: ethernet-phy@1 { 474 compatible = "ethernet-phy-iee 475 reg = <1>; 476 reset-assert-us = <20000>; 477 reset-deassert-us = <100000>; 478 reset-gpios = <&gpio3 RK_PB7 G 479 }; 480 }; 481 482 &pcie2x1 { 483 pinctrl-names = "default"; 484 pinctrl-0 = <&pcie20_pins>; 485 reset-gpios = <&gpio1 RK_PB2 GPIO_ACTI 486 vpcie3v3-supply = <&vcc3v3_pcie>; 487 status = "okay"; 488 }; 489 490 &pinctrl { 491 lcd { 492 lcd_pwren: lcd-pwren { 493 rockchip,pins = <0 RK_ 494 }; 495 }; 496 497 leds { 498 pwr_led: pwr-led { 499 rockchip,pins = <0 RK_ 500 }; 501 502 sys_led: sys-led { 503 rockchip,pins = <0 RK_ 504 }; 505 }; 506 507 pcie { 508 pcie20_pins: pcie20-pins { 509 rockchip,pins = 510 <1 RK_PB0 4 &p 511 <1 RK_PB2 RK_F 512 <1 RK_PB1 4 &p 513 }; 514 515 pcie_pwren: pcie-pwren { 516 rockchip,pins = <2 RK_ 517 }; 518 }; 519 520 pmic { 521 pmic_int: pmic-int { 522 rockchip,pins = <0 RK_ 523 }; 524 }; 525 526 usb { 527 usb2_host_pwren: usb2-host-pwr 528 rockchip,pins = <3 RK_ 529 }; 530 531 usb2_otg_pwren: usb2-otg-pwren 532 rockchip,pins = <0 RK_ 533 }; 534 535 usb3_host_pwren: usb3-host-pwr 536 rockchip,pins = <0 RK_ 537 }; 538 }; 539 }; 540 541 &pmu_io_domains { 542 pmuio1-supply = <&vcc3v3_pmu>; 543 pmuio2-supply = <&vcc3v3_pmu>; 544 vccio1-supply = <&vccio_acodec>; 545 vccio2-supply = <&vcc_1v8>; 546 vccio3-supply = <&vccio_sd>; 547 vccio4-supply = <&vcc_3v3>; 548 vccio5-supply = <&vcc_3v3>; 549 vccio6-supply = <&vcc_3v3>; 550 vccio7-supply = <&vcc_3v3>; 551 status = "okay"; 552 }; 553 554 &saradc { 555 vref-supply = <&vcca_1v8>; 556 status = "okay"; 557 }; 558 559 &sdhci { 560 bus-width = <8>; 561 cap-mmc-highspeed; 562 max-frequency = <200000000>; 563 mmc-hs200-1_8v; 564 no-sd; 565 no-sdio; 566 non-removable; 567 pinctrl-names = "default"; 568 pinctrl-0 = <&emmc_bus8 &emmc_clk &emm 569 vmmc-supply = <&vcc_3v3>; 570 vqmmc-supply = <&vcc_1v8>; 571 status = "okay"; 572 }; 573 574 &sdmmc0 { 575 bus-width = <4>; 576 cap-sd-highspeed; 577 disable-wp; 578 pinctrl-names = "default"; 579 pinctrl-0 = <&sdmmc0_bus4 &sdmmc0_clk 580 sd-uhs-sdr50; 581 vmmc-supply = <&vcc3v3_sd>; 582 vqmmc-supply = <&vccio_sd>; 583 status = "okay"; 584 }; 585 586 &tsadc { 587 rockchip,hw-tshut-mode = <1>; 588 rockchip,hw-tshut-polarity = <0>; 589 status = "okay"; 590 }; 591 592 &uart2 { 593 status = "okay"; 594 }; 595 596 &usb_host0_ehci { 597 status = "okay"; 598 }; 599 600 &usb_host0_ohci { 601 status = "okay"; 602 }; 603 604 &usb_host0_xhci { 605 status = "okay"; 606 }; 607 608 &usb_host1_ehci { 609 status = "okay"; 610 }; 611 612 &usb_host1_ohci { 613 status = "okay"; 614 }; 615 616 &usb_host1_xhci { 617 status = "okay"; 618 }; 619 620 &usb2phy0 { 621 status = "okay"; 622 }; 623 624 &usb2phy0_host { 625 phy-supply = <&vcc5v0_usb3_host>; 626 status = "okay"; 627 }; 628 629 &usb2phy0_otg { 630 phy-supply = <&vcc5v0_usb2_otg>; 631 status = "okay"; 632 }; 633 634 &usb2phy1 { 635 status = "okay"; 636 }; 637 638 &usb2phy1_host { 639 phy-supply = <&vcc5v0_usb2_host>; 640 status = "okay"; 641 }; 642 643 &usb2phy1_otg { 644 phy-supply = <&vcc5v0_usb2_host>; 645 status = "okay"; 646 }; 647 648 &vop { 649 assigned-clocks = <&cru DCLK_VOP0>, <& 650 assigned-clock-parents = <&pmucru PLL_ 651 status = "okay"; 652 }; 653 654 &vop_mmu { 655 status = "okay"; 656 }; 657 658 &vp0 { 659 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_E 660 reg = <ROCKCHIP_VOP2_EP_HDMI0> 661 remote-endpoint = <&hdmi_in_vp 662 }; 663 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.