1034 lines
26 KiB
Plaintext
1034 lines
26 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
|
|
// Copyright (C) 2023-2024 Arm Ltd.
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
|
#include <dt-bindings/clock/sun6i-rtc.h>
|
|
#include <dt-bindings/clock/sun55i-a523-ccu.h>
|
|
#include <dt-bindings/clock/sun55i-a523-mcu-ccu.h>
|
|
#include <dt-bindings/clock/sun55i-a523-r-ccu.h>
|
|
#include <dt-bindings/reset/sun55i-a523-ccu.h>
|
|
#include <dt-bindings/reset/sun55i-a523-mcu-ccu.h>
|
|
#include <dt-bindings/reset/sun55i-a523-r-ccu.h>
|
|
#include <dt-bindings/power/allwinner,sun55i-a523-ppu.h>
|
|
#include <dt-bindings/power/allwinner,sun55i-a523-pck-600.h>
|
|
|
|
/ {
|
|
interrupt-parent = <&gic>;
|
|
#address-cells = <2>;
|
|
#size-cells = <2>;
|
|
|
|
cpus {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
cpu0: cpu@0 {
|
|
compatible = "arm,cortex-a55";
|
|
device_type = "cpu";
|
|
reg = <0x000>;
|
|
enable-method = "psci";
|
|
};
|
|
|
|
cpu1: cpu@100 {
|
|
compatible = "arm,cortex-a55";
|
|
device_type = "cpu";
|
|
reg = <0x100>;
|
|
enable-method = "psci";
|
|
};
|
|
|
|
cpu2: cpu@200 {
|
|
compatible = "arm,cortex-a55";
|
|
device_type = "cpu";
|
|
reg = <0x200>;
|
|
enable-method = "psci";
|
|
};
|
|
|
|
cpu3: cpu@300 {
|
|
compatible = "arm,cortex-a55";
|
|
device_type = "cpu";
|
|
reg = <0x300>;
|
|
enable-method = "psci";
|
|
};
|
|
|
|
cpu4: cpu@400 {
|
|
compatible = "arm,cortex-a55";
|
|
device_type = "cpu";
|
|
reg = <0x400>;
|
|
enable-method = "psci";
|
|
};
|
|
|
|
cpu5: cpu@500 {
|
|
compatible = "arm,cortex-a55";
|
|
device_type = "cpu";
|
|
reg = <0x500>;
|
|
enable-method = "psci";
|
|
};
|
|
|
|
cpu6: cpu@600 {
|
|
compatible = "arm,cortex-a55";
|
|
device_type = "cpu";
|
|
reg = <0x600>;
|
|
enable-method = "psci";
|
|
};
|
|
|
|
cpu7: cpu@700 {
|
|
compatible = "arm,cortex-a55";
|
|
device_type = "cpu";
|
|
reg = <0x700>;
|
|
enable-method = "psci";
|
|
};
|
|
};
|
|
|
|
osc24M: osc24M-clk {
|
|
#clock-cells = <0>;
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <24000000>;
|
|
clock-output-names = "osc24M";
|
|
};
|
|
|
|
pmu {
|
|
compatible = "arm,cortex-a55-pmu";
|
|
interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>;
|
|
};
|
|
|
|
psci {
|
|
compatible = "arm,psci-0.2";
|
|
method = "smc";
|
|
};
|
|
|
|
timer {
|
|
compatible = "arm,armv8-timer";
|
|
arm,no-tick-in-suspend;
|
|
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>;
|
|
};
|
|
|
|
soc {
|
|
compatible = "simple-bus";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges = <0x0 0x0 0x0 0x40000000>;
|
|
|
|
gpu: gpu@1800000 {
|
|
compatible = "allwinner,sun55i-a523-mali",
|
|
"arm,mali-valhall-jm";
|
|
reg = <0x1800000 0x10000>;
|
|
interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-names = "job", "mmu", "gpu";
|
|
clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>;
|
|
clock-names = "core", "bus";
|
|
power-domains = <&pck600 PD_GPU>;
|
|
resets = <&ccu RST_BUS_GPU>;
|
|
status = "disabled";
|
|
};
|
|
|
|
pio: pinctrl@2000000 {
|
|
compatible = "allwinner,sun55i-a523-pinctrl";
|
|
reg = <0x2000000 0x800>;
|
|
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_APB1>, <&osc24M>, <&rtc CLK_OSC32K>;
|
|
clock-names = "apb", "hosc", "losc";
|
|
gpio-controller;
|
|
#gpio-cells = <3>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <3>;
|
|
|
|
/omit-if-no-ref/
|
|
i2s2_pi_pins: i2s2-pi-pins {
|
|
pins = "PI2", "PI3", "PI4", "PI5";
|
|
allwinner,pinmux = <5>;
|
|
function = "i2s2";
|
|
bias-disable;
|
|
};
|
|
|
|
mmc0_pins: mmc0-pins {
|
|
pins = "PF0" ,"PF1", "PF2", "PF3", "PF4", "PF5";
|
|
allwinner,pinmux = <2>;
|
|
function = "mmc0";
|
|
drive-strength = <30>;
|
|
bias-pull-up;
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
mmc1_pins: mmc1-pins {
|
|
pins = "PG0" ,"PG1", "PG2", "PG3", "PG4", "PG5";
|
|
allwinner,pinmux = <2>;
|
|
function = "mmc1";
|
|
drive-strength = <30>;
|
|
bias-pull-up;
|
|
};
|
|
|
|
mmc2_pins: mmc2-pins {
|
|
pins = "PC0", "PC1" ,"PC5", "PC6", "PC8",
|
|
"PC9", "PC10", "PC11", "PC13", "PC14",
|
|
"PC15", "PC16";
|
|
allwinner,pinmux = <3>;
|
|
function = "mmc2";
|
|
drive-strength = <30>;
|
|
bias-pull-up;
|
|
};
|
|
|
|
rgmii0_pins: rgmii0-pins {
|
|
pins = "PH0", "PH1", "PH2", "PH3", "PH4",
|
|
"PH5", "PH6", "PH7", "PH9", "PH10",
|
|
"PH14", "PH15", "PH16", "PH17", "PH18";
|
|
allwinner,pinmux = <5>;
|
|
function = "gmac0";
|
|
drive-strength = <40>;
|
|
bias-disable;
|
|
};
|
|
|
|
rgmii1_pins: rgmii1-pins {
|
|
pins = "PJ0", "PJ1", "PJ2", "PJ3", "PJ4",
|
|
"PJ5", "PJ6", "PJ7", "PJ8", "PJ9",
|
|
"PJ11", "PJ12", "PJ13", "PJ14", "PJ15";
|
|
allwinner,pinmux = <5>;
|
|
function = "gmac1";
|
|
drive-strength = <40>;
|
|
bias-disable;
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
spdif_out_pb_pin: spdif-pb-pin {
|
|
pins = "PB8";
|
|
function = "spdif";
|
|
allwinner,pinmux = <2>;
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
spdif_out_pi_pin: spdif-pi-pin {
|
|
pins = "PI10";
|
|
function = "spdif";
|
|
allwinner,pinmux = <2>;
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
spi0_pc_pins: spi0-pc-pins {
|
|
pins = "PC2", "PC4", "PC12";
|
|
function = "spi0";
|
|
allwinner,pinmux = <4>;
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
spi0_cs0_pc_pin: spi0-cs0-pc-pin {
|
|
pins = "PC3";
|
|
function = "spi0";
|
|
allwinner,pinmux = <4>;
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
spi0_cs1_pc_pin: spi0-cs1-pc-pin {
|
|
pins = "PC7";
|
|
function = "spi0";
|
|
allwinner,pinmux = <4>;
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
spi0_hold_pc_pin: spi0-hold-pc-pin {
|
|
/* conflicts with eMMC D7 */
|
|
pins = "PC16";
|
|
function = "spi0";
|
|
allwinner,pinmux = <4>;
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
spi0_wp_pc_pin: spi0-wp-pc-pin {
|
|
/* conflicts with eMMC D2 */
|
|
pins = "PC15";
|
|
function = "spi0";
|
|
allwinner,pinmux = <4>;
|
|
};
|
|
|
|
uart0_pb_pins: uart0-pb-pins {
|
|
pins = "PB9", "PB10";
|
|
allwinner,pinmux = <2>;
|
|
function = "uart0";
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
uart1_pins: uart1-pins {
|
|
pins = "PG6", "PG7";
|
|
function = "uart1";
|
|
allwinner,pinmux = <2>;
|
|
};
|
|
|
|
/omit-if-no-ref/
|
|
uart1_rts_cts_pins: uart1-rts-cts-pins {
|
|
pins = "PG8", "PG9";
|
|
function = "uart1";
|
|
allwinner,pinmux = <2>;
|
|
};
|
|
};
|
|
|
|
ccu: clock-controller@2001000 {
|
|
compatible = "allwinner,sun55i-a523-ccu";
|
|
reg = <0x02001000 0x1000>;
|
|
clocks = <&osc24M>, <&rtc CLK_OSC32K>,
|
|
<&rtc CLK_IOSC>, <&rtc CLK_OSC32K_FANOUT>;
|
|
clock-names = "hosc", "losc",
|
|
"iosc", "losc-fanout";
|
|
#clock-cells = <1>;
|
|
#reset-cells = <1>;
|
|
};
|
|
|
|
wdt: watchdog@2050000 {
|
|
compatible = "allwinner,sun55i-a523-wdt";
|
|
reg = <0x2050000 0x20>;
|
|
interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&osc24M>, <&rtc CLK_OSC32K>;
|
|
clock-names = "hosc", "losc";
|
|
status = "okay";
|
|
};
|
|
|
|
uart0: serial@2500000 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x02500000 0x400>;
|
|
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
|
|
reg-shift = <2>;
|
|
reg-io-width = <4>;
|
|
clocks = <&ccu CLK_BUS_UART0>;
|
|
resets = <&ccu RST_BUS_UART0>;
|
|
dmas = <&dma 14>, <&dma 14>;
|
|
dma-names = "tx", "rx";
|
|
status = "disabled";
|
|
};
|
|
|
|
uart1: serial@2500400 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x02500400 0x400>;
|
|
interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
|
|
reg-shift = <2>;
|
|
reg-io-width = <4>;
|
|
clocks = <&ccu CLK_BUS_UART1>;
|
|
resets = <&ccu RST_BUS_UART1>;
|
|
dmas = <&dma 15>, <&dma 15>;
|
|
dma-names = "tx", "rx";
|
|
status = "disabled";
|
|
};
|
|
|
|
uart2: serial@2500800 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x02500800 0x400>;
|
|
interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
|
|
reg-shift = <2>;
|
|
reg-io-width = <4>;
|
|
clocks = <&ccu CLK_BUS_UART2>;
|
|
resets = <&ccu RST_BUS_UART2>;
|
|
dmas = <&dma 16>, <&dma 16>;
|
|
dma-names = "tx", "rx";
|
|
status = "disabled";
|
|
};
|
|
|
|
uart3: serial@2500c00 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x02500c00 0x400>;
|
|
interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
|
|
reg-shift = <2>;
|
|
reg-io-width = <4>;
|
|
clocks = <&ccu CLK_BUS_UART3>;
|
|
resets = <&ccu RST_BUS_UART3>;
|
|
dmas = <&dma 17>, <&dma 17>;
|
|
dma-names = "tx", "rx";
|
|
status = "disabled";
|
|
};
|
|
|
|
uart4: serial@2501000 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x02501000 0x400>;
|
|
interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
|
|
reg-shift = <2>;
|
|
reg-io-width = <4>;
|
|
clocks = <&ccu CLK_BUS_UART4>;
|
|
resets = <&ccu RST_BUS_UART4>;
|
|
dmas = <&dma 18>, <&dma 18>;
|
|
dma-names = "tx", "rx";
|
|
status = "disabled";
|
|
};
|
|
|
|
uart5: serial@2501400 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x02501400 0x400>;
|
|
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
|
|
reg-shift = <2>;
|
|
reg-io-width = <4>;
|
|
clocks = <&ccu CLK_BUS_UART5>;
|
|
resets = <&ccu RST_BUS_UART5>;
|
|
dmas = <&dma 19>, <&dma 19>;
|
|
dma-names = "tx", "rx";
|
|
status = "disabled";
|
|
};
|
|
|
|
uart6: serial@2501800 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x02501800 0x400>;
|
|
interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
|
|
reg-shift = <2>;
|
|
reg-io-width = <4>;
|
|
clocks = <&ccu CLK_BUS_UART6>;
|
|
resets = <&ccu RST_BUS_UART6>;
|
|
dmas = <&dma 20>, <&dma 20>;
|
|
dma-names = "tx", "rx";
|
|
status = "disabled";
|
|
};
|
|
|
|
uart7: serial@2501c00 {
|
|
compatible = "snps,dw-apb-uart";
|
|
reg = <0x02501c00 0x400>;
|
|
interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
|
|
reg-shift = <2>;
|
|
reg-io-width = <4>;
|
|
clocks = <&ccu CLK_BUS_UART7>;
|
|
resets = <&ccu RST_BUS_UART7>;
|
|
dmas = <&dma 21>, <&dma 21>;
|
|
dma-names = "tx", "rx";
|
|
status = "disabled";
|
|
};
|
|
|
|
i2c0: i2c@2502000 {
|
|
compatible = "allwinner,sun55i-a523-i2c",
|
|
"allwinner,sun8i-v536-i2c",
|
|
"allwinner,sun6i-a31-i2c";
|
|
reg = <0x2502000 0x400>;
|
|
interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_I2C0>;
|
|
resets = <&ccu RST_BUS_I2C0>;
|
|
dmas = <&dma 43>, <&dma 43>;
|
|
dma-names = "rx", "tx";
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
i2c1: i2c@2502400 {
|
|
compatible = "allwinner,sun55i-a523-i2c",
|
|
"allwinner,sun8i-v536-i2c",
|
|
"allwinner,sun6i-a31-i2c";
|
|
reg = <0x2502400 0x400>;
|
|
interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_I2C1>;
|
|
resets = <&ccu RST_BUS_I2C1>;
|
|
dmas = <&dma 44>, <&dma 44>;
|
|
dma-names = "rx", "tx";
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
i2c2: i2c@2502800 {
|
|
compatible = "allwinner,sun55i-a523-i2c",
|
|
"allwinner,sun8i-v536-i2c",
|
|
"allwinner,sun6i-a31-i2c";
|
|
reg = <0x2502800 0x400>;
|
|
interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_I2C2>;
|
|
resets = <&ccu RST_BUS_I2C2>;
|
|
dmas = <&dma 45>, <&dma 45>;
|
|
dma-names = "rx", "tx";
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
i2c3: i2c@2502c00 {
|
|
compatible = "allwinner,sun55i-a523-i2c",
|
|
"allwinner,sun8i-v536-i2c",
|
|
"allwinner,sun6i-a31-i2c";
|
|
reg = <0x2502c00 0x400>;
|
|
interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_I2C3>;
|
|
resets = <&ccu RST_BUS_I2C3>;
|
|
dmas = <&dma 46>, <&dma 46>;
|
|
dma-names = "rx", "tx";
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
i2c4: i2c@2503000 {
|
|
compatible = "allwinner,sun55i-a523-i2c",
|
|
"allwinner,sun8i-v536-i2c",
|
|
"allwinner,sun6i-a31-i2c";
|
|
reg = <0x2503000 0x400>;
|
|
interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_I2C4>;
|
|
resets = <&ccu RST_BUS_I2C4>;
|
|
dmas = <&dma 47>, <&dma 47>;
|
|
dma-names = "rx", "tx";
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
i2c5: i2c@2503400 {
|
|
compatible = "allwinner,sun55i-a523-i2c",
|
|
"allwinner,sun8i-v536-i2c",
|
|
"allwinner,sun6i-a31-i2c";
|
|
reg = <0x2503400 0x400>;
|
|
interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_I2C5>;
|
|
resets = <&ccu RST_BUS_I2C5>;
|
|
dmas = <&dma 48>, <&dma 48>;
|
|
dma-names = "rx", "tx";
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
syscon: syscon@3000000 {
|
|
compatible = "allwinner,sun55i-a523-system-control",
|
|
"allwinner,sun50i-a64-system-control";
|
|
reg = <0x03000000 0x1000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
};
|
|
|
|
dma: dma-controller@3002000 {
|
|
compatible = "allwinner,sun55i-a523-dma",
|
|
"allwinner,sun50i-a100-dma";
|
|
reg = <0x03002000 0x1000>;
|
|
interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_DMA>, <&ccu CLK_MBUS_DMA>;
|
|
clock-names = "bus", "mbus";
|
|
dma-channels = <16>;
|
|
dma-requests = <54>;
|
|
resets = <&ccu RST_BUS_DMA>;
|
|
#dma-cells = <1>;
|
|
};
|
|
|
|
sid: efuse@3006000 {
|
|
compatible = "allwinner,sun55i-a523-sid",
|
|
"allwinner,sun50i-a64-sid";
|
|
reg = <0x03006000 0x1000>;
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
};
|
|
|
|
gic: interrupt-controller@3400000 {
|
|
compatible = "arm,gic-v3";
|
|
#address-cells = <1>;
|
|
#interrupt-cells = <3>;
|
|
#size-cells = <1>;
|
|
ranges;
|
|
interrupt-controller;
|
|
reg = <0x3400000 0x10000>,
|
|
<0x3460000 0x100000>;
|
|
interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
|
|
dma-noncoherent;
|
|
|
|
its: msi-controller@3440000 {
|
|
compatible = "arm,gic-v3-its";
|
|
reg = <0x3440000 0x20000>;
|
|
msi-controller;
|
|
#msi-cells = <1>;
|
|
dma-noncoherent;
|
|
};
|
|
};
|
|
|
|
mmc0: mmc@4020000 {
|
|
compatible = "allwinner,sun55i-a523-mmc",
|
|
"allwinner,sun20i-d1-mmc";
|
|
reg = <0x04020000 0x1000>;
|
|
clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
|
|
clock-names = "ahb", "mmc";
|
|
resets = <&ccu RST_BUS_MMC0>;
|
|
reset-names = "ahb";
|
|
interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mmc0_pins>;
|
|
status = "disabled";
|
|
|
|
max-frequency = <150000000>;
|
|
cap-sd-highspeed;
|
|
cap-mmc-highspeed;
|
|
cap-sdio-irq;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
mmc1: mmc@4021000 {
|
|
compatible = "allwinner,sun55i-a523-mmc",
|
|
"allwinner,sun20i-d1-mmc";
|
|
reg = <0x04021000 0x1000>;
|
|
clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
|
|
clock-names = "ahb", "mmc";
|
|
resets = <&ccu RST_BUS_MMC1>;
|
|
reset-names = "ahb";
|
|
interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mmc1_pins>;
|
|
status = "disabled";
|
|
|
|
max-frequency = <150000000>;
|
|
cap-sd-highspeed;
|
|
cap-mmc-highspeed;
|
|
cap-sdio-irq;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
mmc2: mmc@4022000 {
|
|
compatible = "allwinner,sun55i-a523-mmc",
|
|
"allwinner,sun20i-d1-mmc";
|
|
reg = <0x04022000 0x1000>;
|
|
clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
|
|
clock-names = "ahb", "mmc";
|
|
resets = <&ccu RST_BUS_MMC2>;
|
|
reset-names = "ahb";
|
|
interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mmc2_pins>;
|
|
status = "disabled";
|
|
|
|
max-frequency = <150000000>;
|
|
cap-sd-highspeed;
|
|
cap-mmc-highspeed;
|
|
cap-sdio-irq;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
spi0: spi@4025000 {
|
|
compatible = "allwinner,sun55i-a523-spi";
|
|
reg = <0x04025000 0x1000>;
|
|
interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
|
|
clock-names = "ahb", "mod";
|
|
dmas = <&dma 22>, <&dma 22>;
|
|
dma-names = "rx", "tx";
|
|
resets = <&ccu RST_BUS_SPI0>;
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
spi1: spi@4026000 {
|
|
compatible = "allwinner,sun55i-a523-spi-dbi",
|
|
"allwinner,sun55i-a523-spi";
|
|
reg = <0x04026000 0x1000>;
|
|
interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
|
|
clock-names = "ahb", "mod";
|
|
dmas = <&dma 23>, <&dma 23>;
|
|
dma-names = "rx", "tx";
|
|
resets = <&ccu RST_BUS_SPI1>;
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
spi2: spi@4027000 {
|
|
compatible = "allwinner,sun55i-a523-spi";
|
|
reg = <0x04027000 0x1000>;
|
|
interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_SPI2>, <&ccu CLK_SPI2>;
|
|
clock-names = "ahb", "mod";
|
|
dmas = <&dma 24>, <&dma 24>;
|
|
dma-names = "rx", "tx";
|
|
resets = <&ccu RST_BUS_SPI2>;
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
usb_otg: usb@4100000 {
|
|
compatible = "allwinner,sun55i-a523-musb",
|
|
"allwinner,sun8i-a33-musb";
|
|
reg = <0x4100000 0x400>;
|
|
interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-names = "mc";
|
|
clocks = <&ccu CLK_BUS_OTG>;
|
|
resets = <&ccu RST_BUS_OTG>;
|
|
extcon = <&usbphy 0>;
|
|
phys = <&usbphy 0>;
|
|
phy-names = "usb";
|
|
status = "disabled";
|
|
};
|
|
|
|
usbphy: phy@4100400 {
|
|
compatible = "allwinner,sun55i-a523-usb-phy",
|
|
"allwinner,sun20i-d1-usb-phy";
|
|
reg = <0x4100400 0x100>,
|
|
<0x4101800 0x100>,
|
|
<0x4200800 0x100>;
|
|
reg-names = "phy_ctrl",
|
|
"pmu0",
|
|
"pmu1";
|
|
clocks = <&osc24M>,
|
|
<&osc24M>;
|
|
clock-names = "usb0_phy",
|
|
"usb1_phy";
|
|
resets = <&ccu RST_USB_PHY0>,
|
|
<&ccu RST_USB_PHY1>;
|
|
reset-names = "usb0_reset",
|
|
"usb1_reset";
|
|
status = "disabled";
|
|
#phy-cells = <1>;
|
|
};
|
|
|
|
ehci0: usb@4101000 {
|
|
compatible = "allwinner,sun55i-a523-ehci",
|
|
"generic-ehci";
|
|
reg = <0x4101000 0x100>;
|
|
interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_OHCI0>,
|
|
<&ccu CLK_BUS_EHCI0>,
|
|
<&ccu CLK_USB_OHCI0>;
|
|
resets = <&ccu RST_BUS_OHCI0>,
|
|
<&ccu RST_BUS_EHCI0>;
|
|
phys = <&usbphy 0>;
|
|
phy-names = "usb";
|
|
status = "disabled";
|
|
};
|
|
|
|
ohci0: usb@4101400 {
|
|
compatible = "allwinner,sun55i-a523-ohci",
|
|
"generic-ohci";
|
|
reg = <0x4101400 0x100>;
|
|
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_OHCI0>,
|
|
<&ccu CLK_USB_OHCI0>;
|
|
resets = <&ccu RST_BUS_OHCI0>;
|
|
phys = <&usbphy 0>;
|
|
phy-names = "usb";
|
|
status = "disabled";
|
|
};
|
|
|
|
ehci1: usb@4200000 {
|
|
compatible = "allwinner,sun55i-a523-ehci",
|
|
"generic-ehci";
|
|
reg = <0x4200000 0x100>;
|
|
interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_OHCI1>,
|
|
<&ccu CLK_BUS_EHCI1>,
|
|
<&ccu CLK_USB_OHCI1>;
|
|
resets = <&ccu RST_BUS_OHCI1>,
|
|
<&ccu RST_BUS_EHCI1>;
|
|
phys = <&usbphy 1>;
|
|
phy-names = "usb";
|
|
status = "disabled";
|
|
};
|
|
|
|
ohci1: usb@4200400 {
|
|
compatible = "allwinner,sun55i-a523-ohci",
|
|
"generic-ohci";
|
|
reg = <0x4200400 0x100>;
|
|
interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&ccu CLK_BUS_OHCI1>,
|
|
<&ccu CLK_USB_OHCI1>;
|
|
resets = <&ccu RST_BUS_OHCI1>;
|
|
phys = <&usbphy 1>;
|
|
phy-names = "usb";
|
|
status = "disabled";
|
|
};
|
|
|
|
gmac0: ethernet@4500000 {
|
|
compatible = "allwinner,sun55i-a523-gmac0",
|
|
"allwinner,sun50i-a64-emac";
|
|
reg = <0x04500000 0x10000>;
|
|
clocks = <&ccu CLK_BUS_EMAC0>;
|
|
clock-names = "stmmaceth";
|
|
resets = <&ccu RST_BUS_EMAC0>;
|
|
reset-names = "stmmaceth";
|
|
interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-names = "macirq";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rgmii0_pins>;
|
|
syscon = <&syscon>;
|
|
status = "disabled";
|
|
|
|
mdio0: mdio {
|
|
compatible = "snps,dwmac-mdio";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
};
|
|
|
|
gmac1: ethernet@4510000 {
|
|
compatible = "allwinner,sun55i-a523-gmac200",
|
|
"snps,dwmac-4.20a";
|
|
reg = <0x04510000 0x10000>;
|
|
clocks = <&ccu CLK_BUS_EMAC1>, <&ccu CLK_MBUS_EMAC1>;
|
|
clock-names = "stmmaceth", "mbus";
|
|
resets = <&ccu RST_BUS_EMAC1>;
|
|
reset-names = "stmmaceth";
|
|
interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
|
|
interrupt-names = "macirq";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rgmii1_pins>;
|
|
power-domains = <&pck600 PD_VO1>;
|
|
syscon = <&syscon>;
|
|
snps,fixed-burst;
|
|
snps,axi-config = <&gmac1_stmmac_axi_setup>;
|
|
snps,mtl-rx-config = <&gmac1_mtl_rx_setup>;
|
|
snps,mtl-tx-config = <&gmac1_mtl_tx_setup>;
|
|
status = "disabled";
|
|
|
|
mdio1: mdio {
|
|
compatible = "snps,dwmac-mdio";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
gmac1_mtl_rx_setup: rx-queues-config {
|
|
snps,rx-queues-to-use = <1>;
|
|
|
|
queue0 {};
|
|
};
|
|
|
|
gmac1_stmmac_axi_setup: stmmac-axi-config {
|
|
snps,wr_osr_lmt = <0xf>;
|
|
snps,rd_osr_lmt = <0xf>;
|
|
snps,blen = <256 128 64 32 16 8 4>;
|
|
};
|
|
|
|
gmac1_mtl_tx_setup: tx-queues-config {
|
|
snps,tx-queues-to-use = <1>;
|
|
|
|
queue0 {};
|
|
};
|
|
};
|
|
|
|
ppu: power-controller@7001400 {
|
|
compatible = "allwinner,sun55i-a523-ppu";
|
|
reg = <0x07001400 0x400>;
|
|
clocks = <&r_ccu CLK_BUS_R_PPU1>;
|
|
resets = <&r_ccu RST_BUS_R_PPU1>;
|
|
#power-domain-cells = <1>;
|
|
};
|
|
|
|
r_ccu: clock-controller@7010000 {
|
|
compatible = "allwinner,sun55i-a523-r-ccu";
|
|
reg = <0x7010000 0x250>;
|
|
clocks = <&osc24M>,
|
|
<&rtc CLK_OSC32K>,
|
|
<&rtc CLK_IOSC>,
|
|
<&ccu CLK_PLL_PERIPH0_200M>,
|
|
<&ccu CLK_PLL_AUDIO0_4X>;
|
|
clock-names = "hosc",
|
|
"losc",
|
|
"iosc",
|
|
"pll-periph",
|
|
"pll-audio";
|
|
#clock-cells = <1>;
|
|
#reset-cells = <1>;
|
|
assigned-clocks = <&r_ccu CLK_R_AHB>, <&r_ccu CLK_R_APB0>;
|
|
assigned-clock-rates = <200000000>, <100000000>;
|
|
};
|
|
|
|
nmi_intc: interrupt-controller@7010320 {
|
|
compatible = "allwinner,sun55i-a523-nmi";
|
|
reg = <0x07010320 0xc>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <2>;
|
|
interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>;
|
|
};
|
|
|
|
r_pio: pinctrl@7022000 {
|
|
compatible = "allwinner,sun55i-a523-r-pinctrl";
|
|
reg = <0x7022000 0x800>;
|
|
interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>,
|
|
<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&r_ccu CLK_R_APB0>,
|
|
<&osc24M>,
|
|
<&rtc CLK_OSC32K>;
|
|
clock-names = "apb", "hosc", "losc";
|
|
gpio-controller;
|
|
#gpio-cells = <3>;
|
|
interrupt-controller;
|
|
#interrupt-cells = <3>;
|
|
|
|
r_i2c_pins: r-i2c-pins {
|
|
pins = "PL0" ,"PL1";
|
|
allwinner,pinmux = <2>;
|
|
function = "r_i2c0";
|
|
};
|
|
};
|
|
|
|
pck600: power-controller@7060000 {
|
|
compatible = "allwinner,sun55i-a523-pck-600";
|
|
reg = <0x07060000 0x8000>;
|
|
clocks = <&r_ccu CLK_BUS_R_PPU0>;
|
|
resets = <&r_ccu RST_BUS_R_PPU0>;
|
|
#power-domain-cells = <1>;
|
|
};
|
|
|
|
r_i2c0: i2c@7081400 {
|
|
compatible = "allwinner,sun55i-a523-i2c",
|
|
"allwinner,sun8i-v536-i2c",
|
|
"allwinner,sun6i-a31-i2c";
|
|
reg = <0x07081400 0x400>;
|
|
interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&r_ccu CLK_BUS_R_I2C0>;
|
|
dmas = <&dma 49>, <&dma 49>;
|
|
dma-names = "rx", "tx";
|
|
resets = <&r_ccu RST_BUS_R_I2C0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&r_i2c_pins>;
|
|
status = "disabled";
|
|
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
rtc: rtc@7090000 {
|
|
compatible = "allwinner,sun55i-a523-rtc",
|
|
"allwinner,sun50i-r329-rtc";
|
|
reg = <0x7090000 0x400>;
|
|
interrupts = <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&r_ccu CLK_BUS_R_RTC>,
|
|
<&osc24M>,
|
|
<&r_ccu CLK_R_AHB>;
|
|
clock-names = "bus", "hosc", "ahb";
|
|
#clock-cells = <1>;
|
|
};
|
|
|
|
r_spi0: spi@7092000 {
|
|
compatible = "allwinner,sun55i-a523-spi";
|
|
reg = <0x07092000 0x1000>;
|
|
interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&r_ccu CLK_BUS_R_SPI>, <&r_ccu CLK_R_SPI>;
|
|
clock-names = "ahb", "mod";
|
|
dmas = <&mcu_dma 13>, <&mcu_dma 13>;
|
|
dma-names = "rx", "tx";
|
|
resets = <&r_ccu RST_BUS_R_SPI>;
|
|
status = "disabled";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
|
|
mcu_ccu: clock-controller@7102000 {
|
|
compatible = "allwinner,sun55i-a523-mcu-ccu";
|
|
reg = <0x7102000 0x200>;
|
|
clocks = <&osc24M>,
|
|
<&rtc CLK_OSC32K>,
|
|
<&rtc CLK_IOSC>,
|
|
<&ccu CLK_PLL_AUDIO0_4X>,
|
|
<&ccu CLK_PLL_PERIPH0_300M>,
|
|
<&ccu CLK_DSP>,
|
|
<&ccu CLK_MBUS>,
|
|
<&r_ccu CLK_R_AHB>,
|
|
<&r_ccu CLK_R_APB0>;
|
|
clock-names = "hosc",
|
|
"losc",
|
|
"iosc",
|
|
"pll-audio0-4x",
|
|
"pll-periph0-300m",
|
|
"dsp",
|
|
"mbus",
|
|
"r-ahb",
|
|
"r-apb0";
|
|
#clock-cells = <1>;
|
|
#reset-cells = <1>;
|
|
};
|
|
|
|
i2s0: i2s@7112000 {
|
|
compatible = "allwinner,sun55i-a523-i2s",
|
|
"allwinner,sun50i-r329-i2s";
|
|
reg = <0x07112000 0x1000>;
|
|
interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&mcu_ccu CLK_BUS_MCU_I2S0>, <&mcu_ccu CLK_MCU_I2S0>;
|
|
clock-names = "apb", "mod";
|
|
resets = <&mcu_ccu RST_BUS_MCU_I2S0>;
|
|
dmas = <&mcu_dma 3>, <&mcu_dma 3>;
|
|
dma-names = "rx", "tx";
|
|
#sound-dai-cells = <0>;
|
|
status = "disabled";
|
|
};
|
|
|
|
i2s1: i2s@7113000 {
|
|
compatible = "allwinner,sun55i-a523-i2s",
|
|
"allwinner,sun50i-r329-i2s";
|
|
reg = <0x07113000 0x1000>;
|
|
interrupts = <GIC_SPI 193 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&mcu_ccu CLK_BUS_MCU_I2S1>, <&mcu_ccu CLK_MCU_I2S1>;
|
|
clock-names = "apb", "mod";
|
|
resets = <&mcu_ccu RST_BUS_MCU_I2S1>;
|
|
dmas = <&mcu_dma 4>, <&mcu_dma 4>;
|
|
dma-names = "rx", "tx";
|
|
#sound-dai-cells = <0>;
|
|
status = "disabled";
|
|
};
|
|
|
|
i2s2: i2s@7114000 {
|
|
compatible = "allwinner,sun55i-a523-i2s",
|
|
"allwinner,sun50i-r329-i2s";
|
|
reg = <0x07114000 0x1000>;
|
|
interrupts = <GIC_SPI 194 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&mcu_ccu CLK_BUS_MCU_I2S2>, <&mcu_ccu CLK_MCU_I2S2>;
|
|
clock-names = "apb", "mod";
|
|
resets = <&mcu_ccu RST_BUS_MCU_I2S2>;
|
|
dmas = <&mcu_dma 5>, <&mcu_dma 5>;
|
|
dma-names = "rx", "tx";
|
|
#sound-dai-cells = <0>;
|
|
status = "disabled";
|
|
};
|
|
|
|
i2s3: i2s@7115000 {
|
|
compatible = "allwinner,sun55i-a523-i2s",
|
|
"allwinner,sun50i-r329-i2s";
|
|
reg = <0x07115000 0x1000>;
|
|
interrupts = <GIC_SPI 195 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&mcu_ccu CLK_BUS_MCU_I2S3>, <&mcu_ccu CLK_MCU_I2S3>;
|
|
clock-names = "apb", "mod";
|
|
resets = <&mcu_ccu RST_BUS_MCU_I2S3>;
|
|
dmas = <&mcu_dma 6>, <&mcu_dma 6>;
|
|
dma-names = "rx", "tx";
|
|
#sound-dai-cells = <0>;
|
|
status = "disabled";
|
|
};
|
|
|
|
spdif: spdif@7116000 {
|
|
compatible = "allwinner,sun55i-a523-spdif";
|
|
reg = <0x07116000 0x400>;
|
|
interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&mcu_ccu CLK_BUS_MCU_SPDIF>,
|
|
<&mcu_ccu CLK_MCU_SPDIF_TX>,
|
|
<&mcu_ccu CLK_MCU_SPDIF_RX>;
|
|
clock-names = "apb", "tx", "rx";
|
|
resets = <&mcu_ccu RST_BUS_MCU_SPDIF>;
|
|
dmas = <&mcu_dma 2>, <&mcu_dma 2>;
|
|
dma-names = "rx", "tx";
|
|
#sound-dai-cells = <0>;
|
|
status = "disabled";
|
|
};
|
|
|
|
mcu_dma: dma-controller@7121000 {
|
|
compatible = "allwinner,sun55i-a523-mcu-dma",
|
|
"allwinner,sun50i-a100-dma";
|
|
reg = <0x07121000 0x1000>;
|
|
interrupts = <GIC_SPI 197 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&mcu_ccu CLK_BUS_MCU_DMA>, <&mcu_ccu CLK_MCU_MBUS_DMA>;
|
|
clock-names = "bus", "mbus";
|
|
dma-channels = <16>;
|
|
dma-requests = <15>;
|
|
resets = <&mcu_ccu RST_BUS_MCU_DMA>;
|
|
#dma-cells = <1>;
|
|
};
|
|
|
|
npu: npu@7122000 {
|
|
compatible = "vivante,gc";
|
|
reg = <0x07122000 0x1000>;
|
|
interrupts = <GIC_SPI 199 IRQ_TYPE_LEVEL_HIGH>;
|
|
clocks = <&mcu_ccu CLK_BUS_MCU_NPU_ACLK>,
|
|
<&ccu CLK_NPU>,
|
|
<&mcu_ccu CLK_BUS_MCU_NPU_HCLK>;
|
|
clock-names = "bus", "core", "reg";
|
|
resets = <&mcu_ccu RST_BUS_MCU_NPU>;
|
|
power-domains = <&ppu PD_NPU>;
|
|
};
|
|
};
|
|
};
|