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 139f3dff347SAndre Przywara mmc0: mmc@1c0f000 { 140f3dff347SAndre Przywara compatible = "allwinner,sun50i-a64-mmc"; 141f3dff347SAndre Przywara reg = <0x01c0f000 0x1000>; 142f3dff347SAndre Przywara clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>; 143f3dff347SAndre Przywara clock-names = "ahb", "mmc"; 144f3dff347SAndre Przywara resets = <&ccu RST_BUS_MMC0>; 145f3dff347SAndre Przywara reset-names = "ahb"; 146f3dff347SAndre Przywara interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>; 14722be992fSMaxime Ripard max-frequency = <150000000>; 148f3dff347SAndre Przywara status = "disabled"; 149f3dff347SAndre Przywara #address-cells = <1>; 150f3dff347SAndre Przywara #size-cells = <0>; 151f3dff347SAndre Przywara }; 152f3dff347SAndre Przywara 153f3dff347SAndre Przywara mmc1: mmc@1c10000 { 154f3dff347SAndre Przywara compatible = "allwinner,sun50i-a64-mmc"; 155f3dff347SAndre Przywara reg = <0x01c10000 0x1000>; 156f3dff347SAndre Przywara clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>; 157f3dff347SAndre Przywara clock-names = "ahb", "mmc"; 158f3dff347SAndre Przywara resets = <&ccu RST_BUS_MMC1>; 159f3dff347SAndre Przywara reset-names = "ahb"; 160f3dff347SAndre Przywara interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>; 16122be992fSMaxime Ripard max-frequency = <150000000>; 162f3dff347SAndre Przywara status = "disabled"; 163f3dff347SAndre Przywara #address-cells = <1>; 164f3dff347SAndre Przywara #size-cells = <0>; 165f3dff347SAndre Przywara }; 166f3dff347SAndre Przywara 167f3dff347SAndre Przywara mmc2: mmc@1c11000 { 168f3dff347SAndre Przywara compatible = "allwinner,sun50i-a64-emmc"; 169f3dff347SAndre Przywara reg = <0x01c11000 0x1000>; 170f3dff347SAndre Przywara clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>; 171f3dff347SAndre Przywara clock-names = "ahb", "mmc"; 172f3dff347SAndre Przywara resets = <&ccu RST_BUS_MMC2>; 173f3dff347SAndre Przywara reset-names = "ahb"; 174f3dff347SAndre Przywara interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>; 17522be992fSMaxime Ripard max-frequency = <200000000>; 176f3dff347SAndre Przywara status = "disabled"; 177f3dff347SAndre Przywara #address-cells = <1>; 178f3dff347SAndre Przywara #size-cells = <0>; 179f3dff347SAndre Przywara }; 180f3dff347SAndre Przywara 181972a3ecdSIcenowy Zheng usb_otg: usb@01c19000 { 182972a3ecdSIcenowy Zheng compatible = "allwinner,sun8i-a33-musb"; 183972a3ecdSIcenowy Zheng reg = <0x01c19000 0x0400>; 184972a3ecdSIcenowy Zheng clocks = <&ccu CLK_BUS_OTG>; 185972a3ecdSIcenowy Zheng resets = <&ccu RST_BUS_OTG>; 186972a3ecdSIcenowy Zheng interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; 187972a3ecdSIcenowy Zheng interrupt-names = "mc"; 188972a3ecdSIcenowy Zheng phys = <&usbphy 0>; 189972a3ecdSIcenowy Zheng phy-names = "usb"; 190972a3ecdSIcenowy Zheng extcon = <&usbphy 0>; 191972a3ecdSIcenowy Zheng status = "disabled"; 192972a3ecdSIcenowy Zheng }; 193972a3ecdSIcenowy Zheng 194a004ee35SIcenowy Zheng usbphy: phy@01c19400 { 195a004ee35SIcenowy Zheng compatible = "allwinner,sun50i-a64-usb-phy"; 196a004ee35SIcenowy Zheng reg = <0x01c19400 0x14>, 1970d984797SIcenowy Zheng <0x01c1a800 0x4>, 198a004ee35SIcenowy Zheng <0x01c1b800 0x4>; 199a004ee35SIcenowy Zheng reg-names = "phy_ctrl", 2000d984797SIcenowy Zheng "pmu0", 201a004ee35SIcenowy Zheng "pmu1"; 202a004ee35SIcenowy Zheng clocks = <&ccu CLK_USB_PHY0>, 203a004ee35SIcenowy Zheng <&ccu CLK_USB_PHY1>; 204a004ee35SIcenowy Zheng clock-names = "usb0_phy", 205a004ee35SIcenowy Zheng "usb1_phy"; 206a004ee35SIcenowy Zheng resets = <&ccu RST_USB_PHY0>, 207a004ee35SIcenowy Zheng <&ccu RST_USB_PHY1>; 208a004ee35SIcenowy Zheng reset-names = "usb0_reset", 209a004ee35SIcenowy Zheng "usb1_reset"; 210a004ee35SIcenowy Zheng status = "disabled"; 211a004ee35SIcenowy Zheng #phy-cells = <1>; 212a004ee35SIcenowy Zheng }; 213a004ee35SIcenowy Zheng 214dc03a047SIcenowy Zheng ehci0: usb@01c1a000 { 215dc03a047SIcenowy Zheng compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 216dc03a047SIcenowy Zheng reg = <0x01c1a000 0x100>; 217dc03a047SIcenowy Zheng interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; 218dc03a047SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI0>, 219dc03a047SIcenowy Zheng <&ccu CLK_BUS_EHCI0>, 220dc03a047SIcenowy Zheng <&ccu CLK_USB_OHCI0>; 221dc03a047SIcenowy Zheng resets = <&ccu RST_BUS_OHCI0>, 222dc03a047SIcenowy Zheng <&ccu RST_BUS_EHCI0>; 223dc03a047SIcenowy Zheng status = "disabled"; 224dc03a047SIcenowy Zheng }; 225dc03a047SIcenowy Zheng 226dc03a047SIcenowy Zheng ohci0: usb@01c1a400 { 227dc03a047SIcenowy Zheng compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 228dc03a047SIcenowy Zheng reg = <0x01c1a400 0x100>; 229dc03a047SIcenowy Zheng interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; 230dc03a047SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI0>, 231dc03a047SIcenowy Zheng <&ccu CLK_USB_OHCI0>; 232dc03a047SIcenowy Zheng resets = <&ccu RST_BUS_OHCI0>; 233dc03a047SIcenowy Zheng status = "disabled"; 234dc03a047SIcenowy Zheng }; 235dc03a047SIcenowy Zheng 236a004ee35SIcenowy Zheng ehci1: usb@01c1b000 { 237a004ee35SIcenowy Zheng compatible = "allwinner,sun50i-a64-ehci", "generic-ehci"; 238a004ee35SIcenowy Zheng reg = <0x01c1b000 0x100>; 239a004ee35SIcenowy Zheng interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; 240a004ee35SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI1>, 241a004ee35SIcenowy Zheng <&ccu CLK_BUS_EHCI1>, 242a004ee35SIcenowy Zheng <&ccu CLK_USB_OHCI1>; 243a004ee35SIcenowy Zheng resets = <&ccu RST_BUS_OHCI1>, 244a004ee35SIcenowy Zheng <&ccu RST_BUS_EHCI1>; 245a004ee35SIcenowy Zheng phys = <&usbphy 1>; 246a004ee35SIcenowy Zheng phy-names = "usb"; 247a004ee35SIcenowy Zheng status = "disabled"; 248a004ee35SIcenowy Zheng }; 249a004ee35SIcenowy Zheng 250a004ee35SIcenowy Zheng ohci1: usb@01c1b400 { 251a004ee35SIcenowy Zheng compatible = "allwinner,sun50i-a64-ohci", "generic-ohci"; 252a004ee35SIcenowy Zheng reg = <0x01c1b400 0x100>; 253a004ee35SIcenowy Zheng interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>; 254a004ee35SIcenowy Zheng clocks = <&ccu CLK_BUS_OHCI1>, 255a004ee35SIcenowy Zheng <&ccu CLK_USB_OHCI1>; 256a004ee35SIcenowy Zheng resets = <&ccu RST_BUS_OHCI1>; 257a004ee35SIcenowy Zheng phys = <&usbphy 1>; 258a004ee35SIcenowy Zheng phy-names = "usb"; 259a004ee35SIcenowy Zheng status = "disabled"; 260a004ee35SIcenowy Zheng }; 261a004ee35SIcenowy Zheng 2626bc37facSAndre Przywara ccu: clock@01c20000 { 2636bc37facSAndre Przywara compatible = "allwinner,sun50i-a64-ccu"; 2646bc37facSAndre Przywara reg = <0x01c20000 0x400>; 2656bc37facSAndre Przywara clocks = <&osc24M>, <&osc32k>; 2666bc37facSAndre Przywara clock-names = "hosc", "losc"; 2676bc37facSAndre Przywara #clock-cells = <1>; 2686bc37facSAndre Przywara #reset-cells = <1>; 2696bc37facSAndre Przywara }; 2706bc37facSAndre Przywara 2716bc37facSAndre Przywara pio: pinctrl@1c20800 { 2726bc37facSAndre Przywara compatible = "allwinner,sun50i-a64-pinctrl"; 2736bc37facSAndre Przywara reg = <0x01c20800 0x400>; 2746bc37facSAndre Przywara interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 2756bc37facSAndre Przywara <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>, 2766bc37facSAndre Przywara <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; 277f98121f3SArnd Bergmann clocks = <&ccu 58>; 2786bc37facSAndre Przywara gpio-controller; 2796bc37facSAndre Przywara #gpio-cells = <3>; 2806bc37facSAndre Przywara interrupt-controller; 2816bc37facSAndre Przywara #interrupt-cells = <3>; 2826bc37facSAndre Przywara 2836bc37facSAndre Przywara i2c1_pins: i2c1_pins { 2846bc37facSAndre Przywara pins = "PH2", "PH3"; 2856bc37facSAndre Przywara function = "i2c1"; 2866bc37facSAndre Przywara }; 2876bc37facSAndre Przywara 288a3e8f492SMaxime Ripard mmc0_pins: mmc0-pins { 289a3e8f492SMaxime Ripard pins = "PF0", "PF1", "PF2", "PF3", 290a3e8f492SMaxime Ripard "PF4", "PF5"; 291a3e8f492SMaxime Ripard function = "mmc0"; 292a3e8f492SMaxime Ripard drive-strength = <30>; 293a3e8f492SMaxime Ripard bias-pull-up; 294a3e8f492SMaxime Ripard }; 295a3e8f492SMaxime Ripard 296a3e8f492SMaxime Ripard mmc1_pins: mmc1-pins { 297a3e8f492SMaxime Ripard pins = "PG0", "PG1", "PG2", "PG3", 298a3e8f492SMaxime Ripard "PG4", "PG5"; 299a3e8f492SMaxime Ripard function = "mmc1"; 300a3e8f492SMaxime Ripard drive-strength = <30>; 301a3e8f492SMaxime Ripard bias-pull-up; 302a3e8f492SMaxime Ripard }; 303a3e8f492SMaxime Ripard 304a3e8f492SMaxime Ripard mmc2_pins: mmc2-pins { 305a3e8f492SMaxime Ripard pins = "PC1", "PC5", "PC6", "PC8", "PC9", 306a3e8f492SMaxime Ripard "PC10","PC11", "PC12", "PC13", 307a3e8f492SMaxime Ripard "PC14", "PC15", "PC16"; 308a3e8f492SMaxime Ripard function = "mmc2"; 309a3e8f492SMaxime Ripard drive-strength = <30>; 310a3e8f492SMaxime Ripard bias-pull-up; 311a3e8f492SMaxime Ripard }; 312a3e8f492SMaxime Ripard 313*e53f67e9SCorentin Labbe rmii_pins: rmii_pins { 314*e53f67e9SCorentin Labbe pins = "PD10", "PD11", "PD13", "PD14", "PD17", 315*e53f67e9SCorentin Labbe "PD18", "PD19", "PD20", "PD22", "PD23"; 316*e53f67e9SCorentin Labbe function = "emac"; 317*e53f67e9SCorentin Labbe drive-strength = <40>; 318*e53f67e9SCorentin Labbe }; 319*e53f67e9SCorentin Labbe 320*e53f67e9SCorentin Labbe rgmii_pins: rgmii_pins { 321*e53f67e9SCorentin Labbe pins = "PD8", "PD9", "PD10", "PD11", "PD12", 322*e53f67e9SCorentin Labbe "PD13", "PD15", "PD16", "PD17", "PD18", 323*e53f67e9SCorentin Labbe "PD19", "PD20", "PD21", "PD22", "PD23"; 324*e53f67e9SCorentin Labbe function = "emac"; 325*e53f67e9SCorentin Labbe drive-strength = <40>; 326*e53f67e9SCorentin Labbe }; 327*e53f67e9SCorentin Labbe 3286bc37facSAndre Przywara uart0_pins_a: uart0@0 { 3296bc37facSAndre Przywara pins = "PB8", "PB9"; 3306bc37facSAndre Przywara function = "uart0"; 3316bc37facSAndre Przywara }; 332e7ba733dSAndre Przywara 333e7ba733dSAndre Przywara uart1_pins: uart1_pins { 334e7ba733dSAndre Przywara pins = "PG6", "PG7"; 335e7ba733dSAndre Przywara function = "uart1"; 336e7ba733dSAndre Przywara }; 337e7ba733dSAndre Przywara 338e7ba733dSAndre Przywara uart1_rts_cts_pins: uart1_rts_cts_pins { 339e7ba733dSAndre Przywara pins = "PG8", "PG9"; 340e7ba733dSAndre Przywara function = "uart1"; 341e7ba733dSAndre Przywara }; 34279825719SAndreas Färber 34379825719SAndreas Färber uart2_pins: uart2-pins { 34479825719SAndreas Färber pins = "PB0", "PB1"; 34579825719SAndreas Färber function = "uart2"; 34679825719SAndreas Färber }; 3472273aa16SAndreas Färber 3482273aa16SAndreas Färber uart3_pins: uart3-pins { 3492273aa16SAndreas Färber pins = "PD0", "PD1"; 3502273aa16SAndreas Färber function = "uart3"; 3512273aa16SAndreas Färber }; 3522273aa16SAndreas Färber 3532273aa16SAndreas Färber uart4_pins: uart4-pins { 3542273aa16SAndreas Färber pins = "PD2", "PD3"; 3552273aa16SAndreas Färber function = "uart4"; 3562273aa16SAndreas Färber }; 3572273aa16SAndreas Färber 3582273aa16SAndreas Färber uart4_rts_cts_pins: uart4-rts-cts-pins { 3592273aa16SAndreas Färber pins = "PD4", "PD5"; 3602273aa16SAndreas Färber function = "uart4"; 3612273aa16SAndreas Färber }; 3626bc37facSAndre Przywara }; 3636bc37facSAndre Przywara 3646bc37facSAndre Przywara uart0: serial@1c28000 { 3656bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 3666bc37facSAndre Przywara reg = <0x01c28000 0x400>; 3676bc37facSAndre Przywara interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; 3686bc37facSAndre Przywara reg-shift = <2>; 3696bc37facSAndre Przywara reg-io-width = <4>; 370494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART0>; 371494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART0>; 3726bc37facSAndre Przywara status = "disabled"; 3736bc37facSAndre Przywara }; 3746bc37facSAndre Przywara 3756bc37facSAndre Przywara uart1: serial@1c28400 { 3766bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 3776bc37facSAndre Przywara reg = <0x01c28400 0x400>; 3786bc37facSAndre Przywara interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; 3796bc37facSAndre Przywara reg-shift = <2>; 3806bc37facSAndre Przywara reg-io-width = <4>; 381494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART1>; 382494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART1>; 3836bc37facSAndre Przywara status = "disabled"; 3846bc37facSAndre Przywara }; 3856bc37facSAndre Przywara 3866bc37facSAndre Przywara uart2: serial@1c28800 { 3876bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 3886bc37facSAndre Przywara reg = <0x01c28800 0x400>; 3896bc37facSAndre Przywara interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; 3906bc37facSAndre Przywara reg-shift = <2>; 3916bc37facSAndre Przywara reg-io-width = <4>; 392494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART2>; 393494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART2>; 3946bc37facSAndre Przywara status = "disabled"; 3956bc37facSAndre Przywara }; 3966bc37facSAndre Przywara 3976bc37facSAndre Przywara uart3: serial@1c28c00 { 3986bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 3996bc37facSAndre Przywara reg = <0x01c28c00 0x400>; 4006bc37facSAndre Przywara interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; 4016bc37facSAndre Przywara reg-shift = <2>; 4026bc37facSAndre Przywara reg-io-width = <4>; 403494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART3>; 404494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART3>; 4056bc37facSAndre Przywara status = "disabled"; 4066bc37facSAndre Przywara }; 4076bc37facSAndre Przywara 4086bc37facSAndre Przywara uart4: serial@1c29000 { 4096bc37facSAndre Przywara compatible = "snps,dw-apb-uart"; 4106bc37facSAndre Przywara reg = <0x01c29000 0x400>; 4116bc37facSAndre Przywara interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>; 4126bc37facSAndre Przywara reg-shift = <2>; 4136bc37facSAndre Przywara reg-io-width = <4>; 414494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_UART4>; 415494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_UART4>; 4166bc37facSAndre Przywara status = "disabled"; 4176bc37facSAndre Przywara }; 4186bc37facSAndre Przywara 4196bc37facSAndre Przywara i2c0: i2c@1c2ac00 { 4206bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-i2c"; 4216bc37facSAndre Przywara reg = <0x01c2ac00 0x400>; 4226bc37facSAndre Przywara interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>; 423494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_I2C0>; 424494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_I2C0>; 4256bc37facSAndre Przywara status = "disabled"; 4266bc37facSAndre Przywara #address-cells = <1>; 4276bc37facSAndre Przywara #size-cells = <0>; 4286bc37facSAndre Przywara }; 4296bc37facSAndre Przywara 4306bc37facSAndre Przywara i2c1: i2c@1c2b000 { 4316bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-i2c"; 4326bc37facSAndre Przywara reg = <0x01c2b000 0x400>; 4336bc37facSAndre Przywara interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; 434494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_I2C1>; 435494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_I2C1>; 4366bc37facSAndre Przywara status = "disabled"; 4376bc37facSAndre Przywara #address-cells = <1>; 4386bc37facSAndre Przywara #size-cells = <0>; 4396bc37facSAndre Przywara }; 4406bc37facSAndre Przywara 4416bc37facSAndre Przywara i2c2: i2c@1c2b400 { 4426bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-i2c"; 4436bc37facSAndre Przywara reg = <0x01c2b400 0x400>; 4446bc37facSAndre Przywara interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; 445494d8a2cSChen-Yu Tsai clocks = <&ccu CLK_BUS_I2C2>; 446494d8a2cSChen-Yu Tsai resets = <&ccu RST_BUS_I2C2>; 4476bc37facSAndre Przywara status = "disabled"; 4486bc37facSAndre Przywara #address-cells = <1>; 4496bc37facSAndre Przywara #size-cells = <0>; 4506bc37facSAndre Przywara }; 4516bc37facSAndre Przywara 452*e53f67e9SCorentin Labbe emac: ethernet@1c30000 { 453*e53f67e9SCorentin Labbe compatible = "allwinner,sun50i-a64-emac"; 454*e53f67e9SCorentin Labbe syscon = <&syscon>; 455*e53f67e9SCorentin Labbe reg = <0x01c30000 0x100>; 456*e53f67e9SCorentin Labbe interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; 457*e53f67e9SCorentin Labbe interrupt-names = "macirq"; 458*e53f67e9SCorentin Labbe resets = <&ccu RST_BUS_EMAC>; 459*e53f67e9SCorentin Labbe reset-names = "stmmaceth"; 460*e53f67e9SCorentin Labbe clocks = <&ccu CLK_BUS_EMAC>; 461*e53f67e9SCorentin Labbe clock-names = "stmmaceth"; 462*e53f67e9SCorentin Labbe status = "disabled"; 463*e53f67e9SCorentin Labbe #address-cells = <1>; 464*e53f67e9SCorentin Labbe #size-cells = <0>; 465*e53f67e9SCorentin Labbe 466*e53f67e9SCorentin Labbe mdio: mdio { 467*e53f67e9SCorentin Labbe #address-cells = <1>; 468*e53f67e9SCorentin Labbe #size-cells = <0>; 469*e53f67e9SCorentin Labbe }; 470*e53f67e9SCorentin Labbe }; 471*e53f67e9SCorentin Labbe 4726bc37facSAndre Przywara gic: interrupt-controller@1c81000 { 4736bc37facSAndre Przywara compatible = "arm,gic-400"; 4746bc37facSAndre Przywara reg = <0x01c81000 0x1000>, 4756bc37facSAndre Przywara <0x01c82000 0x2000>, 4766bc37facSAndre Przywara <0x01c84000 0x2000>, 4776bc37facSAndre Przywara <0x01c86000 0x2000>; 4786bc37facSAndre Przywara interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; 4796bc37facSAndre Przywara interrupt-controller; 4806bc37facSAndre Przywara #interrupt-cells = <3>; 4816bc37facSAndre Przywara }; 4826bc37facSAndre Przywara 4836bc37facSAndre Przywara rtc: rtc@1f00000 { 4846bc37facSAndre Przywara compatible = "allwinner,sun6i-a31-rtc"; 4856bc37facSAndre Przywara reg = <0x01f00000 0x54>; 4866bc37facSAndre Przywara interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>, 4876bc37facSAndre Przywara <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>; 4886bc37facSAndre Przywara }; 489791a9e00SIcenowy Zheng 490791a9e00SIcenowy Zheng r_ccu: clock@1f01400 { 491791a9e00SIcenowy Zheng compatible = "allwinner,sun50i-a64-r-ccu"; 492791a9e00SIcenowy Zheng reg = <0x01f01400 0x100>; 493791a9e00SIcenowy Zheng clocks = <&osc24M>, <&osc32k>, <&iosc>; 494791a9e00SIcenowy Zheng clock-names = "hosc", "losc", "iosc"; 495791a9e00SIcenowy Zheng #clock-cells = <1>; 496791a9e00SIcenowy Zheng #reset-cells = <1>; 497791a9e00SIcenowy Zheng }; 498ec427905SIcenowy Zheng 499ec427905SIcenowy Zheng r_pio: pinctrl@01f02c00 { 500ec427905SIcenowy Zheng compatible = "allwinner,sun50i-a64-r-pinctrl"; 501ec427905SIcenowy Zheng reg = <0x01f02c00 0x400>; 502ec427905SIcenowy Zheng interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; 503494d8a2cSChen-Yu Tsai clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>; 504ec427905SIcenowy Zheng clock-names = "apb", "hosc", "losc"; 505ec427905SIcenowy Zheng gpio-controller; 506ec427905SIcenowy Zheng #gpio-cells = <3>; 507ec427905SIcenowy Zheng interrupt-controller; 508ec427905SIcenowy Zheng #interrupt-cells = <3>; 5093b38fdedSIcenowy Zheng 5103b38fdedSIcenowy Zheng r_rsb_pins: rsb@0 { 5113b38fdedSIcenowy Zheng pins = "PL0", "PL1"; 5123b38fdedSIcenowy Zheng function = "s_rsb"; 5133b38fdedSIcenowy Zheng }; 5143b38fdedSIcenowy Zheng }; 5153b38fdedSIcenowy Zheng 5163b38fdedSIcenowy Zheng r_rsb: rsb@1f03400 { 5173b38fdedSIcenowy Zheng compatible = "allwinner,sun8i-a23-rsb"; 5183b38fdedSIcenowy Zheng reg = <0x01f03400 0x400>; 5193b38fdedSIcenowy Zheng interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>; 5203b38fdedSIcenowy Zheng clocks = <&r_ccu 6>; 5213b38fdedSIcenowy Zheng clock-frequency = <3000000>; 5223b38fdedSIcenowy Zheng resets = <&r_ccu 2>; 5233b38fdedSIcenowy Zheng pinctrl-names = "default"; 5243b38fdedSIcenowy Zheng pinctrl-0 = <&r_rsb_pins>; 5253b38fdedSIcenowy Zheng status = "disabled"; 5263b38fdedSIcenowy Zheng #address-cells = <1>; 5273b38fdedSIcenowy Zheng #size-cells = <0>; 528ec427905SIcenowy Zheng }; 5296bc37facSAndre Przywara }; 5306bc37facSAndre Przywara}; 531