[PATCH 1/4] sunxi: switch the Allwinner T113 SoC to OF_UPSTREAM
Andre Przywara
andre.przywara at arm.com
Sun Oct 26 02:23:53 CET 2025
In contrast to some other Allwinner SoCs, there is no difference between
the DTs for the Allwinner T113-s3 SoC (sun20i) between the U-Boot and the
Linux kernel repository.
Remove the old copies of the T113-s3 related .dts and .dtsi files, and
switch the whole SoC (represented by just one board) over to use
OF_UPSTREAM.
Signed-off-by: Andre Przywara <andre.przywara at arm.com>
---
arch/arm/dts/Makefile | 2 -
.../arm/dts/sun8i-t113s-mangopi-mq-r-t113.dts | 35 -
arch/arm/dts/sun8i-t113s.dtsi | 59 --
arch/arm/mach-sunxi/Kconfig | 1 +
arch/riscv/dts/sunxi-d1-t113.dtsi | 15 -
arch/riscv/dts/sunxi-d1s-t113.dtsi | 927 ------------------
configs/mangopi_mq_r_defconfig | 2 +-
7 files changed, 2 insertions(+), 1039 deletions(-)
delete mode 100644 arch/arm/dts/sun8i-t113s-mangopi-mq-r-t113.dts
delete mode 100644 arch/arm/dts/sun8i-t113s.dtsi
delete mode 100644 arch/riscv/dts/sunxi-d1-t113.dtsi
delete mode 100644 arch/riscv/dts/sunxi-d1s-t113.dtsi
diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index b329e04be9a..bf0b52d4c4b 100644
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -650,8 +650,6 @@ dtb-$(CONFIG_MACH_SUN8I_R40) += \
sun8i-r40-oka40i-c.dtb \
sun8i-t3-cqa3t-bv3.dtb \
sun8i-v40-bananapi-m2-berry.dtb
-dtb-$(CONFIG_MACH_SUN8I_R528) += \
- sun8i-t113s-mangopi-mq-r-t113.dtb
dtb-$(CONFIG_MACH_SUN50I_H5) += \
sun50i-h5-bananapi-m2-plus.dtb \
sun50i-h5-emlid-neutis-n5-devboard.dtb \
diff --git a/arch/arm/dts/sun8i-t113s-mangopi-mq-r-t113.dts b/arch/arm/dts/sun8i-t113s-mangopi-mq-r-t113.dts
deleted file mode 100644
index 8b3a7538381..00000000000
--- a/arch/arm/dts/sun8i-t113s-mangopi-mq-r-t113.dts
+++ /dev/null
@@ -1,35 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-// Copyright (C) 2022 Arm Ltd.
-
-#include <dt-bindings/interrupt-controller/irq.h>
-
-/dts-v1/;
-
-#include "sun8i-t113s.dtsi"
-#include "sunxi-d1s-t113-mangopi-mq-r.dtsi"
-
-/ {
- model = "MangoPi MQ-R-T113";
- compatible = "widora,mangopi-mq-r-t113", "allwinner,sun8i-t113s";
-
- aliases {
- ethernet0 = &rtl8189ftv;
- };
-};
-
-&cpu0 {
- cpu-supply = <®_vcc_core>;
-};
-
-&cpu1 {
- cpu-supply = <®_vcc_core>;
-};
-
-&mmc1 {
- rtl8189ftv: wifi at 1 {
- reg = <1>;
- interrupt-parent = <&pio>;
- interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 = WL_WAKE_AP */
- interrupt-names = "host-wake";
- };
-};
diff --git a/arch/arm/dts/sun8i-t113s.dtsi b/arch/arm/dts/sun8i-t113s.dtsi
deleted file mode 100644
index b94b69142af..00000000000
--- a/arch/arm/dts/sun8i-t113s.dtsi
+++ /dev/null
@@ -1,59 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
-// Copyright (C) 2022 Arm Ltd.
-
-#define SOC_PERIPHERAL_IRQ(nr) GIC_SPI nr
-
-#include <dt-bindings/interrupt-controller/arm-gic.h>
-#include <../../riscv/dts/sunxi-d1s-t113.dtsi>
-#include <../../riscv/dts/sunxi-d1-t113.dtsi>
-
-/ {
- interrupt-parent = <&gic>;
-
- cpus {
- #address-cells = <1>;
- #size-cells = <0>;
-
- cpu0: cpu at 0 {
- compatible = "arm,cortex-a7";
- device_type = "cpu";
- reg = <0>;
- clocks = <&ccu CLK_CPUX>;
- clock-names = "cpu";
- };
-
- cpu1: cpu at 1 {
- compatible = "arm,cortex-a7";
- device_type = "cpu";
- reg = <1>;
- clocks = <&ccu CLK_CPUX>;
- clock-names = "cpu";
- };
- };
-
- gic: interrupt-controller at 1c81000 {
- compatible = "arm,gic-400";
- reg = <0x03021000 0x1000>,
- <0x03022000 0x2000>,
- <0x03024000 0x2000>,
- <0x03026000 0x2000>;
- interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
- interrupt-controller;
- #interrupt-cells = <3>;
- };
-
- timer {
- compatible = "arm,armv7-timer";
- interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
- <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
- <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
- <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
- };
-
- pmu {
- compatible = "arm,cortex-a7-pmu";
- interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>,
- <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
- interrupt-affinity = <&cpu0>, <&cpu1>;
- };
-};
diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig
index b04ec671696..d4c13f21027 100644
--- a/arch/arm/mach-sunxi/Kconfig
+++ b/arch/arm/mach-sunxi/Kconfig
@@ -475,6 +475,7 @@ config MACH_SUN8I_R528
select MMC_SUNXI_HAS_NEW_MODE
select SUPPORT_SPL
select DRAM_SUN20I_D1
+ imply OF_UPSTREAM
config MACH_SUN8I_V3S
bool "sun8i (Allwinner V3/V3s/S3/S3L)"
diff --git a/arch/riscv/dts/sunxi-d1-t113.dtsi b/arch/riscv/dts/sunxi-d1-t113.dtsi
deleted file mode 100644
index b7156123df5..00000000000
--- a/arch/riscv/dts/sunxi-d1-t113.dtsi
+++ /dev/null
@@ -1,15 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ or MIT)
-// Copyright (C) 2021-2022 Samuel Holland <samuel at sholland.org>
-
-/ {
- soc {
- dsp_wdt: watchdog at 1700400 {
- compatible = "allwinner,sun20i-d1-wdt";
- reg = <0x1700400 0x20>;
- interrupts = <SOC_PERIPHERAL_IRQ(122) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&dcxo>, <&rtc CLK_OSC32K>;
- clock-names = "hosc", "losc";
- status = "reserved";
- };
- };
-};
diff --git a/arch/riscv/dts/sunxi-d1s-t113.dtsi b/arch/riscv/dts/sunxi-d1s-t113.dtsi
deleted file mode 100644
index 822f022eec2..00000000000
--- a/arch/riscv/dts/sunxi-d1s-t113.dtsi
+++ /dev/null
@@ -1,927 +0,0 @@
-// SPDX-License-Identifier: (GPL-2.0+ or MIT)
-// Copyright (C) 2021-2022 Samuel Holland <samuel at sholland.org>
-
-#include <dt-bindings/clock/sun6i-rtc.h>
-#include <dt-bindings/clock/sun8i-de2.h>
-#include <dt-bindings/clock/sun8i-tcon-top.h>
-#include <dt-bindings/clock/sun20i-d1-ccu.h>
-#include <dt-bindings/clock/sun20i-d1-r-ccu.h>
-#include <dt-bindings/interrupt-controller/irq.h>
-#include <dt-bindings/reset/sun8i-de2.h>
-#include <dt-bindings/reset/sun20i-d1-ccu.h>
-#include <dt-bindings/reset/sun20i-d1-r-ccu.h>
-
-/ {
- #address-cells = <1>;
- #size-cells = <1>;
-
- dcxo: dcxo-clk {
- compatible = "fixed-clock";
- clock-output-names = "dcxo";
- #clock-cells = <0>;
- };
-
- de: display-engine {
- compatible = "allwinner,sun20i-d1-display-engine";
- allwinner,pipelines = <&mixer0>, <&mixer1>;
- status = "disabled";
- };
-
- soc {
- compatible = "simple-bus";
- ranges;
- dma-noncoherent;
- #address-cells = <1>;
- #size-cells = <1>;
-
- pio: pinctrl at 2000000 {
- compatible = "allwinner,sun20i-d1-pinctrl";
- reg = <0x2000000 0x800>;
- interrupts = <SOC_PERIPHERAL_IRQ(69) IRQ_TYPE_LEVEL_HIGH>,
- <SOC_PERIPHERAL_IRQ(71) IRQ_TYPE_LEVEL_HIGH>,
- <SOC_PERIPHERAL_IRQ(73) IRQ_TYPE_LEVEL_HIGH>,
- <SOC_PERIPHERAL_IRQ(75) IRQ_TYPE_LEVEL_HIGH>,
- <SOC_PERIPHERAL_IRQ(77) IRQ_TYPE_LEVEL_HIGH>,
- <SOC_PERIPHERAL_IRQ(79) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_APB0>,
- <&dcxo>,
- <&rtc CLK_OSC32K>;
- clock-names = "apb", "hosc", "losc";
- gpio-controller;
- interrupt-controller;
- #gpio-cells = <3>;
- #interrupt-cells = <3>;
-
- /omit-if-no-ref/
- can0_pins: can0-pins {
- pins = "PB2", "PB3";
- function = "can0";
- };
-
- /omit-if-no-ref/
- can1_pins: can1-pins {
- pins = "PB4", "PB5";
- function = "can1";
- };
-
- /omit-if-no-ref/
- clk_pg11_pin: clk-pg11-pin {
- pins = "PG11";
- function = "clk";
- };
-
- /omit-if-no-ref/
- dsi_4lane_pins: dsi-4lane-pins {
- pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5",
- "PD6", "PD7", "PD8", "PD9";
- drive-strength = <30>;
- function = "dsi";
- };
-
- /omit-if-no-ref/
- lcd_rgb666_pins: lcd-rgb666-pins {
- pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5",
- "PD6", "PD7", "PD8", "PD9", "PD10", "PD11",
- "PD12", "PD13", "PD14", "PD15", "PD16", "PD17",
- "PD18", "PD19", "PD20", "PD21";
- function = "lcd0";
- };
-
- /omit-if-no-ref/
- mmc0_pins: mmc0-pins {
- pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
- function = "mmc0";
- };
-
- /omit-if-no-ref/
- mmc1_pins: mmc1-pins {
- pins = "PG0", "PG1", "PG2", "PG3", "PG4", "PG5";
- function = "mmc1";
- };
-
- /omit-if-no-ref/
- mmc2_pins: mmc2-pins {
- pins = "PC2", "PC3", "PC4", "PC5", "PC6", "PC7";
- function = "mmc2";
- };
-
- /omit-if-no-ref/
- rgmii_pe_pins: rgmii-pe-pins {
- pins = "PE0", "PE1", "PE2", "PE3", "PE4",
- "PE5", "PE6", "PE7", "PE8", "PE9",
- "PE11", "PE12", "PE13", "PE14", "PE15";
- function = "emac";
- };
-
- /omit-if-no-ref/
- rmii_pe_pins: rmii-pe-pins {
- pins = "PE0", "PE1", "PE2", "PE3", "PE4",
- "PE5", "PE6", "PE7", "PE8", "PE9";
- function = "emac";
- };
-
- /omit-if-no-ref/
- spi0_pins: spi0-pins {
- pins = "PC2", "PC3", "PC4", "PC5";
- function = "spi0";
- };
-
- /omit-if-no-ref/
- uart1_pg6_pins: uart1-pg6-pins {
- pins = "PG6", "PG7";
- function = "uart1";
- };
-
- /omit-if-no-ref/
- uart1_pg8_rts_cts_pins: uart1-pg8-rts-cts-pins {
- pins = "PG8", "PG9";
- function = "uart1";
- };
-
- /omit-if-no-ref/
- uart3_pb_pins: uart3-pb-pins {
- pins = "PB6", "PB7";
- function = "uart3";
- };
- };
-
- ccu: clock-controller at 2001000 {
- compatible = "allwinner,sun20i-d1-ccu";
- reg = <0x2001000 0x1000>;
- clocks = <&dcxo>,
- <&rtc CLK_OSC32K>,
- <&rtc CLK_IOSC>;
- clock-names = "hosc", "losc", "iosc";
- #clock-cells = <1>;
- #reset-cells = <1>;
- };
-
- gpadc: adc at 2009000 {
- compatible = "allwinner,sun20i-d1-gpadc";
- reg = <0x2009000 0x400>;
- clocks = <&ccu CLK_BUS_GPADC>;
- resets = <&ccu RST_BUS_GPADC>;
- interrupts = <SOC_PERIPHERAL_IRQ(57) IRQ_TYPE_LEVEL_HIGH>;
- status = "disabled";
- #io-channel-cells = <1>;
- };
-
- dmic: dmic at 2031000 {
- compatible = "allwinner,sun20i-d1-dmic",
- "allwinner,sun50i-h6-dmic";
- reg = <0x2031000 0x400>;
- interrupts = <SOC_PERIPHERAL_IRQ(24) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_DMIC>,
- <&ccu CLK_DMIC>;
- clock-names = "bus", "mod";
- resets = <&ccu RST_BUS_DMIC>;
- dmas = <&dma 8>;
- dma-names = "rx";
- status = "disabled";
- #sound-dai-cells = <0>;
- };
-
- i2s1: i2s at 2033000 {
- compatible = "allwinner,sun20i-d1-i2s",
- "allwinner,sun50i-r329-i2s";
- reg = <0x2033000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(27) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_I2S1>,
- <&ccu CLK_I2S1>;
- clock-names = "apb", "mod";
- resets = <&ccu RST_BUS_I2S1>;
- dmas = <&dma 4>, <&dma 4>;
- dma-names = "rx", "tx";
- status = "disabled";
- #sound-dai-cells = <0>;
- };
-
- i2s2: i2s at 2034000 {
- compatible = "allwinner,sun20i-d1-i2s",
- "allwinner,sun50i-r329-i2s";
- reg = <0x2034000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(28) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_I2S2>,
- <&ccu CLK_I2S2>;
- clock-names = "apb", "mod";
- resets = <&ccu RST_BUS_I2S2>;
- dmas = <&dma 5>, <&dma 5>;
- dma-names = "rx", "tx";
- status = "disabled";
- #sound-dai-cells = <0>;
- };
-
- timer: timer at 2050000 {
- compatible = "allwinner,sun20i-d1-timer",
- "allwinner,sun8i-a23-timer";
- reg = <0x2050000 0xa0>;
- interrupts = <SOC_PERIPHERAL_IRQ(59) IRQ_TYPE_LEVEL_HIGH>,
- <SOC_PERIPHERAL_IRQ(60) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&dcxo>;
- };
-
- wdt: watchdog at 20500a0 {
- compatible = "allwinner,sun20i-d1-wdt-reset",
- "allwinner,sun20i-d1-wdt";
- reg = <0x20500a0 0x20>;
- interrupts = <SOC_PERIPHERAL_IRQ(63) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&dcxo>, <&rtc CLK_OSC32K>;
- clock-names = "hosc", "losc";
- status = "reserved";
- };
-
- uart0: serial at 2500000 {
- compatible = "snps,dw-apb-uart";
- reg = <0x2500000 0x400>;
- reg-io-width = <4>;
- reg-shift = <2>;
- interrupts = <SOC_PERIPHERAL_IRQ(2) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_UART0>;
- resets = <&ccu RST_BUS_UART0>;
- dmas = <&dma 14>, <&dma 14>;
- dma-names = "tx", "rx";
- status = "disabled";
- };
-
- uart1: serial at 2500400 {
- compatible = "snps,dw-apb-uart";
- reg = <0x2500400 0x400>;
- reg-io-width = <4>;
- reg-shift = <2>;
- interrupts = <SOC_PERIPHERAL_IRQ(3) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_UART1>;
- resets = <&ccu RST_BUS_UART1>;
- dmas = <&dma 15>, <&dma 15>;
- dma-names = "tx", "rx";
- status = "disabled";
- };
-
- uart2: serial at 2500800 {
- compatible = "snps,dw-apb-uart";
- reg = <0x2500800 0x400>;
- reg-io-width = <4>;
- reg-shift = <2>;
- interrupts = <SOC_PERIPHERAL_IRQ(4) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_UART2>;
- resets = <&ccu RST_BUS_UART2>;
- dmas = <&dma 16>, <&dma 16>;
- dma-names = "tx", "rx";
- status = "disabled";
- };
-
- uart3: serial at 2500c00 {
- compatible = "snps,dw-apb-uart";
- reg = <0x2500c00 0x400>;
- reg-io-width = <4>;
- reg-shift = <2>;
- interrupts = <SOC_PERIPHERAL_IRQ(5) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_UART3>;
- resets = <&ccu RST_BUS_UART3>;
- dmas = <&dma 17>, <&dma 17>;
- dma-names = "tx", "rx";
- status = "disabled";
- };
-
- uart4: serial at 2501000 {
- compatible = "snps,dw-apb-uart";
- reg = <0x2501000 0x400>;
- reg-io-width = <4>;
- reg-shift = <2>;
- interrupts = <SOC_PERIPHERAL_IRQ(6) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_UART4>;
- resets = <&ccu RST_BUS_UART4>;
- dmas = <&dma 18>, <&dma 18>;
- dma-names = "tx", "rx";
- status = "disabled";
- };
-
- uart5: serial at 2501400 {
- compatible = "snps,dw-apb-uart";
- reg = <0x2501400 0x400>;
- reg-io-width = <4>;
- reg-shift = <2>;
- interrupts = <SOC_PERIPHERAL_IRQ(7) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_UART5>;
- resets = <&ccu RST_BUS_UART5>;
- dmas = <&dma 19>, <&dma 19>;
- dma-names = "tx", "rx";
- status = "disabled";
- };
-
- i2c0: i2c at 2502000 {
- compatible = "allwinner,sun20i-d1-i2c",
- "allwinner,sun8i-v536-i2c",
- "allwinner,sun6i-a31-i2c";
- reg = <0x2502000 0x400>;
- interrupts = <SOC_PERIPHERAL_IRQ(9) 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 at 2502400 {
- compatible = "allwinner,sun20i-d1-i2c",
- "allwinner,sun8i-v536-i2c",
- "allwinner,sun6i-a31-i2c";
- reg = <0x2502400 0x400>;
- interrupts = <SOC_PERIPHERAL_IRQ(10) 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 at 2502800 {
- compatible = "allwinner,sun20i-d1-i2c",
- "allwinner,sun8i-v536-i2c",
- "allwinner,sun6i-a31-i2c";
- reg = <0x2502800 0x400>;
- interrupts = <SOC_PERIPHERAL_IRQ(11) 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 at 2502c00 {
- compatible = "allwinner,sun20i-d1-i2c",
- "allwinner,sun8i-v536-i2c",
- "allwinner,sun6i-a31-i2c";
- reg = <0x2502c00 0x400>;
- interrupts = <SOC_PERIPHERAL_IRQ(12) 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>;
- };
-
- can0: can at 2504000 {
- compatible = "allwinner,sun20i-d1-can";
- reg = <0x02504000 0x400>;
- interrupts = <SOC_PERIPHERAL_IRQ(21) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_CAN0>;
- resets = <&ccu RST_BUS_CAN0>;
- pinctrl-names = "default";
- pinctrl-0 = <&can0_pins>;
- status = "disabled";
- };
-
- can1: can at 2504400 {
- compatible = "allwinner,sun20i-d1-can";
- reg = <0x02504400 0x400>;
- interrupts = <SOC_PERIPHERAL_IRQ(22) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_CAN1>;
- resets = <&ccu RST_BUS_CAN1>;
- pinctrl-names = "default";
- pinctrl-0 = <&can1_pins>;
- status = "disabled";
- };
-
- syscon: syscon at 3000000 {
- compatible = "allwinner,sun20i-d1-system-control";
- reg = <0x3000000 0x1000>;
- ranges;
- #address-cells = <1>;
- #size-cells = <1>;
- };
-
- dma: dma-controller at 3002000 {
- compatible = "allwinner,sun20i-d1-dma";
- reg = <0x3002000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(50) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_DMA>, <&ccu CLK_MBUS_DMA>;
- clock-names = "bus", "mbus";
- resets = <&ccu RST_BUS_DMA>;
- dma-channels = <16>;
- dma-requests = <48>;
- #dma-cells = <1>;
- };
-
- sid: efuse at 3006000 {
- compatible = "allwinner,sun20i-d1-sid";
- reg = <0x3006000 0x1000>;
- #address-cells = <1>;
- #size-cells = <1>;
- };
-
- crypto: crypto at 3040000 {
- compatible = "allwinner,sun20i-d1-crypto";
- reg = <0x3040000 0x800>;
- interrupts = <SOC_PERIPHERAL_IRQ(52) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_CE>,
- <&ccu CLK_CE>,
- <&ccu CLK_MBUS_CE>,
- <&rtc CLK_IOSC>;
- clock-names = "bus", "mod", "ram", "trng";
- resets = <&ccu RST_BUS_CE>;
- };
-
- mbus: dram-controller at 3102000 {
- compatible = "allwinner,sun20i-d1-mbus";
- reg = <0x3102000 0x1000>,
- <0x3103000 0x1000>;
- reg-names = "mbus", "dram";
- interrupts = <SOC_PERIPHERAL_IRQ(43) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_MBUS>,
- <&ccu CLK_DRAM>,
- <&ccu CLK_BUS_DRAM>;
- clock-names = "mbus", "dram", "bus";
- dma-ranges = <0 0x40000000 0x80000000>;
- #address-cells = <1>;
- #size-cells = <1>;
- #interconnect-cells = <1>;
- };
-
- mmc0: mmc at 4020000 {
- compatible = "allwinner,sun20i-d1-mmc";
- reg = <0x4020000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(40) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
- clock-names = "ahb", "mmc";
- resets = <&ccu RST_BUS_MMC0>;
- reset-names = "ahb";
- cap-sd-highspeed;
- max-frequency = <150000000>;
- no-mmc;
- status = "disabled";
- #address-cells = <1>;
- #size-cells = <0>;
- };
-
- mmc1: mmc at 4021000 {
- compatible = "allwinner,sun20i-d1-mmc";
- reg = <0x4021000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(41) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
- clock-names = "ahb", "mmc";
- resets = <&ccu RST_BUS_MMC1>;
- reset-names = "ahb";
- cap-sd-highspeed;
- max-frequency = <150000000>;
- no-mmc;
- status = "disabled";
- #address-cells = <1>;
- #size-cells = <0>;
- };
-
- mmc2: mmc at 4022000 {
- compatible = "allwinner,sun20i-d1-emmc",
- "allwinner,sun50i-a100-emmc";
- reg = <0x4022000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(42) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
- clock-names = "ahb", "mmc";
- resets = <&ccu RST_BUS_MMC2>;
- reset-names = "ahb";
- cap-mmc-highspeed;
- max-frequency = <150000000>;
- mmc-ddr-1_8v;
- mmc-ddr-3_3v;
- no-sd;
- no-sdio;
- status = "disabled";
- #address-cells = <1>;
- #size-cells = <0>;
- };
-
- spi0: spi at 4025000 {
- compatible = "allwinner,sun20i-d1-spi",
- "allwinner,sun50i-r329-spi";
- reg = <0x04025000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(15) 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 at 4026000 {
- compatible = "allwinner,sun20i-d1-spi-dbi",
- "allwinner,sun50i-r329-spi-dbi",
- "allwinner,sun50i-r329-spi";
- reg = <0x04026000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(16) 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>;
- };
-
- usb_otg: usb at 4100000 {
- compatible = "allwinner,sun20i-d1-musb",
- "allwinner,sun8i-a33-musb";
- reg = <0x4100000 0x400>;
- interrupts = <SOC_PERIPHERAL_IRQ(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 at 4100400 {
- compatible = "allwinner,sun20i-d1-usb-phy";
- reg = <0x4100400 0x100>,
- <0x4101800 0x100>,
- <0x4200800 0x100>;
- reg-names = "phy_ctrl",
- "pmu0",
- "pmu1";
- clocks = <&dcxo>,
- <&dcxo>;
- 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 at 4101000 {
- compatible = "allwinner,sun20i-d1-ehci",
- "generic-ehci";
- reg = <0x4101000 0x100>;
- interrupts = <SOC_PERIPHERAL_IRQ(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 at 4101400 {
- compatible = "allwinner,sun20i-d1-ohci",
- "generic-ohci";
- reg = <0x4101400 0x100>;
- interrupts = <SOC_PERIPHERAL_IRQ(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 at 4200000 {
- compatible = "allwinner,sun20i-d1-ehci",
- "generic-ehci";
- reg = <0x4200000 0x100>;
- interrupts = <SOC_PERIPHERAL_IRQ(33) 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 at 4200400 {
- compatible = "allwinner,sun20i-d1-ohci",
- "generic-ohci";
- reg = <0x4200400 0x100>;
- interrupts = <SOC_PERIPHERAL_IRQ(34) 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";
- };
-
- emac: ethernet at 4500000 {
- compatible = "allwinner,sun20i-d1-emac",
- "allwinner,sun50i-a64-emac";
- reg = <0x4500000 0x10000>;
- interrupts = <SOC_PERIPHERAL_IRQ(46) IRQ_TYPE_LEVEL_HIGH>;
- interrupt-names = "macirq";
- clocks = <&ccu CLK_BUS_EMAC>;
- clock-names = "stmmaceth";
- resets = <&ccu RST_BUS_EMAC>;
- reset-names = "stmmaceth";
- syscon = <&syscon>;
- status = "disabled";
-
- mdio: mdio {
- compatible = "snps,dwmac-mdio";
- #address-cells = <1>;
- #size-cells = <0>;
- };
- };
-
- display_clocks: clock-controller at 5000000 {
- compatible = "allwinner,sun20i-d1-de2-clk",
- "allwinner,sun50i-h5-de2-clk";
- reg = <0x5000000 0x10000>;
- clocks = <&ccu CLK_BUS_DE>, <&ccu CLK_DE>;
- clock-names = "bus", "mod";
- resets = <&ccu RST_BUS_DE>;
- #clock-cells = <1>;
- #reset-cells = <1>;
- };
-
- mixer0: mixer at 5100000 {
- compatible = "allwinner,sun20i-d1-de2-mixer-0";
- reg = <0x5100000 0x100000>;
- clocks = <&display_clocks CLK_BUS_MIXER0>,
- <&display_clocks CLK_MIXER0>;
- clock-names = "bus", "mod";
- resets = <&display_clocks RST_MIXER0>;
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- mixer0_out: port at 1 {
- reg = <1>;
-
- mixer0_out_tcon_top_mixer0: endpoint {
- remote-endpoint = <&tcon_top_mixer0_in_mixer0>;
- };
- };
- };
- };
-
- mixer1: mixer at 5200000 {
- compatible = "allwinner,sun20i-d1-de2-mixer-1";
- reg = <0x5200000 0x100000>;
- clocks = <&display_clocks CLK_BUS_MIXER1>,
- <&display_clocks CLK_MIXER1>;
- clock-names = "bus", "mod";
- resets = <&display_clocks RST_MIXER1>;
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- mixer1_out: port at 1 {
- reg = <1>;
-
- mixer1_out_tcon_top_mixer1: endpoint {
- remote-endpoint = <&tcon_top_mixer1_in_mixer1>;
- };
- };
- };
- };
-
- dsi: dsi at 5450000 {
- compatible = "allwinner,sun20i-d1-mipi-dsi",
- "allwinner,sun50i-a100-mipi-dsi";
- reg = <0x5450000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(92) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_MIPI_DSI>,
- <&tcon_top CLK_TCON_TOP_DSI>;
- clock-names = "bus", "mod";
- resets = <&ccu RST_BUS_MIPI_DSI>;
- phys = <&dphy>;
- phy-names = "dphy";
- status = "disabled";
-
- port {
- dsi_in_tcon_lcd0: endpoint {
- remote-endpoint = <&tcon_lcd0_out_dsi>;
- };
- };
- };
-
- dphy: phy at 5451000 {
- compatible = "allwinner,sun20i-d1-mipi-dphy",
- "allwinner,sun50i-a100-mipi-dphy";
- reg = <0x5451000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(92) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_MIPI_DSI>,
- <&ccu CLK_MIPI_DSI>;
- clock-names = "bus", "mod";
- resets = <&ccu RST_BUS_MIPI_DSI>;
- #phy-cells = <0>;
- };
-
- tcon_top: tcon-top at 5460000 {
- compatible = "allwinner,sun20i-d1-tcon-top";
- reg = <0x5460000 0x1000>;
- clocks = <&ccu CLK_BUS_DPSS_TOP>,
- <&ccu CLK_TCON_TV>,
- <&ccu CLK_TVE>,
- <&ccu CLK_TCON_LCD0>;
- clock-names = "bus", "tcon-tv0", "tve0", "dsi";
- clock-output-names = "tcon-top-tv0", "tcon-top-dsi";
- resets = <&ccu RST_BUS_DPSS_TOP>;
- #clock-cells = <1>;
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- tcon_top_mixer0_in: port at 0 {
- reg = <0>;
-
- tcon_top_mixer0_in_mixer0: endpoint {
- remote-endpoint = <&mixer0_out_tcon_top_mixer0>;
- };
- };
-
- tcon_top_mixer0_out: port at 1 {
- reg = <1>;
- #address-cells = <1>;
- #size-cells = <0>;
-
- tcon_top_mixer0_out_tcon_lcd0: endpoint at 0 {
- reg = <0>;
- remote-endpoint = <&tcon_lcd0_in_tcon_top_mixer0>;
- };
-
- tcon_top_mixer0_out_tcon_tv0: endpoint at 2 {
- reg = <2>;
- remote-endpoint = <&tcon_tv0_in_tcon_top_mixer0>;
- };
- };
-
- tcon_top_mixer1_in: port at 2 {
- reg = <2>;
- #address-cells = <1>;
- #size-cells = <0>;
-
- tcon_top_mixer1_in_mixer1: endpoint at 1 {
- reg = <1>;
- remote-endpoint = <&mixer1_out_tcon_top_mixer1>;
- };
- };
-
- tcon_top_mixer1_out: port at 3 {
- reg = <3>;
- #address-cells = <1>;
- #size-cells = <0>;
-
- tcon_top_mixer1_out_tcon_lcd0: endpoint at 0 {
- reg = <0>;
- remote-endpoint = <&tcon_lcd0_in_tcon_top_mixer1>;
- };
-
- tcon_top_mixer1_out_tcon_tv0: endpoint at 2 {
- reg = <2>;
- remote-endpoint = <&tcon_tv0_in_tcon_top_mixer1>;
- };
- };
-
- tcon_top_hdmi_in: port at 4 {
- reg = <4>;
-
- tcon_top_hdmi_in_tcon_tv0: endpoint {
- remote-endpoint = <&tcon_tv0_out_tcon_top_hdmi>;
- };
- };
-
- tcon_top_hdmi_out: port at 5 {
- reg = <5>;
- };
- };
- };
-
- tcon_lcd0: lcd-controller at 5461000 {
- compatible = "allwinner,sun20i-d1-tcon-lcd";
- reg = <0x5461000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(90) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_TCON_LCD0>,
- <&ccu CLK_TCON_LCD0>;
- clock-names = "ahb", "tcon-ch0";
- clock-output-names = "tcon-pixel-clock";
- resets = <&ccu RST_BUS_TCON_LCD0>,
- <&ccu RST_BUS_LVDS0>;
- reset-names = "lcd", "lvds";
- #clock-cells = <0>;
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- tcon_lcd0_in: port at 0 {
- reg = <0>;
- #address-cells = <1>;
- #size-cells = <0>;
-
- tcon_lcd0_in_tcon_top_mixer0: endpoint at 0 {
- reg = <0>;
- remote-endpoint = <&tcon_top_mixer0_out_tcon_lcd0>;
- };
-
- tcon_lcd0_in_tcon_top_mixer1: endpoint at 1 {
- reg = <1>;
- remote-endpoint = <&tcon_top_mixer1_out_tcon_lcd0>;
- };
- };
-
- tcon_lcd0_out: port at 1 {
- reg = <1>;
- #address-cells = <1>;
- #size-cells = <0>;
-
- tcon_lcd0_out_dsi: endpoint at 1 {
- reg = <1>;
- remote-endpoint = <&dsi_in_tcon_lcd0>;
- };
- };
- };
- };
-
- tcon_tv0: lcd-controller at 5470000 {
- compatible = "allwinner,sun20i-d1-tcon-tv";
- reg = <0x5470000 0x1000>;
- interrupts = <SOC_PERIPHERAL_IRQ(91) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&ccu CLK_BUS_TCON_TV>,
- <&tcon_top CLK_TCON_TOP_TV0>;
- clock-names = "ahb", "tcon-ch1";
- resets = <&ccu RST_BUS_TCON_TV>;
- reset-names = "lcd";
-
- ports {
- #address-cells = <1>;
- #size-cells = <0>;
-
- tcon_tv0_in: port at 0 {
- reg = <0>;
- #address-cells = <1>;
- #size-cells = <0>;
-
- tcon_tv0_in_tcon_top_mixer0: endpoint at 0 {
- reg = <0>;
- remote-endpoint = <&tcon_top_mixer0_out_tcon_tv0>;
- };
-
- tcon_tv0_in_tcon_top_mixer1: endpoint at 1 {
- reg = <1>;
- remote-endpoint = <&tcon_top_mixer1_out_tcon_tv0>;
- };
- };
-
- tcon_tv0_out: port at 1 {
- reg = <1>;
-
- tcon_tv0_out_tcon_top_hdmi: endpoint {
- remote-endpoint = <&tcon_top_hdmi_in_tcon_tv0>;
- };
- };
- };
- };
-
- ppu: power-controller at 7001000 {
- compatible = "allwinner,sun20i-d1-ppu";
- reg = <0x7001000 0x1000>;
- clocks = <&r_ccu CLK_BUS_R_PPU>;
- resets = <&r_ccu RST_BUS_R_PPU>;
- #power-domain-cells = <1>;
- };
-
- r_ccu: clock-controller at 7010000 {
- compatible = "allwinner,sun20i-d1-r-ccu";
- reg = <0x7010000 0x400>;
- clocks = <&dcxo>,
- <&rtc CLK_OSC32K>,
- <&rtc CLK_IOSC>,
- <&ccu CLK_PLL_PERIPH0_DIV3>;
- clock-names = "hosc", "losc", "iosc", "pll-periph";
- #clock-cells = <1>;
- #reset-cells = <1>;
- };
-
- rtc: rtc at 7090000 {
- compatible = "allwinner,sun20i-d1-rtc",
- "allwinner,sun50i-r329-rtc";
- reg = <0x7090000 0x400>;
- interrupts = <SOC_PERIPHERAL_IRQ(144) IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&r_ccu CLK_BUS_R_RTC>,
- <&dcxo>,
- <&r_ccu CLK_R_AHB>;
- clock-names = "bus", "hosc", "ahb";
- #clock-cells = <1>;
- };
- };
-};
diff --git a/configs/mangopi_mq_r_defconfig b/configs/mangopi_mq_r_defconfig
index 9017df040cf..5b754905d7c 100644
--- a/configs/mangopi_mq_r_defconfig
+++ b/configs/mangopi_mq_r_defconfig
@@ -1,6 +1,6 @@
CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
-CONFIG_DEFAULT_DEVICE_TREE="sun8i-t113s-mangopi-mq-r-t113"
+CONFIG_DEFAULT_DEVICE_TREE="allwinner/sun8i-t113s-mangopi-mq-r-t113"
CONFIG_SPL=y
CONFIG_DRAM_SUNXI_ODT_EN=0
CONFIG_DRAM_SUNXI_TPR0=0x004a2195
--
2.46.4
More information about the U-Boot
mailing list