1b4b8f2c9SClément Péron// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2cabbaed7SClément Péron// Copyright (C) 2016 ARM Ltd. 3cabbaed7SClément Péron// based on the Allwinner H3 dtsi: 4cabbaed7SClément Péron// Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com> 56bc37facSAndre Przywara 6a004ee35SIcenowy Zheng#include <dt-bindings/clock/sun50i-a64-ccu.h> 72c796fc8SIcenowy Zheng#include <dt-bindings/clock/sun8i-de2.h> 8494d8a2cSChen-Yu Tsai#include <dt-bindings/clock/sun8i-r-ccu.h> 96bc37facSAndre Przywara#include <dt-bindings/interrupt-controller/arm-gic.h> 10a004ee35SIcenowy Zheng#include <dt-bindings/reset/sun50i-a64-ccu.h> 112c796fc8SIcenowy Zheng#include <dt-bindings/reset/sun8i-de2.h> 12871b5352SIcenowy Zheng#include <dt-bindings/reset/sun8i-r-ccu.h> 1359f5e9b9SVasily Khoruzhick#include <dt-bindings/thermal/thermal.h> 146bc37facSAndre Przywara 156bc37facSAndre Przywara/ { 166bc37facSAndre Przywara interrupt-parent = <&gic>; 176bc37facSAndre Przywara #address-cells = <1>; 186bc37facSAndre Przywara #size-cells = <1>; 196bc37facSAndre Przywara 20c1cff65fSHarald Geyer chosen { 21c1cff65fSHarald Geyer #address-cells = <1>; 22c1cff65fSHarald Geyer #size-cells = <1>; 23c1cff65fSHarald Geyer ranges; 24c1cff65fSHarald Geyer 25c1cff65fSHarald Geyer simplefb_lcd: framebuffer-lcd { 26c1cff65fSHarald Geyer compatible = "allwinner,simple-framebuffer", 27c1cff65fSHarald Geyer "simple-framebuffer"; 28c1cff65fSHarald Geyer allwinner,pipeline = "mixer0-lcd0"; 29c1cff65fSHarald Geyer clocks = <&ccu CLK_TCON0>, 302c796fc8SIcenowy Zheng <&display_clocks CLK_MIXER0>; 31c1cff65fSHarald Geyer status = "disabled"; 32c1cff65fSHarald Geyer }; 33fca63f58SIcenowy Zheng 34fca63f58SIcenowy Zheng simplefb_hdmi: framebuffer-hdmi { 35fca63f58SIcenowy Zheng compatible = "allwinner,simple-framebuffer", 36fca63f58SIcenowy Zheng "simple-framebuffer"; 37fca63f58SIcenowy Zheng allwinner,pipeline = "mixer1-lcd1-hdmi"; 38fca63f58SIcenowy Zheng clocks = <&display_clocks CLK_MIXER1>, 39fca63f58SIcenowy Zheng <&ccu CLK_TCON1>, <&ccu CLK_HDMI>; 40fca63f58SIcenowy Zheng status = "disabled"; 41fca63f58SIcenowy Zheng }; 42c1cff65fSHarald Geyer }; 43c1cff65fSHarald Geyer 446bc37facSAndre Przywara cpus { 456bc37facSAndre Przywara #address-cells = <1>; 466bc37facSAndre Przywara #size-cells = <0>; 476bc37facSAndre Przywara 486bc37facSAndre Przywara cpu0: cpu@0 { 4931af04cdSRob Herring compatible = "arm,cortex-a53"; 506bc37facSAndre Przywara device_type = "cpu"; 516bc37facSAndre Przywara reg = <0>; 526bc37facSAndre Przywara enable-method = "psci"; 5339defc81SAndre Przywara next-level-cache = <&L2>; 54f267eff7SVasily Khoruzhick clocks = <&ccu 21>; 55f267eff7SVasily Khoruzhick clock-names = "cpu"; 56e1c3804aSVasily Khoruzhick #cooling-cells = <2>; 576bc37facSAndre Przywara }; 586bc37facSAndre Przywara 596bc37facSAndre Przywara cpu1: cpu@1 { 6031af04cdSRob Herring compatible = "arm,cortex-a53"; 616bc37facSAndre Przywara device_type = "cpu"; 626bc37facSAndre Przywara reg = <1>; 636bc37facSAndre Przywara enable-method = "psci"; 6439defc81SAndre Przywara next-level-cache = <&L2>; 65f267eff7SVasily Khoruzhick clocks = <&ccu 21>; 66f267eff7SVasily Khoruzhick clock-names = "cpu"; 67e1c3804aSVasily Khoruzhick #cooling-cells = <2>; 686bc37facSAndre Przywara }; 696bc37facSAndre Przywara 706bc37facSAndre Przywara cpu2: cpu@2 { 7131af04cdSRob Herring compatible = "arm,cortex-a53"; 726bc37facSAndre Przywara device_type = "cpu"; 736bc37facSAndre Przywara reg = <2>; 746bc37facSAndre Przywara enable-method = "psci"; 7539defc81SAndre Przywara next-level-cache = <&L2>; 76f267eff7SVasily Khoruzhick clocks = <&ccu 21>; 77f267eff7SVasily Khoruzhick clock-names = "cpu"; 78e1c3804aSVasily Khoruzhick #cooling-cells = <2>; 796bc37facSAndre Przywara }; 806bc37facSAndre Przywara 816bc37facSAndre Przywara cpu3: cpu@3 { 8231af04cdSRob Herring compatible = "arm,cortex-a53"; 836bc37facSAndre Przywara device_type = "cpu"; 846bc37facSAndre Przywara reg = <3>; 856bc37facSAndre Przywara enable-method = "psci"; 8639defc81SAndre Przywara next-level-cache = <&L2>; 87f267eff7SVasily Khoruzhick clocks = <&ccu 21>; 88f267eff7SVasily Khoruzhick clock-names = "cpu"; 89e1c3804aSVasily Khoruzhick #cooling-cells = <2>; 9039defc81SAndre Przywara }; 9139defc81SAndre Przywara 9239defc81SAndre Przywara L2: l2-cache { 9339defc81SAndre Przywara compatible = "cache"; 9439defc81SAndre Przywara cache-level = <2>; 956bc37facSAndre Przywara }; 966bc37facSAndre Przywara }; 976bc37facSAndre Przywara 98e85f28e0SJagan Teki de: display-engine { 99e85f28e0SJagan Teki compatible = "allwinner,sun50i-a64-display-engine"; 100e85f28e0SJagan Teki allwinner,pipelines = <&mixer0>, 101e85f28e0SJagan Teki <&mixer1>; 102e85f28e0SJagan Teki status = "disabled"; 103e85f28e0SJagan Teki }; 104e85f28e0SJagan Teki 1056bc37facSAndre Przywara osc24M: osc24M_clk { 1066bc37facSAndre Przywara #clock-cells = <0>; 1076bc37facSAndre Przywara compatible = "fixed-clock"; 1086bc37facSAndre Przywara clock-frequency = <24000000>; 1096bc37facSAndre Przywara clock-output-names = "osc24M"; 1106bc37facSAndre Przywara }; 1116bc37facSAndre Przywara 1126bc37facSAndre Przywara osc32k: osc32k_clk { 1136bc37facSAndre Przywara #clock-cells = <0>; 1146bc37facSAndre Przywara compatible = "fixed-clock"; 1156bc37facSAndre Przywara clock-frequency = <32768>; 11644ff3cafSChen-Yu Tsai clock-output-names = "ext-osc32k"; 117791a9e00SIcenowy Zheng }; 118791a9e00SIcenowy Zheng 11934a97fccSHarald Geyer pmu { 12034a97fccSHarald Geyer compatible = "arm,cortex-a53-pmu"; 1216b832a14SAndre Przywara interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>, 1226b832a14SAndre Przywara <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, 1236b832a14SAndre Przywara <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, 1246b832a14SAndre Przywara <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; 12534a97fccSHarald Geyer interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 12634a97fccSHarald Geyer }; 12734a97fccSHarald Geyer 1286bc37facSAndre Przywara psci { 1296bc37facSAndre Przywara compatible = "arm,psci-0.2"; 1306bc37facSAndre Przywara method = "smc"; 1316bc37facSAndre Przywara }; 1326bc37facSAndre Przywara 133ec4a9540SVasily Khoruzhick sound: sound { 134ec4a9540SVasily Khoruzhick compatible = "simple-audio-card"; 135ec4a9540SVasily Khoruzhick simple-audio-card,name = "sun50i-a64-audio"; 136ec4a9540SVasily Khoruzhick simple-audio-card,format = "i2s"; 137ec4a9540SVasily Khoruzhick simple-audio-card,frame-master = <&cpudai>; 138ec4a9540SVasily Khoruzhick simple-audio-card,bitclock-master = <&cpudai>; 139ec4a9540SVasily Khoruzhick simple-audio-card,mclk-fs = <128>; 140ec4a9540SVasily Khoruzhick simple-audio-card,aux-devs = <&codec_analog>; 141ec4a9540SVasily Khoruzhick simple-audio-card,routing = 142ec4a9540SVasily Khoruzhick "Left DAC", "AIF1 Slot 0 Left", 143ec4a9540SVasily Khoruzhick "Right DAC", "AIF1 Slot 0 Right", 144ec4a9540SVasily Khoruzhick "AIF1 Slot 0 Left ADC", "Left ADC", 145ec4a9540SVasily Khoruzhick "AIF1 Slot 0 Right ADC", "Right ADC"; 146ec4a9540SVasily Khoruzhick status = "disabled"; 147ec4a9540SVasily Khoruzhick 148ec4a9540SVasily Khoruzhick cpudai: simple-audio-card,cpu { 149ec4a9540SVasily Khoruzhick sound-dai = <&dai>; 150ec4a9540SVasily Khoruzhick }; 151ec4a9540SVasily Khoruzhick 152ec4a9540SVasily Khoruzhick link_codec: simple-audio-card,codec { 153ec4a9540SVasily Khoruzhick sound-dai = <&codec>; 154ec4a9540SVasily Khoruzhick }; 155ec4a9540SVasily Khoruzhick }; 156ec4a9540SVasily Khoruzhick 15778e07137SMarcus Cooper sound_spdif { 15878e07137SMarcus Cooper compatible = "simple-audio-card"; 15978e07137SMarcus Cooper simple-audio-card,name = "On-board SPDIF"; 16078e07137SMarcus Cooper 16178e07137SMarcus Cooper simple-audio-card,cpu { 16278e07137SMarcus Cooper sound-dai = <&spdif>; 16378e07137SMarcus Cooper }; 16478e07137SMarcus Cooper 16578e07137SMarcus Cooper simple-audio-card,codec { 16678e07137SMarcus Cooper sound-dai = <&spdif_out>; 16778e07137SMarcus Cooper }; 16878e07137SMarcus Cooper }; 16978e07137SMarcus Cooper 17078e07137SMarcus Cooper spdif_out: spdif-out { 17178e07137SMarcus Cooper #sound-dai-cells = <0>; 17278e07137SMarcus Cooper compatible = "linux,spdif-dit"; 17378e07137SMarcus Cooper }; 17478e07137SMarcus Cooper 1756bc37facSAndre Przywara timer { 1766bc37facSAndre Przywara compatible = "arm,armv8-timer"; 17755ec26d6SSamuel Holland allwinner,erratum-unknown1; 1786bc37facSAndre Przywara interrupts = <GIC_PPI 13 1796bc37facSAndre Przywara (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 1806bc37facSAndre Przywara <GIC_PPI 14 1816bc37facSAndre Przywara (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 1826bc37facSAndre Przywara <GIC_PPI 11 1836bc37facSAndre Przywara (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 1846bc37facSAndre Przywara <GIC_PPI 10 1856bc37facSAndre Przywara (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 1866bc37facSAndre Przywara }; 1876bc37facSAndre Przywara 18859f5e9b9SVasily Khoruzhick thermal-zones { 18959f5e9b9SVasily Khoruzhick cpu_thermal: cpu0-thermal { 19059f5e9b9SVasily Khoruzhick /* milliseconds */ 19159f5e9b9SVasily Khoruzhick polling-delay-passive = <0>; 19259f5e9b9SVasily Khoruzhick polling-delay = <0>; 19359f5e9b9SVasily Khoruzhick thermal-sensors = <&ths 0>; 194e1c3804aSVasily Khoruzhick 195e1c3804aSVasily Khoruzhick cooling-maps { 196e1c3804aSVasily Khoruzhick map0 { 197e1c3804aSVasily Khoruzhick trip = <&cpu_alert0>; 198e1c3804aSVasily Khoruzhick cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 199e1c3804aSVasily Khoruzhick <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 200e1c3804aSVasily Khoruzhick <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 201e1c3804aSVasily Khoruzhick <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 202e1c3804aSVasily Khoruzhick }; 203e1c3804aSVasily Khoruzhick map1 { 204e1c3804aSVasily Khoruzhick trip = <&cpu_alert1>; 205e1c3804aSVasily Khoruzhick cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 206e1c3804aSVasily Khoruzhick <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 207e1c3804aSVasily Khoruzhick <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 208e1c3804aSVasily Khoruzhick <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 209e1c3804aSVasily Khoruzhick }; 210e1c3804aSVasily Khoruzhick }; 211e1c3804aSVasily Khoruzhick 212e1c3804aSVasily Khoruzhick trips { 213e1c3804aSVasily Khoruzhick cpu_alert0: cpu_alert0 { 214e1c3804aSVasily Khoruzhick /* milliCelsius */ 215e1c3804aSVasily Khoruzhick temperature = <75000>; 216e1c3804aSVasily Khoruzhick hysteresis = <2000>; 217e1c3804aSVasily Khoruzhick type = "passive"; 218e1c3804aSVasily Khoruzhick }; 219e1c3804aSVasily Khoruzhick 220e1c3804aSVasily Khoruzhick cpu_alert1: cpu_alert1 { 221e1c3804aSVasily Khoruzhick /* milliCelsius */ 222e1c3804aSVasily Khoruzhick temperature = <90000>; 223e1c3804aSVasily Khoruzhick hysteresis = <2000>; 224e1c3804aSVasily Khoruzhick type = "hot"; 225e1c3804aSVasily Khoruzhick }; 226e1c3804aSVasily Khoruzhick 227e1c3804aSVasily Khoruzhick cpu_crit: cpu_crit { 228e1c3804aSVasily Khoruzhick /* milliCelsius */ 229e1c3804aSVasily Khoruzhick temperature = <110000>; 230e1c3804aSVasily Khoruzhick hysteresis = <2000>; 231e1c3804aSVasily Khoruzhick type = "critical"; 232e1c3804aSVasily Khoruzhick }; 233e1c3804aSVasily Khoruzhick }; 23459f5e9b9SVasily Khoruzhick }; 23559f5e9b9SVasily Khoruzhick 23659f5e9b9SVasily Khoruzhick gpu0_thermal: gpu0-thermal { 23759f5e9b9SVasily Khoruzhick /* milliseconds */ 23859f5e9b9SVasily Khoruzhick polling-delay-passive = <0>; 23959f5e9b9SVasily Khoruzhick polling-delay = <0>; 24059f5e9b9SVasily Khoruzhick thermal-sensors = <&ths 1>; 24159f5e9b9SVasily Khoruzhick }; 24259f5e9b9SVasily Khoruzhick 24359f5e9b9SVasily Khoruzhick gpu1_thermal: gpu1-thermal { 24459f5e9b9SVasily Khoruzhick /* milliseconds */ 24559f5e9b9SVasily Khoruzhick polling-delay-passive = <0>; 24659f5e9b9SVasily Khoruzhick polling-delay = <0>; 24759f5e9b9SVasily Khoruzhick thermal-sensors = <&ths 2>; 24859f5e9b9SVasily Khoruzhick }; 24959f5e9b9SVasily Khoruzhick }; 25059f5e9b9SVasily Khoruzhick 2516bc37facSAndre Przywara soc { 2526bc37facSAndre Przywara compatible = "simple-bus"; 2536bc37facSAndre Przywara #address-cells = <1>; 2546bc37facSAndre Przywara #size-cells = <1>; 2556bc37facSAndre Przywara ranges; 2566bc37facSAndre Przywara 257275b6317SMaxime Ripard bus@1000000 { 2582c796fc8SIcenowy Zheng compatible = "allwinner,sun50i-a64-de2"; 2592c796fc8SIcenowy Zheng reg = <0x1000000 0x400000>; 2602c796fc8SIcenowy Zheng allwinner,sram = <&de2_sram 1>; 2612c796fc8SIcenowy Zheng #address-cells = <1>; 2622c796fc8SIcenowy Zheng #size-cells = <1>; 2632c796fc8SIcenowy Zheng ranges = <0 0x1000000 0x400000>; 2642c796fc8SIcenowy Zheng 2652c796fc8SIcenowy Zheng display_clocks: clock@0 { 2662c796fc8SIcenowy Zheng compatible = "allwinner,sun50i-a64-de2-clk"; 2673e9a1a8bSJernej Skrabec reg = <0x0 0x10000>; 2685ea40f71SMaxime Ripard clocks = <&ccu CLK_BUS_DE>, 2695ea40f71SMaxime Ripard <&ccu CLK_DE>; 2705ea40f71SMaxime Ripard clock-names = "bus", 2715ea40f71SMaxime Ripard "mod"; 2722c796fc8SIcenowy Zheng resets = <&ccu RST_BUS_DE>; 2732c796fc8SIcenowy Zheng #clock-cells = <1>; 2742c796fc8SIcenowy Zheng #reset-cells = <1>; 2752c796fc8SIcenowy Zheng }; 276e85f28e0SJagan Teki 277048cdfceSJernej Skrabec rotate: rotate@20000 { 278048cdfceSJernej Skrabec compatible = "allwinner,sun50i-a64-de2-rotate", 279048cdfceSJernej Skrabec "allwinner,sun8i-a83t-de2-rotate"; 280048cdfceSJernej Skrabec reg = <0x20000 0x10000>; 281048cdfceSJernej Skrabec interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>; 282048cdfceSJernej Skrabec clocks = <&display_clocks CLK_BUS_ROT>, 283048cdfceSJernej Skrabec <&display_clocks CLK_ROT>; 284048cdfceSJernej Skrabec clock-names = "bus", 285048cdfceSJernej Skrabec "mod"; 286048cdfceSJernej Skrabec resets = <&display_clocks RST_ROT>; 287048cdfceSJernej Skrabec }; 288048cdfceSJernej Skrabec 289e85f28e0SJagan Teki mixer0: mixer@100000 { 290e85f28e0SJagan Teki compatible = "allwinner,sun50i-a64-de2-mixer-0"; 291e85f28e0SJagan Teki reg = <0x100000 0x100000>; 292e85f28e0SJagan Teki clocks = <&display_clocks CLK_BUS_MIXER0>, 293e85f28e0SJagan Teki <&display_clocks CLK_MIXER0>; 294e85f28e0SJagan Teki clock-names = "bus", 295e85f28e0SJagan Teki "mod"; 296e85f28e0SJagan Teki resets = <&display_clocks RST_MIXER0>; 297e85f28e0SJagan Teki 298e85f28e0SJagan Teki ports { 299e85f28e0SJagan Teki #address-cells = <1>; 300e85f28e0SJagan Teki #size-cells = <0>; 301e85f28e0SJagan Teki 302e85f28e0SJagan Teki mixer0_out: port@1 { 303a7f7047fSMaxime Ripard #address-cells = <1>; 304a7f7047fSMaxime Ripard #size-cells = <0>; 305e85f28e0SJagan Teki reg = <1>; 306e85f28e0SJagan Teki 307a7f7047fSMaxime Ripard mixer0_out_tcon0: endpoint@0 { 308a7f7047fSMaxime Ripard reg = <0>; 309e85f28e0SJagan Teki remote-endpoint = <&tcon0_in_mixer0>; 310e85f28e0SJagan Teki }; 311a7f7047fSMaxime Ripard 312a7f7047fSMaxime Ripard mixer0_out_tcon1: endpoint@1 { 313a7f7047fSMaxime Ripard reg = <1>; 314a7f7047fSMaxime Ripard remote-endpoint = <&tcon1_in_mixer0>; 315a7f7047fSMaxime Ripard }; 316e85f28e0SJagan Teki }; 317e85f28e0SJagan Teki }; 318e85f28e0SJagan Teki }; 319e85f28e0SJagan Teki 320e85f28e0SJagan Teki mixer1: mixer@200000 { 321e85f28e0SJagan Teki compatible = "allwinner,sun50i-a64-de2-mixer-1"; 322e85f28e0SJagan Teki reg = <0x200000 0x100000>; 323e85f28e0SJagan Teki clocks = <&display_clocks CLK_BUS_MIXER1>, 324e85f28e0SJagan Teki <&display_clocks CLK_MIXER1>; 325e85f28e0SJagan Teki clock-names = "bus", 326e85f28e0SJagan Teki "mod"; 327e85f28e0SJagan Teki resets = <&display_clocks RST_MIXER1>; 328e85f28e0SJagan Teki 329e85f28e0SJagan Teki ports { 330e85f28e0SJagan Teki #address-cells = <1>; 331e85f28e0SJagan Teki #size-cells = <0>; 332e85f28e0SJagan Teki 333e85f28e0SJagan Teki mixer1_out: port@1 { 334d41a43a0SMaxime Ripard #address-cells = <1>; 335d41a43a0SMaxime Ripard #size-cells = <0>; 336e85f28e0SJagan Teki reg = <1>; 337e85f28e0SJagan Teki 338a7f7047fSMaxime Ripard mixer1_out_tcon0: endpoint@0 { 339a7f7047fSMaxime Ripard reg = <0>; 340a7f7047fSMaxime Ripard remote-endpoint = <&tcon0_in_mixer1>; 341a7f7047fSMaxime Ripard }; 342a7f7047fSMaxime Ripard 343a7f7047fSMaxime Ripard mixer1_out_tcon1: endpoint@1 { 344a7f7047fSMaxime Ripard reg = <1>; 345e85f28e0SJagan Teki remote-endpoint = <&tcon1_in_mixer1>; 346e85f28e0SJagan Teki }; 347e85f28e0SJagan Teki }; 348e85f28e0SJagan Teki }; 349e85f28e0SJagan Teki }; 3502c796fc8SIcenowy Zheng }; 3512c796fc8SIcenowy Zheng 35279b95360SCorentin Labbe syscon: syscon@1c00000 { 3531f1f5183SIcenowy Zheng compatible = "allwinner,sun50i-a64-system-control"; 35479b95360SCorentin Labbe reg = <0x01c00000 0x1000>; 3551f1f5183SIcenowy Zheng #address-cells = <1>; 3561f1f5183SIcenowy Zheng #size-cells = <1>; 3571f1f5183SIcenowy Zheng ranges; 3581f1f5183SIcenowy Zheng 3591f1f5183SIcenowy Zheng sram_c: sram@18000 { 3601f1f5183SIcenowy Zheng compatible = "mmio-sram"; 3611f1f5183SIcenowy Zheng reg = <0x00018000 0x28000>; 3621f1f5183SIcenowy Zheng #address-cells = <1>; 3631f1f5183SIcenowy Zheng #size-cells = <1>; 3641f1f5183SIcenowy Zheng ranges = <0 0x00018000 0x28000>; 3651f1f5183SIcenowy Zheng 3661f1f5183SIcenowy Zheng de2_sram: sram-section@0 { 3671f1f5183SIcenowy Zheng compatible = "allwinner,sun50i-a64-sram-c"; 3681f1f5183SIcenowy Zheng reg = <0x0000 0x28000>; 3691f1f5183SIcenowy Zheng }; 3701f1f5183SIcenowy Zheng }; 371106deea8SPaul Kocialkowski 372106deea8SPaul Kocialkowski sram_c1: sram@1d00000 { 373106deea8SPaul Kocialkowski compatible = "mmio-sram"; 374106deea8SPaul Kocialkowski reg = <0x01d00000 0x40000>; 375106deea8SPaul Kocialkowski #address-cells = <1>; 376106deea8SPaul Kocialkowski #size-cells = <1>; 377106deea8SPaul Kocialkowski ranges = <0 0x01d00000 0x40000>; 378106deea8SPaul Kocialkowski 379106deea8SPaul Kocialkowski ve_sram: sram-section@0 { 380106deea8SPaul Kocialkowski compatible = "allwinner,sun50i-a64-sram-c1", 381106deea8SPaul Kocialkowski "allwinner,sun4i-a10-sram-c1"; 382106deea8SPaul Kocialkowski reg = <0x000000 0x40000>; 383106deea8SPaul Kocialkowski }; 384106deea8SPaul Kocialkowski }; 38579b95360SCorentin Labbe }; 38679b95360SCorentin Labbe 387c32637e0SStefan Brüns dma: dma-controller@1c02000 { 388c32637e0SStefan Brüns compatible = "allwinner,sun50i-a64-dma"; 389c32637e0SStefan Brüns reg = <0x01c02000 0x1000>; 390c32637e0SStefan Brüns interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; 391c32637e0SStefan Brüns clocks = <&ccu CLK_BUS_DMA>; 392c32637e0SStefan Brüns dma-channels = <8>; 393c32637e0SStefan Brüns dma-requests = <27>; 394c32637e0SStefan Brüns resets = <&ccu RST_BUS_DMA>; 395c32637e0SStefan Brüns #dma-cells = <1>; 396c32637e0SStefan Brüns }; 397c32637e0SStefan Brüns 398e85f28e0SJagan Teki tcon0: lcd-controller@1c0c000 { 399e85f28e0SJagan Teki compatible = "allwinner,sun50i-a64-tcon-lcd", 400e85f28e0SJagan Teki "allwinner,sun8i-a83t-tcon-lcd"; 401e85f28e0SJagan Teki reg = <0x01c0c000 0x1000>; 402e85f28e0SJagan Teki interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; 403e85f28e0SJagan Teki clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>; 404e85f28e0SJagan Teki clock-names = "ahb", "tcon-ch0"; 405e85f28e0SJagan Teki clock-output-names = "tcon-pixel-clock"; 40626c609d5SMaxime Ripard #clock-cells = <0>; 407e85f28e0SJagan Teki resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>; 408e85f28e0SJagan Teki reset-names = "lcd", "lvds"; 409e85f28e0SJagan Teki 410e85f28e0SJagan Teki ports { 411e85f28e0SJagan Teki #address-cells = <1>; 412e85f28e0SJagan Teki #size-cells = <0>; 413e85f28e0SJagan Teki 414e85f28e0SJagan Teki tcon0_in: port@0 { 415e85f28e0SJagan Teki #address-cells = <1>; 416e85f28e0SJagan Teki #size-cells = <0>; 417e85f28e0SJagan Teki reg = <0>; 418e85f28e0SJagan Teki 419e85f28e0SJagan Teki tcon0_in_mixer0: endpoint@0 { 420e85f28e0SJagan Teki reg = <0>; 421e85f28e0SJagan Teki remote-endpoint = <&mixer0_out_tcon0>; 422e85f28e0SJagan Teki }; 423a7f7047fSMaxime Ripard 424a7f7047fSMaxime Ripard tcon0_in_mixer1: endpoint@1 { 425a7f7047fSMaxime Ripard reg = <1>; 426d41a43a0SMaxime Ripard remote-endpoint = <&mixer1_out_tcon0>; 427a7f7047fSMaxime Ripard }; 428e85f28e0SJagan Teki }; 429e85f28e0SJagan Teki 430e85f28e0SJagan Teki tcon0_out: port@1 { 431e85f28e0SJagan Teki #address-cells = <1>; 432e85f28e0SJagan Teki #size-cells = <0>; 433e85f28e0SJagan Teki reg = <1>; 43416c8ff57SJagan Teki 43516c8ff57SJagan Teki tcon0_out_dsi: endpoint@1 { 43616c8ff57SJagan Teki reg = <1>; 43716c8ff57SJagan Teki remote-endpoint = <&dsi_in_tcon0>; 43816c8ff57SJagan Teki allwinner,tcon-channel = <1>; 43916c8ff57SJagan Teki }; 440e85f28e0SJagan Teki }; 441e85f28e0SJagan Teki }; 442e85f28e0SJagan Teki }; 443e85f28e0SJagan Teki 444e85f28e0SJagan Teki tcon1: lcd-controller@1c0d000 { 445e85f28e0SJagan Teki compatible = "allwinner,sun50i-a64-tcon-tv", 446e85f28e0SJagan Teki "allwinner,sun8i-a83t-tcon-tv"; 447e85f28e0SJagan Teki reg = <0x01c0d000 0x1000>; 448e85f28e0SJagan Teki interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; 449e85f28e0SJagan Teki clocks = <&ccu CLK_BUS_TCON1>, <&ccu CLK_TCON1>; 450e85f28e0SJagan Teki clock-names = "ahb", "tcon-ch1"; 451e85f28e0SJagan Teki resets = <&ccu RST_BUS_TCON1>; 452e85f28e0SJagan Teki reset-names = "lcd"; 453e85f28e0SJagan Teki 454e85f28e0SJagan Teki ports { 455e85f28e0SJagan Teki #address-cells = <1>; 456e85f28e0SJagan Teki #size-cells = <0>; 457e85f28e0SJagan Teki 458e85f28e0SJagan Teki tcon1_in: port@0 { 459a7f7047fSMaxime Ripard #address-cells = <1>; 460a7f7047fSMaxime Ripard #size-cells = <0>; 461e85f28e0SJagan Teki reg = <0>; 462e85f28e0SJagan Teki 463a7f7047fSMaxime Ripard tcon1_in_mixer0: endpoint@0 { 464a7f7047fSMaxime Ripard reg = <0>; 465a7f7047fSMaxime Ripard remote-endpoint = <&mixer0_out_tcon1>; 466a7f7047fSMaxime Ripard }; 467a7f7047fSMaxime Ripard 468a7f7047fSMaxime Ripard tcon1_in_mixer1: endpoint@1 { 469a7f7047fSMaxime Ripard reg = <1>; 470e85f28e0SJagan Teki remote-endpoint = <&mixer1_out_tcon1>; 471e85f28e0SJagan Teki }; 472e85f28e0SJagan Teki }; 473e85f28e0SJagan Teki 474e85f28e0SJagan Teki tcon1_out: port@1 { 475e85f28e0SJagan Teki #address-cells = <1>; 476e85f28e0SJagan Teki #size-cells = <0>; 477e85f28e0SJagan Teki reg = <1>; 478e85f28e0SJagan Teki 479e85f28e0SJagan Teki tcon1_out_hdmi: endpoint@1 { 480e85f28e0SJagan Teki reg = <1>; 481e85f28e0SJagan Teki remote-endpoint = <&hdmi_in_tcon1>; 482e85f28e0SJagan Teki }; 483e85f28e0SJagan Teki }; 484e85f28e0SJagan Teki }; 485e85f28e0SJagan Teki }; 486e85f28e0SJagan Teki 487d60ce247SPaul Kocialkowski video-codec@1c0e000 { 4884ab88516SPaul Kocialkowski compatible = "allwinner,sun50i-a64-video-engine"; 489d60ce247SPaul Kocialkowski reg = <0x01c0e000 0x1000>; 490d60ce247SPaul Kocialkowski clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>, 491d60ce247SPaul Kocialkowski <&ccu CLK_DRAM_VE>; 492d60ce247SPaul Kocialkowski clock-names = "ahb", "mod", "ram"; 493d60ce247SPaul Kocialkowski resets = <&ccu RST_BUS_VE>; 494d60ce247SPaul Kocialkowski interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; 495d60ce247SPaul Kocialkowski allwinner,sram = <&ve_sram 1>; 496d60ce247SPaul Kocialkowski }; 497d60ce247SPaul Kocialkowski 498f3dff347SAndre Przywara mmc0: mmc@1c0f000 { 499f3dff347SAndre Przywara compatible = "allwinner,sun50i-a64-mmc"; 500f3dff347SAndre Przywara reg = <0x01c0f000 0x1000>; 501f3dff347SAndre Przywara clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; 502f3dff347SAndre Przywara clock-names = "ahb", "mmc"; 503f3dff347SAndre Przywara resets = <&ccu RST_BUS_MMC0>; 504f3dff347SAndre Przywara reset-names = "ahb"; 505f3dff347SAndre Przywara interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; 50622be992fSMaxime Ripard max-frequency = <150000000>; 507f3dff347SAndre Przywara status = "disabled"; 508f3dff347SAndre Przywara #address-cells = <1>; 509f3dff347SAndre Przywara #size-cells = <0>; 510f3dff347SAndre Przywara }; 511f3dff347SAndre Przywara 512f3dff347SAndre Przywara mmc1: mmc@1c10000 { 513f3dff347SAndre Przywara compatible = "allwinner,sun50i-a64-mmc"; 514f3dff347SAndre Przywara reg = <0x01c10000 0x1000>; 515f3dff347SAndre Przywara clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>; 516f3dff347SAndre Przywara clock-names = "ahb", "mmc"; 517f3dff347SAndre Przywara resets = <&ccu RST_BUS_MMC1>; 518f3dff347SAndre Przywara reset-names = "ahb"; 519f3dff347SAndre Przywara interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 52022be992fSMaxime Ripard max-frequency = <150000000>; 521f3dff347SAndre Przywara status = "disabled"; 522f3dff347SAndre Przywara #address-cells = <1>; 523f3dff347SAndre Przywara #size-cells = <0>; 524f3dff347SAndre Przywara }; 525f3dff347SAndre Przywara 526f3dff347SAndre Przywara mmc2: mmc@1c11000 { 527f3dff347SAndre Przywara compatible = "allwinner,sun50i-a64-emmc"; 528f3dff347SAndre Przywara reg = <0x01c11000 0x1000>; 529f3dff347SAndre Przywara clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>; 530f3dff347SAndre Przywara clock-names = "ahb", "mmc"; 531f3dff347SAndre Przywara resets = <&ccu RST_BUS_MMC2>; 532f3dff347SAndre Przywara reset-names = "ahb"; 533f3dff347SAndre Przywara interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 53422be992fSMaxime Ripard max-frequency = <200000000>; 535f3dff347SAndre Przywara status = "disabled"; 536f3dff347SAndre Przywara #address-cells = <1>; 537f3dff347SAndre Przywara #size-cells = <0>; 538f3dff347SAndre Przywara }; 539f3dff347SAndre Przywara 540ac947b17SEmmanuel Vadot sid: eeprom@1c14000 { 541ac947b17SEmmanuel Vadot compatible = "allwinner,sun50i-a64-sid"; 542ac947b17SEmmanuel Vadot reg = <0x1c14000 0x400>; 54359f5e9b9SVasily Khoruzhick #address-cells = <1>; 54459f5e9b9SVasily Khoruzhick #size-cells = <1>; 54559f5e9b9SVasily Khoruzhick 54659f5e9b9SVasily Khoruzhick ths_calibration: thermal-sensor-calibration@34 { 54759f5e9b9SVasily Khoruzhick reg = <0x34 0x8>; 54859f5e9b9SVasily Khoruzhick }; 549ac947b17SEmmanuel Vadot }; 550ac947b17SEmmanuel Vadot 5510f5fc158SCorentin Labbe crypto: crypto@1c15000 { 5520f5fc158SCorentin Labbe compatible = "allwinner,sun50i-a64-crypto"; 5530f5fc158SCorentin Labbe reg = <0x01c15000 0x1000>; 5540f5fc158SCorentin Labbe interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>; 5550f5fc158SCorentin Labbe clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>; 5560f5fc158SCorentin Labbe clock-names = "bus", "mod"; 5570f5fc158SCorentin Labbe resets = <&ccu RST_BUS_CE>; 5580f5fc158SCorentin Labbe }; 5590f5fc158SCorentin Labbe 5603e3f39a7SSamuel Holland msgbox: mailbox@1c17000 { 5613e3f39a7SSamuel Holland compatible = "allwinner,sun50i-a64-msgbox", 5623e3f39a7SSamuel Holland "allwinner,sun6i-a31-msgbox"; 5633e3f39a7SSamuel Holland reg = <0x01c17000 0x1000>; 5643e3f39a7SSamuel Holland clocks = <&ccu CLK_BUS_MSGBOX>; 5653e3f39a7SSamuel Holland resets = <&ccu RST_BUS_MSGBOX>; 5663e3f39a7SSamuel Holland interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; 5673e3f39a7SSamuel Holland #mbox-cells = <1>; 5683e3f39a7SSamuel Holland }; 5693e3f39a7SSamuel Holland 570d6c9da12SCorentin LABBE usb_otg: usb@1c19000 { 571972a3ecdSIcenowy Zheng compatible = "allwinner,sun8i-a33-musb"; 572972a3ecdSIcenowy Zheng reg = <0x01c19000 0x0400>; 573972a3ecdSIcenowy Zheng clocks = <&ccu CLK_BUS_OTG>; 574972a3ecdSIcenowy Zheng resets = <&ccu RST_BUS_OTG>; 575972a3ecdSIcenowy Zheng interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; 576972a3ecdSIcenowy Zheng interrupt-names = "mc"; 577972a3ecdSIcenowy Zheng phys = <&usbphy 0>; 578972a3ecdSIcenowy Zheng phy-names = "usb"; 579972a3ecdSIcenowy Zheng extcon = <&usbphy 0>; 5800973c06bSMaxime Ripard dr_mode = "otg"; 581972a3ecdSIcenowy Zheng status = "disabled"; 582972a3ecdSIcenowy Zheng }; 583972a3ecdSIcenowy Zheng 584d6c9da12SCorentin LABBE usbphy: phy@1c19400 { 585a004ee35SIcenowy Zheng compatible = "allwinner,sun50i-a64-usb-phy"; 586a004ee35SIcenowy Zheng reg = <0x01c19400 0x14>, 5870d984797SIcenowy Zheng <0x01c1a800 0x4>, 588a004ee35SIcenowy Zheng <0x01c1b800 0x4>; 589a004ee35SIcenowy Zheng reg-names = "phy_ctrl", 5900d984797SIcenowy Zheng "pmu0", 591a004ee35SIcenowy Zheng "pmu1"; 592a004ee35SIcenowy Zheng clocks = <&ccu CLK_USB_PHY0>, 593a004ee35SIcenowy Zheng <&ccu CLK_USB_PHY1>; 594a004ee35SIcenowy Zheng clock-names = "usb0_phy", 595a004ee35SIcenowy Zheng "usb1_phy"; 596a004ee35SIcenowy Zheng resets = <&ccu RST_USB_PHY0>, 597a004ee35SIcenowy Zheng <&ccu RST_USB_PHY1>; 598a004ee35SIcenowy Zheng reset-names = "usb0_reset", 599a004ee35SIcenowy Zheng "usb1_reset"; 600a004ee35SIcenowy Zheng status = "disabled"; 601a004ee35SIcenowy Zheng #phy-cells = <1>; 602a004ee35SIcenowy Zheng }; 603a004ee35SIcenowy Zheng 604d6c9da12SCorentin LABBE ehci0: usb@1c1a000 { 605dc03a047SIcenowy Zheng compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 606dc03a047SIcenowy Zheng reg = <0x01c1a000 0x100>; 607dc03a047SIcenowy Zheng interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; 608dc03a047SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI0>, 609dc03a047SIcenowy Zheng <&ccu CLK_BUS_EHCI0>, 610dc03a047SIcenowy Zheng <&ccu CLK_USB_OHCI0>; 611dc03a047SIcenowy Zheng resets = <&ccu RST_BUS_OHCI0>, 612dc03a047SIcenowy Zheng <&ccu RST_BUS_EHCI0>; 613dc03a047SIcenowy Zheng status = "disabled"; 614dc03a047SIcenowy Zheng }; 615dc03a047SIcenowy Zheng 616d6c9da12SCorentin LABBE ohci0: usb@1c1a400 { 617dc03a047SIcenowy Zheng compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 618dc03a047SIcenowy Zheng reg = <0x01c1a400 0x100>; 619dc03a047SIcenowy Zheng interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; 620dc03a047SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI0>, 621dc03a047SIcenowy Zheng <&ccu CLK_USB_OHCI0>; 622dc03a047SIcenowy Zheng resets = <&ccu RST_BUS_OHCI0>; 623dc03a047SIcenowy Zheng status = "disabled"; 624dc03a047SIcenowy Zheng }; 625dc03a047SIcenowy Zheng 626d6c9da12SCorentin LABBE ehci1: usb@1c1b000 { 627a004ee35SIcenowy Zheng compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 628a004ee35SIcenowy Zheng reg = <0x01c1b000 0x100>; 629a004ee35SIcenowy Zheng interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; 630a004ee35SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI1>, 631a004ee35SIcenowy Zheng <&ccu CLK_BUS_EHCI1>, 632a004ee35SIcenowy Zheng <&ccu CLK_USB_OHCI1>; 633a004ee35SIcenowy Zheng resets = <&ccu RST_BUS_OHCI1>, 634a004ee35SIcenowy Zheng <&ccu RST_BUS_EHCI1>; 635a004ee35SIcenowy Zheng phys = <&usbphy 1>; 636e6064cf4SMaxime Ripard phy-names = "usb"; 637a004ee35SIcenowy Zheng status = "disabled"; 638a004ee35SIcenowy Zheng }; 639a004ee35SIcenowy Zheng 640d6c9da12SCorentin LABBE ohci1: usb@1c1b400 { 641a004ee35SIcenowy Zheng compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 642a004ee35SIcenowy Zheng reg = <0x01c1b400 0x100>; 643a004ee35SIcenowy Zheng interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; 644a004ee35SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI1>, 645a004ee35SIcenowy Zheng <&ccu CLK_USB_OHCI1>; 646a004ee35SIcenowy Zheng resets = <&ccu RST_BUS_OHCI1>; 647a004ee35SIcenowy Zheng phys = <&usbphy 1>; 648e6064cf4SMaxime Ripard phy-names = "usb"; 649a004ee35SIcenowy Zheng status = "disabled"; 650a004ee35SIcenowy Zheng }; 651a004ee35SIcenowy Zheng 652d6c9da12SCorentin LABBE ccu: clock@1c20000 { 6536bc37facSAndre Przywara compatible = "allwinner,sun50i-a64-ccu"; 6546bc37facSAndre Przywara reg = <0x01c20000 0x400>; 65544ff3cafSChen-Yu Tsai clocks = <&osc24M>, <&rtc 0>; 6566bc37facSAndre Przywara clock-names = "hosc", "losc"; 6576bc37facSAndre Przywara #clock-cells = <1>; 6586bc37facSAndre Przywara #reset-cells = <1>; 6596bc37facSAndre Przywara }; 6606bc37facSAndre Przywara 6616bc37facSAndre Przywara pio: pinctrl@1c20800 { 6626bc37facSAndre Przywara compatible = "allwinner,sun50i-a64-pinctrl"; 6636bc37facSAndre Przywara reg = <0x01c20800 0x400>; 6646bc37facSAndre Przywara interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 6656bc37facSAndre Przywara <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>, 6666bc37facSAndre Przywara <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 667b71818cbSChen-Yu Tsai clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>; 668562bf196SMaxime Ripard clock-names = "apb", "hosc", "losc"; 6696bc37facSAndre Przywara gpio-controller; 6706bc37facSAndre Przywara #gpio-cells = <3>; 6716bc37facSAndre Przywara interrupt-controller; 6726bc37facSAndre Przywara #interrupt-cells = <3>; 6736bc37facSAndre Przywara 674ff29f13eSJagan Teki csi_pins: csi-pins { 675ff29f13eSJagan Teki pins = "PE0", "PE2", "PE3", "PE4", "PE5", "PE6", 676ff29f13eSJagan Teki "PE7", "PE8", "PE9", "PE10", "PE11"; 677ff29f13eSJagan Teki function = "csi"; 678ff29f13eSJagan Teki }; 679ff29f13eSJagan Teki 680f7056b28SJagan Teki /omit-if-no-ref/ 681f7056b28SJagan Teki csi_mclk_pin: csi-mclk-pin { 682f7056b28SJagan Teki pins = "PE1"; 683f7056b28SJagan Teki function = "csi"; 684f7056b28SJagan Teki }; 685f7056b28SJagan Teki 68654eac67bSMaxime Ripard i2c0_pins: i2c0-pins { 68711239fe6SHarald Geyer pins = "PH0", "PH1"; 68811239fe6SHarald Geyer function = "i2c0"; 68911239fe6SHarald Geyer }; 69011239fe6SHarald Geyer 69154eac67bSMaxime Ripard i2c1_pins: i2c1-pins { 6926bc37facSAndre Przywara pins = "PH2", "PH3"; 6936bc37facSAndre Przywara function = "i2c1"; 6946bc37facSAndre Przywara }; 6956bc37facSAndre Przywara 69629b2c68bSOndrej Jirman i2c2_pins: i2c2-pins { 69729b2c68bSOndrej Jirman pins = "PE14", "PE15"; 69829b2c68bSOndrej Jirman function = "i2c2"; 69929b2c68bSOndrej Jirman }; 70029b2c68bSOndrej Jirman 701c478a12eSIcenowy Zheng /omit-if-no-ref/ 702c478a12eSIcenowy Zheng lcd_rgb666_pins: lcd-rgb666-pins { 703c478a12eSIcenowy Zheng pins = "PD0", "PD1", "PD2", "PD3", "PD4", 704c478a12eSIcenowy Zheng "PD5", "PD6", "PD7", "PD8", "PD9", 705c478a12eSIcenowy Zheng "PD10", "PD11", "PD12", "PD13", 706c478a12eSIcenowy Zheng "PD14", "PD15", "PD16", "PD17", 707c478a12eSIcenowy Zheng "PD18", "PD19", "PD20", "PD21"; 708c478a12eSIcenowy Zheng function = "lcd0"; 709c478a12eSIcenowy Zheng }; 710c478a12eSIcenowy Zheng 711a3e8f492SMaxime Ripard mmc0_pins: mmc0-pins { 712a3e8f492SMaxime Ripard pins = "PF0", "PF1", "PF2", "PF3", 713a3e8f492SMaxime Ripard "PF4", "PF5"; 714a3e8f492SMaxime Ripard function = "mmc0"; 715a3e8f492SMaxime Ripard drive-strength = <30>; 716a3e8f492SMaxime Ripard bias-pull-up; 717a3e8f492SMaxime Ripard }; 718a3e8f492SMaxime Ripard 719a3e8f492SMaxime Ripard mmc1_pins: mmc1-pins { 720a3e8f492SMaxime Ripard pins = "PG0", "PG1", "PG2", "PG3", 721a3e8f492SMaxime Ripard "PG4", "PG5"; 722a3e8f492SMaxime Ripard function = "mmc1"; 723a3e8f492SMaxime Ripard drive-strength = <30>; 724a3e8f492SMaxime Ripard bias-pull-up; 725a3e8f492SMaxime Ripard }; 726a3e8f492SMaxime Ripard 727a3e8f492SMaxime Ripard mmc2_pins: mmc2-pins { 728fa59dd2eSChen-Yu Tsai pins = "PC5", "PC6", "PC8", "PC9", 729a3e8f492SMaxime Ripard "PC10","PC11", "PC12", "PC13", 730a3e8f492SMaxime Ripard "PC14", "PC15", "PC16"; 731a3e8f492SMaxime Ripard function = "mmc2"; 732a3e8f492SMaxime Ripard drive-strength = <30>; 733a3e8f492SMaxime Ripard bias-pull-up; 734a3e8f492SMaxime Ripard }; 735a3e8f492SMaxime Ripard 736fa59dd2eSChen-Yu Tsai mmc2_ds_pin: mmc2-ds-pin { 737fa59dd2eSChen-Yu Tsai pins = "PC1"; 738fa59dd2eSChen-Yu Tsai function = "mmc2"; 739fa59dd2eSChen-Yu Tsai drive-strength = <30>; 740fa59dd2eSChen-Yu Tsai bias-pull-up; 741fa59dd2eSChen-Yu Tsai }; 742fa59dd2eSChen-Yu Tsai 74354eac67bSMaxime Ripard pwm_pin: pwm-pin { 744b5df280bSAndre Przywara pins = "PD22"; 745b5df280bSAndre Przywara function = "pwm"; 746b5df280bSAndre Przywara }; 747b5df280bSAndre Przywara 74854eac67bSMaxime Ripard rmii_pins: rmii-pins { 749e53f67e9SCorentin Labbe pins = "PD10", "PD11", "PD13", "PD14", "PD17", 750e53f67e9SCorentin Labbe "PD18", "PD19", "PD20", "PD22", "PD23"; 751e53f67e9SCorentin Labbe function = "emac"; 752e53f67e9SCorentin Labbe drive-strength = <40>; 753e53f67e9SCorentin Labbe }; 754e53f67e9SCorentin Labbe 75554eac67bSMaxime Ripard rgmii_pins: rgmii-pins { 756e53f67e9SCorentin Labbe pins = "PD8", "PD9", "PD10", "PD11", "PD12", 757e53f67e9SCorentin Labbe "PD13", "PD15", "PD16", "PD17", "PD18", 758e53f67e9SCorentin Labbe "PD19", "PD20", "PD21", "PD22", "PD23"; 759e53f67e9SCorentin Labbe function = "emac"; 760e53f67e9SCorentin Labbe drive-strength = <40>; 761e53f67e9SCorentin Labbe }; 762e53f67e9SCorentin Labbe 76354eac67bSMaxime Ripard spdif_tx_pin: spdif-tx-pin { 764b399d2acSMarcus Cooper pins = "PH8"; 765b399d2acSMarcus Cooper function = "spdif"; 766b399d2acSMarcus Cooper }; 767b399d2acSMarcus Cooper 76854eac67bSMaxime Ripard spi0_pins: spi0-pins { 769b518bb15SStefan Brüns pins = "PC0", "PC1", "PC2", "PC3"; 770b518bb15SStefan Brüns function = "spi0"; 771b518bb15SStefan Brüns }; 772b518bb15SStefan Brüns 77354eac67bSMaxime Ripard spi1_pins: spi1-pins { 774b518bb15SStefan Brüns pins = "PD0", "PD1", "PD2", "PD3"; 775b518bb15SStefan Brüns function = "spi1"; 776b518bb15SStefan Brüns }; 777b518bb15SStefan Brüns 778d91ebb95SChen-Yu Tsai uart0_pb_pins: uart0-pb-pins { 7796bc37facSAndre Przywara pins = "PB8", "PB9"; 7806bc37facSAndre Przywara function = "uart0"; 7816bc37facSAndre Przywara }; 782e7ba733dSAndre Przywara 78354eac67bSMaxime Ripard uart1_pins: uart1-pins { 784e7ba733dSAndre Przywara pins = "PG6", "PG7"; 785e7ba733dSAndre Przywara function = "uart1"; 786e7ba733dSAndre Przywara }; 787e7ba733dSAndre Przywara 78854eac67bSMaxime Ripard uart1_rts_cts_pins: uart1-rts-cts-pins { 789e7ba733dSAndre Przywara pins = "PG8", "PG9"; 790e7ba733dSAndre Przywara function = "uart1"; 791e7ba733dSAndre Przywara }; 79279825719SAndreas Färber 79379825719SAndreas Färber uart2_pins: uart2-pins { 79479825719SAndreas Färber pins = "PB0", "PB1"; 79579825719SAndreas Färber function = "uart2"; 79679825719SAndreas Färber }; 7972273aa16SAndreas Färber 7982273aa16SAndreas Färber uart3_pins: uart3-pins { 7992273aa16SAndreas Färber pins = "PD0", "PD1"; 8002273aa16SAndreas Färber function = "uart3"; 8012273aa16SAndreas Färber }; 8022273aa16SAndreas Färber 8032273aa16SAndreas Färber uart4_pins: uart4-pins { 8042273aa16SAndreas Färber pins = "PD2", "PD3"; 8052273aa16SAndreas Färber function = "uart4"; 8062273aa16SAndreas Färber }; 8072273aa16SAndreas Färber 8082273aa16SAndreas Färber uart4_rts_cts_pins: uart4-rts-cts-pins { 8092273aa16SAndreas Färber pins = "PD4", "PD5"; 8102273aa16SAndreas Färber function = "uart4"; 8112273aa16SAndreas Färber }; 8126bc37facSAndre Przywara }; 8136bc37facSAndre Przywara 814b399d2acSMarcus Cooper spdif: spdif@1c21000 { 815b399d2acSMarcus Cooper #sound-dai-cells = <0>; 816b399d2acSMarcus Cooper compatible = "allwinner,sun50i-a64-spdif", 817b399d2acSMarcus Cooper "allwinner,sun8i-h3-spdif"; 818b399d2acSMarcus Cooper reg = <0x01c21000 0x400>; 819b399d2acSMarcus Cooper interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 820b399d2acSMarcus Cooper clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>; 821b399d2acSMarcus Cooper resets = <&ccu RST_BUS_SPDIF>; 822b399d2acSMarcus Cooper clock-names = "apb", "spdif"; 823b399d2acSMarcus Cooper dmas = <&dma 2>; 824b399d2acSMarcus Cooper dma-names = "tx"; 825b399d2acSMarcus Cooper pinctrl-names = "default"; 826b399d2acSMarcus Cooper pinctrl-0 = <&spdif_tx_pin>; 827b399d2acSMarcus Cooper status = "disabled"; 828b399d2acSMarcus Cooper }; 829b399d2acSMarcus Cooper 83084204fb6SLuca Weiss lradc: lradc@1c21800 { 83184204fb6SLuca Weiss compatible = "allwinner,sun50i-a64-lradc", 83284204fb6SLuca Weiss "allwinner,sun8i-a83t-r-lradc"; 83384204fb6SLuca Weiss reg = <0x01c21800 0x400>; 83484204fb6SLuca Weiss interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; 83584204fb6SLuca Weiss status = "disabled"; 83684204fb6SLuca Weiss }; 83784204fb6SLuca Weiss 8381c92c009SMarcus Cooper i2s0: i2s@1c22000 { 8391c92c009SMarcus Cooper #sound-dai-cells = <0>; 8401c92c009SMarcus Cooper compatible = "allwinner,sun50i-a64-i2s", 8411c92c009SMarcus Cooper "allwinner,sun8i-h3-i2s"; 8421c92c009SMarcus Cooper reg = <0x01c22000 0x400>; 8431c92c009SMarcus Cooper interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; 8441c92c009SMarcus Cooper clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>; 8451c92c009SMarcus Cooper clock-names = "apb", "mod"; 8461c92c009SMarcus Cooper resets = <&ccu RST_BUS_I2S0>; 8471c92c009SMarcus Cooper dma-names = "rx", "tx"; 8481c92c009SMarcus Cooper dmas = <&dma 3>, <&dma 3>; 8491c92c009SMarcus Cooper status = "disabled"; 8501c92c009SMarcus Cooper }; 8511c92c009SMarcus Cooper 8521c92c009SMarcus Cooper i2s1: i2s@1c22400 { 8531c92c009SMarcus Cooper #sound-dai-cells = <0>; 8541c92c009SMarcus Cooper compatible = "allwinner,sun50i-a64-i2s", 8551c92c009SMarcus Cooper "allwinner,sun8i-h3-i2s"; 8561c92c009SMarcus Cooper reg = <0x01c22400 0x400>; 8571c92c009SMarcus Cooper interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>; 8581c92c009SMarcus Cooper clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>; 8591c92c009SMarcus Cooper clock-names = "apb", "mod"; 8601c92c009SMarcus Cooper resets = <&ccu RST_BUS_I2S1>; 8611c92c009SMarcus Cooper dma-names = "rx", "tx"; 8621c92c009SMarcus Cooper dmas = <&dma 4>, <&dma 4>; 8631c92c009SMarcus Cooper status = "disabled"; 8641c92c009SMarcus Cooper }; 8651c92c009SMarcus Cooper 866ec4a9540SVasily Khoruzhick dai: dai@1c22c00 { 867ec4a9540SVasily Khoruzhick #sound-dai-cells = <0>; 868ec4a9540SVasily Khoruzhick compatible = "allwinner,sun50i-a64-codec-i2s"; 869ec4a9540SVasily Khoruzhick reg = <0x01c22c00 0x200>; 870ec4a9540SVasily Khoruzhick interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; 871ec4a9540SVasily Khoruzhick clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; 872ec4a9540SVasily Khoruzhick clock-names = "apb", "mod"; 873ec4a9540SVasily Khoruzhick resets = <&ccu RST_BUS_CODEC>; 874ec4a9540SVasily Khoruzhick dmas = <&dma 15>, <&dma 15>; 875ec4a9540SVasily Khoruzhick dma-names = "rx", "tx"; 876ec4a9540SVasily Khoruzhick status = "disabled"; 877ec4a9540SVasily Khoruzhick }; 878ec4a9540SVasily Khoruzhick 879ec4a9540SVasily Khoruzhick codec: codec@1c22e00 { 880ec4a9540SVasily Khoruzhick #sound-dai-cells = <0>; 881ec4a9540SVasily Khoruzhick compatible = "allwinner,sun8i-a33-codec"; 882ec4a9540SVasily Khoruzhick reg = <0x01c22e00 0x600>; 883ec4a9540SVasily Khoruzhick interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; 884ec4a9540SVasily Khoruzhick clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>; 885ec4a9540SVasily Khoruzhick clock-names = "bus", "mod"; 886ec4a9540SVasily Khoruzhick status = "disabled"; 887ec4a9540SVasily Khoruzhick }; 888ec4a9540SVasily Khoruzhick 88959f5e9b9SVasily Khoruzhick ths: thermal-sensor@1c25000 { 89059f5e9b9SVasily Khoruzhick compatible = "allwinner,sun50i-a64-ths"; 89159f5e9b9SVasily Khoruzhick reg = <0x01c25000 0x100>; 89259f5e9b9SVasily Khoruzhick clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>; 89359f5e9b9SVasily Khoruzhick clock-names = "bus", "mod"; 89459f5e9b9SVasily Khoruzhick interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; 89559f5e9b9SVasily Khoruzhick resets = <&ccu RST_BUS_THS>; 89659f5e9b9SVasily Khoruzhick nvmem-cells = <&ths_calibration>; 89759f5e9b9SVasily Khoruzhick nvmem-cell-names = "calibration"; 89859f5e9b9SVasily Khoruzhick #thermal-sensor-cells = <1>; 89959f5e9b9SVasily Khoruzhick }; 90059f5e9b9SVasily Khoruzhick 9016bc37facSAndre Przywara uart0: serial@1c28000 { 9026bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 9036bc37facSAndre Przywara reg = <0x01c28000 0x400>; 9046bc37facSAndre Przywara interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; 9056bc37facSAndre Przywara reg-shift = <2>; 9066bc37facSAndre Przywara reg-io-width = <4>; 907494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART0>; 908494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART0>; 9096bc37facSAndre Przywara status = "disabled"; 9106bc37facSAndre Przywara }; 9116bc37facSAndre Przywara 9126bc37facSAndre Przywara uart1: serial@1c28400 { 9136bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 9146bc37facSAndre Przywara reg = <0x01c28400 0x400>; 9156bc37facSAndre Przywara interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 9166bc37facSAndre Przywara reg-shift = <2>; 9176bc37facSAndre Przywara reg-io-width = <4>; 918494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART1>; 919494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART1>; 9206bc37facSAndre Przywara status = "disabled"; 9216bc37facSAndre Przywara }; 9226bc37facSAndre Przywara 9236bc37facSAndre Przywara uart2: serial@1c28800 { 9246bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 9256bc37facSAndre Przywara reg = <0x01c28800 0x400>; 9266bc37facSAndre Przywara interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; 9276bc37facSAndre Przywara reg-shift = <2>; 9286bc37facSAndre Przywara reg-io-width = <4>; 929494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART2>; 930494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART2>; 9316bc37facSAndre Przywara status = "disabled"; 9326bc37facSAndre Przywara }; 9336bc37facSAndre Przywara 9346bc37facSAndre Przywara uart3: serial@1c28c00 { 9356bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 9366bc37facSAndre Przywara reg = <0x01c28c00 0x400>; 9376bc37facSAndre Przywara interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 9386bc37facSAndre Przywara reg-shift = <2>; 9396bc37facSAndre Przywara reg-io-width = <4>; 940494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART3>; 941494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART3>; 9426bc37facSAndre Przywara status = "disabled"; 9436bc37facSAndre Przywara }; 9446bc37facSAndre Przywara 9456bc37facSAndre Przywara uart4: serial@1c29000 { 9466bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 9476bc37facSAndre Przywara reg = <0x01c29000 0x400>; 9486bc37facSAndre Przywara interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; 9496bc37facSAndre Przywara reg-shift = <2>; 9506bc37facSAndre Przywara reg-io-width = <4>; 951494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART4>; 952494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART4>; 9536bc37facSAndre Przywara status = "disabled"; 9546bc37facSAndre Przywara }; 9556bc37facSAndre Przywara 9566bc37facSAndre Przywara i2c0: i2c@1c2ac00 { 9576bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-i2c"; 9586bc37facSAndre Przywara reg = <0x01c2ac00 0x400>; 9596bc37facSAndre Przywara interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; 960494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_I2C0>; 961494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_I2C0>; 96270f76289SJagan Teki pinctrl-names = "default"; 96370f76289SJagan Teki pinctrl-0 = <&i2c0_pins>; 9646bc37facSAndre Przywara status = "disabled"; 9656bc37facSAndre Przywara #address-cells = <1>; 9666bc37facSAndre Przywara #size-cells = <0>; 9676bc37facSAndre Przywara }; 9686bc37facSAndre Przywara 9696bc37facSAndre Przywara i2c1: i2c@1c2b000 { 9706bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-i2c"; 9716bc37facSAndre Przywara reg = <0x01c2b000 0x400>; 9726bc37facSAndre Przywara interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 973494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_I2C1>; 974494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_I2C1>; 97570f76289SJagan Teki pinctrl-names = "default"; 97670f76289SJagan Teki pinctrl-0 = <&i2c1_pins>; 9776bc37facSAndre Przywara status = "disabled"; 9786bc37facSAndre Przywara #address-cells = <1>; 9796bc37facSAndre Przywara #size-cells = <0>; 9806bc37facSAndre Przywara }; 9816bc37facSAndre Przywara 9826bc37facSAndre Przywara i2c2: i2c@1c2b400 { 9836bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-i2c"; 9846bc37facSAndre Przywara reg = <0x01c2b400 0x400>; 9856bc37facSAndre Przywara interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 986494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_I2C2>; 987494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_I2C2>; 98829b2c68bSOndrej Jirman pinctrl-names = "default"; 98929b2c68bSOndrej Jirman pinctrl-0 = <&i2c2_pins>; 9906bc37facSAndre Przywara status = "disabled"; 9916bc37facSAndre Przywara #address-cells = <1>; 9926bc37facSAndre Przywara #size-cells = <0>; 9936bc37facSAndre Przywara }; 9946bc37facSAndre Przywara 995d6c9da12SCorentin LABBE spi0: spi@1c68000 { 996b518bb15SStefan Brüns compatible = "allwinner,sun8i-h3-spi"; 997b518bb15SStefan Brüns reg = <0x01c68000 0x1000>; 998b518bb15SStefan Brüns interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; 999b518bb15SStefan Brüns clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; 1000b518bb15SStefan Brüns clock-names = "ahb", "mod"; 100106c1258aSStefan Brüns dmas = <&dma 23>, <&dma 23>; 100206c1258aSStefan Brüns dma-names = "rx", "tx"; 1003b518bb15SStefan Brüns pinctrl-names = "default"; 1004b518bb15SStefan Brüns pinctrl-0 = <&spi0_pins>; 1005b518bb15SStefan Brüns resets = <&ccu RST_BUS_SPI0>; 1006b518bb15SStefan Brüns status = "disabled"; 1007b518bb15SStefan Brüns num-cs = <1>; 1008b518bb15SStefan Brüns #address-cells = <1>; 1009b518bb15SStefan Brüns #size-cells = <0>; 1010b518bb15SStefan Brüns }; 1011b518bb15SStefan Brüns 1012d6c9da12SCorentin LABBE spi1: spi@1c69000 { 1013b518bb15SStefan Brüns compatible = "allwinner,sun8i-h3-spi"; 1014b518bb15SStefan Brüns reg = <0x01c69000 0x1000>; 1015b518bb15SStefan Brüns interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; 1016b518bb15SStefan Brüns clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; 1017b518bb15SStefan Brüns clock-names = "ahb", "mod"; 101806c1258aSStefan Brüns dmas = <&dma 24>, <&dma 24>; 101906c1258aSStefan Brüns dma-names = "rx", "tx"; 1020b518bb15SStefan Brüns pinctrl-names = "default"; 1021b518bb15SStefan Brüns pinctrl-0 = <&spi1_pins>; 1022b518bb15SStefan Brüns resets = <&ccu RST_BUS_SPI1>; 1023b518bb15SStefan Brüns status = "disabled"; 1024b518bb15SStefan Brüns num-cs = <1>; 1025b518bb15SStefan Brüns #address-cells = <1>; 1026b518bb15SStefan Brüns #size-cells = <0>; 1027b518bb15SStefan Brüns }; 1028b518bb15SStefan Brüns 102994f44288SCorentin Labbe emac: ethernet@1c30000 { 103094f44288SCorentin Labbe compatible = "allwinner,sun50i-a64-emac"; 103194f44288SCorentin Labbe syscon = <&syscon>; 103294f44288SCorentin Labbe reg = <0x01c30000 0x10000>; 103394f44288SCorentin Labbe interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; 103494f44288SCorentin Labbe interrupt-names = "macirq"; 103594f44288SCorentin Labbe resets = <&ccu RST_BUS_EMAC>; 103694f44288SCorentin Labbe reset-names = "stmmaceth"; 103794f44288SCorentin Labbe clocks = <&ccu CLK_BUS_EMAC>; 103894f44288SCorentin Labbe clock-names = "stmmaceth"; 103994f44288SCorentin Labbe status = "disabled"; 104094f44288SCorentin Labbe 104194f44288SCorentin Labbe mdio: mdio { 104216416084SCorentin Labbe compatible = "snps,dwmac-mdio"; 104394f44288SCorentin Labbe #address-cells = <1>; 104494f44288SCorentin Labbe #size-cells = <0>; 104594f44288SCorentin Labbe }; 104694f44288SCorentin Labbe }; 104794f44288SCorentin Labbe 10486b683d76SJagan Teki mali: gpu@1c40000 { 10496b683d76SJagan Teki compatible = "allwinner,sun50i-a64-mali", "arm,mali-400"; 10506b683d76SJagan Teki reg = <0x01c40000 0x10000>; 10516b683d76SJagan Teki interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>, 10526b683d76SJagan Teki <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, 10536b683d76SJagan Teki <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>, 10546b683d76SJagan Teki <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>, 10556b683d76SJagan Teki <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, 10566b683d76SJagan Teki <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, 10576b683d76SJagan Teki <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>; 10586b683d76SJagan Teki interrupt-names = "gp", 10596b683d76SJagan Teki "gpmmu", 10606b683d76SJagan Teki "pp0", 10616b683d76SJagan Teki "ppmmu0", 10626b683d76SJagan Teki "pp1", 10636b683d76SJagan Teki "ppmmu1", 10646b683d76SJagan Teki "pmu"; 10656b683d76SJagan Teki clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>; 10666b683d76SJagan Teki clock-names = "bus", "core"; 10676b683d76SJagan Teki resets = <&ccu RST_BUS_GPU>; 10686b683d76SJagan Teki }; 10696b683d76SJagan Teki 10706bc37facSAndre Przywara gic: interrupt-controller@1c81000 { 10716bc37facSAndre Przywara compatible = "arm,gic-400"; 10726bc37facSAndre Przywara reg = <0x01c81000 0x1000>, 10736bc37facSAndre Przywara <0x01c82000 0x2000>, 10746bc37facSAndre Przywara <0x01c84000 0x2000>, 10756bc37facSAndre Przywara <0x01c86000 0x2000>; 10766bc37facSAndre Przywara interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 10776bc37facSAndre Przywara interrupt-controller; 10786bc37facSAndre Przywara #interrupt-cells = <3>; 10796bc37facSAndre Przywara }; 10806bc37facSAndre Przywara 1081b5df280bSAndre Przywara pwm: pwm@1c21400 { 1082b5df280bSAndre Przywara compatible = "allwinner,sun50i-a64-pwm", 1083b5df280bSAndre Przywara "allwinner,sun5i-a13-pwm"; 1084b5df280bSAndre Przywara reg = <0x01c21400 0x400>; 1085b5df280bSAndre Przywara clocks = <&osc24M>; 1086b5df280bSAndre Przywara pinctrl-names = "default"; 1087b5df280bSAndre Przywara pinctrl-0 = <&pwm_pin>; 1088b5df280bSAndre Przywara #pwm-cells = <3>; 1089b5df280bSAndre Przywara status = "disabled"; 1090b5df280bSAndre Przywara }; 1091b5df280bSAndre Przywara 1092fc7c2bfbSJernej Skrabec mbus: dram-controller@1c62000 { 1093fc7c2bfbSJernej Skrabec compatible = "allwinner,sun50i-a64-mbus"; 1094fc7c2bfbSJernej Skrabec reg = <0x01c62000 0x1000>; 1095fc7c2bfbSJernej Skrabec clocks = <&ccu 112>; 1096*cff11101SOndrej Jirman #address-cells = <1>; 1097*cff11101SOndrej Jirman #size-cells = <1>; 1098fc7c2bfbSJernej Skrabec dma-ranges = <0x00000000 0x40000000 0xc0000000>; 1099fc7c2bfbSJernej Skrabec #interconnect-cells = <1>; 1100fc7c2bfbSJernej Skrabec }; 1101fc7c2bfbSJernej Skrabec 1102ff29f13eSJagan Teki csi: csi@1cb0000 { 1103ff29f13eSJagan Teki compatible = "allwinner,sun50i-a64-csi"; 1104ff29f13eSJagan Teki reg = <0x01cb0000 0x1000>; 1105ff29f13eSJagan Teki interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>; 1106ff29f13eSJagan Teki clocks = <&ccu CLK_BUS_CSI>, 1107ff29f13eSJagan Teki <&ccu CLK_CSI_SCLK>, 1108ff29f13eSJagan Teki <&ccu CLK_DRAM_CSI>; 1109ff29f13eSJagan Teki clock-names = "bus", "mod", "ram"; 1110ff29f13eSJagan Teki resets = <&ccu RST_BUS_CSI>; 1111ff29f13eSJagan Teki pinctrl-names = "default"; 1112ff29f13eSJagan Teki pinctrl-0 = <&csi_pins>; 1113ff29f13eSJagan Teki status = "disabled"; 1114ff29f13eSJagan Teki }; 1115ff29f13eSJagan Teki 111616c8ff57SJagan Teki dsi: dsi@1ca0000 { 111716c8ff57SJagan Teki compatible = "allwinner,sun50i-a64-mipi-dsi"; 111816c8ff57SJagan Teki reg = <0x01ca0000 0x1000>; 111916c8ff57SJagan Teki interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; 112016c8ff57SJagan Teki clocks = <&ccu CLK_BUS_MIPI_DSI>; 112116c8ff57SJagan Teki resets = <&ccu RST_BUS_MIPI_DSI>; 112216c8ff57SJagan Teki phys = <&dphy>; 112316c8ff57SJagan Teki phy-names = "dphy"; 112416c8ff57SJagan Teki status = "disabled"; 112516c8ff57SJagan Teki #address-cells = <1>; 112616c8ff57SJagan Teki #size-cells = <0>; 112716c8ff57SJagan Teki 112816c8ff57SJagan Teki port { 112916c8ff57SJagan Teki dsi_in_tcon0: endpoint { 113016c8ff57SJagan Teki remote-endpoint = <&tcon0_out_dsi>; 113116c8ff57SJagan Teki }; 113216c8ff57SJagan Teki }; 113316c8ff57SJagan Teki }; 113416c8ff57SJagan Teki 113516c8ff57SJagan Teki dphy: d-phy@1ca1000 { 113616c8ff57SJagan Teki compatible = "allwinner,sun50i-a64-mipi-dphy", 113716c8ff57SJagan Teki "allwinner,sun6i-a31-mipi-dphy"; 113816c8ff57SJagan Teki reg = <0x01ca1000 0x1000>; 113916c8ff57SJagan Teki clocks = <&ccu CLK_BUS_MIPI_DSI>, 114016c8ff57SJagan Teki <&ccu CLK_DSI_DPHY>; 114116c8ff57SJagan Teki clock-names = "bus", "mod"; 114216c8ff57SJagan Teki resets = <&ccu RST_BUS_MIPI_DSI>; 114316c8ff57SJagan Teki status = "disabled"; 114416c8ff57SJagan Teki #phy-cells = <0>; 114516c8ff57SJagan Teki }; 114616c8ff57SJagan Teki 1147dd00d78dSJernej Skrabec deinterlace: deinterlace@1e00000 { 1148dd00d78dSJernej Skrabec compatible = "allwinner,sun50i-a64-deinterlace", 1149dd00d78dSJernej Skrabec "allwinner,sun8i-h3-deinterlace"; 1150dd00d78dSJernej Skrabec reg = <0x01e00000 0x20000>; 1151dd00d78dSJernej Skrabec clocks = <&ccu CLK_BUS_DEINTERLACE>, 1152dd00d78dSJernej Skrabec <&ccu CLK_DEINTERLACE>, 1153dd00d78dSJernej Skrabec <&ccu CLK_DRAM_DEINTERLACE>; 1154dd00d78dSJernej Skrabec clock-names = "bus", "mod", "ram"; 1155dd00d78dSJernej Skrabec resets = <&ccu RST_BUS_DEINTERLACE>; 1156dd00d78dSJernej Skrabec interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; 1157dd00d78dSJernej Skrabec interconnects = <&mbus 9>; 1158dd00d78dSJernej Skrabec interconnect-names = "dma-mem"; 1159dd00d78dSJernej Skrabec }; 1160dd00d78dSJernej Skrabec 1161e85f28e0SJagan Teki hdmi: hdmi@1ee0000 { 1162e85f28e0SJagan Teki compatible = "allwinner,sun50i-a64-dw-hdmi", 1163e85f28e0SJagan Teki "allwinner,sun8i-a83t-dw-hdmi"; 1164e85f28e0SJagan Teki reg = <0x01ee0000 0x10000>; 1165e85f28e0SJagan Teki reg-io-width = <1>; 1166e85f28e0SJagan Teki interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>; 1167e85f28e0SJagan Teki clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, 1168e85f28e0SJagan Teki <&ccu CLK_HDMI>; 1169e85f28e0SJagan Teki clock-names = "iahb", "isfr", "tmds"; 1170e85f28e0SJagan Teki resets = <&ccu RST_BUS_HDMI1>; 1171e85f28e0SJagan Teki reset-names = "ctrl"; 1172e85f28e0SJagan Teki phys = <&hdmi_phy>; 1173d40113fbSMaxime Ripard phy-names = "phy"; 1174e85f28e0SJagan Teki status = "disabled"; 1175e85f28e0SJagan Teki 1176e85f28e0SJagan Teki ports { 1177e85f28e0SJagan Teki #address-cells = <1>; 1178e85f28e0SJagan Teki #size-cells = <0>; 1179e85f28e0SJagan Teki 1180e85f28e0SJagan Teki hdmi_in: port@0 { 1181e85f28e0SJagan Teki reg = <0>; 1182e85f28e0SJagan Teki 1183e85f28e0SJagan Teki hdmi_in_tcon1: endpoint { 1184e85f28e0SJagan Teki remote-endpoint = <&tcon1_out_hdmi>; 1185e85f28e0SJagan Teki }; 1186e85f28e0SJagan Teki }; 1187e85f28e0SJagan Teki 1188e85f28e0SJagan Teki hdmi_out: port@1 { 1189e85f28e0SJagan Teki reg = <1>; 1190e85f28e0SJagan Teki }; 1191e85f28e0SJagan Teki }; 1192e85f28e0SJagan Teki }; 1193e85f28e0SJagan Teki 1194e85f28e0SJagan Teki hdmi_phy: hdmi-phy@1ef0000 { 1195e85f28e0SJagan Teki compatible = "allwinner,sun50i-a64-hdmi-phy"; 1196e85f28e0SJagan Teki reg = <0x01ef0000 0x10000>; 1197e85f28e0SJagan Teki clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, 1198b71818cbSChen-Yu Tsai <&ccu CLK_PLL_VIDEO0>; 1199e85f28e0SJagan Teki clock-names = "bus", "mod", "pll-0"; 1200e85f28e0SJagan Teki resets = <&ccu RST_BUS_HDMI0>; 1201e85f28e0SJagan Teki reset-names = "phy"; 1202e85f28e0SJagan Teki #phy-cells = <0>; 1203e85f28e0SJagan Teki }; 1204e85f28e0SJagan Teki 12056bc37facSAndre Przywara rtc: rtc@1f00000 { 120644ff3cafSChen-Yu Tsai compatible = "allwinner,sun50i-a64-rtc", 120744ff3cafSChen-Yu Tsai "allwinner,sun8i-h3-rtc"; 120844ff3cafSChen-Yu Tsai reg = <0x01f00000 0x400>; 12096bc37facSAndre Przywara interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, 12106bc37facSAndre Przywara <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 121144ff3cafSChen-Yu Tsai clock-output-names = "osc32k", "osc32k-out", "iosc"; 1212e1a9a474SJagan Teki clocks = <&osc32k>; 1213e1a9a474SJagan Teki #clock-cells = <1>; 12146bc37facSAndre Przywara }; 1215791a9e00SIcenowy Zheng 1216535ca508SIcenowy Zheng r_intc: interrupt-controller@1f00c00 { 1217535ca508SIcenowy Zheng compatible = "allwinner,sun50i-a64-r-intc", 1218535ca508SIcenowy Zheng "allwinner,sun6i-a31-r-intc"; 1219535ca508SIcenowy Zheng interrupt-controller; 1220535ca508SIcenowy Zheng #interrupt-cells = <2>; 1221535ca508SIcenowy Zheng reg = <0x01f00c00 0x400>; 1222535ca508SIcenowy Zheng interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 1223535ca508SIcenowy Zheng }; 1224535ca508SIcenowy Zheng 1225791a9e00SIcenowy Zheng r_ccu: clock@1f01400 { 1226791a9e00SIcenowy Zheng compatible = "allwinner,sun50i-a64-r-ccu"; 1227791a9e00SIcenowy Zheng reg = <0x01f01400 0x100>; 1228b71818cbSChen-Yu Tsai clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, 1229b71818cbSChen-Yu Tsai <&ccu CLK_PLL_PERIPH0>; 1230f74994a9SChen-Yu Tsai clock-names = "hosc", "losc", "iosc", "pll-periph"; 1231791a9e00SIcenowy Zheng #clock-cells = <1>; 1232791a9e00SIcenowy Zheng #reset-cells = <1>; 1233791a9e00SIcenowy Zheng }; 1234ec427905SIcenowy Zheng 1235ec4a9540SVasily Khoruzhick codec_analog: codec-analog@1f015c0 { 1236ec4a9540SVasily Khoruzhick compatible = "allwinner,sun50i-a64-codec-analog"; 1237ec4a9540SVasily Khoruzhick reg = <0x01f015c0 0x4>; 1238ec4a9540SVasily Khoruzhick status = "disabled"; 1239ec4a9540SVasily Khoruzhick }; 1240ec4a9540SVasily Khoruzhick 1241871b5352SIcenowy Zheng r_i2c: i2c@1f02400 { 1242871b5352SIcenowy Zheng compatible = "allwinner,sun50i-a64-i2c", 1243871b5352SIcenowy Zheng "allwinner,sun6i-a31-i2c"; 1244871b5352SIcenowy Zheng reg = <0x01f02400 0x400>; 1245871b5352SIcenowy Zheng interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>; 1246871b5352SIcenowy Zheng clocks = <&r_ccu CLK_APB0_I2C>; 1247871b5352SIcenowy Zheng resets = <&r_ccu RST_APB0_I2C>; 1248871b5352SIcenowy Zheng status = "disabled"; 1249871b5352SIcenowy Zheng #address-cells = <1>; 1250871b5352SIcenowy Zheng #size-cells = <0>; 1251871b5352SIcenowy Zheng }; 1252871b5352SIcenowy Zheng 125344a4f416SIgors Makejevs r_ir: ir@1f02000 { 125444a4f416SIgors Makejevs compatible = "allwinner,sun50i-a64-ir", 125544a4f416SIgors Makejevs "allwinner,sun6i-a31-ir"; 125644a4f416SIgors Makejevs reg = <0x01f02000 0x400>; 125744a4f416SIgors Makejevs clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>; 125844a4f416SIgors Makejevs clock-names = "apb", "ir"; 125944a4f416SIgors Makejevs resets = <&r_ccu RST_APB0_IR>; 126044a4f416SIgors Makejevs interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 126144a4f416SIgors Makejevs pinctrl-names = "default"; 126244a4f416SIgors Makejevs pinctrl-0 = <&r_ir_rx_pin>; 126344a4f416SIgors Makejevs status = "disabled"; 126444a4f416SIgors Makejevs }; 126544a4f416SIgors Makejevs 1266b5df280bSAndre Przywara r_pwm: pwm@1f03800 { 1267b5df280bSAndre Przywara compatible = "allwinner,sun50i-a64-pwm", 1268b5df280bSAndre Przywara "allwinner,sun5i-a13-pwm"; 1269b5df280bSAndre Przywara reg = <0x01f03800 0x400>; 1270b5df280bSAndre Przywara clocks = <&osc24M>; 1271b5df280bSAndre Przywara pinctrl-names = "default"; 1272b5df280bSAndre Przywara pinctrl-0 = <&r_pwm_pin>; 1273b5df280bSAndre Przywara #pwm-cells = <3>; 1274b5df280bSAndre Przywara status = "disabled"; 1275b5df280bSAndre Przywara }; 1276b5df280bSAndre Przywara 1277d6c9da12SCorentin LABBE r_pio: pinctrl@1f02c00 { 1278ec427905SIcenowy Zheng compatible = "allwinner,sun50i-a64-r-pinctrl"; 1279ec427905SIcenowy Zheng reg = <0x01f02c00 0x400>; 1280ec427905SIcenowy Zheng interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; 1281494d8a2cSChen-Yu Tsai clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>; 1282ec427905SIcenowy Zheng clock-names = "apb", "hosc", "losc"; 1283ec427905SIcenowy Zheng gpio-controller; 1284ec427905SIcenowy Zheng #gpio-cells = <3>; 1285ec427905SIcenowy Zheng interrupt-controller; 1286ec427905SIcenowy Zheng #interrupt-cells = <3>; 12873b38fdedSIcenowy Zheng 12881b6ff1cbSChen-Yu Tsai r_i2c_pl89_pins: r-i2c-pl89-pins { 1289871b5352SIcenowy Zheng pins = "PL8", "PL9"; 1290871b5352SIcenowy Zheng function = "s_i2c"; 1291871b5352SIcenowy Zheng }; 1292871b5352SIcenowy Zheng 129344a4f416SIgors Makejevs r_ir_rx_pin: r-ir-rx-pin { 129444a4f416SIgors Makejevs pins = "PL11"; 129544a4f416SIgors Makejevs function = "s_cir_rx"; 129644a4f416SIgors Makejevs }; 129744a4f416SIgors Makejevs 129854eac67bSMaxime Ripard r_pwm_pin: r-pwm-pin { 1299b5df280bSAndre Przywara pins = "PL10"; 1300b5df280bSAndre Przywara function = "s_pwm"; 1301b5df280bSAndre Przywara }; 1302b5df280bSAndre Przywara 130354eac67bSMaxime Ripard r_rsb_pins: r-rsb-pins { 13043b38fdedSIcenowy Zheng pins = "PL0", "PL1"; 13053b38fdedSIcenowy Zheng function = "s_rsb"; 13063b38fdedSIcenowy Zheng }; 13073b38fdedSIcenowy Zheng }; 13083b38fdedSIcenowy Zheng 13093b38fdedSIcenowy Zheng r_rsb: rsb@1f03400 { 13103b38fdedSIcenowy Zheng compatible = "allwinner,sun8i-a23-rsb"; 13113b38fdedSIcenowy Zheng reg = <0x01f03400 0x400>; 13123b38fdedSIcenowy Zheng interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 13133b38fdedSIcenowy Zheng clocks = <&r_ccu 6>; 13143b38fdedSIcenowy Zheng clock-frequency = <3000000>; 13153b38fdedSIcenowy Zheng resets = <&r_ccu 2>; 13163b38fdedSIcenowy Zheng pinctrl-names = "default"; 13173b38fdedSIcenowy Zheng pinctrl-0 = <&r_rsb_pins>; 13183b38fdedSIcenowy Zheng status = "disabled"; 13193b38fdedSIcenowy Zheng #address-cells = <1>; 13203b38fdedSIcenowy Zheng #size-cells = <0>; 1321ec427905SIcenowy Zheng }; 1322d4185043SHarald Geyer 1323d4185043SHarald Geyer wdt0: watchdog@1c20ca0 { 1324d4185043SHarald Geyer compatible = "allwinner,sun50i-a64-wdt", 1325d4185043SHarald Geyer "allwinner,sun6i-a31-wdt"; 1326d4185043SHarald Geyer reg = <0x01c20ca0 0x20>; 1327d4185043SHarald Geyer interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; 13289e1975f0SMaxime Ripard clocks = <&osc24M>; 1329d4185043SHarald Geyer }; 13306bc37facSAndre Przywara }; 13316bc37facSAndre Przywara}; 1332