Skip to contentSkip to conversation

arm64: dts: allwinner: add A733/Cubie A7S support

PATCH Superseded Enzo Adriano 4 participants 16 messages Nov 19 – Nov 26

Subsystems (2)

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

v4 cover arm64: dts: allwinner: add A733/Cubie A7S support

This series adds the initial Allwinner A733 and Radxa Cubie A7S device trees for UART0, the AXP318W PMIC and 3.3 V microSD.

Base: sunxi/for-next (03b3355ed7a39b4416f0d0a39061479b1aa13196). Previous posting (v3):
https://lore.kernel.org/r/[email protected]

Changes in v4:
- 1/3: Carry Alexander Sverdlin's Reviewed-by.
- 2/3: Add a one-cluster CPU map and A55/A76 PMUs on PPI 7, using GIC ppi-partitions. Change #interrupt-cells from 3 to 4 and add a fourth cell to every GIC interrupt specifier. Drop Vinicius Pedrosa's Tested-by because of the interrupt encoding change.
- 3/3: Sort root nodes and put status last. Move boot history below ---.

Runtime dependencies in application order:
[1] AXP318W PMIC v8
https://lore.kernel.org/r/[email protected]
[2] Pinctrl IRQ-bank v3
https://lore.kernel.org/r/[email protected]
[3] A733 8250_dw v2, patches 1-4
https://lore.kernel.org/r/[email protected]
[4] Firmware-clock v2 for vendor-firmware warm reboot
https://lore.kernel.org/r/[email protected]
[5] Pinctrl voltage-mode v3
https://lore.kernel.org/r/[email protected]

A7S DTB/schema checks need [1] 3/5, [2] 2/3 and [3] 3/4 before v4.

Validation: clean git am, arm64 defconfig Image, arm/sunxi.yaml binding check and warning-free A7S W=2 CHECK_DTBS=y. The compiled DTB has one eight-core cluster and two disjoint PMU partitions.

A November 18 RAM boot on Cubie A7S with vendor firmware used the base and runtime dependencies above. Two context-only adaptations were needed:
PMIC v8 regulator allocation context and pinctrl voltage-mode v3 IRQ-bank map context. CPUs 0-7 came online in one cluster. The A55 PMU covered CPUs 0-5 and the A76 PMU CPUs 6-7; cycles and instructions counted and PPI 7 overflow samples were observed on each CPU. The timer, console, AXP318W probe and MMC0 read-only transfers worked; warm reboot returned to vendor Linux unaided.

Untested: PMIC/NMI interrupt delivery, card writes, hotplug, suspend, power-off, CPU capacity, 1.8 V switching, other UART/I2C and storage instances, RTC alarms, EL2/ITS/MSI, and physical BLDO2 voltage.

Enzo Adriano (3):
dt-bindings: arm: sunxi: document Radxa Cubie A7S
arm64: dts: allwinner: add A733 SoC description
arm64: dts: allwinner: add Radxa Cubie A7S board

 .../devicetree/bindings/arm/sunxi.yaml        |   5 +
 arch/arm64/boot/dts/allwinner/Makefile        |   1 +
 .../dts/allwinner/sun60i-a733-cubie-a7s.dts   | 287 ++++++++
 .../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 657 ++++++++++++++++++
 4 files changed, 950 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
 create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi

base-commit: 03b3355ed7a39b4416f0d0a39061479b1aa13196

#1 lore raw

PATCH v4 1/3 dt-bindings: arm: sunxi: document Radxa Cubie A7S

Document the Radxa Cubie A7S board and Allwinner A733 SoC compatibles for the accompanying initial board device tree, so it can be identified and validated.

---
 Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +5 -0
index 7da84e2de748..d32689b7113d 100644
@@ -857,6 +857,11 @@ properties:
           - const: radxa,cubie-a5e
           - const: allwinner,sun55i-a527
 
+      - description: Radxa Cubie A7S
+        items:
+          - const: radxa,cubie-a7s
+          - const: allwinner,sun60i-a733
+
       - description: Remix Mini PC
         items:
           - const: jide,remix-mini-pc
#2 lore raw

Re: [PATCH v4 1/3] dt-bindings: arm: sunxi: document Radxa Cubie A7S

Quoted 16 lines · On Thu, 19 Nov 2026 13:09:17 -0500 Enzo Adriano <[email protected]>…

Document the Radxa Cubie A7S board and Allwinner A733 SoC compatibles for the accompanying initial board device tree, so it can be identified and validated.

---
 Documentation/devicetree/bindings/arm/sunxi.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/sunxi.yaml +0 -0
index 7da84e2de748..d32689b7113d 100644

Documentation/devicetree/bindings/arm/sunxi.yaml properties: · line 864

Quoted 8 lines
Documentation/devicetree/bindings/arm/sunxi.yaml +5 -0
@@ -857,6 +857,11 @@ properties:
           - const: radxa,cubie-a5e
           - const: allwinner,sun55i-a527
 
+      - description: Radxa Cubie A7S
+        items:
+          - const: radxa,cubie-a7s
+          - const: allwinner,sun60i-a733
+

Can you please add the A7A and name as well? I will send the .dts patch shortly, but having the name ready would reduce the churn and avoid conflicts.

Cheers,
Andre

Quoted 4 lines
Documentation/devicetree/bindings/arm/sunxi.yaml +0 -0
       - description: Remix Mini PC
         items:
           - const: jide,remix-mini-pc
#3 lore raw

Re: [PATCH v4 1/3] dt-bindings: arm: sunxi: document Radxa Cubie A7S

Quoted 3 lines

Can you please add the A7A and name as well? I will send the .dts patch shortly, but having the name ready would reduce the churn and avoid conflicts.

I added "radxa,cubie-a7a", "allwinner,sun60i-a733". Both strings are in Radxa's Linux 5.15 Cubie A7A board DTS. Please let me know if your DTS uses a different compatible.

https://github.com/radxa/allwinner-device/blob/6d911d1582dcccdb5a4c38be8d3c1ee851019795/configs/cubie_a7a/linux-5.15/board.dts#L5-L9

Enzo

#4 lore raw

Re: [PATCH v4 1/3] dt-bindings: arm: sunxi: document Radxa Cubie A7S

Hi,

Quoted 5 lines · Enzo Adriano
Quoted 3 lines

Can you please add the A7A and name as well? I will send the .dts patch shortly, but having the name ready would reduce the churn and avoid conflicts.

I added "radxa,cubie-a7a", "allwinner,sun60i-a733". Both strings

Many thanks! I just see that I messed up my sentence above, as I wanted to have the Cubie A7Z added as well, to reduce the churn and stupid conflicts between series. If you respin, can you please add this one as well?

Quoted 1 line

are in Radxa's Linux 5.15 Cubie A7A board DTS.

Please note that copying from a BSP is typically not a good idea (though fine in this case). The devicetree as (somewhat) published by Allwinner is quite non-standard, to put it nicely. There are large conceptual differences even, so it's not just about naming or such. You can use their DT to figure out how peripherals are connected, or to learn about some IP in general, but it's not a good template to copy from for mainlining. I would always look at other DTs in the mainline repo for reference.

Quoted 2 lines

Please let me know if
your DTS uses a different compatible.

Why would it do this? It's the very same SoC ;-)
But yes, "radxa,cubie-a7a", "allwinner,sun60i-a733" is the right string list. And just replace a7a with a7z for the other board, if you add this.

Thanks,
Andre.

P.S. I would like to post my A7A DT patch, with the hope that you could include that in your next post, shall you update your series again? So could you wait with a potential v6 post until I got that one tested and posted? Then you could ideally also include Vinicius' A7Z patch, so that we have all in one series, and just need to deal with the dependencies once.

Quoted 3 lines

https://github.com/radxa/allwinner-device/blob/6d911d1582dcccdb5a4c38be8d3c1ee851019795/configs/cubie_a7a/linux-5.15/board.dts#L5-L9

Enzo

#5 lore raw

Re: [PATCH v4 1/3] dt-bindings: arm: sunxi: document Radxa Cubie A7S

Hi Andre, Enzo,

Quoted 4 lines · Andre Przywara

could you wait with a potential v6 post until I got that one tested and posted? Then you could ideally also include Vinicius' A7Z patch, so that we have all in one series, and just need to deal with the dependencies once.

That works for me. The A7Z DTS is ready on top of Enzo's v5, with the review comments so far addressed. I tested it on my v1.11 board: all eight CPUs boot, MMC0 readback matches the reference SHA-256, and card-detect hotplug works with GPIO_PULL_UP. I also tested PMU counting and overflow interrupts on both the A55 and A76 cores.

The A7Z binding entry is "radxa,cubie-a7z", "allwinner,sun60i-a733". Krzysztof already acked that addition in my v1:
https://lore.kernel.org/r/20261113-tacky-unbeatable-pronghorn-74ed4e@quoll

The v1.10 board is still untested with GPIO_PULL_UP.

I'll post the updated A7Z DTS patch to the list as a follow-up to this thread.

Thanks,
Vinicius

#6 lore raw

Re: [PATCH v4 1/3] dt-bindings: arm: sunxi: document Radxa Cubie A7S

In reply to Andre Przywara
Quoted 1 line

If you respin, can you please add this one as well?

V6 1/5 adds "radxa,cubie-a7z", "allwinner,sun60i-a733" alongside the A7A and A7S entries.

Quoted 3 lines

could you wait with a potential v6 post until I got that one tested and posted? Then you could ideally also include Vinicius' A7Z patch, so that we have all in one series, and just need to deal with the dependencies once.

V6 [2] squashes your A7A 1/2 into the common DTSI with your Co-developed-by and carries your A7A 2/2 DTS unchanged. It also carries Vinicius's A7Z v2 [1]. Both board patches keep their authors.

[1] https://lore.kernel.org/r/[email protected]
[2] https://lore.kernel.org/r/[email protected]

Thanks,
Enzo

#7 lore raw

PATCH v4 2/3 arm64: dts: allwinner: add A733 SoC description

In reply to Enzo Adriano

Provide the SoC description needed for the Cubie A7S console, PMIC and microSD support. Describe the CPUs, PSCI, architectural timers, GIC, RTC, main and always-on clock/reset and pin controllers. Include the main and R-domain UART/I2C instances and MMC0-2 with their pin groups.

The GIC maintenance PPI 9 and ARMv8.2 EL2 virtual-timer PPI 12 follow the A733 User Manual v1.00, section 12.2.3. The GICD/GICR/ITS windows and noncoherent attributes follow Andre Przywara's public A733 reference and the A523 precedent. The CPUX interconnect diagram in section 5.1.2 supports noncoherency as an integration inference. The ITS stays disabled pending its clock/reset and MSI integration.

Describe one DynamIQ cluster sharing L3, as shown in the A733 User Manual v1.00, section 5.1.2 (figure 5-1), and partition PPI 7 (section 12.2.3, table 12-1) between the Cortex-A55 and Cortex-A76 PMUs so each probes its own core type. Defer capacity-dmips-mhz until it is measured on A733.

---

The November 18 v4 RAM boot on Cubie A7S with vendor firmware exercised console, R-I2C0/PMIC probe and MMC0 read-only transfers. CPUs 0-7 were in one cluster, with the A55 PMU on CPUs 0-5 and the A76 PMU on CPUs 6-7 counting and receiving PPI 7 overflow interrupts on each CPU. PMIC/NMI interrupt delivery, EL2 interrupt delivery and ITS/MSI were not tested.

Dropped Vinicius Pedrosa's Tested-by because v4 changes the GIC interrupt encoding.

 .../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 657 ++++++++++++++++++
 1 file changed, 657 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi new file +657 -0
new file mode 100644
index 000000000000..b0f642f37803
@@ -0,0 +1,657 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
+
+#include <dt-bindings/clock/sun6i-rtc.h>
+#include <dt-bindings/clock/allwinner,sun60i-a733-ccu.h>
+#include <dt-bindings/clock/allwinner,sun60i-a733-r-ccu.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/reset/allwinner,sun60i-a733-ccu.h>
+#include <dt-bindings/reset/allwinner,sun60i-a733-r-ccu.h>
+
+/ {
+	#address-cells = <2>;
+	#size-cells = <2>;
+	interrupt-parent = <&gic>;
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu-map {
+			cluster0 {
+				core0 {
+					cpu = <&cpu0>;
+				};
+
+				core1 {
+					cpu = <&cpu1>;
+				};
+
+				core2 {
+					cpu = <&cpu2>;
+				};
+
+				core3 {
+					cpu = <&cpu3>;
+				};
+
+				core4 {
+					cpu = <&cpu4>;
+				};
+
+				core5 {
+					cpu = <&cpu5>;
+				};
+
+				core6 {
+					cpu = <&cpu6>;
+				};
+
+				core7 {
+					cpu = <&cpu7>;
+				};
+			};
+		};
+
+		cpu0: cpu@0 {
+			compatible = "arm,cortex-a55";
+			device_type = "cpu";
+			reg = <0x0>;
+			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-a76";
+			device_type = "cpu";
+			reg = <0x600>;
+			enable-method = "psci";
+		};
+
+		cpu7: cpu@700 {
+			compatible = "arm,cortex-a76";
+			device_type = "cpu";
+			reg = <0x700>;
+			enable-method = "psci";
+		};
+	};
+
+	osc: osc-clk {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+	};
+
+	pmu-a55 {
+		compatible = "arm,cortex-a55-pmu";
+		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH &ppi_a55>;
+	};
+
+	pmu-a76 {
+		compatible = "arm,cortex-a76-pmu";
+		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH &ppi_a76>;
+	};
+
+	psci {
+		compatible = "arm,psci-0.2";
+		method = "smc";
+	};
+
+	timer {
+		compatible = "arm,armv8-timer";
+		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
+		arm,no-tick-in-suspend;
+	};
+
+	soc@0 {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0x0 0x0 0x40000000>;
+
+		pio: pinctrl@2000000 {
+			compatible = "allwinner,sun60i-a733-pinctrl";
+			reg = <0x02000000 0x800>;
+			interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_APB1>, <&osc>, <&rtc CLK_OSC32K>;
+			clock-names = "apb", "hosc", "losc";
+			gpio-controller;
+			#gpio-cells = <3>;
+			interrupt-controller;
+			#interrupt-cells = <3>;
+
+			mmc0_pins: mmc0-pins {
+				pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
+				function = "mmc0";
+				allwinner,pinmux = <2>;
+				drive-strength = <30>;
+				bias-pull-up;
+			};
+
+			mmc1_pins: mmc1-pins {
+				pins = "PG0", "PG1", "PG2", "PG3", "PG4", "PG5";
+				function = "mmc1";
+				allwinner,pinmux = <2>;
+				drive-strength = <30>;
+				bias-pull-up;
+			};
+
+			mmc2_pins: mmc2-pins {
+				pins = "PC5", "PC6", "PC8", "PC9", "PC10", "PC11",
+				       "PC13", "PC14", "PC15", "PC16";
+				function = "mmc2";
+				allwinner,pinmux = <3>;
+				drive-strength = <30>;
+				bias-pull-up;
+			};
+
+			uart0_pb_pins: uart0-pb-pins {
+				pins = "PB9", "PB10";
+				function = "uart0";
+				allwinner,pinmux = <2>;
+			};
+		};
+
+		ccu: clock-controller@2002000 {
+			compatible = "allwinner,sun60i-a733-ccu";
+			reg = <0x02002000 0x2000>;
+			clocks = <&osc>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>,
+				 <&rtc CLK_OSC32K_FANOUT>;
+			clock-names = "hosc", "losc", "iosc", "losc-fanout";
+			#clock-cells = <1>;
+			#reset-cells = <1>;
+		};
+
+		uart0: serial@2500000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02500000 0x400>;
+			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART0>;
+			resets = <&ccu RST_BUS_UART0>;
+			status = "disabled";
+		};
+
+		uart1: serial@2501000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02501000 0x400>;
+			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART1>;
+			resets = <&ccu RST_BUS_UART1>;
+			status = "disabled";
+		};
+
+		uart2: serial@2502000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02502000 0x400>;
+			interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART2>;
+			resets = <&ccu RST_BUS_UART2>;
+			status = "disabled";
+		};
+
+		uart3: serial@2503000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02503000 0x400>;
+			interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART3>;
+			resets = <&ccu RST_BUS_UART3>;
+			status = "disabled";
+		};
+
+		uart4: serial@2504000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02504000 0x400>;
+			interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART4>;
+			resets = <&ccu RST_BUS_UART4>;
+			status = "disabled";
+		};
+
+		uart5: serial@2505000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02505000 0x400>;
+			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART5>;
+			resets = <&ccu RST_BUS_UART5>;
+			status = "disabled";
+		};
+
+		uart6: serial@2506000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02506000 0x400>;
+			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART6>;
+			resets = <&ccu RST_BUS_UART6>;
+			status = "disabled";
+		};
+
+		i2c0: i2c@2510000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02510000 0x400>;
+			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C0>;
+			resets = <&ccu RST_BUS_I2C0>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c1: i2c@2511000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02511000 0x400>;
+			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C1>;
+			resets = <&ccu RST_BUS_I2C1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c2: i2c@2512000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02512000 0x400>;
+			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C2>;
+			resets = <&ccu RST_BUS_I2C2>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c3: i2c@2513000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02513000 0x400>;
+			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C3>;
+			resets = <&ccu RST_BUS_I2C3>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c4: i2c@2514000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02514000 0x400>;
+			interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C4>;
+			resets = <&ccu RST_BUS_I2C4>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c5: i2c@2515000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02515000 0x400>;
+			interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C5>;
+			resets = <&ccu RST_BUS_I2C5>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c6: i2c@2516000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02516000 0x400>;
+			interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C6>;
+			resets = <&ccu RST_BUS_I2C6>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c7: i2c@2517000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02517000 0x400>;
+			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C7>;
+			resets = <&ccu RST_BUS_I2C7>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c8: i2c@2518000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02518000 0x400>;
+			interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C8>;
+			resets = <&ccu RST_BUS_I2C8>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c9: i2c@2519000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02519000 0x400>;
+			interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C9>;
+			resets = <&ccu RST_BUS_I2C9>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c10: i2c@251a000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x0251a000 0x400>;
+			interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C10>;
+			resets = <&ccu RST_BUS_I2C10>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c11: i2c@251b000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x0251b000 0x400>;
+			interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C11>;
+			resets = <&ccu RST_BUS_I2C11>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c12: i2c@251c000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x0251c000 0x400>;
+			interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C12>;
+			resets = <&ccu RST_BUS_I2C12>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		gic: interrupt-controller@3400000 {
+			compatible = "arm,gic-v3";
+			reg = <0x03400000 0x10000>, <0x03460000 0x100000>;
+			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
+			dma-noncoherent;
+			interrupt-controller;
+			#interrupt-cells = <4>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			its: msi-controller@3440000 {
+				compatible = "arm,gic-v3-its";
+				reg = <0x03440000 0x20000>;
+				msi-controller;
+				#msi-cells = <1>;
+				dma-noncoherent;
+				status = "disabled";
+			};
+
+			ppi-partitions {
+				ppi_a55: interrupt-partition-0 {
+					affinity = <&cpu0 &cpu1 &cpu2 &cpu3 &cpu4 &cpu5>;
+				};
+
+				ppi_a76: interrupt-partition-1 {
+					affinity = <&cpu6 &cpu7>;
+				};
+			};
+		};
+
+		mmc0: mmc@4020000 {
+			compatible = "allwinner,sun60i-a733-mmc",
+				     "allwinner,sun20i-d1-mmc";
+			reg = <0x04020000 0x1000>;
+			interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
+			clock-names = "ahb", "mmc";
+			resets = <&ccu RST_BUS_MMC0>;
+			reset-names = "ahb";
+			pinctrl-names = "default";
+			pinctrl-0 = <&mmc0_pins>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		mmc1: mmc@4021000 {
+			compatible = "allwinner,sun60i-a733-mmc",
+				     "allwinner,sun20i-d1-mmc";
+			reg = <0x04021000 0x1000>;
+			interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
+			clock-names = "ahb", "mmc";
+			resets = <&ccu RST_BUS_MMC1>;
+			reset-names = "ahb";
+			pinctrl-names = "default";
+			pinctrl-0 = <&mmc1_pins>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		mmc2: mmc@4022000 {
+			compatible = "allwinner,sun60i-a733-mmc",
+				     "allwinner,sun20i-d1-mmc";
+			reg = <0x04022000 0x1000>;
+			interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
+			clock-names = "ahb", "mmc";
+			resets = <&ccu RST_BUS_MMC2>;
+			reset-names = "ahb";
+			pinctrl-names = "default";
+			pinctrl-0 = <&mmc2_pins>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		r_ccu: clock-controller@7010000 {
+			compatible = "allwinner,sun60i-a733-r-ccu";
+			reg = <0x07010000 0x250>;
+			clocks = <&osc>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>,
+				 <&ccu CLK_SYS_24M>, <&ccu CLK_PLL_PERIPH0_200M>,
+				 <&ccu CLK_PLL_PERIPH0_300M>,
+				 <&ccu CLK_PLL_PERIPH1_300M>;
+			clock-names = "hosc", "losc", "iosc", "sys-24m",
+				      "pll-periph0-200m", "pll-periph0-300m",
+				      "pll-periph1-300m";
+			#clock-cells = <1>;
+			#reset-cells = <1>;
+		};
+
+		nmi_intc: interrupt-controller@7010320 {
+			compatible = "allwinner,sun60i-a733-nmi",
+				     "allwinner,sun55i-a523-nmi";
+			reg = <0x07010320 0xc>;
+			interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH 0>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		r_pio: pinctrl@7025000 {
+			compatible = "allwinner,sun60i-a733-r-pinctrl";
+			reg = <0x07025000 0x800>;
+			interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_R_APB0>, <&osc>, <&rtc CLK_OSC32K>;
+			clock-names = "apb", "hosc", "losc";
+			gpio-controller;
+			#gpio-cells = <3>;
+			interrupt-controller;
+			#interrupt-cells = <3>;
+
+			r_i2c0_pl_pins: r-i2c0-pl-pins {
+				pins = "PL0", "PL1";
+				function = "r_i2c0";
+				allwinner,pinmux = <2>;
+			};
+		};
+
+		r_uart0: serial@7080000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x07080000 0x400>;
+			interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&r_ccu CLK_BUS_R_UART0>;
+			resets = <&r_ccu RST_BUS_R_UART0>;
+			status = "disabled";
+		};
+
+		r_uart1: serial@7081000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x07081000 0x400>;
+			interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&r_ccu CLK_BUS_R_UART1>;
+			resets = <&r_ccu RST_BUS_R_UART1>;
+			status = "disabled";
+		};
+
+		r_i2c0: i2c@7083000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x07083000 0x400>;
+			interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_BUS_R_I2C0>;
+			resets = <&r_ccu RST_BUS_R_I2C0>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		r_i2c1: i2c@7084000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x07084000 0x400>;
+			interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_BUS_R_I2C1>;
+			resets = <&r_ccu RST_BUS_R_I2C1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		r_i2c2: i2c@7085000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x07085000 0x400>;
+			interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_BUS_R_I2C2>;
+			resets = <&r_ccu RST_BUS_R_I2C2>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		rtc: rtc@7090000 {
+			compatible = "allwinner,sun60i-a733-rtc",
+				     "allwinner,sun50i-r329-rtc";
+			reg = <0x07090000 0x400>;
+			interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_BUS_R_RTC>, <&osc>, <&r_ccu CLK_R_AHB>;
+			clock-names = "bus", "hosc", "ahb";
+			#clock-cells = <1>;
+		};
+	};
+};
#8 lore raw

Re: [PATCH v4 2/3] arm64: dts: allwinner: add A733 SoC description

Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] arm64: dts: allwinner: pio node lists 10 interrupts instead of 11 on A733 - [Low] arm64: dts…

Thank you for your contribution! Sashiko AI review found 2 potential issues to consider:
- [High] arm64: dts: allwinner: pio node lists 10 interrupts instead of 11 on A733
- [Low] arm64: dts: allwinner: undocumented allwinner,sun60i-a733-uart compatible
--

commit b822d1469c44857fd000cc1a89105a359018f41b
Author: Enzo Adriano <[email protected]>

arm64: dts: allwinner: add A733 SoC description

This commit adds the base Devicetree description for the Allwinner A733 SoC, covering CPUs, GIC, timers, clocks, pin controllers, UART, I2C, and MMC controllers.

Quoted 6 lines
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi new file +0 -0
new file mode 100644
index 0000000000000..b0f642f37803a
@@ -0,0 +1,657 @@

[ ... ]

arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi line 160

Quoted 13 lines
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi new file +13 -0
+		pio: pinctrl@2000000 {
+			compatible = "allwinner,sun60i-a733-pinctrl";
+			reg = <0x02000000 0x800>;
+			interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH 0>;

[Severity: High]
Does omitting Port A's interrupt (<GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>) at index 0 shift all main-domain GPIO bank interrupts off by one?

The binding in Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml requires 11 interrupts for allwinner,sun60i-a733-pinctrl. In the driver, Port A occupies bank 0 with 0 pins, so prepare_function_table() assigns irqbank 1 through 10 to Ports B through K, and sunxi_irq_base_reg()
indexes the per-bank IRQ registers from Port A at bank 0:

drivers/pinctrl/sunxi/pinctrl-sunxi-dt.c:prepare_function_table() {
    ...
		if (irq_mux) {
			if (bank > last_bank)
				irq_bank++;
			func[lastfunc].muxval = irq_mux;
			func[lastfunc].irqbank = irq_bank;
    ...
}

With only 10 interrupts starting at Port B (GIC_SPI 69), pctl->irq[0..9] are registered one bank off from the hardware registers. When any GPIO interrupt on Ports B through K fires, sunxi_pinctrl_irq_handler() reads and clears the preceding bank's status register, leaving the interrupt asserted.

[ ... ]

arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi line 212

Quoted 3 lines
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi new file +3 -0
+		uart0: serial@2500000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";

[Severity: Low]
Is "allwinner,sun60i-a733-uart" documented in Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml?

Neither that schema nor this series defines "allwinner,sun60i-a733-uart", so dtbs_check will fail on uart0 through uart6 and r_uart0 through r_uart1. Other Allwinner arm64 SoCs use "snps,dw-apb-uart" alone unless the SoC-specific compatible is added to the binding.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#9 lore raw

Re: [PATCH v4 2/3] arm64: dts: allwinner: add A733 SoC description

In reply to Enzo Adriano

On Thu, 19 Nov 2026 13:09:21 -0500
Enzo Adriano <[email protected]> wrote:

Hi,

Quoted 51 lines

Provide the SoC description needed for the Cubie A7S console, PMIC and microSD support. Describe the CPUs, PSCI, architectural timers, GIC, RTC, main and always-on clock/reset and pin controllers. Include the main and R-domain UART/I2C instances and MMC0-2 with their pin groups.

The GIC maintenance PPI 9 and ARMv8.2 EL2 virtual-timer PPI 12 follow the A733 User Manual v1.00, section 12.2.3. The GICD/GICR/ITS windows and noncoherent attributes follow Andre Przywara's public A733 reference and the A523 precedent. The CPUX interconnect diagram in section 5.1.2 supports noncoherency as an integration inference. The ITS stays disabled pending its clock/reset and MSI integration.

Describe one DynamIQ cluster sharing L3, as shown in the A733 User Manual v1.00, section 5.1.2 (figure 5-1), and partition PPI 7 (section 12.2.3, table 12-1) between the Cortex-A55 and Cortex-A76 PMUs so each probes its own core type. Defer capacity-dmips-mhz until it is measured on A733.

---

The November 18 v4 RAM boot on Cubie A7S with vendor firmware exercised console, R-I2C0/PMIC probe and MMC0 read-only transfers. CPUs 0-7 were in one cluster, with the A55 PMU on CPUs 0-5 and the A76 PMU on CPUs 6-7 counting and receiving PPI 7 overflow interrupts on each CPU. PMIC/NMI interrupt delivery, EL2 interrupt delivery and ITS/MSI were not tested.

Dropped Vinicius Pedrosa's Tested-by because v4 changes the GIC interrupt encoding.

 .../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 657 ++++++++++++++++++
 1 file changed, 657 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi new file +9 -0
new file mode 100644
index 000000000000..b0f642f37803
@@ -0,0 +1,657 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
+
+#include <dt-bindings/clock/sun6i-rtc.h>
+#include <dt-bindings/clock/allwinner,sun60i-a733-ccu.h>
+#include <dt-bindings/clock/allwinner,sun60i-a733-r-ccu.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/reset/allwinner,sun60i-a733-ccu.h>
+#include <dt-bindings/reset/allwinner,sun60i-a733-r-ccu.h>
+

arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi line 19

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi new file +10 -0
+/ {
+	#address-cells = <2>;
+	#size-cells = <2>;
+	interrupt-parent = <&gic>;
+
+	cpus {
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		cpu-map {

So what's the purpose of this cpu-map really if it's all flat? I wonder what the term "cluster" should really mean, here? I mean there are surely different types of cores connected, with separate frequency and power domains. So the cpu-map should not be flat, but describe that. Yes, they all use the same MPIDR affinity level, and the manual talks of "cluster0" only, but I wonder if this is not what this node here is about.
Looks like the RK3588 also uses the same affinity level for all cores, but has a differentiated cpu-map.

Quoted 83 lines
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi new file +83 -0
+			cluster0 {
+				core0 {
+					cpu = <&cpu0>;
+				};
+
+				core1 {
+					cpu = <&cpu1>;
+				};
+
+				core2 {
+					cpu = <&cpu2>;
+				};
+
+				core3 {
+					cpu = <&cpu3>;
+				};
+
+				core4 {
+					cpu = <&cpu4>;
+				};
+
+				core5 {
+					cpu = <&cpu5>;
+				};
+
+				core6 {
+					cpu = <&cpu6>;
+				};
+
+				core7 {
+					cpu = <&cpu7>;
+				};
+			};
+		};
+
+		cpu0: cpu@0 {
+			compatible = "arm,cortex-a55";
+			device_type = "cpu";
+			reg = <0x0>;
+			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-a76";
+			device_type = "cpu";
+			reg = <0x600>;
+			enable-method = "psci";
+		};

arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi line 112

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi new file +10 -0
+
+		cpu7: cpu@700 {
+			compatible = "arm,cortex-a76";
+			device_type = "cpu";
+			reg = <0x700>;
+			enable-method = "psci";
+		};
+	};
+
+	osc: osc-clk {

The label should at least "hosc", to differentiate it from the 32KHz crystal.
As for the node name: traditionally we put the frequency in there, but that's not really possible if we don't know it yet. So we could as well follow the binding recommendation (to start with "clock-") and use "clock-hosc" or something.

I checked the rest of the file thoroughly against their bindings and the manual, all addresses, clocks, and interrupt numbers matched.

Cheers,
Andre

Quoted 546 lines
arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi new file +545 -0
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+	};
+
+	pmu-a55 {
+		compatible = "arm,cortex-a55-pmu";
+		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH &ppi_a55>;
+	};
+
+	pmu-a76 {
+		compatible = "arm,cortex-a76-pmu";
+		interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH &ppi_a76>;
+	};
+
+	psci {
+		compatible = "arm,psci-0.2";
+		method = "smc";
+	};
+
+	timer {
+		compatible = "arm,armv8-timer";
+		interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH 0>,
+			     <GIC_PPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
+		arm,no-tick-in-suspend;
+	};
+
+	soc@0 {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges = <0x0 0x0 0x0 0x40000000>;
+
+		pio: pinctrl@2000000 {
+			compatible = "allwinner,sun60i-a733-pinctrl";
+			reg = <0x02000000 0x800>;
+			interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_APB1>, <&osc>, <&rtc CLK_OSC32K>;
+			clock-names = "apb", "hosc", "losc";
+			gpio-controller;
+			#gpio-cells = <3>;
+			interrupt-controller;
+			#interrupt-cells = <3>;
+
+			mmc0_pins: mmc0-pins {
+				pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
+				function = "mmc0";
+				allwinner,pinmux = <2>;
+				drive-strength = <30>;
+				bias-pull-up;
+			};
+
+			mmc1_pins: mmc1-pins {
+				pins = "PG0", "PG1", "PG2", "PG3", "PG4", "PG5";
+				function = "mmc1";
+				allwinner,pinmux = <2>;
+				drive-strength = <30>;
+				bias-pull-up;
+			};
+
+			mmc2_pins: mmc2-pins {
+				pins = "PC5", "PC6", "PC8", "PC9", "PC10", "PC11",
+				       "PC13", "PC14", "PC15", "PC16";
+				function = "mmc2";
+				allwinner,pinmux = <3>;
+				drive-strength = <30>;
+				bias-pull-up;
+			};
+
+			uart0_pb_pins: uart0-pb-pins {
+				pins = "PB9", "PB10";
+				function = "uart0";
+				allwinner,pinmux = <2>;
+			};
+		};
+
+		ccu: clock-controller@2002000 {
+			compatible = "allwinner,sun60i-a733-ccu";
+			reg = <0x02002000 0x2000>;
+			clocks = <&osc>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>,
+				 <&rtc CLK_OSC32K_FANOUT>;
+			clock-names = "hosc", "losc", "iosc", "losc-fanout";
+			#clock-cells = <1>;
+			#reset-cells = <1>;
+		};
+
+		uart0: serial@2500000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02500000 0x400>;
+			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART0>;
+			resets = <&ccu RST_BUS_UART0>;
+			status = "disabled";
+		};
+
+		uart1: serial@2501000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02501000 0x400>;
+			interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART1>;
+			resets = <&ccu RST_BUS_UART1>;
+			status = "disabled";
+		};
+
+		uart2: serial@2502000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02502000 0x400>;
+			interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART2>;
+			resets = <&ccu RST_BUS_UART2>;
+			status = "disabled";
+		};
+
+		uart3: serial@2503000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02503000 0x400>;
+			interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART3>;
+			resets = <&ccu RST_BUS_UART3>;
+			status = "disabled";
+		};
+
+		uart4: serial@2504000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02504000 0x400>;
+			interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART4>;
+			resets = <&ccu RST_BUS_UART4>;
+			status = "disabled";
+		};
+
+		uart5: serial@2505000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02505000 0x400>;
+			interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART5>;
+			resets = <&ccu RST_BUS_UART5>;
+			status = "disabled";
+		};
+
+		uart6: serial@2506000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x02506000 0x400>;
+			interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&ccu CLK_BUS_UART6>;
+			resets = <&ccu RST_BUS_UART6>;
+			status = "disabled";
+		};
+
+		i2c0: i2c@2510000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02510000 0x400>;
+			interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C0>;
+			resets = <&ccu RST_BUS_I2C0>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c1: i2c@2511000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02511000 0x400>;
+			interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C1>;
+			resets = <&ccu RST_BUS_I2C1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c2: i2c@2512000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02512000 0x400>;
+			interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C2>;
+			resets = <&ccu RST_BUS_I2C2>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c3: i2c@2513000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02513000 0x400>;
+			interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C3>;
+			resets = <&ccu RST_BUS_I2C3>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c4: i2c@2514000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02514000 0x400>;
+			interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C4>;
+			resets = <&ccu RST_BUS_I2C4>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c5: i2c@2515000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02515000 0x400>;
+			interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C5>;
+			resets = <&ccu RST_BUS_I2C5>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c6: i2c@2516000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02516000 0x400>;
+			interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C6>;
+			resets = <&ccu RST_BUS_I2C6>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c7: i2c@2517000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02517000 0x400>;
+			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C7>;
+			resets = <&ccu RST_BUS_I2C7>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c8: i2c@2518000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02518000 0x400>;
+			interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C8>;
+			resets = <&ccu RST_BUS_I2C8>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c9: i2c@2519000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x02519000 0x400>;
+			interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C9>;
+			resets = <&ccu RST_BUS_I2C9>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c10: i2c@251a000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x0251a000 0x400>;
+			interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C10>;
+			resets = <&ccu RST_BUS_I2C10>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c11: i2c@251b000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x0251b000 0x400>;
+			interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C11>;
+			resets = <&ccu RST_BUS_I2C11>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		i2c12: i2c@251c000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x0251c000 0x400>;
+			interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_I2C12>;
+			resets = <&ccu RST_BUS_I2C12>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		gic: interrupt-controller@3400000 {
+			compatible = "arm,gic-v3";
+			reg = <0x03400000 0x10000>, <0x03460000 0x100000>;
+			interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
+			dma-noncoherent;
+			interrupt-controller;
+			#interrupt-cells = <4>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			ranges;
+
+			its: msi-controller@3440000 {
+				compatible = "arm,gic-v3-its";
+				reg = <0x03440000 0x20000>;
+				msi-controller;
+				#msi-cells = <1>;
+				dma-noncoherent;
+				status = "disabled";
+			};
+
+			ppi-partitions {
+				ppi_a55: interrupt-partition-0 {
+					affinity = <&cpu0 &cpu1 &cpu2 &cpu3 &cpu4 &cpu5>;
+				};
+
+				ppi_a76: interrupt-partition-1 {
+					affinity = <&cpu6 &cpu7>;
+				};
+			};
+		};
+
+		mmc0: mmc@4020000 {
+			compatible = "allwinner,sun60i-a733-mmc",
+				     "allwinner,sun20i-d1-mmc";
+			reg = <0x04020000 0x1000>;
+			interrupts = <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
+			clock-names = "ahb", "mmc";
+			resets = <&ccu RST_BUS_MMC0>;
+			reset-names = "ahb";
+			pinctrl-names = "default";
+			pinctrl-0 = <&mmc0_pins>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		mmc1: mmc@4021000 {
+			compatible = "allwinner,sun60i-a733-mmc",
+				     "allwinner,sun20i-d1-mmc";
+			reg = <0x04021000 0x1000>;
+			interrupts = <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
+			clock-names = "ahb", "mmc";
+			resets = <&ccu RST_BUS_MMC1>;
+			reset-names = "ahb";
+			pinctrl-names = "default";
+			pinctrl-0 = <&mmc1_pins>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		mmc2: mmc@4022000 {
+			compatible = "allwinner,sun60i-a733-mmc",
+				     "allwinner,sun20i-d1-mmc";
+			reg = <0x04022000 0x1000>;
+			interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
+			clock-names = "ahb", "mmc";
+			resets = <&ccu RST_BUS_MMC2>;
+			reset-names = "ahb";
+			pinctrl-names = "default";
+			pinctrl-0 = <&mmc2_pins>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		r_ccu: clock-controller@7010000 {
+			compatible = "allwinner,sun60i-a733-r-ccu";
+			reg = <0x07010000 0x250>;
+			clocks = <&osc>, <&rtc CLK_OSC32K>, <&rtc CLK_IOSC>,
+				 <&ccu CLK_SYS_24M>, <&ccu CLK_PLL_PERIPH0_200M>,
+				 <&ccu CLK_PLL_PERIPH0_300M>,
+				 <&ccu CLK_PLL_PERIPH1_300M>;
+			clock-names = "hosc", "losc", "iosc", "sys-24m",
+				      "pll-periph0-200m", "pll-periph0-300m",
+				      "pll-periph1-300m";
+			#clock-cells = <1>;
+			#reset-cells = <1>;
+		};
+
+		nmi_intc: interrupt-controller@7010320 {
+			compatible = "allwinner,sun60i-a733-nmi",
+				     "allwinner,sun55i-a523-nmi";
+			reg = <0x07010320 0xc>;
+			interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH 0>;
+			interrupt-controller;
+			#interrupt-cells = <2>;
+		};
+
+		r_pio: pinctrl@7025000 {
+			compatible = "allwinner,sun60i-a733-r-pinctrl";
+			reg = <0x07025000 0x800>;
+			interrupts = <GIC_SPI 198 IRQ_TYPE_LEVEL_HIGH 0>,
+				     <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_R_APB0>, <&osc>, <&rtc CLK_OSC32K>;
+			clock-names = "apb", "hosc", "losc";
+			gpio-controller;
+			#gpio-cells = <3>;
+			interrupt-controller;
+			#interrupt-cells = <3>;
+
+			r_i2c0_pl_pins: r-i2c0-pl-pins {
+				pins = "PL0", "PL1";
+				function = "r_i2c0";
+				allwinner,pinmux = <2>;
+			};
+		};
+
+		r_uart0: serial@7080000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x07080000 0x400>;
+			interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&r_ccu CLK_BUS_R_UART0>;
+			resets = <&r_ccu RST_BUS_R_UART0>;
+			status = "disabled";
+		};
+
+		r_uart1: serial@7081000 {
+			compatible = "allwinner,sun60i-a733-uart",
+				     "snps,dw-apb-uart";
+			reg = <0x07081000 0x400>;
+			interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH 0>;
+			reg-shift = <2>;
+			reg-io-width = <4>;
+			clocks = <&r_ccu CLK_BUS_R_UART1>;
+			resets = <&r_ccu RST_BUS_R_UART1>;
+			status = "disabled";
+		};
+
+		r_i2c0: i2c@7083000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x07083000 0x400>;
+			interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_BUS_R_I2C0>;
+			resets = <&r_ccu RST_BUS_R_I2C0>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		r_i2c1: i2c@7084000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x07084000 0x400>;
+			interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_BUS_R_I2C1>;
+			resets = <&r_ccu RST_BUS_R_I2C1>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		r_i2c2: i2c@7085000 {
+			compatible = "allwinner,sun60i-a733-i2c",
+				     "allwinner,sun8i-v536-i2c",
+				     "allwinner,sun6i-a31-i2c";
+			reg = <0x07085000 0x400>;
+			interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_BUS_R_I2C2>;
+			resets = <&r_ccu RST_BUS_R_I2C2>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
+		rtc: rtc@7090000 {
+			compatible = "allwinner,sun60i-a733-rtc",
+				     "allwinner,sun50i-r329-rtc";
+			reg = <0x07090000 0x400>;
+			interrupts = <GIC_SPI 196 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&r_ccu CLK_BUS_R_RTC>, <&osc>, <&r_ccu CLK_R_AHB>;
+			clock-names = "bus", "hosc", "ahb";
+			#clock-cells = <1>;
+		};
+	};
+};
#10 lore raw

Re: [PATCH v4 2/3] arm64: dts: allwinner: add A733 SoC description

Quoted 9 lines

So what's the purpose of this cpu-map really if it's all flat? I wonder what the term "cluster" should really mean, here? I mean there are surely different types of cores connected, with separate frequency and power domains. So the cpu-map should not be flat, but describe that. Yes, they all use the same MPIDR affinity level, and the manual talks of "cluster0" only, but I wonder if this is not what this node here is about.
Looks like the RK3588 also uses the same affinity level for all cores, but has a differentiated cpu-map.

The map records the topology in the A733 User Manual v1.00, section 5.1.2, figure 5-1. The six A55s and two A76s sit in one DynamIQ unit and share L3. The BSP's separate PLLs, CPU frequency policies and DCDC5/DCDC3 supplies (A7S schematic sheet 4) describe two DVFS groups. Mainline can describe those with the clocks, separate opp-shared tables and CPU supplies.

RK3588 and GS101 both use 4+2+2 maps. MediaTek changed MT8195, MT8192 and MT8186 to one cluster each. The MT8195 patch says the big and little CPUs are "in one cluster: fix the CPU map to reflect that." The other two patches make the same point for their SoCs.

https://lore.kernel.org/r/[email protected]
https://lore.kernel.org/r/[email protected]
https://lore.kernel.org/r/[email protected]

I kept one cluster in v5. Do you still prefer a 6+2 split?

Enzo

#11 lore raw

Re: [PATCH v4 2/3] arm64: dts: allwinner: add A733 SoC description

Hi,

Quoted 10 lines · Enzo Adriano
Quoted 9 lines

So what's the purpose of this cpu-map really if it's all flat? I wonder what the term "cluster" should really mean, here? I mean there are surely different types of cores connected, with separate frequency and power domains. So the cpu-map should not be flat, but describe that. Yes, they all use the same MPIDR affinity level, and the manual talks of "cluster0" only, but I wonder if this is not what this node here is about.
Looks like the RK3588 also uses the same affinity level for all cores, but has a differentiated cpu-map.

Quoted 3 lines

The map records the topology in the A733 User Manual v1.00, section 5.1.2, figure 5-1. The six A55s and two A76s sit in one DynamIQ unit and share L3.

I would be careful with what's shown in those diagrams, they often simplify things, and Allwinner's documentation doesn't have the best reputation when it comes to fidelity ;-)

Quoted 4 lines

The BSP's separate PLLs, CPU frequency
policies and DCDC5/DCDC3 supplies (A7S schematic sheet 4) describe two DVFS groups. Mainline can describe those with the clocks, separate opp-shared tables and CPU supplies.

Yes, they are separate now, whereas older SoCs would only allow one voltage and one frequency, across all cores. But those were v8.0 cores, without an DSU.
From what I gathered, it is an explicit feature of those DynamIQ DSUs to combine multiple microarchitectures in one "cluster", and allow separate frequency and power domains. The shared L3 cache seems to be the defining feature of a "cluster" now.

Quoted 4 lines

RK3588 and GS101 both use 4+2+2 maps. MediaTek changed MT8195, MT8192 and MT8186 to one cluster each. The MT8195 patch says the big and little CPUs are "in one cluster: fix the CPU map to reflect that." The other two patches make the same point for their SoCs.

Ah, so there are indeed conflicting examples. Apparently this cpu-map and the topology described there doesn't mean too much anymore, in practical terms.

Quoted 6 lines

https://lore.kernel.org/r/[email protected]
https://lore.kernel.org/r/[email protected]
https://lore.kernel.org/r/[email protected]

I kept one cluster in v5. Do you still prefer a 6+2 split?

No, with this information just one cluster, in a "flat" map, is fine.

Thanks,
Andre

#12 lore raw

PATCH v4 3/3 arm64: dts: allwinner: add Radxa Cubie A7S board

In reply to Enzo Adriano

Enable the Cubie A7S serial console, PMIC and microSD slot to provide an initial usable board configuration. Supply the 26 MHz crystal and 32768 Hz RTC input, enable UART0 and the AXP318W on R-I2C0, and describe the PMIC input/output and CPU supply connections from the Radxa Cubie A7S schematic v1.10. Preserve firmware settings on rails whose working voltage is not established. BLDO2 has no programmed voltage constraint:
its software 3.3 V selector does not establish its physical output with the schematic's nominal 2.4 V input.

Describe the card's SWOUT2 supply and PF6 active-high detect with an internal pull-down. Enable MMC0 at up to 50 MHz using 3.3 V signaling only. Its high-voltage path uses VCCIO; CLDO5 also feeds PC and the PF 1.8 V input and must not be raised for SD signaling. Firmware must select the 3.3 V PF path; dynamic voltage switching is not provided. Keep other storage off.

Connect the documented bank supplies. PL's self-supply phandle is omitted to avoid the PMIC/I2C/pinctrl bootstrap cycle, as on the upstream Cubie A5E; ALDO1 is retained always-on. The separate pinctrl voltage-mode fix is required for these bank-supply connections.

---

The November 18 v4 RAM boot on Cubie A7S with vendor firmware exercised UART0, PMIC probe and MMC0 read-only transfers. PMIC/NMI interrupt delivery, card writes, physical hotplug, 1.8 V signaling and physical BLDO2 voltage were not tested.

 arch/arm64/boot/dts/allwinner/Makefile        |   1 +
 .../dts/allwinner/sun60i-a733-cubie-a7s.dts   | 287 ++++++++++++++++++
 2 files changed, 288 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
index da39f02252d4..9d1e740ff19e 100644
@@ -69,3 +69,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun55i-a527-cubie-a5e.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun55i-h728-x96qpro+.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-avaota-a1.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-orangepi-4a.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7s.dtb
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +287 -0

287 lines not on this page · raw message

#13 lore raw

Re: [PATCH v4 3/3] arm64: dts: allwinner: add Radxa Cubie A7S board

Thank you for your contribution! Sashiko AI review found 3 potential issues to consider: - [High] arm64: dts: allwinner: unbound x-powers,axp318w PMIC defers uart0 and mmc0 - [High] arm64: dts…

Thank you for your contribution! Sashiko AI review found 3 potential issues to consider:
- [High] arm64: dts: allwinner: unbound x-powers,axp318w PMIC defers uart0 and mmc0
- [High] arm64: dts: allwinner: cubie-a7s sets 1.8V vcc-pf-supply for 3.3V-only mmc0
- [Low] arm64: dts: allwinner: undocumented allwinner,sun60i-a733-uart compatible
--

commit 3e2ac1a2ecf97dc48633ea46df0bd68b383bb1c3
Author: Enzo Adriano <[email protected]>

arm64: dts: allwinner: add Radxa Cubie A7S board

This commit adds initial Devicetree support for the Radxa Cubie A7S board, enabling UART0, the AXP318W PMIC on R-I2C0, CPU and GPIO bank supplies, and MMC0.

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +4 -0
new file mode 100644
index 0000000000000..9af9a68950d83
@@ -0,0 +1,287 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
+/dts-v1/;
+
+#include "sun60i-a733.dtsi"

[ ... ]

Quoted 19 lines

+&mmc0 {

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +18 -0
+	bus-width = <4>;
+	cap-sd-highspeed;
+	cd-gpios = <&pio 5 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
+	disable-wp;
+	max-frequency = <50000000>;
+	no-1-8-v;
+	vmmc-supply = <&reg_swout2>;
+	/* The 3.3 V path uses VCC-IO; no Port F voltage switching yet. */
+	vqmmc-supply = <&reg_swout2>;
+
+	status = "okay";
+};
+
+&osc {
+	clock-frequency = <26000000>;
+};
+
+&pio {

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 106

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +10 -0
+	vcc-pb-supply = <&reg_swout2>;
+	vcc-pc-supply = <&reg_cldo5>;
+	vcc-pd-supply = <&reg_swout1>;
+	vcc-pe-supply = <&reg_bldo1>;
+	vcc-pf-supply = <&reg_cldo5>;
+	vcc-pg-supply = <&reg_aldo1>;
+	vcc-ph-supply = <&reg_swout2>;
+	vcc-pj-supply = <&reg_swout1>;
+	vcc-pk-supply = <&reg_bldo1>;
+};

[Severity: High]
Does setting vcc-pf-supply to reg_cldo5 (1.8 V) conflict with mmc0 operating Port F at 3.3 V via reg_swout2?

When mmc0 requests PF0-PF6, sunxi_pmx_request() -> sunxi_pinctrl_set_io_bias_cfg() reads 1800000 uV from reg_cldo5 and programs Port F's PIO_POW_MOD_SEL bit for 1.8 V operation instead of the active 3.3 V signaling rail. In addition, drivers/pinctrl/sunxi/pinctrl-sun60i-a733.c currently sets .io_bias_cfg_variant = BIAS_VOLTAGE_PIO_POW_MODE_SEL rather than BIAS_VOLTAGE_PIO_POW_MODE_CTL_INV, so connecting vcc-p*-supply on &pio without that pinctrl change programs inverted IO bias mode bits across the supplied PIO banks.

Quoted 16 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +16 -0
+
+&r_i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&r_i2c0_pl_pins>;
+
+	status = "okay";
+
+	axp318w: pmic@36 {
+		compatible = "x-powers,axp318w";
+		reg = <0x36>;
+		interrupt-parent = <&nmi_intc>;
+		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-controller;
+		#interrupt-cells = <1>;
+
+		aldo156in-supply = <&reg_ps>;

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 132

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +10 -0
+		aldo234in-supply = <&reg_aldo1>;
+		bldoin-supply = <&reg_ldo_input>;
+		cldoin-supply = <&reg_ldo_input>;
+		dldoin-supply = <&reg_ps>;
+		eldoin-supply = <&reg_dcdc9>;
+		ips-supply = <&reg_ps>;
+		vin19-supply = <&reg_ps>;
+		vin23-supply = <&reg_ps>;
+		vin45-supply = <&reg_ps>;
+		vin678-supply = <&reg_ps>;

[Severity: High]
Will axp318w fail to bind and leave uart0, mmc0, pio, and r_pio deferred?

Neither the Devicetree bindings nor the axp20x MFD and regulator drivers have support for "x-powers,axp318w" (or its grouped input supplies and dcdc8, dcdc9, swout1, and swout2 regulator nodes), so pmic@36 never probes and dtbs_check fails validation. Because the supply phandles on &pio, &r_pio, &mmc0, and &cpu0..&cpu7 point to present DT nodes under axp318w whose regulators never register, of_regulator_dev_lookup() returns -EPROBE_DEFER instead of falling back to the dummy regulator, causing sunxi_pmx_request() for uart0 (PB9/PB10) and mmc0 (PF0-PF6) as well as mmc_regulator_get_supply() to defer indefinitely.

[ ... ]

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 287

Quoted 6 lines

+&uart0 {

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_pb_pins>;
+
+	status = "okay";
+};

[Severity: Low]
sun60i-a733.dtsi declares uart0..uart6 and r_uart0..r_uart1 with compatible = "allwinner,sun60i-a733-uart", "snps,dw-apb-uart", but "allwinner,sun60i-a733-uart" is not documented in Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml, causing dtbs_check validation failures on sun60i-a733-cubie-a7s.dtb.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
#14 lore raw

Re: [PATCH v4 3/3] arm64: dts: allwinner: add Radxa Cubie A7S board

In reply to Enzo Adriano

On Thu, 19 Nov 2026 13:09:26 -0500
Enzo Adriano <[email protected]> wrote:

Hi Enzo,

Quoted 52 lines

Enable the Cubie A7S serial console, PMIC and microSD slot to provide an initial usable board configuration. Supply the 26 MHz crystal and 32768 Hz RTC input, enable UART0 and the AXP318W on R-I2C0, and describe the PMIC input/output and CPU supply connections from the Radxa Cubie A7S schematic v1.10. Preserve firmware settings on rails whose working voltage is not established. BLDO2 has no programmed voltage constraint:
its software 3.3 V selector does not establish its physical output with the schematic's nominal 2.4 V input.

Describe the card's SWOUT2 supply and PF6 active-high detect with an internal pull-down. Enable MMC0 at up to 50 MHz using 3.3 V signaling only. Its high-voltage path uses VCCIO; CLDO5 also feeds PC and the PF 1.8 V input and must not be raised for SD signaling. Firmware must select the 3.3 V PF path; dynamic voltage switching is not provided. Keep other storage off.

Connect the documented bank supplies. PL's self-supply phandle is omitted to avoid the PMIC/I2C/pinctrl bootstrap cycle, as on the upstream Cubie A5E; ALDO1 is retained always-on. The separate pinctrl voltage-mode fix is required for these bank-supply connections.

---

The November 18 v4 RAM boot on Cubie A7S with vendor firmware exercised UART0, PMIC probe and MMC0 read-only transfers. PMIC/NMI interrupt delivery, card writes, physical hotplug, 1.8 V signaling and physical BLDO2 voltage were not tested.

 arch/arm64/boot/dts/allwinner/Makefile        |   1 +
 .../dts/allwinner/sun60i-a733-cubie-a7s.dts   | 287 ++++++++++++++++++
 2 files changed, 288 insertions(+)
 create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
arch/arm64/boot/dts/allwinner/Makefile +1 -0
index da39f02252d4..9d1e740ff19e 100644
@@ -69,3 +69,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun55i-a527-cubie-a5e.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun55i-h728-x96qpro+.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-avaota-a1.dtb
 dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-orangepi-4a.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7s.dtb
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +3 -0
new file mode 100644
index 000000000000..9af9a68950d8
@@ -0,0 +1,287 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
+/dts-v1/;
+

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 13

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +10 -0
+#include "sun60i-a733.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+
+/ {
+	model = "Radxa Cubie A7S";
+	compatible = "radxa,cubie-a7s", "allwinner,sun60i-a733";
+
+	aliases {
+		mmc0 = &mmc0;

We don't do mmc aliases. Long discussion, I understand it seems useful, but relying on Linux device numbering is not a good idea. So please drop this line. U-Boot will give it back to you if you use the U-Boot devicetree ($fdtcontroladdr).

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+		serial0 = &uart0;
+	};
+
+	chosen {
+		stdout-path = "serial0:115200n8";

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 27

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +9 -0
+	};
+
+	osc32k: osc32k-clk {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <32768>;
+	};
+
 
+	reg_ldo_input: regulator-ldo-input {

I think the node name alone is slightly misleading: it's indeed supplying some LDO input rails on the PMIC, but the chip itself is a DC/DC step down converter. Please add a comment here like this:

	/* discrete ETA3521 DC/DC step-down regulator */

And maybe use "regulator-2v4" as the node name (to match the binding requirement), the regulator name can then carry the usage meaning.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 37

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +10 -0
+		compatible = "regulator-fixed";
+		regulator-name = "ldo-input";
+		/* ETA3521: 0.6 V * (1 + RP298 / RP299), 30k / 10k. */
+		regulator-min-microvolt = <2400000>;
+		regulator-max-microvolt = <2400000>;
+		regulator-always-on;
+		vin-supply = <&reg_ps>;
+	};
+
+	reg_ps: regulator-system-power {

Please add a comment here, saying:

	/* board wide 5V supply from the USB-C connector */

And then change the node name to "regulator-5v".
Also please move this whole node first, as this is the root of the whole power tree.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 43

Quoted 6 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +6 -0
+		compatible = "regulator-fixed";
+		regulator-name = "ps";
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		regulator-always-on;
+	};

There are two LEDs on the last page of the schematic, controlled by PJ26 and PM2. Please add them here. Check other (Allwinner) DTs for how to do that.

Quoted 24 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +24 -0
+};
+
+&cpu0 {
+	cpu-supply = <&reg_dcdc5>;
+};
+
+&cpu1 {
+	cpu-supply = <&reg_dcdc5>;
+};
+
+&cpu2 {
+	cpu-supply = <&reg_dcdc5>;
+};
+
+&cpu3 {
+	cpu-supply = <&reg_dcdc5>;
+};
+
+&cpu4 {
+	cpu-supply = <&reg_dcdc5>;
+};
+
+&cpu5 {
+	cpu-supply = <&reg_dcdc5>;

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 77

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +10 -0
+};
+
+&cpu6 {
+	cpu-supply = <&reg_dcdc3>;
+};
+
+&cpu7 {
+	cpu-supply = <&reg_dcdc3>;
+};
+

The schematic shows an EEPROM on I2C0. There is a binding for that chip already, check rk3576-rock-4d.dts.
Please add that chip.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 80

Quoted 3 lines

+&mmc0 {

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +2 -0
+	bus-width = <4>;
+	cap-sd-highspeed;

I think we want the other two standard capabilities as well:

	cap-mmc-highspeed;
	cap-sdio-irq;

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 83

Quoted 3 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +3 -0
+	cd-gpios = <&pio 5 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
+	disable-wp;
+	max-frequency = <50000000>;

Where does this limit come from? As it stands right now, at 3.3V you won't get faster anyway, so it's moot. Please remove if you agree.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 87

Quoted 4 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +4 -0
+	no-1-8-v;
+	vmmc-supply = <&reg_swout2>;
+	/* The 3.3 V path uses VCC-IO; no Port F voltage switching yet. */
+	vqmmc-supply = <&reg_swout2>;

Just leave that out (for now), the default is to revert to vmmc-supply, if vqmmc is not given anyway.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 97

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +10 -0
+
+	status = "okay";
+};
+
+&osc {
+	clock-frequency = <26000000>;
+};
+
+&pio {
+	vcc-pb-supply = <&reg_swout2>;

Please add a comment that this comes via VCC-IO, see the A527/T527 boards.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 101

Quoted 4 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +4 -0
+	vcc-pc-supply = <&reg_cldo5>;
+	vcc-pd-supply = <&reg_swout1>;
+	vcc-pe-supply = <&reg_bldo1>;
+	vcc-pf-supply = <&reg_cldo5>;

Same here, comment about this being VCC-IO, at least for now.

Quoted 28 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +28 -0
+	vcc-pg-supply = <&reg_aldo1>;
+	vcc-ph-supply = <&reg_swout2>;
+	vcc-pj-supply = <&reg_swout1>;
+	vcc-pk-supply = <&reg_bldo1>;
+};
+
+&r_i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&r_i2c0_pl_pins>;
+
+	status = "okay";
+
+	axp318w: pmic@36 {
+		compatible = "x-powers,axp318w";
+		reg = <0x36>;
+		interrupt-parent = <&nmi_intc>;
+		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-controller;
+		#interrupt-cells = <1>;
+
+		aldo156in-supply = <&reg_ps>;
+		aldo234in-supply = <&reg_aldo1>;
+		bldoin-supply = <&reg_ldo_input>;
+		cldoin-supply = <&reg_ldo_input>;
+		dldoin-supply = <&reg_ps>;
+		eldoin-supply = <&reg_dcdc9>;
+		ips-supply = <&reg_ps>;
+		vin19-supply = <&reg_ps>;

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 139

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +10 -0
+		vin23-supply = <&reg_ps>;
+		vin45-supply = <&reg_ps>;
+		vin678-supply = <&reg_ps>;
+
+		regulators {
+			reg_dcdc1: dcdc1 {
+				regulator-name = "vcc-3v3";
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;

Please add a comment or use a speaking regulator name to justify that this regulator must be always on. "regulator-always-on" should be the exception, not the rule. This applies to all the nodes below, I will comment with some hints below again.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 144

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+			};
+
+			reg_dcdc2: dcdc2 {
+				regulator-name = "vdd-sys";
+				regulator-always-on;

We should have a voltage or a range for every regulator. Here it should be 0.8V.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 148

Quoted 4 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +4 -0
+			};
+
+			reg_dcdc3: dcdc3 {
+				regulator-name = "vdd-cpub";

Do we have some OPPs for the cores? The range should reflect the min/max used voltages in there.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 154

Quoted 6 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +6 -0
+				regulator-always-on;
+			};
+
+			reg_dcdc4: dcdc4 {
+				regulator-name = "vdd-gpu";
+				regulator-always-on;

Why is this always on? If I see this correctly, that's just supplying the GPU, which will have its own supply property.
Voltages should be in the same range as for the CPUs.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 164

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +10 -0
+			};
+
+			reg_dcdc5: dcdc5 {
+				regulator-name = "vdd-cpul";
+				regulator-always-on;
+			};
+
+			reg_dcdc6: dcdc6 {
+				regulator-name = "vcc-draml";
+				regulator-always-on;

0.6/0.5V I guess.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 169

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+			};
+
+			reg_dcdc7: dcdc7 {
+				regulator-name = "vcc-dram";
+				regulator-always-on;

Probably 1.1V.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 175

Quoted 6 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +6 -0
+			};
+
+			reg_dcdc8: dcdc8 {
+				regulator-name = "vcc-ufs-io";
+				regulator-always-on;
+			};

But there is no UFS on this board, right? All the UFS signals seem to be not-connected, so this power supply will be going nowhere. And DCDC8 seems to be used exclusively for UFS, so I would just leave this whole node out.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 179

Quoted 4 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +4 -0
+
+			reg_dcdc9: dcdc9 {
+				regulator-name = "eldo-input";
+				regulator-always-on;

Again, why the always-on? This is referenced by eldoin-supply, so the kernel should keep this on.
As for the voltage, the schematic doesn't seem to give a clue, so maybe you can look this up on a running BSP kernel.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 185

Quoted 6 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +6 -0
+			};
+
+			reg_swout1: swout1 {
+				regulator-name = "vcc33-lcd";
+				regulator-always-on;
+			};

Why always-on? Should be referenced by the pinctrl device.

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+
+			reg_swout2: swout2 {
+				regulator-name = "vcc-io-card";
+				regulator-always-on;
+			};

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 200

Quoted 10 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +10 -0
+
+			reg_aldo1: aldo1 {
+				regulator-name = "vcc-pl";
+				regulator-min-microvolt = <3300000>;
+				regulator-max-microvolt = <3300000>;
+				regulator-always-on;
+			};
+
+			reg_bldo1: bldo1 {
+				regulator-name = "vcc-pe-pk-mcsi";

Does this intentionally miss the voltage setting? The datasheets suggests that VCC-MCSI must be 1.8V.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 205

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+			};
+
+			reg_bldo2: bldo2 {
+				regulator-name = "vcc-lvds0";
+				regulator-always-on;

Should not be needed.
And again, the voltage is missing. Per the datasheet, VCC_LVDS0 must be 1.8V, and the VCC18-LCD label connected to BLDO2 supports this.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 212

Quoted 7 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +7 -0
+			};
+
+			reg_bldo4: bldo4 {
+				regulator-name = "vcc18-codec";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+			};

Do we need this at all? I don't see this (VCC18-CODEC) connected anywhere?

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 215

Quoted 3 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +3 -0
+
+			reg_cldo1: cldo1 {
+				regulator-name = "vcc33-18-usb";

That's not the right name. The connection between VCC33-18-USB and CLDO1 is "NC" in the schematic, so this is a red herring.
However this also connects to VDD18-LPDDR, which would justify the always-on.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 228

Quoted 13 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +13 -0
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+			};
+
+			reg_cldo2: cldo2 {
+				regulator-name = "vcc18-hdmi";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+			};
+
+			reg_cldo3: cldo3 {
+				regulator-name = "vcc-pll-dram";

This is a correct example, btw: it's always on, but the regulator name makes it almost obvious why.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 235

Quoted 7 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +7 -0
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+			};
+
+			reg_cldo5: cldo5 {
+				regulator-name = "vcc18-pf-pc";

VCC18-PF is confusing, please remove that from the name.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 218

Quoted 3 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +3 -0
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;

Should not be needed.
Voltage is missing, should be 1.8V, I think.
Please try to double check on a system running with the BSP kernel.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 243

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+			};
+
+			reg_dldo1: dldo1 {
+				regulator-name = "vcc-efuse";
+				regulator-always-on;

Voltage is missing, should be 1.8V, I think.
Please try to double check on a system running with the BSP kernel.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 248

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+			};
+
+			reg_dldo6: dldo6 {
+				regulator-name = "vcc-ufs";
+				regulator-always-on;

Apparently UFS is not supported on that board, so please remove that node.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 253

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+			};
+
+			reg_eldo1: eldo1 {
+				regulator-name = "vcc09-vdd2l";
+				regulator-always-on;

Voltage should be 0.9V.

arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts line 258

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +5 -0
+			};
+
+			reg_eldo6: eldo6 {
+				regulator-name = "vdd-cpus";
+				regulator-always-on;

Schematics suggest 0.8V.

Cheers,
Andre

Quoted 30 lines
arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts new file +29 -0
+			};
+
+			reg_rtc_ldo: rtc-ldo {
+				regulator-name = "vcc-rtc";
+				regulator-min-microvolt = <1800000>;
+				regulator-max-microvolt = <1800000>;
+				regulator-always-on;
+			};
+		};
+	};
+};
+
+&r_pio {
+	/* PL powers the PMIC bus itself; firmware must keep ALDO1 enabled. */
+	vcc-pm-supply = <&reg_aldo1>;
+};
+
+&rtc {
+	clocks = <&r_ccu CLK_BUS_R_RTC>, <&osc>, <&r_ccu CLK_R_AHB>,
+		 <&osc32k>;
+	clock-names = "bus", "hosc", "ahb", "ext-osc32k";
+};
+
+&uart0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&uart0_pb_pins>;
+
+	status = "okay";
+};
#15 lore raw

Re: [PATCH v4 3/3] arm64: dts: allwinner: add Radxa Cubie A7S board

Quoted 2 lines

Where does this limit come from? As it stands right now, at 3.3V you won't get faster anyway, so it's moot. Please remove if you agree.

I set it to match the nominal SD High Speed clock for the initial 3.3 V-only configuration. I dropped it in v5. SD High Speed still requests 50 MHz (drivers/mmc/core/sd.c); sunxi-mmc's default ceiling is 52 MHz, which an MMC High Speed card can use.

Quoted 2 lines

Just leave that out (for now), the default is to revert to vmmc-supply, if vqmmc is not given anyway.

Dropped. The MMC core acquires vmmc and vqmmc separately. Without vqmmc, sunxi_mmc_voltage_switch() assumes fixed 3.0/3.3 V signalling and accepts MMC_SIGNAL_VOLTAGE_330. SWOUT2 still supplies the card through vmmc (schematic sheets 4 and 13).

Quoted 1 line

Same here, comment about this being VCC-IO, at least for now.

I switched vcc-pf-supply to SWOUT2. Schematic v1.10 sheets 4 and 7 show VCC-IO feeding PB and the 3.3 V PF path, with CLDO5 feeding the separate 1.8 V PF input. The v4 U-Boot preflight on a Cubie A7S showed PF on the 3.3 V path. v5 relies on that firmware selection.

Quoted 2 lines

We should have a voltage or a range for every regulator. Here it should be 0.8V.

On a Cubie A7S running Radxa's 5.15.147 BSP kernel, regulator sysfs reports 0.800 V for DCDC2. I set it to 0.800 V in v5.

Quoted 2 lines

Do we have some OPPs for the cores? The range should reflect the min/max used voltages in there.

Yes. The live BSP DT has separate A55 and A76 OPP tables. The nonzero bins span 0.800-1.050 V on both DCDC5 and DCDC3. BSP regulator sysfs reads 0.800 V on both, and v5 uses the 0.800-1.050 V range for both. The source is configs/linux-5.15/sun60iw2p1-cpu-vf.dtsi in Radxa's allwinner-bsp, with the supplies on sheet 4.

Quoted 3 lines

Why is this always on? If I see this correctly, that's just supplying the GPU, which will have its own supply property.
Voltages should be in the same range as for the CPUs.

I removed always-on for DCDC4. Sheet 4 shows VDD-GPU on that output. BSP regulator sysfs reads 0.800 V. v5 uses 0.800-0.960 V, the range of GPU OPPs in the live BSP DT.

Quoted 1 line

0.6/0.5V I guess.

BSP regulator sysfs reads 0.560 V on DCDC6. I used 0.500-0.600 V, covering the 0.500 V LPDDR5 and 0.600 V LPDDR4X VDDQ options on sheet 5. Sheet 4 shows DCDC6 feeding the DRAM PHY and that VDDQ path.

Quoted 1 line

Probably 1.1V.

BSP regulator sysfs reads 1.080 V on DCDC7. It feeds the DRAM PHY and LPDDR5 VDD2H. I used 1.050-1.100 V to cover the 1.050 V VDD2H option on sheet 5 and the 1.100 V DRAM rail shown on sheets 4 and 5.

The regulator core keeps an in-range selector at registration. The handoff check reads the selectors in U-Boot before Linux starts, so the new bounds can be checked against the trained DRAM settings. Before booting v5 on a Cubie A7S, the selectors read from U-Boot were within the bounds, and none changed when the kernel registered them.

Quoted 4 lines

But there is no UFS on this board, right? All the UFS signals seem to be not-connected, so this power supply will be going nowhere. And DCDC8 seems to be used exclusively for UFS, so I would just leave this whole node out.

Yes, sheet 6 marks the UFS signals NC. I dropped the UFS-only DCDC8 and DLDO6 nodes shown on sheet 4.

Quoted 4 lines

Again, why the always-on? This is referenced by eldoin-supply, so the kernel should keep this on.
As for the voltage, the schematic doesn't seem to give a clue, so maybe you can look this up on a running BSP kernel.

The BSP regulator sysfs reads 1.240 V. I dropped always-on from DCDC9. The always-on ELDO1 and ELDO6 children hold it through eldoin-supply (the ELDO input on sheet 4). I left the voltage at the firmware setting.

Quoted 1 line

Why always-on? Should be referenced by the pinctrl device.

I dropped it. The PJ26 LED requests a PJ pin and pinctrl holds SWOUT1 for that bank (sheets 4, 7 and 16).

Quoted 2 lines

Does this intentionally miss the voltage setting? The datasheets suggests that VCC-MCSI must be 1.8V.

The omission was unintentional. BLDO1 reads 1.800 V in BSP regulator sysfs, consistent with VCC-MCSI in datasheet table 5-2. I set it to 1.800 V in v5.

Quoted 2 lines

And again, the voltage is missing. Per the datasheet, VCC_LVDS0 must be 1.8V, and the VCC18-LCD label connected to BLDO2 supports this.

I set BLDO2 to 1.8 V per datasheet table 5-2 and dropped always-on. On the test board, U-Boot hands BLDO2 over at a 1.8 V selector. The 3.3 V selector was read on a second Cubie A7S running Radxa's 5.15.147 BSP kernel, whose DT uses BLDO2
as a PCIe 3.3 V supply. Schematic sheet 4
shows a nominal 2.4 V BLDO input, so the selector alone gives no physical output measurement.

Quoted 2 lines

Do we need this at all? I don't see this (VCC18-CODEC) connected anywhere?

Sheet 4 shows BLDO4 on VCC18-CODEC with no load drawn elsewhere. The BSP sysfs also shows it disabled with zero users. I dropped the node.

Quoted 3 lines

Should not be needed.
Voltage is missing, should be 1.8V, I think.
Please try to double check on a system running with the BSP kernel.

The BSP regulator sysfs shows CLDO5 at 1.800 V, which is also the existing v4 constraint. I removed always-on.

Quoted 2 lines

Voltage is missing, should be 1.8V, I think.
Please try to double check on a system running with the BSP kernel.

DLDO1 also reads 1.800 V in BSP regulator sysfs. Sheet 8 shows the SoC eFuse supply. I set it to 1.800 V in v5 and kept it always-on.

Quoted 1 line

Voltage should be 0.9V.

Sheet 4 labels ELDO1's output 0.9 V and sheet 5 shows it powering LPDDR5 VDD2L. The BSP sysfs reads 1.075 V. I left it enabled at the handoff setting to avoid retuning live DRAM.

Quoted 1 line

Schematics suggest 0.8V.

BSP regulator sysfs reads 0.800 V on ELDO6, in line with sheet 4. I set it to 0.800 V in v5.

Enzo