16bc37facSAndre Przywara/* 26bc37facSAndre Przywara * Copyright (C) 2016 ARM Ltd. 36bc37facSAndre Przywara * based on the Allwinner H3 dtsi: 46bc37facSAndre Przywara * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com> 56bc37facSAndre Przywara * 66bc37facSAndre Przywara * This file is dual-licensed: you can use it either under the terms 76bc37facSAndre Przywara * of the GPL or the X11 license, at your option. Note that this dual 86bc37facSAndre Przywara * licensing only applies to this file, and not this project as a 96bc37facSAndre Przywara * whole. 106bc37facSAndre Przywara * 116bc37facSAndre Przywara * a) This file is free software; you can redistribute it and/or 126bc37facSAndre Przywara * modify it under the terms of the GNU General Public License as 136bc37facSAndre Przywara * published by the Free Software Foundation; either version 2 of the 146bc37facSAndre Przywara * License, or (at your option) any later version. 156bc37facSAndre Przywara * 166bc37facSAndre Przywara * This file is distributed in the hope that it will be useful, 176bc37facSAndre Przywara * but WITHOUT ANY WARRANTY; without even the implied warranty of 186bc37facSAndre Przywara * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 196bc37facSAndre Przywara * GNU General Public License for more details. 206bc37facSAndre Przywara * 216bc37facSAndre Przywara * Or, alternatively, 226bc37facSAndre Przywara * 236bc37facSAndre Przywara * b) Permission is hereby granted, free of charge, to any person 246bc37facSAndre Przywara * obtaining a copy of this software and associated documentation 256bc37facSAndre Przywara * files (the "Software"), to deal in the Software without 266bc37facSAndre Przywara * restriction, including without limitation the rights to use, 276bc37facSAndre Przywara * copy, modify, merge, publish, distribute, sublicense, and/or 286bc37facSAndre Przywara * sell copies of the Software, and to permit persons to whom the 296bc37facSAndre Przywara * Software is furnished to do so, subject to the following 306bc37facSAndre Przywara * conditions: 316bc37facSAndre Przywara * 326bc37facSAndre Przywara * The above copyright notice and this permission notice shall be 336bc37facSAndre Przywara * included in all copies or substantial portions of the Software. 346bc37facSAndre Przywara * 356bc37facSAndre Przywara * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 366bc37facSAndre Przywara * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 376bc37facSAndre Przywara * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 386bc37facSAndre Przywara * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 396bc37facSAndre Przywara * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 406bc37facSAndre Przywara * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 416bc37facSAndre Przywara * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 426bc37facSAndre Przywara * OTHER DEALINGS IN THE SOFTWARE. 436bc37facSAndre Przywara */ 446bc37facSAndre Przywara 45a004ee35SIcenowy Zheng#include <dt-bindings/clock/sun50i-a64-ccu.h> 46494d8a2cSChen-Yu Tsai#include <dt-bindings/clock/sun8i-r-ccu.h> 476bc37facSAndre Przywara#include <dt-bindings/interrupt-controller/arm-gic.h> 48a004ee35SIcenowy Zheng#include <dt-bindings/reset/sun50i-a64-ccu.h> 496bc37facSAndre Przywara 506bc37facSAndre Przywara/ { 516bc37facSAndre Przywara interrupt-parent = <&gic>; 526bc37facSAndre Przywara #address-cells = <1>; 536bc37facSAndre Przywara #size-cells = <1>; 546bc37facSAndre Przywara 556bc37facSAndre Przywara cpus { 566bc37facSAndre Przywara #address-cells = <1>; 576bc37facSAndre Przywara #size-cells = <0>; 586bc37facSAndre Przywara 596bc37facSAndre Przywara cpu0: cpu@0 { 606bc37facSAndre Przywara compatible = "arm,cortex-a53", "arm,armv8"; 616bc37facSAndre Przywara device_type = "cpu"; 626bc37facSAndre Przywara reg = <0>; 636bc37facSAndre Przywara enable-method = "psci"; 646bc37facSAndre Przywara }; 656bc37facSAndre Przywara 666bc37facSAndre Przywara cpu1: cpu@1 { 676bc37facSAndre Przywara compatible = "arm,cortex-a53", "arm,armv8"; 686bc37facSAndre Przywara device_type = "cpu"; 696bc37facSAndre Przywara reg = <1>; 706bc37facSAndre Przywara enable-method = "psci"; 716bc37facSAndre Przywara }; 726bc37facSAndre Przywara 736bc37facSAndre Przywara cpu2: cpu@2 { 746bc37facSAndre Przywara compatible = "arm,cortex-a53", "arm,armv8"; 756bc37facSAndre Przywara device_type = "cpu"; 766bc37facSAndre Przywara reg = <2>; 776bc37facSAndre Przywara enable-method = "psci"; 786bc37facSAndre Przywara }; 796bc37facSAndre Przywara 806bc37facSAndre Przywara cpu3: cpu@3 { 816bc37facSAndre Przywara compatible = "arm,cortex-a53", "arm,armv8"; 826bc37facSAndre Przywara device_type = "cpu"; 836bc37facSAndre Przywara reg = <3>; 846bc37facSAndre Przywara enable-method = "psci"; 856bc37facSAndre Przywara }; 866bc37facSAndre Przywara }; 876bc37facSAndre Przywara 886bc37facSAndre Przywara osc24M: osc24M_clk { 896bc37facSAndre Przywara #clock-cells = <0>; 906bc37facSAndre Przywara compatible = "fixed-clock"; 916bc37facSAndre Przywara clock-frequency = <24000000>; 926bc37facSAndre Przywara clock-output-names = "osc24M"; 936bc37facSAndre Przywara }; 946bc37facSAndre Przywara 956bc37facSAndre Przywara osc32k: osc32k_clk { 966bc37facSAndre Przywara #clock-cells = <0>; 976bc37facSAndre Przywara compatible = "fixed-clock"; 986bc37facSAndre Przywara clock-frequency = <32768>; 996bc37facSAndre Przywara clock-output-names = "osc32k"; 1006bc37facSAndre Przywara }; 1016bc37facSAndre Przywara 102791a9e00SIcenowy Zheng iosc: internal-osc-clk { 103791a9e00SIcenowy Zheng #clock-cells = <0>; 104791a9e00SIcenowy Zheng compatible = "fixed-clock"; 105791a9e00SIcenowy Zheng clock-frequency = <16000000>; 106791a9e00SIcenowy Zheng clock-accuracy = <300000000>; 107791a9e00SIcenowy Zheng clock-output-names = "iosc"; 108791a9e00SIcenowy Zheng }; 109791a9e00SIcenowy Zheng 1106bc37facSAndre Przywara psci { 1116bc37facSAndre Przywara compatible = "arm,psci-0.2"; 1126bc37facSAndre Przywara method = "smc"; 1136bc37facSAndre Przywara }; 1146bc37facSAndre Przywara 1156bc37facSAndre Przywara timer { 1166bc37facSAndre Przywara compatible = "arm,armv8-timer"; 1176bc37facSAndre Przywara interrupts = <GIC_PPI 13 1186bc37facSAndre Przywara (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 1196bc37facSAndre Przywara <GIC_PPI 14 1206bc37facSAndre Przywara (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 1216bc37facSAndre Przywara <GIC_PPI 11 1226bc37facSAndre Przywara (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>, 1236bc37facSAndre Przywara <GIC_PPI 10 1246bc37facSAndre Przywara (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 1256bc37facSAndre Przywara }; 1266bc37facSAndre Przywara 1276bc37facSAndre Przywara soc { 1286bc37facSAndre Przywara compatible = "simple-bus"; 1296bc37facSAndre Przywara #address-cells = <1>; 1306bc37facSAndre Przywara #size-cells = <1>; 1316bc37facSAndre Przywara ranges; 1326bc37facSAndre Przywara 13379b95360SCorentin Labbe syscon: syscon@1c00000 { 13479b95360SCorentin Labbe compatible = "allwinner,sun50i-a64-system-controller", 13579b95360SCorentin Labbe "syscon"; 13679b95360SCorentin Labbe reg = <0x01c00000 0x1000>; 13779b95360SCorentin Labbe }; 13879b95360SCorentin Labbe 139c32637e0SStefan Brüns dma: dma-controller@1c02000 { 140c32637e0SStefan Brüns compatible = "allwinner,sun50i-a64-dma"; 141c32637e0SStefan Brüns reg = <0x01c02000 0x1000>; 142c32637e0SStefan Brüns interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; 143c32637e0SStefan Brüns clocks = <&ccu CLK_BUS_DMA>; 144c32637e0SStefan Brüns dma-channels = <8>; 145c32637e0SStefan Brüns dma-requests = <27>; 146c32637e0SStefan Brüns resets = <&ccu RST_BUS_DMA>; 147c32637e0SStefan Brüns #dma-cells = <1>; 148c32637e0SStefan Brüns }; 149c32637e0SStefan Brüns 150f3dff347SAndre Przywara mmc0: mmc@1c0f000 { 151f3dff347SAndre Przywara compatible = "allwinner,sun50i-a64-mmc"; 152f3dff347SAndre Przywara reg = <0x01c0f000 0x1000>; 153f3dff347SAndre Przywara clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; 154f3dff347SAndre Przywara clock-names = "ahb", "mmc"; 155f3dff347SAndre Przywara resets = <&ccu RST_BUS_MMC0>; 156f3dff347SAndre Przywara reset-names = "ahb"; 157f3dff347SAndre Przywara interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; 15822be992fSMaxime Ripard max-frequency = <150000000>; 159f3dff347SAndre Przywara status = "disabled"; 160f3dff347SAndre Przywara #address-cells = <1>; 161f3dff347SAndre Przywara #size-cells = <0>; 162f3dff347SAndre Przywara }; 163f3dff347SAndre Przywara 164f3dff347SAndre Przywara mmc1: mmc@1c10000 { 165f3dff347SAndre Przywara compatible = "allwinner,sun50i-a64-mmc"; 166f3dff347SAndre Przywara reg = <0x01c10000 0x1000>; 167f3dff347SAndre Przywara clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>; 168f3dff347SAndre Przywara clock-names = "ahb", "mmc"; 169f3dff347SAndre Przywara resets = <&ccu RST_BUS_MMC1>; 170f3dff347SAndre Przywara reset-names = "ahb"; 171f3dff347SAndre Przywara interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 17222be992fSMaxime Ripard max-frequency = <150000000>; 173f3dff347SAndre Przywara status = "disabled"; 174f3dff347SAndre Przywara #address-cells = <1>; 175f3dff347SAndre Przywara #size-cells = <0>; 176f3dff347SAndre Przywara }; 177f3dff347SAndre Przywara 178f3dff347SAndre Przywara mmc2: mmc@1c11000 { 179f3dff347SAndre Przywara compatible = "allwinner,sun50i-a64-emmc"; 180f3dff347SAndre Przywara reg = <0x01c11000 0x1000>; 181f3dff347SAndre Przywara clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>; 182f3dff347SAndre Przywara clock-names = "ahb", "mmc"; 183f3dff347SAndre Przywara resets = <&ccu RST_BUS_MMC2>; 184f3dff347SAndre Przywara reset-names = "ahb"; 185f3dff347SAndre Przywara interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 18622be992fSMaxime Ripard max-frequency = <200000000>; 187f3dff347SAndre Przywara status = "disabled"; 188f3dff347SAndre Przywara #address-cells = <1>; 189f3dff347SAndre Przywara #size-cells = <0>; 190f3dff347SAndre Przywara }; 191f3dff347SAndre Przywara 192d6c9da12SCorentin LABBE usb_otg: usb@1c19000 { 193972a3ecdSIcenowy Zheng compatible = "allwinner,sun8i-a33-musb"; 194972a3ecdSIcenowy Zheng reg = <0x01c19000 0x0400>; 195972a3ecdSIcenowy Zheng clocks = <&ccu CLK_BUS_OTG>; 196972a3ecdSIcenowy Zheng resets = <&ccu RST_BUS_OTG>; 197972a3ecdSIcenowy Zheng interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; 198972a3ecdSIcenowy Zheng interrupt-names = "mc"; 199972a3ecdSIcenowy Zheng phys = <&usbphy 0>; 200972a3ecdSIcenowy Zheng phy-names = "usb"; 201972a3ecdSIcenowy Zheng extcon = <&usbphy 0>; 202972a3ecdSIcenowy Zheng status = "disabled"; 203972a3ecdSIcenowy Zheng }; 204972a3ecdSIcenowy Zheng 205d6c9da12SCorentin LABBE usbphy: phy@1c19400 { 206a004ee35SIcenowy Zheng compatible = "allwinner,sun50i-a64-usb-phy"; 207a004ee35SIcenowy Zheng reg = <0x01c19400 0x14>, 2080d984797SIcenowy Zheng <0x01c1a800 0x4>, 209a004ee35SIcenowy Zheng <0x01c1b800 0x4>; 210a004ee35SIcenowy Zheng reg-names = "phy_ctrl", 2110d984797SIcenowy Zheng "pmu0", 212a004ee35SIcenowy Zheng "pmu1"; 213a004ee35SIcenowy Zheng clocks = <&ccu CLK_USB_PHY0>, 214a004ee35SIcenowy Zheng <&ccu CLK_USB_PHY1>; 215a004ee35SIcenowy Zheng clock-names = "usb0_phy", 216a004ee35SIcenowy Zheng "usb1_phy"; 217a004ee35SIcenowy Zheng resets = <&ccu RST_USB_PHY0>, 218a004ee35SIcenowy Zheng <&ccu RST_USB_PHY1>; 219a004ee35SIcenowy Zheng reset-names = "usb0_reset", 220a004ee35SIcenowy Zheng "usb1_reset"; 221a004ee35SIcenowy Zheng status = "disabled"; 222a004ee35SIcenowy Zheng #phy-cells = <1>; 223a004ee35SIcenowy Zheng }; 224a004ee35SIcenowy Zheng 225d6c9da12SCorentin LABBE ehci0: usb@1c1a000 { 226dc03a047SIcenowy Zheng compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 227dc03a047SIcenowy Zheng reg = <0x01c1a000 0x100>; 228dc03a047SIcenowy Zheng interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; 229dc03a047SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI0>, 230dc03a047SIcenowy Zheng <&ccu CLK_BUS_EHCI0>, 231dc03a047SIcenowy Zheng <&ccu CLK_USB_OHCI0>; 232dc03a047SIcenowy Zheng resets = <&ccu RST_BUS_OHCI0>, 233dc03a047SIcenowy Zheng <&ccu RST_BUS_EHCI0>; 234dc03a047SIcenowy Zheng status = "disabled"; 235dc03a047SIcenowy Zheng }; 236dc03a047SIcenowy Zheng 237d6c9da12SCorentin LABBE ohci0: usb@1c1a400 { 238dc03a047SIcenowy Zheng compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 239dc03a047SIcenowy Zheng reg = <0x01c1a400 0x100>; 240dc03a047SIcenowy Zheng interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; 241dc03a047SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI0>, 242dc03a047SIcenowy Zheng <&ccu CLK_USB_OHCI0>; 243dc03a047SIcenowy Zheng resets = <&ccu RST_BUS_OHCI0>; 244dc03a047SIcenowy Zheng status = "disabled"; 245dc03a047SIcenowy Zheng }; 246dc03a047SIcenowy Zheng 247d6c9da12SCorentin LABBE ehci1: usb@1c1b000 { 248a004ee35SIcenowy Zheng compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 249a004ee35SIcenowy Zheng reg = <0x01c1b000 0x100>; 250a004ee35SIcenowy Zheng interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; 251a004ee35SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI1>, 252a004ee35SIcenowy Zheng <&ccu CLK_BUS_EHCI1>, 253a004ee35SIcenowy Zheng <&ccu CLK_USB_OHCI1>; 254a004ee35SIcenowy Zheng resets = <&ccu RST_BUS_OHCI1>, 255a004ee35SIcenowy Zheng <&ccu RST_BUS_EHCI1>; 256a004ee35SIcenowy Zheng phys = <&usbphy 1>; 257a004ee35SIcenowy Zheng phy-names = "usb"; 258a004ee35SIcenowy Zheng status = "disabled"; 259a004ee35SIcenowy Zheng }; 260a004ee35SIcenowy Zheng 261d6c9da12SCorentin LABBE ohci1: usb@1c1b400 { 262a004ee35SIcenowy Zheng compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 263a004ee35SIcenowy Zheng reg = <0x01c1b400 0x100>; 264a004ee35SIcenowy Zheng interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; 265a004ee35SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI1>, 266a004ee35SIcenowy Zheng <&ccu CLK_USB_OHCI1>; 267a004ee35SIcenowy Zheng resets = <&ccu RST_BUS_OHCI1>; 268a004ee35SIcenowy Zheng phys = <&usbphy 1>; 269a004ee35SIcenowy Zheng phy-names = "usb"; 270a004ee35SIcenowy Zheng status = "disabled"; 271a004ee35SIcenowy Zheng }; 272a004ee35SIcenowy Zheng 273d6c9da12SCorentin LABBE ccu: clock@1c20000 { 2746bc37facSAndre Przywara compatible = "allwinner,sun50i-a64-ccu"; 2756bc37facSAndre Przywara reg = <0x01c20000 0x400>; 2766bc37facSAndre Przywara clocks = <&osc24M>, <&osc32k>; 2776bc37facSAndre Przywara clock-names = "hosc", "losc"; 2786bc37facSAndre Przywara #clock-cells = <1>; 2796bc37facSAndre Przywara #reset-cells = <1>; 2806bc37facSAndre Przywara }; 2816bc37facSAndre Przywara 2826bc37facSAndre Przywara pio: pinctrl@1c20800 { 2836bc37facSAndre Przywara compatible = "allwinner,sun50i-a64-pinctrl"; 2846bc37facSAndre Przywara reg = <0x01c20800 0x400>; 2856bc37facSAndre Przywara interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 2866bc37facSAndre Przywara <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>, 2876bc37facSAndre Przywara <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 288f98121f3SArnd Bergmann clocks = <&ccu 58>; 2896bc37facSAndre Przywara gpio-controller; 2906bc37facSAndre Przywara #gpio-cells = <3>; 2916bc37facSAndre Przywara interrupt-controller; 2926bc37facSAndre Przywara #interrupt-cells = <3>; 2936bc37facSAndre Przywara 2946bc37facSAndre Przywara i2c1_pins: i2c1_pins { 2956bc37facSAndre Przywara pins = "PH2", "PH3"; 2966bc37facSAndre Przywara function = "i2c1"; 2976bc37facSAndre Przywara }; 2986bc37facSAndre Przywara 299a3e8f492SMaxime Ripard mmc0_pins: mmc0-pins { 300a3e8f492SMaxime Ripard pins = "PF0", "PF1", "PF2", "PF3", 301a3e8f492SMaxime Ripard "PF4", "PF5"; 302a3e8f492SMaxime Ripard function = "mmc0"; 303a3e8f492SMaxime Ripard drive-strength = <30>; 304a3e8f492SMaxime Ripard bias-pull-up; 305a3e8f492SMaxime Ripard }; 306a3e8f492SMaxime Ripard 307a3e8f492SMaxime Ripard mmc1_pins: mmc1-pins { 308a3e8f492SMaxime Ripard pins = "PG0", "PG1", "PG2", "PG3", 309a3e8f492SMaxime Ripard "PG4", "PG5"; 310a3e8f492SMaxime Ripard function = "mmc1"; 311a3e8f492SMaxime Ripard drive-strength = <30>; 312a3e8f492SMaxime Ripard bias-pull-up; 313a3e8f492SMaxime Ripard }; 314a3e8f492SMaxime Ripard 315a3e8f492SMaxime Ripard mmc2_pins: mmc2-pins { 316a3e8f492SMaxime Ripard pins = "PC1", "PC5", "PC6", "PC8", "PC9", 317a3e8f492SMaxime Ripard "PC10","PC11", "PC12", "PC13", 318a3e8f492SMaxime Ripard "PC14", "PC15", "PC16"; 319a3e8f492SMaxime Ripard function = "mmc2"; 320a3e8f492SMaxime Ripard drive-strength = <30>; 321a3e8f492SMaxime Ripard bias-pull-up; 322a3e8f492SMaxime Ripard }; 323a3e8f492SMaxime Ripard 324e53f67e9SCorentin Labbe rmii_pins: rmii_pins { 325e53f67e9SCorentin Labbe pins = "PD10", "PD11", "PD13", "PD14", "PD17", 326e53f67e9SCorentin Labbe "PD18", "PD19", "PD20", "PD22", "PD23"; 327e53f67e9SCorentin Labbe function = "emac"; 328e53f67e9SCorentin Labbe drive-strength = <40>; 329e53f67e9SCorentin Labbe }; 330e53f67e9SCorentin Labbe 331e53f67e9SCorentin Labbe rgmii_pins: rgmii_pins { 332e53f67e9SCorentin Labbe pins = "PD8", "PD9", "PD10", "PD11", "PD12", 333e53f67e9SCorentin Labbe "PD13", "PD15", "PD16", "PD17", "PD18", 334e53f67e9SCorentin Labbe "PD19", "PD20", "PD21", "PD22", "PD23"; 335e53f67e9SCorentin Labbe function = "emac"; 336e53f67e9SCorentin Labbe drive-strength = <40>; 337e53f67e9SCorentin Labbe }; 338e53f67e9SCorentin Labbe 339b518bb15SStefan Brüns spi0_pins: spi0 { 340b518bb15SStefan Brüns pins = "PC0", "PC1", "PC2", "PC3"; 341b518bb15SStefan Brüns function = "spi0"; 342b518bb15SStefan Brüns }; 343b518bb15SStefan Brüns 344b518bb15SStefan Brüns spi1_pins: spi1 { 345b518bb15SStefan Brüns pins = "PD0", "PD1", "PD2", "PD3"; 346b518bb15SStefan Brüns function = "spi1"; 347b518bb15SStefan Brüns }; 348b518bb15SStefan Brüns 34992d378fbSCorentin LABBE uart0_pins_a: uart0 { 3506bc37facSAndre Przywara pins = "PB8", "PB9"; 3516bc37facSAndre Przywara function = "uart0"; 3526bc37facSAndre Przywara }; 353e7ba733dSAndre Przywara 354e7ba733dSAndre Przywara uart1_pins: uart1_pins { 355e7ba733dSAndre Przywara pins = "PG6", "PG7"; 356e7ba733dSAndre Przywara function = "uart1"; 357e7ba733dSAndre Przywara }; 358e7ba733dSAndre Przywara 359e7ba733dSAndre Przywara uart1_rts_cts_pins: uart1_rts_cts_pins { 360e7ba733dSAndre Przywara pins = "PG8", "PG9"; 361e7ba733dSAndre Przywara function = "uart1"; 362e7ba733dSAndre Przywara }; 36379825719SAndreas Färber 36479825719SAndreas Färber uart2_pins: uart2-pins { 36579825719SAndreas Färber pins = "PB0", "PB1"; 36679825719SAndreas Färber function = "uart2"; 36779825719SAndreas Färber }; 3682273aa16SAndreas Färber 3692273aa16SAndreas Färber uart3_pins: uart3-pins { 3702273aa16SAndreas Färber pins = "PD0", "PD1"; 3712273aa16SAndreas Färber function = "uart3"; 3722273aa16SAndreas Färber }; 3732273aa16SAndreas Färber 3742273aa16SAndreas Färber uart4_pins: uart4-pins { 3752273aa16SAndreas Färber pins = "PD2", "PD3"; 3762273aa16SAndreas Färber function = "uart4"; 3772273aa16SAndreas Färber }; 3782273aa16SAndreas Färber 3792273aa16SAndreas Färber uart4_rts_cts_pins: uart4-rts-cts-pins { 3802273aa16SAndreas Färber pins = "PD4", "PD5"; 3812273aa16SAndreas Färber function = "uart4"; 3822273aa16SAndreas Färber }; 3836bc37facSAndre Przywara }; 3846bc37facSAndre Przywara 3856bc37facSAndre Przywara uart0: serial@1c28000 { 3866bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 3876bc37facSAndre Przywara reg = <0x01c28000 0x400>; 3886bc37facSAndre Przywara interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; 3896bc37facSAndre Przywara reg-shift = <2>; 3906bc37facSAndre Przywara reg-io-width = <4>; 391494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART0>; 392494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART0>; 3936bc37facSAndre Przywara status = "disabled"; 3946bc37facSAndre Przywara }; 3956bc37facSAndre Przywara 3966bc37facSAndre Przywara uart1: serial@1c28400 { 3976bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 3986bc37facSAndre Przywara reg = <0x01c28400 0x400>; 3996bc37facSAndre Przywara interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 4006bc37facSAndre Przywara reg-shift = <2>; 4016bc37facSAndre Przywara reg-io-width = <4>; 402494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART1>; 403494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART1>; 4046bc37facSAndre Przywara status = "disabled"; 4056bc37facSAndre Przywara }; 4066bc37facSAndre Przywara 4076bc37facSAndre Przywara uart2: serial@1c28800 { 4086bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 4096bc37facSAndre Przywara reg = <0x01c28800 0x400>; 4106bc37facSAndre Przywara interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; 4116bc37facSAndre Przywara reg-shift = <2>; 4126bc37facSAndre Przywara reg-io-width = <4>; 413494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART2>; 414494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART2>; 4156bc37facSAndre Przywara status = "disabled"; 4166bc37facSAndre Przywara }; 4176bc37facSAndre Przywara 4186bc37facSAndre Przywara uart3: serial@1c28c00 { 4196bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 4206bc37facSAndre Przywara reg = <0x01c28c00 0x400>; 4216bc37facSAndre Przywara interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 4226bc37facSAndre Przywara reg-shift = <2>; 4236bc37facSAndre Przywara reg-io-width = <4>; 424494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART3>; 425494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART3>; 4266bc37facSAndre Przywara status = "disabled"; 4276bc37facSAndre Przywara }; 4286bc37facSAndre Przywara 4296bc37facSAndre Przywara uart4: serial@1c29000 { 4306bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 4316bc37facSAndre Przywara reg = <0x01c29000 0x400>; 4326bc37facSAndre Przywara interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; 4336bc37facSAndre Przywara reg-shift = <2>; 4346bc37facSAndre Przywara reg-io-width = <4>; 435494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART4>; 436494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART4>; 4376bc37facSAndre Przywara status = "disabled"; 4386bc37facSAndre Przywara }; 4396bc37facSAndre Przywara 4406bc37facSAndre Przywara i2c0: i2c@1c2ac00 { 4416bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-i2c"; 4426bc37facSAndre Przywara reg = <0x01c2ac00 0x400>; 4436bc37facSAndre Przywara interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; 444494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_I2C0>; 445494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_I2C0>; 4466bc37facSAndre Przywara status = "disabled"; 4476bc37facSAndre Przywara #address-cells = <1>; 4486bc37facSAndre Przywara #size-cells = <0>; 4496bc37facSAndre Przywara }; 4506bc37facSAndre Przywara 4516bc37facSAndre Przywara i2c1: i2c@1c2b000 { 4526bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-i2c"; 4536bc37facSAndre Przywara reg = <0x01c2b000 0x400>; 4546bc37facSAndre Przywara interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 455494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_I2C1>; 456494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_I2C1>; 4576bc37facSAndre Przywara status = "disabled"; 4586bc37facSAndre Przywara #address-cells = <1>; 4596bc37facSAndre Przywara #size-cells = <0>; 4606bc37facSAndre Przywara }; 4616bc37facSAndre Przywara 4626bc37facSAndre Przywara i2c2: i2c@1c2b400 { 4636bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-i2c"; 4646bc37facSAndre Przywara reg = <0x01c2b400 0x400>; 4656bc37facSAndre Przywara interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 466494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_I2C2>; 467494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_I2C2>; 4686bc37facSAndre Przywara status = "disabled"; 4696bc37facSAndre Przywara #address-cells = <1>; 4706bc37facSAndre Przywara #size-cells = <0>; 4716bc37facSAndre Przywara }; 4726bc37facSAndre Przywara 473b518bb15SStefan Brüns 474d6c9da12SCorentin LABBE spi0: spi@1c68000 { 475b518bb15SStefan Brüns compatible = "allwinner,sun8i-h3-spi"; 476b518bb15SStefan Brüns reg = <0x01c68000 0x1000>; 477b518bb15SStefan Brüns interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>; 478b518bb15SStefan Brüns clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>; 479b518bb15SStefan Brüns clock-names = "ahb", "mod"; 480*06c1258aSStefan Brüns dmas = <&dma 23>, <&dma 23>; 481*06c1258aSStefan Brüns dma-names = "rx", "tx"; 482b518bb15SStefan Brüns pinctrl-names = "default"; 483b518bb15SStefan Brüns pinctrl-0 = <&spi0_pins>; 484b518bb15SStefan Brüns resets = <&ccu RST_BUS_SPI0>; 485b518bb15SStefan Brüns status = "disabled"; 486b518bb15SStefan Brüns num-cs = <1>; 487b518bb15SStefan Brüns #address-cells = <1>; 488b518bb15SStefan Brüns #size-cells = <0>; 489b518bb15SStefan Brüns }; 490b518bb15SStefan Brüns 491d6c9da12SCorentin LABBE spi1: spi@1c69000 { 492b518bb15SStefan Brüns compatible = "allwinner,sun8i-h3-spi"; 493b518bb15SStefan Brüns reg = <0x01c69000 0x1000>; 494b518bb15SStefan Brüns interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>; 495b518bb15SStefan Brüns clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>; 496b518bb15SStefan Brüns clock-names = "ahb", "mod"; 497*06c1258aSStefan Brüns dmas = <&dma 24>, <&dma 24>; 498*06c1258aSStefan Brüns dma-names = "rx", "tx"; 499b518bb15SStefan Brüns pinctrl-names = "default"; 500b518bb15SStefan Brüns pinctrl-0 = <&spi1_pins>; 501b518bb15SStefan Brüns resets = <&ccu RST_BUS_SPI1>; 502b518bb15SStefan Brüns status = "disabled"; 503b518bb15SStefan Brüns num-cs = <1>; 504b518bb15SStefan Brüns #address-cells = <1>; 505b518bb15SStefan Brüns #size-cells = <0>; 506b518bb15SStefan Brüns }; 507b518bb15SStefan Brüns 5086bc37facSAndre Przywara gic: interrupt-controller@1c81000 { 5096bc37facSAndre Przywara compatible = "arm,gic-400"; 5106bc37facSAndre Przywara reg = <0x01c81000 0x1000>, 5116bc37facSAndre Przywara <0x01c82000 0x2000>, 5126bc37facSAndre Przywara <0x01c84000 0x2000>, 5136bc37facSAndre Przywara <0x01c86000 0x2000>; 5146bc37facSAndre Przywara interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 5156bc37facSAndre Przywara interrupt-controller; 5166bc37facSAndre Przywara #interrupt-cells = <3>; 5176bc37facSAndre Przywara }; 5186bc37facSAndre Przywara 5196bc37facSAndre Przywara rtc: rtc@1f00000 { 5206bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-rtc"; 5216bc37facSAndre Przywara reg = <0x01f00000 0x54>; 5226bc37facSAndre Przywara interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, 5236bc37facSAndre Przywara <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 5246bc37facSAndre Przywara }; 525791a9e00SIcenowy Zheng 526535ca508SIcenowy Zheng r_intc: interrupt-controller@1f00c00 { 527535ca508SIcenowy Zheng compatible = "allwinner,sun50i-a64-r-intc", 528535ca508SIcenowy Zheng "allwinner,sun6i-a31-r-intc"; 529535ca508SIcenowy Zheng interrupt-controller; 530535ca508SIcenowy Zheng #interrupt-cells = <2>; 531535ca508SIcenowy Zheng reg = <0x01f00c00 0x400>; 532535ca508SIcenowy Zheng interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 533535ca508SIcenowy Zheng }; 534535ca508SIcenowy Zheng 535791a9e00SIcenowy Zheng r_ccu: clock@1f01400 { 536791a9e00SIcenowy Zheng compatible = "allwinner,sun50i-a64-r-ccu"; 537791a9e00SIcenowy Zheng reg = <0x01f01400 0x100>; 538f74994a9SChen-Yu Tsai clocks = <&osc24M>, <&osc32k>, <&iosc>, 539f74994a9SChen-Yu Tsai <&ccu 11>; 540f74994a9SChen-Yu Tsai clock-names = "hosc", "losc", "iosc", "pll-periph"; 541791a9e00SIcenowy Zheng #clock-cells = <1>; 542791a9e00SIcenowy Zheng #reset-cells = <1>; 543791a9e00SIcenowy Zheng }; 544ec427905SIcenowy Zheng 545d6c9da12SCorentin LABBE r_pio: pinctrl@1f02c00 { 546ec427905SIcenowy Zheng compatible = "allwinner,sun50i-a64-r-pinctrl"; 547ec427905SIcenowy Zheng reg = <0x01f02c00 0x400>; 548ec427905SIcenowy Zheng interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; 549494d8a2cSChen-Yu Tsai clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>; 550ec427905SIcenowy Zheng clock-names = "apb", "hosc", "losc"; 551ec427905SIcenowy Zheng gpio-controller; 552ec427905SIcenowy Zheng #gpio-cells = <3>; 553ec427905SIcenowy Zheng interrupt-controller; 554ec427905SIcenowy Zheng #interrupt-cells = <3>; 5553b38fdedSIcenowy Zheng 55692d378fbSCorentin LABBE r_rsb_pins: rsb { 5573b38fdedSIcenowy Zheng pins = "PL0", "PL1"; 5583b38fdedSIcenowy Zheng function = "s_rsb"; 5593b38fdedSIcenowy Zheng }; 5603b38fdedSIcenowy Zheng }; 5613b38fdedSIcenowy Zheng 5623b38fdedSIcenowy Zheng r_rsb: rsb@1f03400 { 5633b38fdedSIcenowy Zheng compatible = "allwinner,sun8i-a23-rsb"; 5643b38fdedSIcenowy Zheng reg = <0x01f03400 0x400>; 5653b38fdedSIcenowy Zheng interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 5663b38fdedSIcenowy Zheng clocks = <&r_ccu 6>; 5673b38fdedSIcenowy Zheng clock-frequency = <3000000>; 5683b38fdedSIcenowy Zheng resets = <&r_ccu 2>; 5693b38fdedSIcenowy Zheng pinctrl-names = "default"; 5703b38fdedSIcenowy Zheng pinctrl-0 = <&r_rsb_pins>; 5713b38fdedSIcenowy Zheng status = "disabled"; 5723b38fdedSIcenowy Zheng #address-cells = <1>; 5733b38fdedSIcenowy Zheng #size-cells = <0>; 574ec427905SIcenowy Zheng }; 5756bc37facSAndre Przywara }; 5766bc37facSAndre Przywara}; 577