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", "rockchip,rk3566"; 14 15 aliases { 16 ethernet0 = &gmac1; 17 mmc0 = &sdhci; 18 mmc1 = &sdmmc0; 19 }; 20 21 chosen { 22 stdout-path = "serial2:1500000n8"; 23 }; 24 25 hdmi-con { 26 compatible = "hdmi-connector"; 27 type = "a"; 28 29 port { 30 hdmi_con_in: endpoint { 31 remote-endpoint = <&hdmi_out_con>; 32 }; 33 }; 34 }; 35 36 leds { 37 compatible = "gpio-leds"; 38 pinctrl-names = "default"; 39 pinctrl-0 = <&pwr_led>, <&sys_led>; 40 41 led_pwr: led-0 { 42 color = <LED_COLOR_ID_RED>; 43 default-state = "on"; 44 function = LED_FUNCTION_POWER; 45 gpios = <&gpio0 RK_PC6 GPIO_ACTIVE_LOW>; 46 linux,default-trigger = "default-on"; 47 }; 48 49 led_sys: led-1 { 50 color = <LED_COLOR_ID_BLUE>; 51 default-state = "on"; 52 function = LED_FUNCTION_HEARTBEAT; 53 gpios = <&gpio0 RK_PB7 GPIO_ACTIVE_HIGH>; 54 linux,default-trigger = "heartbeat"; 55 }; 56 }; 57 58 vcc3v3_lcd: regulator-3v3-vcc-lcd { 59 compatible = "regulator-fixed"; 60 enable-active-high; 61 gpios = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; 62 pinctrl-names = "default"; 63 pinctrl-0 = <&lcd_pwren>; 64 regulator-name = "vcc3v3_lcd"; 65 regulator-min-microvolt = <3300000>; 66 regulator-max-microvolt = <3300000>; 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_ACTIVE_HIGH>; 74 pinctrl-names = "default"; 75 pinctrl-0 = <&pcie_pwren>; 76 regulator-name = "vcc3v3_pcie"; 77 regulator-min-microvolt = <3300000>; 78 regulator-max-microvolt = <3300000>; 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 = <3300000>; 88 regulator-max-microvolt = <3300000>; 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 = <5000000>; 98 regulator-max-microvolt = <5000000>; 99 }; 100 101 vcc5v0_usb2_host: regulator-5v0-vcc-usb2-host { 102 compatible = "regulator-fixed"; 103 enable-active-high; 104 gpios = <&gpio3 RK_PB0 GPIO_ACTIVE_HIGH>; 105 pinctrl-names = "default"; 106 pinctrl-0 = <&usb2_host_pwren>; 107 regulator-name = "vcc5v0_usb2_host"; 108 regulator-min-microvolt = <5000000>; 109 regulator-max-microvolt = <5000000>; 110 vin-supply = <&vcc5v0_sys>; 111 }; 112 113 vcc5v0_usb2_otg: regulator-5v0-vcc-usb2-otg { 114 compatible = "regulator-fixed"; 115 enable-active-high; 116 gpios = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; 117 pinctrl-names = "default"; 118 pinctrl-0 = <&usb2_otg_pwren>; 119 regulator-name = "vcc5v0_usb2_otg"; 120 regulator-min-microvolt = <5000000>; 121 regulator-max-microvolt = <5000000>; 122 vin-supply = <&vcc5v0_sys>; 123 }; 124 125 vcc5v0_usb3_host: regulator-5v0-vcc-usb3-host { 126 compatible = "regulator-fixed"; 127 enable-active-high; 128 gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; 129 pinctrl-names = "default"; 130 pinctrl-0 = <&usb3_host_pwren>; 131 regulator-name = "vcc5v0_usb3_host"; 132 regulator-min-microvolt = <5000000>; 133 regulator-max-microvolt = <5000000>; 134 vin-supply = <&vcc5v0_sys>; 135 }; 136 137 sound { 138 compatible = "simple-audio-card"; 139 simple-audio-card,format = "i2s"; 140 simple-audio-card,name = "Analog RK809"; 141 simple-audio-card,mclk-fs = <256>; 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_TX>, <&cru SCLK_GMAC1>; 179 assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>, <&cru CLK_MAC1_2TOP>; 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_hdmi>; 208 }; 209 }; 210 211 &hdmi_out { 212 hdmi_out_con: endpoint { 213 remote-endpoint = <&hdmi_con_in>; 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 = <1>; 228 regulator-name = "vdd_cpu"; 229 regulator-always-on; 230 regulator-boot-on; 231 regulator-min-microvolt = <712500>; 232 regulator-max-microvolt = <1390000>; 233 regulator-ramp-delay = <2300>; 234 vin-supply = <&vcc3v3_sys>; 235 236 regulator-state-mem { 237 regulator-off-in-suspend; 238 }; 239 }; 240 241 rk809: pmic@20 { 242 compatible = "rockchip,rk809"; 243 reg = <0x20>; 244 assigned-clocks = <&cru I2S1_MCLKOUT_TX>; 245 assigned-clock-parents = <&cru CLK_I2S1_8CH_TX>; 246 #clock-cells = <1>; 247 clocks = <&cru I2S1_MCLKOUT_TX>; 248 clock-names = "mclk"; 249 clock-output-names = "rk809-clkout1", "rk809-clkout2"; 250 interrupt-parent = <&gpio0>; 251 interrupts = <RK_PA3 IRQ_TYPE_LEVEL_LOW>; 252 pinctrl-names = "default"; 253 pinctrl-0 = <&pmic_int>, <&i2s1m0_mclk>; 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 = "vdd_logic"; 271 regulator-always-on; 272 regulator-boot-on; 273 regulator-initial-mode = <0x2>; 274 regulator-min-microvolt = <500000>; 275 regulator-max-microvolt = <1350000>; 276 regulator-ramp-delay = <6001>; 277 278 regulator-state-mem { 279 regulator-off-in-suspend; 280 }; 281 }; 282 283 vdd_gpu: DCDC_REG2 { 284 regulator-name = "vdd_gpu"; 285 regulator-always-on; 286 regulator-boot-on; 287 regulator-initial-mode = <0x2>; 288 regulator-min-microvolt = <500000>; 289 regulator-max-microvolt = <1350000>; 290 regulator-ramp-delay = <6001>; 291 292 regulator-state-mem { 293 regulator-off-in-suspend; 294 }; 295 }; 296 297 vcc_ddr: DCDC_REG3 { 298 regulator-name = "vcc_ddr"; 299 regulator-always-on; 300 regulator-boot-on; 301 regulator-initial-mode = <0x2>; 302 303 regulator-state-mem { 304 regulator-on-in-suspend; 305 }; 306 }; 307 308 vdd_npu: DCDC_REG4 { 309 regulator-name = "vdd_npu"; 310 regulator-initial-mode = <0x2>; 311 regulator-min-microvolt = <500000>; 312 regulator-max-microvolt = <1350000>; 313 regulator-ramp-delay = <6001>; 314 315 regulator-state-mem { 316 regulator-off-in-suspend; 317 }; 318 }; 319 320 vcc_1v8: DCDC_REG5 { 321 regulator-name = "vcc_1v8"; 322 regulator-always-on; 323 regulator-boot-on; 324 regulator-min-microvolt = <1800000>; 325 regulator-max-microvolt = <1800000>; 326 327 regulator-state-mem { 328 regulator-off-in-suspend; 329 }; 330 }; 331 332 vdda0v9_image: LDO_REG1 { 333 regulator-name = "vdda0v9_image"; 334 regulator-min-microvolt = <900000>; 335 regulator-max-microvolt = <900000>; 336 337 regulator-state-mem { 338 regulator-off-in-suspend; 339 }; 340 }; 341 342 vdda_0v9: LDO_REG2 { 343 regulator-name = "vdda_0v9"; 344 regulator-always-on; 345 regulator-boot-on; 346 regulator-min-microvolt = <900000>; 347 regulator-max-microvolt = <900000>; 348 349 regulator-state-mem { 350 regulator-off-in-suspend; 351 }; 352 }; 353 354 vdda0v9_pmu: LDO_REG3 { 355 regulator-name = "vdda0v9_pmu"; 356 regulator-always-on; 357 regulator-boot-on; 358 regulator-min-microvolt = <900000>; 359 regulator-max-microvolt = <900000>; 360 361 regulator-state-mem { 362 regulator-on-in-suspend; 363 regulator-suspend-microvolt = <900000>; 364 }; 365 }; 366 367 vccio_acodec: LDO_REG4 { 368 regulator-name = "vccio_acodec"; 369 regulator-always-on; 370 regulator-boot-on; 371 regulator-min-microvolt = <3300000>; 372 regulator-max-microvolt = <3300000>; 373 374 regulator-state-mem { 375 regulator-off-in-suspend; 376 }; 377 }; 378 379 vccio_sd: LDO_REG5 { 380 regulator-name = "vccio_sd"; 381 regulator-min-microvolt = <1800000>; 382 regulator-max-microvolt = <3300000>; 383 384 regulator-state-mem { 385 regulator-off-in-suspend; 386 }; 387 }; 388 389 vcc3v3_pmu: LDO_REG6 { 390 regulator-name = "vcc3v3_pmu"; 391 regulator-always-on; 392 regulator-boot-on; 393 regulator-min-microvolt = <3300000>; 394 regulator-max-microvolt = <3300000>; 395 396 regulator-state-mem { 397 regulator-on-in-suspend; 398 regulator-suspend-microvolt = <3300000>; 399 }; 400 }; 401 402 vcca_1v8: LDO_REG7 { 403 regulator-name = "vcca_1v8"; 404 regulator-always-on; 405 regulator-boot-on; 406 regulator-min-microvolt = <1800000>; 407 regulator-max-microvolt = <1800000>; 408 409 regulator-state-mem { 410 regulator-off-in-suspend; 411 }; 412 }; 413 414 vcca1v8_pmu: LDO_REG8 { 415 regulator-name = "vcca1v8_pmu"; 416 regulator-always-on; 417 regulator-boot-on; 418 regulator-min-microvolt = <1800000>; 419 regulator-max-microvolt = <1800000>; 420 421 regulator-state-mem { 422 regulator-on-in-suspend; 423 regulator-suspend-microvolt = <1800000>; 424 }; 425 }; 426 427 vcca1v8_image: LDO_REG9 { 428 regulator-name = "vcca1v8_image"; 429 regulator-min-microvolt = <1800000>; 430 regulator-max-microvolt = <1800000>; 431 432 regulator-state-mem { 433 regulator-off-in-suspend; 434 }; 435 }; 436 437 vcc_3v3: SWITCH_REG1 { 438 regulator-name = "vcc_3v3"; 439 regulator-always-on; 440 regulator-boot-on; 441 442 regulator-state-mem { 443 regulator-off-in-suspend; 444 }; 445 }; 446 447 vcc3v3_sd: SWITCH_REG2 { 448 regulator-name = "vcc3v3_sd"; 449 450 regulator-state-mem { 451 regulator-off-in-suspend; 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-ieee802.3-c22"; 475 reg = <1>; 476 reset-assert-us = <20000>; 477 reset-deassert-us = <100000>; 478 reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>; 479 }; 480 }; 481 482 &pcie2x1 { 483 pinctrl-names = "default"; 484 pinctrl-0 = <&pcie20_pins>; 485 reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>; 486 vpcie3v3-supply = <&vcc3v3_pcie>; 487 status = "okay"; 488 }; 489 490 &pinctrl { 491 lcd { 492 lcd_pwren: lcd-pwren { 493 rockchip,pins = <0 RK_PC7 RK_FUNC_GPIO &pcfg_pull_none>; 494 }; 495 }; 496 497 leds { 498 pwr_led: pwr-led { 499 rockchip,pins = <0 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>; 500 }; 501 502 sys_led: sys-led { 503 rockchip,pins = <0 RK_PB7 RK_FUNC_GPIO &pcfg_pull_none>; 504 }; 505 }; 506 507 pcie { 508 pcie20_pins: pcie20-pins { 509 rockchip,pins = 510 <1 RK_PB0 4 &pcfg_pull_none>, 511 <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>, 512 <1 RK_PB1 4 &pcfg_pull_none>; 513 }; 514 515 pcie_pwren: pcie-pwren { 516 rockchip,pins = <2 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; 517 }; 518 }; 519 520 pmic { 521 pmic_int: pmic-int { 522 rockchip,pins = <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; 523 }; 524 }; 525 526 usb { 527 usb2_host_pwren: usb2-host-pwren { 528 rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>; 529 }; 530 531 usb2_otg_pwren: usb2-otg-pwren { 532 rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; 533 }; 534 535 usb3_host_pwren: usb3-host-pwren { 536 rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; 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 &emmc_cmd &emmc_datastrobe &emmc_rstnout>; 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 &sdmmc0_cmd &sdmmc0_det>; 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>, <&cru DCLK_VOP1>; 650 assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; 651 status = "okay"; 652 }; 653 654 &vop_mmu { 655 status = "okay"; 656 }; 657 658 &vp0 { 659 vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { 660 reg = <ROCKCHIP_VOP2_EP_HDMI0>; 661 remote-endpoint = <&hdmi_in_vp0>; 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.