1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/interrupt-controller/irq 5 #include <dt-bindings/interrupt-controller/arm 6 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/clock/rk3228-cru.h> 8 #include <dt-bindings/thermal/thermal.h> 9 #include <dt-bindings/power/rk3228-power.h> 10 11 / { 12 #address-cells = <1>; 13 #size-cells = <1>; 14 15 interrupt-parent = <&gic>; 16 17 aliases { 18 gpio0 = &gpio0; 19 gpio1 = &gpio1; 20 gpio2 = &gpio2; 21 gpio3 = &gpio3; 22 serial0 = &uart0; 23 serial1 = &uart1; 24 serial2 = &uart2; 25 spi0 = &spi0; 26 }; 27 28 cpus { 29 #address-cells = <1>; 30 #size-cells = <0>; 31 32 cpu0: cpu@f00 { 33 device_type = "cpu"; 34 compatible = "arm,cort 35 reg = <0xf00>; 36 resets = <&cru SRST_CO 37 operating-points-v2 = 38 #cooling-cells = <2>; 39 clock-latency = <40000 40 clocks = <&cru ARMCLK> 41 enable-method = "psci" 42 }; 43 44 cpu1: cpu@f01 { 45 device_type = "cpu"; 46 compatible = "arm,cort 47 reg = <0xf01>; 48 resets = <&cru SRST_CO 49 operating-points-v2 = 50 #cooling-cells = <2>; 51 enable-method = "psci" 52 }; 53 54 cpu2: cpu@f02 { 55 device_type = "cpu"; 56 compatible = "arm,cort 57 reg = <0xf02>; 58 resets = <&cru SRST_CO 59 operating-points-v2 = 60 #cooling-cells = <2>; 61 enable-method = "psci" 62 }; 63 64 cpu3: cpu@f03 { 65 device_type = "cpu"; 66 compatible = "arm,cort 67 reg = <0xf03>; 68 resets = <&cru SRST_CO 69 operating-points-v2 = 70 #cooling-cells = <2>; 71 enable-method = "psci" 72 }; 73 }; 74 75 cpu0_opp_table: opp-table-0 { 76 compatible = "operating-points 77 opp-shared; 78 79 opp-408000000 { 80 opp-hz = /bits/ 64 <40 81 opp-microvolt = <95000 82 clock-latency-ns = <40 83 opp-suspend; 84 }; 85 opp-600000000 { 86 opp-hz = /bits/ 64 <60 87 opp-microvolt = <97500 88 }; 89 opp-816000000 { 90 opp-hz = /bits/ 64 <81 91 opp-microvolt = <10000 92 }; 93 opp-1008000000 { 94 opp-hz = /bits/ 64 <10 95 opp-microvolt = <11750 96 }; 97 opp-1200000000 { 98 opp-hz = /bits/ 64 <12 99 opp-microvolt = <12750 100 }; 101 }; 102 103 arm-pmu { 104 compatible = "arm,cortex-a7-pm 105 interrupts = <GIC_SPI 76 IRQ_T 106 <GIC_SPI 77 IRQ_T 107 <GIC_SPI 78 IRQ_T 108 <GIC_SPI 79 IRQ_T 109 interrupt-affinity = <&cpu0>, 110 }; 111 112 psci { 113 compatible = "arm,psci-1.0", " 114 method = "smc"; 115 }; 116 117 timer { 118 compatible = "arm,armv7-timer" 119 arm,cpu-registers-not-fw-confi 120 interrupts = <GIC_PPI 13 (GIC_ 121 <GIC_PPI 14 (GIC_ 122 <GIC_PPI 11 (GIC_ 123 <GIC_PPI 10 (GIC_ 124 clock-frequency = <24000000>; 125 }; 126 127 xin24m: oscillator { 128 compatible = "fixed-clock"; 129 clock-frequency = <24000000>; 130 clock-output-names = "xin24m"; 131 #clock-cells = <0>; 132 }; 133 134 display_subsystem: display-subsystem { 135 compatible = "rockchip,display 136 ports = <&vop_out>; 137 }; 138 139 i2s1: i2s1@100b0000 { 140 compatible = "rockchip,rk3228- 141 reg = <0x100b0000 0x4000>; 142 interrupts = <GIC_SPI 27 IRQ_T 143 clock-names = "i2s_clk", "i2s_ 144 clocks = <&cru SCLK_I2S1>, <&c 145 dmas = <&pdma 14>, <&pdma 15>; 146 dma-names = "tx", "rx"; 147 pinctrl-names = "default"; 148 pinctrl-0 = <&i2s1_bus>; 149 status = "disabled"; 150 }; 151 152 i2s0: i2s0@100c0000 { 153 compatible = "rockchip,rk3228- 154 reg = <0x100c0000 0x4000>; 155 interrupts = <GIC_SPI 26 IRQ_T 156 clock-names = "i2s_clk", "i2s_ 157 clocks = <&cru SCLK_I2S0>, <&c 158 dmas = <&pdma 11>, <&pdma 12>; 159 dma-names = "tx", "rx"; 160 status = "disabled"; 161 }; 162 163 spdif: spdif@100d0000 { 164 compatible = "rockchip,rk3228- 165 reg = <0x100d0000 0x1000>; 166 interrupts = <GIC_SPI 29 IRQ_T 167 clocks = <&cru SCLK_SPDIF>, <& 168 clock-names = "mclk", "hclk"; 169 dmas = <&pdma 10>; 170 dma-names = "tx"; 171 pinctrl-names = "default"; 172 pinctrl-0 = <&spdif_tx>; 173 status = "disabled"; 174 }; 175 176 i2s2: i2s2@100e0000 { 177 compatible = "rockchip,rk3228- 178 reg = <0x100e0000 0x4000>; 179 interrupts = <GIC_SPI 28 IRQ_T 180 clock-names = "i2s_clk", "i2s_ 181 clocks = <&cru SCLK_I2S2>, <&c 182 dmas = <&pdma 0>, <&pdma 1>; 183 dma-names = "tx", "rx"; 184 status = "disabled"; 185 }; 186 187 grf: syscon@11000000 { 188 compatible = "rockchip,rk3228- 189 reg = <0x11000000 0x1000>; 190 #address-cells = <1>; 191 #size-cells = <1>; 192 193 io_domains: io-domains { 194 compatible = "rockchip 195 status = "disabled"; 196 }; 197 198 power: power-controller { 199 compatible = "rockchip 200 #power-domain-cells = 201 #address-cells = <1>; 202 #size-cells = <0>; 203 204 power-domain@RK3228_PD 205 reg = <RK3228_ 206 clocks = <&cru 207 <&cru 208 <&cru 209 <&cru 210 <&cru 211 <&cru 212 <&cru 213 pm_qos = <&qos 214 <&qos 215 <&qos 216 <&qos 217 #power-domain- 218 }; 219 220 power-domain@RK3228_PD 221 reg = <RK3228_ 222 clocks = <&cru 223 <&cru 224 <&cru 225 pm_qos = <&qos 226 #power-domain- 227 }; 228 229 power-domain@RK3228_PD 230 reg = <RK3228_ 231 clocks = <&cru 232 <&cru 233 pm_qos = <&qos 234 #power-domain- 235 }; 236 237 power-domain@RK3228_PD 238 reg = <RK3228_ 239 clocks = <&cru 240 <&cru 241 <&cru 242 <&cru 243 pm_qos = <&qos 244 <&qos 245 #power-domain- 246 }; 247 248 power-domain@RK3228_PD 249 reg = <RK3228_ 250 clocks = <&cru 251 pm_qos = <&qos 252 #power-domain- 253 }; 254 }; 255 256 u2phy0: usb2phy@760 { 257 compatible = "rockchip 258 reg = <0x0760 0x0c>; 259 clocks = <&cru SCLK_OT 260 clock-names = "phyclk" 261 clock-output-names = " 262 #clock-cells = <0>; 263 status = "disabled"; 264 265 u2phy0_otg: otg-port { 266 interrupts = < 267 < 268 < 269 interrupt-name 270 271 #phy-cells = < 272 status = "disa 273 }; 274 275 u2phy0_host: host-port 276 interrupts = < 277 interrupt-name 278 #phy-cells = < 279 status = "disa 280 }; 281 }; 282 283 u2phy1: usb2phy@800 { 284 compatible = "rockchip 285 reg = <0x0800 0x0c>; 286 clocks = <&cru SCLK_OT 287 clock-names = "phyclk" 288 clock-output-names = " 289 #clock-cells = <0>; 290 status = "disabled"; 291 292 u2phy1_otg: otg-port { 293 interrupts = < 294 interrupt-name 295 #phy-cells = < 296 status = "disa 297 }; 298 299 u2phy1_host: host-port 300 interrupts = < 301 interrupt-name 302 #phy-cells = < 303 status = "disa 304 }; 305 }; 306 }; 307 308 uart0: serial@11010000 { 309 compatible = "snps,dw-apb-uart 310 reg = <0x11010000 0x100>; 311 interrupts = <GIC_SPI 55 IRQ_T 312 clock-frequency = <24000000>; 313 clocks = <&cru SCLK_UART0>, <& 314 clock-names = "baudclk", "apb_ 315 pinctrl-names = "default"; 316 pinctrl-0 = <&uart0_xfer &uart 317 reg-shift = <2>; 318 reg-io-width = <4>; 319 status = "disabled"; 320 }; 321 322 uart1: serial@11020000 { 323 compatible = "snps,dw-apb-uart 324 reg = <0x11020000 0x100>; 325 interrupts = <GIC_SPI 56 IRQ_T 326 clock-frequency = <24000000>; 327 clocks = <&cru SCLK_UART1>, <& 328 clock-names = "baudclk", "apb_ 329 pinctrl-names = "default"; 330 pinctrl-0 = <&uart1_xfer>; 331 reg-shift = <2>; 332 reg-io-width = <4>; 333 status = "disabled"; 334 }; 335 336 uart2: serial@11030000 { 337 compatible = "snps,dw-apb-uart 338 reg = <0x11030000 0x100>; 339 interrupts = <GIC_SPI 57 IRQ_T 340 clock-frequency = <24000000>; 341 clocks = <&cru SCLK_UART2>, <& 342 clock-names = "baudclk", "apb_ 343 pinctrl-names = "default"; 344 pinctrl-0 = <&uart2_xfer>; 345 reg-shift = <2>; 346 reg-io-width = <4>; 347 status = "disabled"; 348 }; 349 350 efuse: efuse@11040000 { 351 compatible = "rockchip,rk3228- 352 reg = <0x11040000 0x20>; 353 clocks = <&cru PCLK_EFUSE_256> 354 clock-names = "pclk_efuse"; 355 #address-cells = <1>; 356 #size-cells = <1>; 357 358 /* Data cells */ 359 efuse_id: id@7 { 360 reg = <0x7 0x10>; 361 }; 362 cpu_leakage: cpu_leakage@17 { 363 reg = <0x17 0x1>; 364 }; 365 }; 366 367 i2c0: i2c@11050000 { 368 compatible = "rockchip,rk3228- 369 reg = <0x11050000 0x1000>; 370 interrupts = <GIC_SPI 36 IRQ_T 371 #address-cells = <1>; 372 #size-cells = <0>; 373 clock-names = "i2c"; 374 clocks = <&cru PCLK_I2C0>; 375 pinctrl-names = "default"; 376 pinctrl-0 = <&i2c0_xfer>; 377 status = "disabled"; 378 }; 379 380 i2c1: i2c@11060000 { 381 compatible = "rockchip,rk3228- 382 reg = <0x11060000 0x1000>; 383 interrupts = <GIC_SPI 37 IRQ_T 384 #address-cells = <1>; 385 #size-cells = <0>; 386 clock-names = "i2c"; 387 clocks = <&cru PCLK_I2C1>; 388 pinctrl-names = "default"; 389 pinctrl-0 = <&i2c1_xfer>; 390 status = "disabled"; 391 }; 392 393 i2c2: i2c@11070000 { 394 compatible = "rockchip,rk3228- 395 reg = <0x11070000 0x1000>; 396 interrupts = <GIC_SPI 38 IRQ_T 397 #address-cells = <1>; 398 #size-cells = <0>; 399 clock-names = "i2c"; 400 clocks = <&cru PCLK_I2C2>; 401 pinctrl-names = "default"; 402 pinctrl-0 = <&i2c2_xfer>; 403 status = "disabled"; 404 }; 405 406 i2c3: i2c@11080000 { 407 compatible = "rockchip,rk3228- 408 reg = <0x11080000 0x1000>; 409 interrupts = <GIC_SPI 39 IRQ_T 410 #address-cells = <1>; 411 #size-cells = <0>; 412 clock-names = "i2c"; 413 clocks = <&cru PCLK_I2C3>; 414 pinctrl-names = "default"; 415 pinctrl-0 = <&i2c3_xfer>; 416 status = "disabled"; 417 }; 418 419 spi0: spi@11090000 { 420 compatible = "rockchip,rk3228- 421 reg = <0x11090000 0x1000>; 422 interrupts = <GIC_SPI 49 IRQ_T 423 #address-cells = <1>; 424 #size-cells = <0>; 425 clocks = <&cru SCLK_SPI0>, <&c 426 clock-names = "spiclk", "apb_p 427 pinctrl-names = "default"; 428 pinctrl-0 = <&spi0_clk &spi0_t 429 status = "disabled"; 430 }; 431 432 wdt: watchdog@110a0000 { 433 compatible = "rockchip,rk3228- 434 reg = <0x110a0000 0x100>; 435 interrupts = <GIC_SPI 40 IRQ_T 436 clocks = <&cru PCLK_CPU>; 437 status = "disabled"; 438 }; 439 440 pwm0: pwm@110b0000 { 441 compatible = "rockchip,rk3288- 442 reg = <0x110b0000 0x10>; 443 #pwm-cells = <3>; 444 clocks = <&cru PCLK_PWM>; 445 pinctrl-names = "default"; 446 pinctrl-0 = <&pwm0_pin>; 447 status = "disabled"; 448 }; 449 450 pwm1: pwm@110b0010 { 451 compatible = "rockchip,rk3288- 452 reg = <0x110b0010 0x10>; 453 #pwm-cells = <3>; 454 clocks = <&cru PCLK_PWM>; 455 pinctrl-names = "default"; 456 pinctrl-0 = <&pwm1_pin>; 457 status = "disabled"; 458 }; 459 460 pwm2: pwm@110b0020 { 461 compatible = "rockchip,rk3288- 462 reg = <0x110b0020 0x10>; 463 #pwm-cells = <3>; 464 clocks = <&cru PCLK_PWM>; 465 pinctrl-names = "default"; 466 pinctrl-0 = <&pwm2_pin>; 467 status = "disabled"; 468 }; 469 470 pwm3: pwm@110b0030 { 471 compatible = "rockchip,rk3288- 472 reg = <0x110b0030 0x10>; 473 #pwm-cells = <2>; 474 clocks = <&cru PCLK_PWM>; 475 pinctrl-names = "default"; 476 pinctrl-0 = <&pwm3_pin>; 477 status = "disabled"; 478 }; 479 480 timer: timer@110c0000 { 481 compatible = "rockchip,rk3228- 482 reg = <0x110c0000 0x20>; 483 interrupts = <GIC_SPI 43 IRQ_T 484 clocks = <&cru PCLK_TIMER>, <& 485 clock-names = "pclk", "timer"; 486 }; 487 488 cru: clock-controller@110e0000 { 489 compatible = "rockchip,rk3228- 490 reg = <0x110e0000 0x1000>; 491 clocks = <&xin24m>; 492 clock-names = "xin24m"; 493 rockchip,grf = <&grf>; 494 #clock-cells = <1>; 495 #reset-cells = <1>; 496 assigned-clocks = 497 <&cru PLL_GPLL>, <&cru 498 <&cru PLL_CPLL>, <&cru 499 <&cru HCLK_PERI>, <&cr 500 <&cru ACLK_CPU>, <&cru 501 <&cru PCLK_CPU>; 502 assigned-clock-rates = 503 <594000000>, <81600000 504 <500000000>, <15000000 505 <150000000>, <75000000 506 <150000000>, <15000000 507 <75000000>; 508 }; 509 510 pdma: dma-controller@110f0000 { 511 compatible = "arm,pl330", "arm 512 reg = <0x110f0000 0x4000>; 513 interrupts = <GIC_SPI 0 IRQ_TY 514 <GIC_SPI 1 IRQ_TY 515 #dma-cells = <1>; 516 arm,pl330-periph-burst; 517 clocks = <&cru ACLK_DMAC>; 518 clock-names = "apb_pclk"; 519 }; 520 521 thermal-zones { 522 cpu_thermal: cpu-thermal { 523 polling-delay-passive 524 polling-delay = <5000> 525 526 thermal-sensors = <&ts 527 528 trips { 529 cpu_alert0: cp 530 temper 531 hyster 532 type = 533 }; 534 cpu_alert1: cp 535 temper 536 hyster 537 type = 538 }; 539 cpu_crit: cpu_ 540 temper 541 hyster 542 type = 543 }; 544 }; 545 546 cooling-maps { 547 map0 { 548 trip = 549 coolin 550 551 552 553 554 }; 555 map1 { 556 trip = 557 coolin 558 559 560 561 562 }; 563 }; 564 }; 565 }; 566 567 tsadc: tsadc@11150000 { 568 compatible = "rockchip,rk3228- 569 reg = <0x11150000 0x100>; 570 interrupts = <GIC_SPI 58 IRQ_T 571 clocks = <&cru SCLK_TSADC>, <& 572 clock-names = "tsadc", "apb_pc 573 assigned-clocks = <&cru SCLK_T 574 assigned-clock-rates = <32768> 575 resets = <&cru SRST_TSADC>; 576 reset-names = "tsadc-apb"; 577 pinctrl-names = "init", "defau 578 pinctrl-0 = <&otp_pin>; 579 pinctrl-1 = <&otp_out>; 580 pinctrl-2 = <&otp_pin>; 581 #thermal-sensor-cells = <1>; 582 rockchip,hw-tshut-temp = <9500 583 status = "disabled"; 584 }; 585 586 hdmi_phy: hdmi-phy@12030000 { 587 compatible = "rockchip,rk3228- 588 reg = <0x12030000 0x10000>; 589 clocks = <&cru PCLK_HDMI_PHY>, 590 clock-names = "sysclk", "refoc 591 #clock-cells = <0>; 592 clock-output-names = "hdmiphy_ 593 #phy-cells = <0>; 594 status = "disabled"; 595 }; 596 597 gpu: gpu@20000000 { 598 compatible = "rockchip,rk3228- 599 reg = <0x20000000 0x10000>; 600 interrupts = <GIC_SPI 6 IRQ_TY 601 <GIC_SPI 5 IRQ_TY 602 <GIC_SPI 4 IRQ_TY 603 <GIC_SPI 5 IRQ_TY 604 <GIC_SPI 4 IRQ_TY 605 <GIC_SPI 5 IRQ_TY 606 interrupt-names = "gp", 607 "gpmmu", 608 "pp0", 609 "ppmmu0", 610 "pp1", 611 "ppmmu1"; 612 clocks = <&cru ACLK_GPU>, <&cr 613 clock-names = "bus", "core"; 614 power-domains = <&power RK3228 615 resets = <&cru SRST_GPU_A>; 616 status = "disabled"; 617 }; 618 619 vpu: video-codec@20020000 { 620 compatible = "rockchip,rk3228- 621 reg = <0x20020000 0x800>; 622 interrupts = <GIC_SPI 11 IRQ_T 623 <GIC_SPI 9 IRQ_T 624 interrupt-names = "vepu", "vdp 625 clocks = <&cru ACLK_VPU>, <&cr 626 clock-names = "aclk", "hclk"; 627 iommus = <&vpu_mmu>; 628 power-domains = <&power RK3228 629 }; 630 631 vpu_mmu: iommu@20020800 { 632 compatible = "rockchip,iommu"; 633 reg = <0x20020800 0x100>; 634 interrupts = <GIC_SPI 10 IRQ_T 635 clocks = <&cru ACLK_VPU>, <&cr 636 clock-names = "aclk", "iface"; 637 power-domains = <&power RK3228 638 #iommu-cells = <0>; 639 }; 640 641 vdec: video-codec@20030000 { 642 compatible = "rockchip,rk3228- 643 reg = <0x20030000 0x480>; 644 interrupts = <GIC_SPI 7 IRQ_TY 645 clocks = <&cru ACLK_RKVDEC>, < 646 <&cru SCLK_VDEC_CABAC 647 clock-names = "axi", "ahb", "c 648 assigned-clocks = <&cru SCLK_V 649 assigned-clock-rates = <300000 650 iommus = <&vdec_mmu>; 651 power-domains = <&power RK3228 652 }; 653 654 vdec_mmu: iommu@20030480 { 655 compatible = "rockchip,iommu"; 656 reg = <0x20030480 0x40>, <0x20 657 interrupts = <GIC_SPI 8 IRQ_TY 658 clocks = <&cru ACLK_RKVDEC>, < 659 clock-names = "aclk", "iface"; 660 power-domains = <&power RK3228 661 #iommu-cells = <0>; 662 }; 663 664 vop: vop@20050000 { 665 compatible = "rockchip,rk3228- 666 reg = <0x20050000 0x1ffc>; 667 interrupts = <GIC_SPI 32 IRQ_T 668 clocks = <&cru ACLK_VOP>, <&cr 669 clock-names = "aclk_vop", "dcl 670 resets = <&cru SRST_VOP_A>, <& 671 reset-names = "axi", "ahb", "d 672 iommus = <&vop_mmu>; 673 power-domains = <&power RK3228 674 status = "disabled"; 675 676 vop_out: port { 677 #address-cells = <1>; 678 #size-cells = <0>; 679 680 vop_out_hdmi: endpoint 681 reg = <0>; 682 remote-endpoin 683 }; 684 }; 685 }; 686 687 vop_mmu: iommu@20053f00 { 688 compatible = "rockchip,iommu"; 689 reg = <0x20053f00 0x100>; 690 interrupts = <GIC_SPI 32 IRQ_T 691 clocks = <&cru ACLK_VOP>, <&cr 692 clock-names = "aclk", "iface"; 693 power-domains = <&power RK3228 694 #iommu-cells = <0>; 695 status = "disabled"; 696 }; 697 698 rga: rga@20060000 { 699 compatible = "rockchip,rk3228- 700 reg = <0x20060000 0x1000>; 701 interrupts = <GIC_SPI 33 IRQ_T 702 clocks = <&cru ACLK_RGA>, <&cr 703 clock-names = "aclk", "hclk", 704 power-domains = <&power RK3228 705 resets = <&cru SRST_RGA>, <&cr 706 reset-names = "core", "axi", " 707 }; 708 709 iep_mmu: iommu@20070800 { 710 compatible = "rockchip,iommu"; 711 reg = <0x20070800 0x100>; 712 interrupts = <GIC_SPI 31 IRQ_T 713 clocks = <&cru ACLK_IEP>, <&cr 714 clock-names = "aclk", "iface"; 715 power-domains = <&power RK3228 716 #iommu-cells = <0>; 717 status = "disabled"; 718 }; 719 720 hdmi: hdmi@200a0000 { 721 compatible = "rockchip,rk3228- 722 reg = <0x200a0000 0x20000>; 723 reg-io-width = <4>; 724 interrupts = <GIC_SPI 35 IRQ_T 725 assigned-clocks = <&cru SCLK_H 726 assigned-clock-parents = <&hdm 727 clocks = <&cru PCLK_HDMI_CTRL> 728 clock-names = "iahb", "isfr", 729 pinctrl-names = "default"; 730 pinctrl-0 = <&hdmii2c_xfer &hd 731 resets = <&cru SRST_HDMI_P>; 732 reset-names = "hdmi"; 733 phys = <&hdmi_phy>; 734 phy-names = "hdmi"; 735 rockchip,grf = <&grf>; 736 status = "disabled"; 737 738 ports { 739 #address-cells = <1>; 740 #size-cells = <0>; 741 742 hdmi_in: port@0 { 743 reg = <0>; 744 745 hdmi_in_vop: e 746 remote 747 }; 748 }; 749 750 hdmi_out: port@1 { 751 reg = <1>; 752 }; 753 }; 754 }; 755 756 sdmmc: mmc@30000000 { 757 compatible = "rockchip,rk3228- 758 reg = <0x30000000 0x4000>; 759 interrupts = <GIC_SPI 12 IRQ_T 760 clocks = <&cru HCLK_SDMMC>, <& 761 <&cru SCLK_SDMMC_DRV> 762 clock-names = "biu", "ciu", "c 763 fifo-depth = <0x100>; 764 pinctrl-names = "default"; 765 pinctrl-0 = <&sdmmc_clk &sdmmc 766 status = "disabled"; 767 }; 768 769 sdio: mmc@30010000 { 770 compatible = "rockchip,rk3228- 771 reg = <0x30010000 0x4000>; 772 interrupts = <GIC_SPI 13 IRQ_T 773 clocks = <&cru HCLK_SDIO>, <&c 774 <&cru SCLK_SDIO_DRV>, 775 clock-names = "biu", "ciu", "c 776 fifo-depth = <0x100>; 777 pinctrl-names = "default"; 778 pinctrl-0 = <&sdio_clk &sdio_c 779 status = "disabled"; 780 }; 781 782 emmc: mmc@30020000 { 783 compatible = "rockchip,rk3228- 784 reg = <0x30020000 0x4000>; 785 interrupts = <GIC_SPI 14 IRQ_T 786 clock-frequency = <37500000>; 787 max-frequency = <37500000>; 788 clocks = <&cru HCLK_EMMC>, <&c 789 <&cru SCLK_EMMC_DRV>, 790 clock-names = "biu", "ciu", "c 791 bus-width = <8>; 792 rockchip,default-sample-phase 793 fifo-depth = <0x100>; 794 pinctrl-names = "default"; 795 pinctrl-0 = <&emmc_clk &emmc_c 796 resets = <&cru SRST_EMMC>; 797 reset-names = "reset"; 798 status = "disabled"; 799 }; 800 801 usb_otg: usb@30040000 { 802 compatible = "rockchip,rk3228- 803 "snps,dwc2"; 804 reg = <0x30040000 0x40000>; 805 interrupts = <GIC_SPI 23 IRQ_T 806 clocks = <&cru HCLK_OTG>; 807 clock-names = "otg"; 808 dr_mode = "otg"; 809 g-np-tx-fifo-size = <16>; 810 g-rx-fifo-size = <280>; 811 g-tx-fifo-size = <256 128 128 812 phys = <&u2phy0_otg>; 813 phy-names = "usb2-phy"; 814 status = "disabled"; 815 }; 816 817 usb_host0_ehci: usb@30080000 { 818 compatible = "generic-ehci"; 819 reg = <0x30080000 0x20000>; 820 interrupts = <GIC_SPI 16 IRQ_T 821 clocks = <&cru HCLK_HOST0>, <& 822 phys = <&u2phy0_host>; 823 phy-names = "usb"; 824 status = "disabled"; 825 }; 826 827 usb_host0_ohci: usb@300a0000 { 828 compatible = "generic-ohci"; 829 reg = <0x300a0000 0x20000>; 830 interrupts = <GIC_SPI 17 IRQ_T 831 clocks = <&cru HCLK_HOST0>, <& 832 phys = <&u2phy0_host>; 833 phy-names = "usb"; 834 status = "disabled"; 835 }; 836 837 usb_host1_ehci: usb@300c0000 { 838 compatible = "generic-ehci"; 839 reg = <0x300c0000 0x20000>; 840 interrupts = <GIC_SPI 19 IRQ_T 841 clocks = <&cru HCLK_HOST1>, <& 842 phys = <&u2phy1_otg>; 843 phy-names = "usb"; 844 status = "disabled"; 845 }; 846 847 usb_host1_ohci: usb@300e0000 { 848 compatible = "generic-ohci"; 849 reg = <0x300e0000 0x20000>; 850 interrupts = <GIC_SPI 20 IRQ_T 851 clocks = <&cru HCLK_HOST1>, <& 852 phys = <&u2phy1_otg>; 853 phy-names = "usb"; 854 status = "disabled"; 855 }; 856 857 usb_host2_ehci: usb@30100000 { 858 compatible = "generic-ehci"; 859 reg = <0x30100000 0x20000>; 860 interrupts = <GIC_SPI 66 IRQ_T 861 clocks = <&cru HCLK_HOST2>, <& 862 phys = <&u2phy1_host>; 863 phy-names = "usb"; 864 status = "disabled"; 865 }; 866 867 usb_host2_ohci: usb@30120000 { 868 compatible = "generic-ohci"; 869 reg = <0x30120000 0x20000>; 870 interrupts = <GIC_SPI 67 IRQ_T 871 clocks = <&cru HCLK_HOST2>, <& 872 phys = <&u2phy1_host>; 873 phy-names = "usb"; 874 status = "disabled"; 875 }; 876 877 gmac: ethernet@30200000 { 878 compatible = "rockchip,rk3228- 879 reg = <0x30200000 0x10000>; 880 interrupts = <GIC_SPI 24 IRQ_T 881 interrupt-names = "macirq"; 882 clocks = <&cru SCLK_MAC>, <&cr 883 <&cru SCLK_MAC_TX>, <& 884 <&cru SCLK_MAC_REFOUT> 885 <&cru PCLK_GMAC>; 886 clock-names = "stmmaceth", "ma 887 "mac_clk_tx", "clk_mac 888 "clk_mac_refout", "acl 889 "pclk_mac"; 890 resets = <&cru SRST_GMAC>; 891 reset-names = "stmmaceth"; 892 rockchip,grf = <&grf>; 893 status = "disabled"; 894 }; 895 896 qos_iep: qos@31030080 { 897 compatible = "rockchip,rk3228- 898 reg = <0x31030080 0x20>; 899 }; 900 901 qos_rga_w: qos@31030100 { 902 compatible = "rockchip,rk3228- 903 reg = <0x31030100 0x20>; 904 }; 905 906 qos_hdcp: qos@31030180 { 907 compatible = "rockchip,rk3228- 908 reg = <0x31030180 0x20>; 909 }; 910 911 qos_rga_r: qos@31030200 { 912 compatible = "rockchip,rk3228- 913 reg = <0x31030200 0x20>; 914 }; 915 916 qos_vpu: qos@31040000 { 917 compatible = "rockchip,rk3228- 918 reg = <0x31040000 0x20>; 919 }; 920 921 qos_gpu: qos@31050000 { 922 compatible = "rockchip,rk3228- 923 reg = <0x31050000 0x20>; 924 }; 925 926 qos_vop: qos@31060000 { 927 compatible = "rockchip,rk3228- 928 reg = <0x31060000 0x20>; 929 }; 930 931 qos_rkvdec_r: qos@31070000 { 932 compatible = "rockchip,rk3228- 933 reg = <0x31070000 0x20>; 934 }; 935 936 qos_rkvdec_w: qos@31070080 { 937 compatible = "rockchip,rk3228- 938 reg = <0x31070080 0x20>; 939 }; 940 941 gic: interrupt-controller@32010000 { 942 compatible = "arm,gic-400"; 943 interrupt-controller; 944 #interrupt-cells = <3>; 945 #address-cells = <0>; 946 947 reg = <0x32011000 0x1000>, 948 <0x32012000 0x2000>, 949 <0x32014000 0x2000>, 950 <0x32016000 0x2000>; 951 interrupts = <GIC_PPI 9 (GIC_C 952 }; 953 954 pinctrl: pinctrl { 955 compatible = "rockchip,rk3228- 956 rockchip,grf = <&grf>; 957 #address-cells = <1>; 958 #size-cells = <1>; 959 ranges; 960 961 gpio0: gpio@11110000 { 962 compatible = "rockchip 963 reg = <0x11110000 0x10 964 interrupts = <GIC_SPI 965 clocks = <&cru PCLK_GP 966 967 gpio-controller; 968 #gpio-cells = <2>; 969 970 interrupt-controller; 971 #interrupt-cells = <2> 972 }; 973 974 gpio1: gpio@11120000 { 975 compatible = "rockchip 976 reg = <0x11120000 0x10 977 interrupts = <GIC_SPI 978 clocks = <&cru PCLK_GP 979 980 gpio-controller; 981 #gpio-cells = <2>; 982 983 interrupt-controller; 984 #interrupt-cells = <2> 985 }; 986 987 gpio2: gpio@11130000 { 988 compatible = "rockchip 989 reg = <0x11130000 0x10 990 interrupts = <GIC_SPI 991 clocks = <&cru PCLK_GP 992 993 gpio-controller; 994 #gpio-cells = <2>; 995 996 interrupt-controller; 997 #interrupt-cells = <2> 998 }; 999 1000 gpio3: gpio@11140000 { 1001 compatible = "rockchi 1002 reg = <0x11140000 0x1 1003 interrupts = <GIC_SPI 1004 clocks = <&cru PCLK_G 1005 1006 gpio-controller; 1007 #gpio-cells = <2>; 1008 1009 interrupt-controller; 1010 #interrupt-cells = <2 1011 }; 1012 1013 pcfg_pull_up: pcfg-pull-up { 1014 bias-pull-up; 1015 }; 1016 1017 pcfg_pull_down: pcfg-pull-dow 1018 bias-pull-down; 1019 }; 1020 1021 pcfg_pull_none: pcfg-pull-non 1022 bias-disable; 1023 }; 1024 1025 pcfg_pull_none_drv_12ma: pcfg 1026 drive-strength = <12> 1027 }; 1028 1029 sdmmc { 1030 sdmmc_clk: sdmmc-clk 1031 rockchip,pins 1032 }; 1033 1034 sdmmc_cmd: sdmmc-cmd 1035 rockchip,pins 1036 }; 1037 1038 sdmmc_bus4: sdmmc-bus 1039 rockchip,pins 1040 1041 1042 1043 }; 1044 }; 1045 1046 sdio { 1047 sdio_clk: sdio-clk { 1048 rockchip,pins 1049 }; 1050 1051 sdio_cmd: sdio-cmd { 1052 rockchip,pins 1053 }; 1054 1055 sdio_bus4: sdio-bus4 1056 rockchip,pins 1057 1058 1059 1060 }; 1061 }; 1062 1063 emmc { 1064 emmc_clk: emmc-clk { 1065 rockchip,pins 1066 }; 1067 1068 emmc_cmd: emmc-cmd { 1069 rockchip,pins 1070 }; 1071 1072 emmc_bus8: emmc-bus8 1073 rockchip,pins 1074 1075 1076 1077 1078 1079 1080 1081 }; 1082 }; 1083 1084 gmac { 1085 rgmii_pins: rgmii-pin 1086 rockchip,pins 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 }; 1102 1103 rmii_pins: rmii-pins 1104 rockchip,pins 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 }; 1115 1116 phy_pins: phy-pins { 1117 rockchip,pins 1118 1119 }; 1120 }; 1121 1122 hdmi { 1123 hdmi_hpd: hdmi-hpd { 1124 rockchip,pins 1125 }; 1126 1127 hdmii2c_xfer: hdmii2c 1128 rockchip,pins 1129 1130 }; 1131 1132 hdmi_cec: hdmi-cec { 1133 rockchip,pins 1134 }; 1135 }; 1136 1137 i2c0 { 1138 i2c0_xfer: i2c0-xfer 1139 rockchip,pins 1140 1141 }; 1142 }; 1143 1144 i2c1 { 1145 i2c1_xfer: i2c1-xfer 1146 rockchip,pins 1147 1148 }; 1149 }; 1150 1151 i2c2 { 1152 i2c2_xfer: i2c2-xfer 1153 rockchip,pins 1154 1155 }; 1156 }; 1157 1158 i2c3 { 1159 i2c3_xfer: i2c3-xfer 1160 rockchip,pins 1161 1162 }; 1163 }; 1164 1165 spi0 { 1166 spi0_clk: spi0-clk { 1167 rockchip,pins 1168 }; 1169 spi0_cs0: spi0-cs0 { 1170 rockchip,pins 1171 }; 1172 spi0_tx: spi0-tx { 1173 rockchip,pins 1174 }; 1175 spi0_rx: spi0-rx { 1176 rockchip,pins 1177 }; 1178 spi0_cs1: spi0-cs1 { 1179 rockchip,pins 1180 }; 1181 }; 1182 1183 spi1 { 1184 spi1_clk: spi1-clk { 1185 rockchip,pins 1186 }; 1187 spi1_cs0: spi1-cs0 { 1188 rockchip,pins 1189 }; 1190 spi1_rx: spi1-rx { 1191 rockchip,pins 1192 }; 1193 spi1_tx: spi1-tx { 1194 rockchip,pins 1195 }; 1196 spi1_cs1: spi1-cs1 { 1197 rockchip,pins 1198 }; 1199 }; 1200 1201 i2s1 { 1202 i2s1_bus: i2s1-bus { 1203 rockchip,pins 1204 1205 1206 1207 1208 1209 1210 1211 1212 }; 1213 }; 1214 1215 pwm0 { 1216 pwm0_pin: pwm0-pin { 1217 rockchip,pins 1218 }; 1219 }; 1220 1221 pwm1 { 1222 pwm1_pin: pwm1-pin { 1223 rockchip,pins 1224 }; 1225 }; 1226 1227 pwm2 { 1228 pwm2_pin: pwm2-pin { 1229 rockchip,pins 1230 }; 1231 }; 1232 1233 pwm3 { 1234 pwm3_pin: pwm3-pin { 1235 rockchip,pins 1236 }; 1237 }; 1238 1239 spdif { 1240 spdif_tx: spdif-tx { 1241 rockchip,pins 1242 }; 1243 }; 1244 1245 tsadc { 1246 otp_pin: otp-pin { 1247 rockchip,pins 1248 }; 1249 1250 otp_out: otp-out { 1251 rockchip,pins 1252 }; 1253 }; 1254 1255 uart0 { 1256 uart0_xfer: uart0-xfe 1257 rockchip,pins 1258 1259 }; 1260 1261 uart0_cts: uart0-cts 1262 rockchip,pins 1263 }; 1264 1265 uart0_rts: uart0-rts 1266 rockchip,pins 1267 }; 1268 }; 1269 1270 uart1 { 1271 uart1_xfer: uart1-xfe 1272 rockchip,pins 1273 1274 }; 1275 1276 uart1_cts: uart1-cts 1277 rockchip,pins 1278 }; 1279 1280 uart1_rts: uart1-rts 1281 rockchip,pins 1282 }; 1283 }; 1284 1285 uart2 { 1286 uart2_xfer: uart2-xfe 1287 rockchip,pins 1288 1289 }; 1290 1291 uart21_xfer: uart21-x 1292 rockchip,pins 1293 1294 }; 1295 1296 uart2_cts: uart2-cts 1297 rockchip,pins 1298 }; 1299 1300 uart2_rts: uart2-rts 1301 rockchip,pins 1302 }; 1303 }; 1304 }; 1305 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.