1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2// Copyright (C) 2016 ARM Ltd. 3// based on the Allwinner H3 dtsi: 4// Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com> 5 6#include <dt-bindings/clock/sun50i-a64-ccu.h> 7#include <dt-bindings/clock/sun8i-de2.h> 8#include <dt-bindings/clock/sun8i-r-ccu.h> 9#include <dt-bindings/interrupt-controller/arm-gic.h> 10#include <dt-bindings/reset/sun50i-a64-ccu.h> 11#include <dt-bindings/reset/sun8i-de2.h> 12#include <dt-bindings/reset/sun8i-r-ccu.h> 13#include <dt-bindings/thermal/thermal.h> 14 15/ { 16 interrupt-parent = <&gic>; 17 #address-cells = <1>; 18 #size-cells = <1>; 19 20 chosen { 21 #address-cells = <1>; 22 #size-cells = <1>; 23 ranges; 24 25 simplefb_lcd: framebuffer-lcd { 26 compatible = "allwinner,simple-framebuffer", 27 "simple-framebuffer"; 28 allwinner,pipeline = "mixer0-lcd0"; 29 clocks = <&ccu CLK_TCON0>, 30 <&display_clocks CLK_MIXER0>; 31 status = "disabled"; 32 }; 33 34 simplefb_hdmi: framebuffer-hdmi { 35 compatible = "allwinner,simple-framebuffer", 36 "simple-framebuffer"; 37 allwinner,pipeline = "mixer1-lcd1-hdmi"; 38 clocks = <&display_clocks CLK_MIXER1>, 39 <&ccu CLK_TCON1>, <&ccu CLK_HDMI>; 40 status = "disabled"; 41 }; 42 }; 43 44 cpus { 45 #address-cells = <1>; 46 #size-cells = <0>; 47 48 cpu0: cpu@0 { 49 compatible = "arm,cortex-a53"; 50 device_type = "cpu"; 51 reg = <0>; 52 enable-method = "psci"; 53 next-level-cache = <&L2>; 54 clocks = <&ccu CLK_CPUX>; 55 clock-names = "cpu"; 56 #cooling-cells = <2>; 57 }; 58 59 cpu1: cpu@1 { 60 compatible = "arm,cortex-a53"; 61 device_type = "cpu"; 62 reg = <1>; 63 enable-method = "psci"; 64 next-level-cache = <&L2>; 65 clocks = <&ccu CLK_CPUX>; 66 clock-names = "cpu"; 67 #cooling-cells = <2>; 68 }; 69 70 cpu2: cpu@2 { 71 compatible = "arm,cortex-a53"; 72 device_type = "cpu"; 73 reg = <2>; 74 enable-method = "psci"; 75 next-level-cache = <&L2>; 76 clocks = <&ccu CLK_CPUX>; 77 clock-names = "cpu"; 78 #cooling-cells = <2>; 79 }; 80 81 cpu3: cpu@3 { 82 compatible = "arm,cortex-a53"; 83 device_type = "cpu"; 84 reg = <3>; 85 enable-method = "psci"; 86 next-level-cache = <&L2>; 87 clocks = <&ccu CLK_CPUX>; 88 clock-names = "cpu"; 89 #cooling-cells = <2>; 90 }; 91 92 L2: l2-cache { 93 compatible = "cache"; 94 cache-level = <2>; 95 }; 96 }; 97 98 de: display-engine { 99 compatible = "allwinner,sun50i-a64-display-engine"; 100 allwinner,pipelines = <&mixer0>, 101 <&mixer1>; 102 status = "disabled"; 103 }; 104 105 osc24M: osc24M_clk { 106 #clock-cells = <0>; 107 compatible = "fixed-clock"; 108 clock-frequency = <24000000>; 109 clock-output-names = "osc24M"; 110 }; 111 112 osc32k: osc32k_clk { 113 #clock-cells = <0>; 114 compatible = "fixed-clock"; 115 clock-frequency = <32768>; 116 clock-output-names = "ext-osc32k"; 117 }; 118 119 pmu { 120 compatible = "arm,cortex-a53-pmu"; 121 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, 122 <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, 123 <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, 124 <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; 125 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 126 }; 127 128 psci { 129 compatible = "arm,psci-0.2"; 130 method = "smc"; 131 }; 132 133 sound: sound { 134 compatible = "simple-audio-card"; 135 simple-audio-card,name = "sun50i-a64-audio"; 136 simple-audio-card,format = "i2s"; 137 simple-audio-card,frame-master = <&cpudai>; 138 simple-audio-card,bitclock-master = <&cpudai>; 139 simple-audio-card,mclk-fs = <128>; 140 simple-audio-card,aux-devs = <&codec_analog>; 141 simple-audio-card,routing = 142 "Left DAC", "DACL", 143 "Right DAC", "DACR", 144 "ADCL", "Left ADC", 145 "ADCR", "Right ADC"; 146 status = "disabled"; 147 148 cpudai: simple-audio-card,cpu { 149 sound-dai = <&dai>; 150 }; 151 152 link_codec: simple-audio-card,codec { 153 sound-dai = <&codec>; 154 }; 155 }; 156 157 timer { 158 compatible = "arm,armv8-timer"; 159 allwinner,erratum-unknown1; 160 arm,no-tick-in-suspend; 161 interrupts = <GIC_PPI 13 162 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 163 <GIC_PPI 14 164 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 165 <GIC_PPI 11 166 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 167 <GIC_PPI 10 168 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 169 }; 170 171 thermal-zones { 172 cpu_thermal: cpu0-thermal { 173 /* milliseconds */ 174 polling-delay-passive = <0>; 175 polling-delay = <0>; 176 thermal-sensors = <&ths 0>; 177 178 cooling-maps { 179 map0 { 180 trip = <&cpu_alert0>; 181 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 182 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 183 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 184 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 185 }; 186 map1 { 187 trip = <&cpu_alert1>; 188 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 189 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 190 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 191 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 192 }; 193 }; 194 195 trips { 196 cpu_alert0: cpu_alert0 { 197 /* milliCelsius */ 198 temperature = <75000>; 199 hysteresis = <2000>; 200 type = "passive"; 201 }; 202 203 cpu_alert1: cpu_alert1 { 204 /* milliCelsius */ 205 temperature = <90000>; 206 hysteresis = <2000>; 207 type = "hot"; 208 }; 209 210 cpu_crit: cpu_crit { 211 /* milliCelsius */ 212 temperature = <110000>; 213 hysteresis = <2000>; 214 type = "critical"; 215 }; 216 }; 217 }; 218 219 gpu0_thermal: gpu0-thermal { 220 /* milliseconds */ 221 polling-delay-passive = <0>; 222 polling-delay = <0>; 223 thermal-sensors = <&ths 1>; 224 }; 225 226 gpu1_thermal: gpu1-thermal { 227 /* milliseconds */ 228 polling-delay-passive = <0>; 229 polling-delay = <0>; 230 thermal-sensors = <&ths 2>; 231 }; 232 }; 233 234 soc { 235 compatible = "simple-bus"; 236 #address-cells = <1>; 237 #size-cells = <1>; 238 ranges; 239 240 bus@1000000 { 241 compatible = "allwinner,sun50i-a64-de2"; 242 reg = <0x1000000 0x400000>; 243 allwinner,sram = <&de2_sram 1>; 244 #address-cells = <1>; 245 #size-cells = <1>; 246 ranges = <0 0x1000000 0x400000>; 247 248 display_clocks: clock@0 { 249 compatible = "allwinner,sun50i-a64-de2-clk"; 250 reg = <0x0 0x10000>; 251 clocks = <&ccu CLK_BUS_DE>, 252 <&ccu CLK_DE>; 253 clock-names = "bus", 254 "mod"; 255 resets = <&ccu RST_BUS_DE>; 256 #clock-cells = <1>; 257 #reset-cells = <1>; 258 }; 259 260 rotate: rotate@20000 { 261 compatible = "allwinner,sun50i-a64-de2-rotate", 262 "allwinner,sun8i-a83t-de2-rotate"; 263 reg = <0x20000 0x10000>; 264 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; 265 clocks = <&display_clocks CLK_BUS_ROT>, 266 <&display_clocks CLK_ROT>; 267 clock-names = "bus", 268 "mod"; 269 resets = <&display_clocks RST_ROT>; 270 }; 271 272 mixer0: mixer@100000 { 273 compatible = "allwinner,sun50i-a64-de2-mixer-0"; 274 reg = <0x100000 0x100000>; 275 clocks = <&display_clocks CLK_BUS_MIXER0>, 276 <&display_clocks CLK_MIXER0>; 277 clock-names = "bus", 278 "mod"; 279 resets = <&display_clocks RST_MIXER0>; 280 281 ports { 282 #address-cells = <1>; 283 #size-cells = <0>; 284 285 mixer0_out: port@1 { 286 #address-cells = <1>; 287 #size-cells = <0>; 288 reg = <1>; 289 290 mixer0_out_tcon0: endpoint@0 { 291 reg = <0>; 292 remote-endpoint = <&tcon0_in_mixer0>; 293 }; 294 295 mixer0_out_tcon1: endpoint@1 { 296 reg = <1>; 297 remote-endpoint = <&tcon1_in_mixer0>; 298 }; 299 }; 300 }; 301 }; 302 303 mixer1: mixer@200000 { 304 compatible = "allwinner,sun50i-a64-de2-mixer-1"; 305 reg = <0x200000 0x100000>; 306 clocks = <&display_clocks CLK_BUS_MIXER1>, 307 <&display_clocks CLK_MIXER1>; 308 clock-names = "bus", 309 "mod"; 310 resets = <&display_clocks RST_MIXER1>; 311 312 ports { 313 #address-cells = <1>; 314 #size-cells = <0>; 315 316 mixer1_out: port@1 { 317 #address-cells = <1>; 318 #size-cells = <0>; 319 reg = <1>; 320 321 mixer1_out_tcon0: endpoint@0 { 322 reg = <0>; 323 remote-endpoint = <&tcon0_in_mixer1>; 324 }; 325 326 mixer1_out_tcon1: endpoint@1 { 327 reg = <1>; 328 remote-endpoint = <&tcon1_in_mixer1>; 329 }; 330 }; 331 }; 332 }; 333 }; 334 335 syscon: syscon@1c00000 { 336 compatible = "allwinner,sun50i-a64-system-control"; 337 reg = <0x01c00000 0x1000>; 338 #address-cells = <1>; 339 #size-cells = <1>; 340 ranges; 341 342 sram_c: sram@18000 { 343 compatible = "mmio-sram"; 344 reg = <0x00018000 0x28000>; 345 #address-cells = <1>; 346 #size-cells = <1>; 347 ranges = <0 0x00018000 0x28000>; 348 349 de2_sram: sram-section@0 { 350 compatible = "allwinner,sun50i-a64-sram-c"; 351 reg = <0x0000 0x28000>; 352 }; 353 }; 354 355 sram_c1: sram@1d00000 { 356 compatible = "mmio-sram"; 357 reg = <0x01d00000 0x40000>; 358 #address-cells = <1>; 359 #size-cells = <1>; 360 ranges = <0 0x01d00000 0x40000>; 361 362 ve_sram: sram-section@0 { 363 compatible = "allwinner,sun50i-a64-sram-c1", 364 "allwinner,sun4i-a10-sram-c1"; 365 reg = <0x000000 0x40000>; 366 }; 367 }; 368 }; 369 370 dma: dma-controller@1c02000 { 371 compatible = "allwinner,sun50i-a64-dma"; 372 reg = <0x01c02000 0x1000>; 373 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; 374 clocks = <&ccu CLK_BUS_DMA>; 375 dma-channels = <8>; 376 dma-requests = <27>; 377 resets = <&ccu RST_BUS_DMA>; 378 #dma-cells = <1>; 379 }; 380 381 tcon0: lcd-controller@1c0c000 { 382 compatible = "allwinner,sun50i-a64-tcon-lcd", 383 "allwinner,sun8i-a83t-tcon-lcd"; 384 reg = <0x01c0c000 0x1000>; 385 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; 386 clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>; 387 clock-names = "ahb", "tcon-ch0"; 388 clock-output-names = "tcon-pixel-clock"; 389 #clock-cells = <0>; 390 resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>; 391 reset-names = "lcd", "lvds"; 392 393 ports { 394 #address-cells = <1>; 395 #size-cells = <0>; 396 397 tcon0_in: port@0 { 398 #address-cells = <1>; 399 #size-cells = <0>; 400 reg = <0>; 401 402 tcon0_in_mixer0: endpoint@0 { 403 reg = <0>; 404 remote-endpoint = <&mixer0_out_tcon0>; 405 }; 406 407 tcon0_in_mixer1: endpoint@1 { 408 reg = <1>; 409 remote-endpoint = <&mixer1_out_tcon0>; 410 }; 411 }; 412 413 tcon0_out: port@1 { 414 #address-cells = <1>; 415 #size-cells = <0>; 416 reg = <1>; 417 418 tcon0_out_dsi: endpoint@1 { 419 reg = <1>; 420 remote-endpoint = <&dsi_in_tcon0>; 421 allwinner,tcon-channel = <1>; 422 }; 423 }; 424 }; 425 }; 426 427 tcon1: lcd-controller@1c0d000 { 428 compatible = "allwinner,sun50i-a64-tcon-tv", 429 "allwinner,sun8i-a83t-tcon-tv"; 430 reg = <0x01c0d000 0x1000>; 431 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; 432 clocks = <&ccu CLK_BUS_TCON1>, <&ccu CLK_TCON1>; 433 clock-names = "ahb", "tcon-ch1"; 434 resets = <&ccu RST_BUS_TCON1>; 435 reset-names = "lcd"; 436 437 ports { 438 #address-cells = <1>; 439 #size-cells = <0>; 440 441 tcon1_in: port@0 { 442 #address-cells = <1>; 443 #size-cells = <0>; 444 reg = <0>; 445 446 tcon1_in_mixer0: endpoint@0 { 447 reg = <0>; 448 remote-endpoint = <&mixer0_out_tcon1>; 449 }; 450 451 tcon1_in_mixer1: endpoint@1 { 452 reg = <1>; 453 remote-endpoint = <&mixer1_out_tcon1>; 454 }; 455 }; 456 457 tcon1_out: port@1 { 458 #address-cells = <1>; 459 #size-cells = <0>; 460 reg = <1>; 461 462 tcon1_out_hdmi: endpoint@1 { 463 reg = <1>; 464 remote-endpoint = <&hdmi_in_tcon1>; 465 }; 466 }; 467 }; 468 }; 469 470 video-codec@1c0e000 { 471 compatible = "allwinner,sun50i-a64-video-engine"; 472 reg = <0x01c0e000 0x1000>; 473 clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, 474 <&ccu CLK_DRAM_VE>; 475 clock-names = "ahb", "mod", "ram"; 476 resets = <&ccu RST_BUS_VE>; 477 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; 478 allwinner,sram = <&ve_sram 1>; 479 }; 480 481 mmc0: mmc@1c0f000 { 482 compatible = "allwinner,sun50i-a64-mmc"; 483 reg = <0x01c0f000 0x1000>; 484 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; 485 clock-names = "ahb", "mmc"; 486 resets = <&ccu RST_BUS_MMC0>; 487 reset-names = "ahb"; 488 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; 489 max-frequency = <150000000>; 490 status = "disabled"; 491 #address-cells = <1>; 492 #size-cells = <0>; 493 }; 494 495 mmc1: mmc@1c10000 { 496 compatible = "allwinner,sun50i-a64-mmc"; 497 reg = <0x01c10000 0x1000>; 498 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>; 499 clock-names = "ahb", "mmc"; 500 resets = <&ccu RST_BUS_MMC1>; 501 reset-names = "ahb"; 502 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 503 max-frequency = <150000000>; 504 status = "disabled"; 505 #address-cells = <1>; 506 #size-cells = <0>; 507 }; 508 509 mmc2: mmc@1c11000 { 510 compatible = "allwinner,sun50i-a64-emmc"; 511 reg = <0x01c11000 0x1000>; 512 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>; 513 clock-names = "ahb", "mmc"; 514 resets = <&ccu RST_BUS_MMC2>; 515 reset-names = "ahb"; 516 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 517 max-frequency = <150000000>; 518 status = "disabled"; 519 #address-cells = <1>; 520 #size-cells = <0>; 521 }; 522 523 sid: eeprom@1c14000 { 524 compatible = "allwinner,sun50i-a64-sid"; 525 reg = <0x1c14000 0x400>; 526 #address-cells = <1>; 527 #size-cells = <1>; 528 529 ths_calibration: thermal-sensor-calibration@34 { 530 reg = <0x34 0x8>; 531 }; 532 }; 533 534 crypto: crypto@1c15000 { 535 compatible = "allwinner,sun50i-a64-crypto"; 536 reg = <0x01c15000 0x1000>; 537 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>; 538 clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; 539 clock-names = "bus", "mod"; 540 resets = <&ccu RST_BUS_CE>; 541 }; 542 543 msgbox: mailbox@1c17000 { 544 compatible = "allwinner,sun50i-a64-msgbox", 545 "allwinner,sun6i-a31-msgbox"; 546 reg = <0x01c17000 0x1000>; 547 clocks = <&ccu CLK_BUS_MSGBOX>; 548 resets = <&ccu RST_BUS_MSGBOX>; 549 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; 550 #mbox-cells = <1>; 551 }; 552 553 usb_otg: usb@1c19000 { 554 compatible = "allwinner,sun8i-a33-musb"; 555 reg = <0x01c19000 0x0400>; 556 clocks = <&ccu CLK_BUS_OTG>; 557 resets = <&ccu RST_BUS_OTG>; 558 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; 559 interrupt-names = "mc"; 560 phys = <&usbphy 0>; 561 phy-names = "usb"; 562 extcon = <&usbphy 0>; 563 dr_mode = "otg"; 564 status = "disabled"; 565 }; 566 567 usbphy: phy@1c19400 { 568 compatible = "allwinner,sun50i-a64-usb-phy"; 569 reg = <0x01c19400 0x14>, 570 <0x01c1a800 0x4>, 571 <0x01c1b800 0x4>; 572 reg-names = "phy_ctrl", 573 "pmu0", 574 "pmu1"; 575 clocks = <&ccu CLK_USB_PHY0>, 576 <&ccu CLK_USB_PHY1>; 577 clock-names = "usb0_phy", 578 "usb1_phy"; 579 resets = <&ccu RST_USB_PHY0>, 580 <&ccu RST_USB_PHY1>; 581 reset-names = "usb0_reset", 582 "usb1_reset"; 583 status = "disabled"; 584 #phy-cells = <1>; 585 }; 586 587 ehci0: usb@1c1a000 { 588 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 589 reg = <0x01c1a000 0x100>; 590 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; 591 clocks = <&ccu CLK_BUS_OHCI0>, 592 <&ccu CLK_BUS_EHCI0>, 593 <&ccu CLK_USB_OHCI0>; 594 resets = <&ccu RST_BUS_OHCI0>, 595 <&ccu RST_BUS_EHCI0>; 596 phys = <&usbphy 0>; 597 phy-names = "usb"; 598 status = "disabled"; 599 }; 600 601 ohci0: usb@1c1a400 { 602 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 603 reg = <0x01c1a400 0x100>; 604 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; 605 clocks = <&ccu CLK_BUS_OHCI0>, 606 <&ccu CLK_USB_OHCI0>; 607 resets = <&ccu RST_BUS_OHCI0>; 608 phys = <&usbphy 0>; 609 phy-names = "usb"; 610 status = "disabled"; 611 }; 612 613 ehci1: usb@1c1b000 { 614 compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 615 reg = <0x01c1b000 0x100>; 616 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; 617 clocks = <&ccu CLK_BUS_OHCI1>, 618 <&ccu CLK_BUS_EHCI1>, 619 <&ccu CLK_USB_OHCI1>; 620 resets = <&ccu RST_BUS_OHCI1>, 621 <&ccu RST_BUS_EHCI1>; 622 phys = <&usbphy 1>; 623 phy-names = "usb"; 624 status = "disabled"; 625 }; 626 627 ohci1: usb@1c1b400 { 628 compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 629 reg = <0x01c1b400 0x100>; 630 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; 631 clocks = <&ccu CLK_BUS_OHCI1>, 632 <&ccu CLK_USB_OHCI1>; 633 resets = <&ccu RST_BUS_OHCI1>; 634 phys = <&usbphy 1>; 635 phy-names = "usb"; 636 status = "disabled"; 637 }; 638 639 ccu: clock@1c20000 { 640 compatible = "allwinner,sun50i-a64-ccu"; 641 reg = <0x01c20000 0x400>; 642 clocks = <&osc24M>, <&rtc 0>; 643 clock-names = "hosc", "losc"; 644 #clock-cells = <1>; 645 #reset-cells = <1>; 646 }; 647 648 pio: pinctrl@1c20800 { 649 compatible = "allwinner,sun50i-a64-pinctrl"; 650 reg = <0x01c20800 0x400>; 651 interrupt-parent = <&r_intc>; 652 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 653 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>, 654 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 655 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>; 656 clock-names = "apb", "hosc", "losc"; 657 gpio-controller; 658 #gpio-cells = <3>; 659 interrupt-controller; 660 #interrupt-cells = <3>; 661 662 csi_pins: csi-pins { 663 pins = "PE0", "PE2", "PE3", "PE4", "PE5", "PE6", 664 "PE7", "PE8", "PE9", "PE10", "PE11"; 665 function = "csi"; 666 }; 667 668 /omit-if-no-ref/ 669 csi_mclk_pin: csi-mclk-pin { 670 pins = "PE1"; 671 function = "csi"; 672 }; 673 674 i2c0_pins: i2c0-pins { 675 pins = "PH0", "PH1"; 676 function = "i2c0"; 677 }; 678 679 i2c1_pins: i2c1-pins { 680 pins = "PH2", "PH3"; 681 function = "i2c1"; 682 }; 683 684 i2c2_pins: i2c2-pins { 685 pins = "PE14", "PE15"; 686 function = "i2c2"; 687 }; 688 689 /omit-if-no-ref/ 690 lcd_rgb666_pins: lcd-rgb666-pins { 691 pins = "PD0", "PD1", "PD2", "PD3", "PD4", 692 "PD5", "PD6", "PD7", "PD8", "PD9", 693 "PD10", "PD11", "PD12", "PD13", 694 "PD14", "PD15", "PD16", "PD17", 695 "PD18", "PD19", "PD20", "PD21"; 696 function = "lcd0"; 697 }; 698 699 mmc0_pins: mmc0-pins { 700 pins = "PF0", "PF1", "PF2", "PF3", 701 "PF4", "PF5"; 702 function = "mmc0"; 703 drive-strength = <30>; 704 bias-pull-up; 705 }; 706 707 mmc1_pins: mmc1-pins { 708 pins = "PG0", "PG1", "PG2", "PG3", 709 "PG4", "PG5"; 710 function = "mmc1"; 711 drive-strength = <30>; 712 bias-pull-up; 713 }; 714 715 mmc2_pins: mmc2-pins { 716 pins = "PC5", "PC6", "PC8", "PC9", 717 "PC10","PC11", "PC12", "PC13", 718 "PC14", "PC15", "PC16"; 719 function = "mmc2"; 720 drive-strength = <30>; 721 bias-pull-up; 722 }; 723 724 mmc2_ds_pin: mmc2-ds-pin { 725 pins = "PC1"; 726 function = "mmc2"; 727 drive-strength = <30>; 728 bias-pull-up; 729 }; 730 731 pwm_pin: pwm-pin { 732 pins = "PD22"; 733 function = "pwm"; 734 }; 735 736 rmii_pins: rmii-pins { 737 pins = "PD10", "PD11", "PD13", "PD14", "PD17", 738 "PD18", "PD19", "PD20", "PD22", "PD23"; 739 function = "emac"; 740 drive-strength = <40>; 741 }; 742 743 rgmii_pins: rgmii-pins { 744 pins = "PD8", "PD9", "PD10", "PD11", "PD12", 745 "PD13", "PD15", "PD16", "PD17", "PD18", 746 "PD19", "PD20", "PD21", "PD22", "PD23"; 747 function = "emac"; 748 drive-strength = <40>; 749 }; 750 751 spdif_tx_pin: spdif-tx-pin { 752 pins = "PH8"; 753 function = "spdif"; 754 }; 755 756 spi0_pins: spi0-pins { 757 pins = "PC0", "PC1", "PC2", "PC3"; 758 function = "spi0"; 759 }; 760 761 spi1_pins: spi1-pins { 762 pins = "PD0", "PD1", "PD2", "PD3"; 763 function = "spi1"; 764 }; 765 766 uart0_pb_pins: uart0-pb-pins { 767 pins = "PB8", "PB9"; 768 function = "uart0"; 769 }; 770 771 uart1_pins: uart1-pins { 772 pins = "PG6", "PG7"; 773 function = "uart1"; 774 }; 775 776 uart1_rts_cts_pins: uart1-rts-cts-pins { 777 pins = "PG8", "PG9"; 778 function = "uart1"; 779 }; 780 781 uart2_pins: uart2-pins { 782 pins = "PB0", "PB1"; 783 function = "uart2"; 784 }; 785 786 uart3_pins: uart3-pins { 787 pins = "PD0", "PD1"; 788 function = "uart3"; 789 }; 790 791 uart4_pins: uart4-pins { 792 pins = "PD2", "PD3"; 793 function = "uart4"; 794 }; 795 796 uart4_rts_cts_pins: uart4-rts-cts-pins { 797 pins = "PD4", "PD5"; 798 function = "uart4"; 799 }; 800 }; 801 802 spdif: spdif@1c21000 { 803 #sound-dai-cells = <0>; 804 compatible = "allwinner,sun50i-a64-spdif", 805 "allwinner,sun8i-h3-spdif"; 806 reg = <0x01c21000 0x400>; 807 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 808 clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; 809 resets = <&ccu RST_BUS_SPDIF>; 810 clock-names = "apb", "spdif"; 811 dmas = <&dma 2>; 812 dma-names = "tx"; 813 pinctrl-names = "default"; 814 pinctrl-0 = <&spdif_tx_pin>; 815 status = "disabled"; 816 }; 817 818 lradc: lradc@1c21800 { 819 compatible = "allwinner,sun50i-a64-lradc", 820 "allwinner,sun8i-a83t-r-lradc"; 821 reg = <0x01c21800 0x400>; 822 interrupt-parent = <&r_intc>; 823 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; 824 status = "disabled"; 825 }; 826 827 i2s0: i2s@1c22000 { 828 #sound-dai-cells = <0>; 829 compatible = "allwinner,sun50i-a64-i2s", 830 "allwinner,sun8i-h3-i2s"; 831 reg = <0x01c22000 0x400>; 832 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 833 clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>; 834 clock-names = "apb", "mod"; 835 resets = <&ccu RST_BUS_I2S0>; 836 dma-names = "rx", "tx"; 837 dmas = <&dma 3>, <&dma 3>; 838 status = "disabled"; 839 }; 840 841 i2s1: i2s@1c22400 { 842 #sound-dai-cells = <0>; 843 compatible = "allwinner,sun50i-a64-i2s", 844 "allwinner,sun8i-h3-i2s"; 845 reg = <0x01c22400 0x400>; 846 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 847 clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>; 848 clock-names = "apb", "mod"; 849 resets = <&ccu RST_BUS_I2S1>; 850 dma-names = "rx", "tx"; 851 dmas = <&dma 4>, <&dma 4>; 852 status = "disabled"; 853 }; 854 855 i2s2: i2s@1c22800 { 856 #sound-dai-cells = <0>; 857 compatible = "allwinner,sun50i-a64-i2s", 858 "allwinner,sun8i-h3-i2s"; 859 reg = <0x01c22800 0x400>; 860 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>; 861 clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>; 862 clock-names = "apb", "mod"; 863 resets = <&ccu RST_BUS_I2S2>; 864 dma-names = "rx", "tx"; 865 dmas = <&dma 27>, <&dma 27>; 866 status = "disabled"; 867 }; 868 869 dai: dai@1c22c00 { 870 #sound-dai-cells = <0>; 871 compatible = "allwinner,sun50i-a64-codec-i2s"; 872 reg = <0x01c22c00 0x200>; 873 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 874 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; 875 clock-names = "apb", "mod"; 876 resets = <&ccu RST_BUS_CODEC>; 877 dmas = <&dma 15>, <&dma 15>; 878 dma-names = "rx", "tx"; 879 status = "disabled"; 880 }; 881 882 codec: codec@1c22e00 { 883 #sound-dai-cells = <0>; 884 compatible = "allwinner,sun50i-a64-codec", 885 "allwinner,sun8i-a33-codec"; 886 reg = <0x01c22e00 0x600>; 887 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; 888 clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; 889 clock-names = "bus", "mod"; 890 status = "disabled"; 891 }; 892 893 ths: thermal-sensor@1c25000 { 894 compatible = "allwinner,sun50i-a64-ths"; 895 reg = <0x01c25000 0x100>; 896 clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; 897 clock-names = "bus", "mod"; 898 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; 899 resets = <&ccu RST_BUS_THS>; 900 nvmem-cells = <&ths_calibration>; 901 nvmem-cell-names = "calibration"; 902 #thermal-sensor-cells = <1>; 903 }; 904 905 uart0: serial@1c28000 { 906 compatible = "snps,dw-apb-uart"; 907 reg = <0x01c28000 0x400>; 908 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; 909 reg-shift = <2>; 910 reg-io-width = <4>; 911 clocks = <&ccu CLK_BUS_UART0>; 912 resets = <&ccu RST_BUS_UART0>; 913 status = "disabled"; 914 }; 915 916 uart1: serial@1c28400 { 917 compatible = "snps,dw-apb-uart"; 918 reg = <0x01c28400 0x400>; 919 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 920 reg-shift = <2>; 921 reg-io-width = <4>; 922 clocks = <&ccu CLK_BUS_UART1>; 923 resets = <&ccu RST_BUS_UART1>; 924 status = "disabled"; 925 }; 926 927 uart2: serial@1c28800 { 928 compatible = "snps,dw-apb-uart"; 929 reg = <0x01c28800 0x400>; 930 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; 931 reg-shift = <2>; 932 reg-io-width = <4>; 933 clocks = <&ccu CLK_BUS_UART2>; 934 resets = <&ccu RST_BUS_UART2>; 935 status = "disabled"; 936 }; 937 938 uart3: serial@1c28c00 { 939 compatible = "snps,dw-apb-uart"; 940 reg = <0x01c28c00 0x400>; 941 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 942 reg-shift = <2>; 943 reg-io-width = <4>; 944 clocks = <&ccu CLK_BUS_UART3>; 945 resets = <&ccu RST_BUS_UART3>; 946 status = "disabled"; 947 }; 948 949 uart4: serial@1c29000 { 950 compatible = "snps,dw-apb-uart"; 951 reg = <0x01c29000 0x400>; 952 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; 953 reg-shift = <2>; 954 reg-io-width = <4>; 955 clocks = <&ccu CLK_BUS_UART4>; 956 resets = <&ccu RST_BUS_UART4>; 957 status = "disabled"; 958 }; 959 960 i2c0: i2c@1c2ac00 { 961 compatible = "allwinner,sun6i-a31-i2c"; 962 reg = <0x01c2ac00 0x400>; 963 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; 964 clocks = <&ccu CLK_BUS_I2C0>; 965 resets = <&ccu RST_BUS_I2C0>; 966 pinctrl-names = "default"; 967 pinctrl-0 = <&i2c0_pins>; 968 status = "disabled"; 969 #address-cells = <1>; 970 #size-cells = <0>; 971 }; 972 973 i2c1: i2c@1c2b000 { 974 compatible = "allwinner,sun6i-a31-i2c"; 975 reg = <0x01c2b000 0x400>; 976 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 977 clocks = <&ccu CLK_BUS_I2C1>; 978 resets = <&ccu RST_BUS_I2C1>; 979 pinctrl-names = "default"; 980 pinctrl-0 = <&i2c1_pins>; 981 status = "disabled"; 982 #address-cells = <1>; 983 #size-cells = <0>; 984 }; 985 986 i2c2: i2c@1c2b400 { 987 compatible = "allwinner,sun6i-a31-i2c"; 988 reg = <0x01c2b400 0x400>; 989 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 990 clocks = <&ccu CLK_BUS_I2C2>; 991 resets = <&ccu RST_BUS_I2C2>; 992 pinctrl-names = "default"; 993 pinctrl-0 = <&i2c2_pins>; 994 status = "disabled"; 995 #address-cells = <1>; 996 #size-cells = <0>; 997 }; 998 999 spi0: spi@1c68000 { 1000 compatible = "allwinner,sun8i-h3-spi"; 1001 reg = <0x01c68000 0x1000>; 1002 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; 1003 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; 1004 clock-names = "ahb", "mod"; 1005 dmas = <&dma 23>, <&dma 23>; 1006 dma-names = "rx", "tx"; 1007 pinctrl-names = "default"; 1008 pinctrl-0 = <&spi0_pins>; 1009 resets = <&ccu RST_BUS_SPI0>; 1010 status = "disabled"; 1011 num-cs = <1>; 1012 #address-cells = <1>; 1013 #size-cells = <0>; 1014 }; 1015 1016 spi1: spi@1c69000 { 1017 compatible = "allwinner,sun8i-h3-spi"; 1018 reg = <0x01c69000 0x1000>; 1019 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; 1020 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; 1021 clock-names = "ahb", "mod"; 1022 dmas = <&dma 24>, <&dma 24>; 1023 dma-names = "rx", "tx"; 1024 pinctrl-names = "default"; 1025 pinctrl-0 = <&spi1_pins>; 1026 resets = <&ccu RST_BUS_SPI1>; 1027 status = "disabled"; 1028 num-cs = <1>; 1029 #address-cells = <1>; 1030 #size-cells = <0>; 1031 }; 1032 1033 emac: ethernet@1c30000 { 1034 compatible = "allwinner,sun50i-a64-emac"; 1035 syscon = <&syscon>; 1036 reg = <0x01c30000 0x10000>; 1037 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; 1038 interrupt-names = "macirq"; 1039 resets = <&ccu RST_BUS_EMAC>; 1040 reset-names = "stmmaceth"; 1041 clocks = <&ccu CLK_BUS_EMAC>; 1042 clock-names = "stmmaceth"; 1043 status = "disabled"; 1044 1045 mdio: mdio { 1046 compatible = "snps,dwmac-mdio"; 1047 #address-cells = <1>; 1048 #size-cells = <0>; 1049 }; 1050 }; 1051 1052 mali: gpu@1c40000 { 1053 compatible = "allwinner,sun50i-a64-mali", "arm,mali-400"; 1054 reg = <0x01c40000 0x10000>; 1055 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>, 1056 <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, 1057 <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>, 1058 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>, 1059 <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, 1060 <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, 1061 <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; 1062 interrupt-names = "gp", 1063 "gpmmu", 1064 "pp0", 1065 "ppmmu0", 1066 "pp1", 1067 "ppmmu1", 1068 "pmu"; 1069 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>; 1070 clock-names = "bus", "core"; 1071 resets = <&ccu RST_BUS_GPU>; 1072 }; 1073 1074 gic: interrupt-controller@1c81000 { 1075 compatible = "arm,gic-400"; 1076 reg = <0x01c81000 0x1000>, 1077 <0x01c82000 0x2000>, 1078 <0x01c84000 0x2000>, 1079 <0x01c86000 0x2000>; 1080 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 1081 interrupt-controller; 1082 #interrupt-cells = <3>; 1083 }; 1084 1085 pwm: pwm@1c21400 { 1086 compatible = "allwinner,sun50i-a64-pwm", 1087 "allwinner,sun5i-a13-pwm"; 1088 reg = <0x01c21400 0x400>; 1089 clocks = <&osc24M>; 1090 pinctrl-names = "default"; 1091 pinctrl-0 = <&pwm_pin>; 1092 #pwm-cells = <3>; 1093 status = "disabled"; 1094 }; 1095 1096 mbus: dram-controller@1c62000 { 1097 compatible = "allwinner,sun50i-a64-mbus"; 1098 reg = <0x01c62000 0x1000>; 1099 clocks = <&ccu 112>; 1100 #address-cells = <1>; 1101 #size-cells = <1>; 1102 dma-ranges = <0x00000000 0x40000000 0xc0000000>; 1103 #interconnect-cells = <1>; 1104 }; 1105 1106 csi: csi@1cb0000 { 1107 compatible = "allwinner,sun50i-a64-csi"; 1108 reg = <0x01cb0000 0x1000>; 1109 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; 1110 clocks = <&ccu CLK_BUS_CSI>, 1111 <&ccu CLK_CSI_SCLK>, 1112 <&ccu CLK_DRAM_CSI>; 1113 clock-names = "bus", "mod", "ram"; 1114 resets = <&ccu RST_BUS_CSI>; 1115 pinctrl-names = "default"; 1116 pinctrl-0 = <&csi_pins>; 1117 status = "disabled"; 1118 }; 1119 1120 dsi: dsi@1ca0000 { 1121 compatible = "allwinner,sun50i-a64-mipi-dsi"; 1122 reg = <0x01ca0000 0x1000>; 1123 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; 1124 clocks = <&ccu CLK_BUS_MIPI_DSI>; 1125 resets = <&ccu RST_BUS_MIPI_DSI>; 1126 phys = <&dphy>; 1127 phy-names = "dphy"; 1128 status = "disabled"; 1129 #address-cells = <1>; 1130 #size-cells = <0>; 1131 1132 port { 1133 dsi_in_tcon0: endpoint { 1134 remote-endpoint = <&tcon0_out_dsi>; 1135 }; 1136 }; 1137 }; 1138 1139 dphy: d-phy@1ca1000 { 1140 compatible = "allwinner,sun50i-a64-mipi-dphy", 1141 "allwinner,sun6i-a31-mipi-dphy"; 1142 reg = <0x01ca1000 0x1000>; 1143 clocks = <&ccu CLK_BUS_MIPI_DSI>, 1144 <&ccu CLK_DSI_DPHY>; 1145 clock-names = "bus", "mod"; 1146 resets = <&ccu RST_BUS_MIPI_DSI>; 1147 status = "disabled"; 1148 #phy-cells = <0>; 1149 }; 1150 1151 deinterlace: deinterlace@1e00000 { 1152 compatible = "allwinner,sun50i-a64-deinterlace", 1153 "allwinner,sun8i-h3-deinterlace"; 1154 reg = <0x01e00000 0x20000>; 1155 clocks = <&ccu CLK_BUS_DEINTERLACE>, 1156 <&ccu CLK_DEINTERLACE>, 1157 <&ccu CLK_DRAM_DEINTERLACE>; 1158 clock-names = "bus", "mod", "ram"; 1159 resets = <&ccu RST_BUS_DEINTERLACE>; 1160 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; 1161 interconnects = <&mbus 9>; 1162 interconnect-names = "dma-mem"; 1163 }; 1164 1165 hdmi: hdmi@1ee0000 { 1166 compatible = "allwinner,sun50i-a64-dw-hdmi", 1167 "allwinner,sun8i-a83t-dw-hdmi"; 1168 reg = <0x01ee0000 0x10000>; 1169 reg-io-width = <1>; 1170 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; 1171 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, 1172 <&ccu CLK_HDMI>; 1173 clock-names = "iahb", "isfr", "tmds"; 1174 resets = <&ccu RST_BUS_HDMI1>; 1175 reset-names = "ctrl"; 1176 phys = <&hdmi_phy>; 1177 phy-names = "phy"; 1178 status = "disabled"; 1179 1180 ports { 1181 #address-cells = <1>; 1182 #size-cells = <0>; 1183 1184 hdmi_in: port@0 { 1185 reg = <0>; 1186 1187 hdmi_in_tcon1: endpoint { 1188 remote-endpoint = <&tcon1_out_hdmi>; 1189 }; 1190 }; 1191 1192 hdmi_out: port@1 { 1193 reg = <1>; 1194 }; 1195 }; 1196 }; 1197 1198 hdmi_phy: hdmi-phy@1ef0000 { 1199 compatible = "allwinner,sun50i-a64-hdmi-phy"; 1200 reg = <0x01ef0000 0x10000>; 1201 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, 1202 <&ccu CLK_PLL_VIDEO0>; 1203 clock-names = "bus", "mod", "pll-0"; 1204 resets = <&ccu RST_BUS_HDMI0>; 1205 reset-names = "phy"; 1206 #phy-cells = <0>; 1207 }; 1208 1209 rtc: rtc@1f00000 { 1210 compatible = "allwinner,sun50i-a64-rtc", 1211 "allwinner,sun8i-h3-rtc"; 1212 reg = <0x01f00000 0x400>; 1213 interrupt-parent = <&r_intc>; 1214 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, 1215 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 1216 clock-output-names = "osc32k", "osc32k-out", "iosc"; 1217 clocks = <&osc32k>; 1218 #clock-cells = <1>; 1219 }; 1220 1221 r_intc: interrupt-controller@1f00c00 { 1222 compatible = "allwinner,sun50i-a64-r-intc", 1223 "allwinner,sun6i-a31-r-intc"; 1224 interrupt-controller; 1225 #interrupt-cells = <3>; 1226 reg = <0x01f00c00 0x400>; 1227 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 1228 }; 1229 1230 r_ccu: clock@1f01400 { 1231 compatible = "allwinner,sun50i-a64-r-ccu"; 1232 reg = <0x01f01400 0x100>; 1233 clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, 1234 <&ccu CLK_PLL_PERIPH0>; 1235 clock-names = "hosc", "losc", "iosc", "pll-periph"; 1236 #clock-cells = <1>; 1237 #reset-cells = <1>; 1238 }; 1239 1240 codec_analog: codec-analog@1f015c0 { 1241 compatible = "allwinner,sun50i-a64-codec-analog"; 1242 reg = <0x01f015c0 0x4>; 1243 status = "disabled"; 1244 }; 1245 1246 r_i2c: i2c@1f02400 { 1247 compatible = "allwinner,sun50i-a64-i2c", 1248 "allwinner,sun6i-a31-i2c"; 1249 reg = <0x01f02400 0x400>; 1250 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; 1251 clocks = <&r_ccu CLK_APB0_I2C>; 1252 resets = <&r_ccu RST_APB0_I2C>; 1253 status = "disabled"; 1254 #address-cells = <1>; 1255 #size-cells = <0>; 1256 }; 1257 1258 r_ir: ir@1f02000 { 1259 compatible = "allwinner,sun50i-a64-ir", 1260 "allwinner,sun6i-a31-ir"; 1261 reg = <0x01f02000 0x400>; 1262 clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; 1263 clock-names = "apb", "ir"; 1264 resets = <&r_ccu RST_APB0_IR>; 1265 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 1266 pinctrl-names = "default"; 1267 pinctrl-0 = <&r_ir_rx_pin>; 1268 status = "disabled"; 1269 }; 1270 1271 r_pwm: pwm@1f03800 { 1272 compatible = "allwinner,sun50i-a64-pwm", 1273 "allwinner,sun5i-a13-pwm"; 1274 reg = <0x01f03800 0x400>; 1275 clocks = <&osc24M>; 1276 pinctrl-names = "default"; 1277 pinctrl-0 = <&r_pwm_pin>; 1278 #pwm-cells = <3>; 1279 status = "disabled"; 1280 }; 1281 1282 r_pio: pinctrl@1f02c00 { 1283 compatible = "allwinner,sun50i-a64-r-pinctrl"; 1284 reg = <0x01f02c00 0x400>; 1285 interrupt-parent = <&r_intc>; 1286 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; 1287 clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>; 1288 clock-names = "apb", "hosc", "losc"; 1289 gpio-controller; 1290 #gpio-cells = <3>; 1291 interrupt-controller; 1292 #interrupt-cells = <3>; 1293 1294 r_i2c_pl89_pins: r-i2c-pl89-pins { 1295 pins = "PL8", "PL9"; 1296 function = "s_i2c"; 1297 }; 1298 1299 r_ir_rx_pin: r-ir-rx-pin { 1300 pins = "PL11"; 1301 function = "s_cir_rx"; 1302 }; 1303 1304 r_pwm_pin: r-pwm-pin { 1305 pins = "PL10"; 1306 function = "s_pwm"; 1307 }; 1308 1309 r_rsb_pins: r-rsb-pins { 1310 pins = "PL0", "PL1"; 1311 function = "s_rsb"; 1312 }; 1313 }; 1314 1315 r_rsb: rsb@1f03400 { 1316 compatible = "allwinner,sun8i-a23-rsb"; 1317 reg = <0x01f03400 0x400>; 1318 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 1319 clocks = <&r_ccu 6>; 1320 clock-frequency = <3000000>; 1321 resets = <&r_ccu 2>; 1322 pinctrl-names = "default"; 1323 pinctrl-0 = <&r_rsb_pins>; 1324 status = "disabled"; 1325 #address-cells = <1>; 1326 #size-cells = <0>; 1327 }; 1328 1329 wdt0: watchdog@1c20ca0 { 1330 compatible = "allwinner,sun50i-a64-wdt", 1331 "allwinner,sun6i-a31-wdt"; 1332 reg = <0x01c20ca0 0x20>; 1333 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; 1334 clocks = <&osc24M>; 1335 }; 1336 }; 1337}; 1338