* [PATCH v7 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support
@ 2026-12-03 16:24 Enzo Adriano
2026-12-03 16:24 ` [PATCH v7 1/5] dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z Enzo Adriano
` (4 more replies)
0 siblings, 5 replies; 10+ messages in thread
From: Enzo Adriano @ 2026-12-03 16:24 UTC (permalink / raw)
To: andre.przywara, robh, krzk+dt, conor+dt, wens, jernej.skrabec,
samuel
Cc: Maxime Ripard, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel, Junhui Liu, Jerome Brunet, Pablo Mazzini,
Vinicius Pedrosa, Alexander Sverdlin, Jun Yan, Lukas Schmid,
Cristian Filipescu, Norman Herms, Daniel Golle,
Alastair D'Silva
Add the common Allwinner A733 device tree and initial Radxa Cubie A7A,
A7S and A7Z support. V7 collects the v6 review, including the LPDDR5
VDD2L (ELDO1) range, the eMMC PC0/PC1 pins and the DTS coding style.
Base: sunxi/for-next (e100b2aed274024be7608900fafdc59a386edb3e).
V6: https://lore.kernel.org/r/20261126-a733-cubie-a7s-dt-v6-0@gmail.com
Schema check: arm/sunxi.yaml and all three DTBs with arm64 defconfig
and W=2 CHECK_DTBS=y. The three schema prerequisites, in apply order:
AXP318W PMIC v9, 3/5
https://lore.kernel.org/r/20261127-axp318-regulator-v9-3-986b68f3c4a0@baylibre.com
Pinctrl IRQ-bank v4, 2/3
https://lore.kernel.org/r/20261203024338.13729-3-pmazzini@gmail.com
A733 UART binding v3
https://lore.kernel.org/r/20261201105034.19895-1-vinicius.eduardo.pedrosa@gmail.com
The A733 CCU support is in the base. The remaining runtime dependencies
are the full PMIC and IRQ-bank series, the UART driver patches, firmware
clocks for warm reboot with vendor firmware, and automatic pinctrl
voltage detection:
https://lore.kernel.org/r/20261127-axp318-regulator-v9-0-986b68f3c4a0@baylibre.com
https://lore.kernel.org/r/20261203024338.13729-1-pmazzini@gmail.com
https://lore.kernel.org/r/cover.1792439398.git.vinicius.eduardo.pedrosa@gmail.com
https://lore.kernel.org/r/20261112-a733-fwclk-v2@gmail.com
https://lore.kernel.org/r/20261125-a733-pinctrl-v4@gmail.com
Card-detect interrupts on the A7S also need Vinicius' "pinctrl: sunxi:
a733: do not switch the mux to read IRQ lines", in pinctrl fixes as
a256b8c8083e, outside the stated sunxi base.
https://lore.kernel.org/r/20261110130157.112155-1-vinicius.eduardo.pedrosa@gmail.com
Boot: the v7 DTBs have yet to run on hardware. The DTB changes from v6
are listed in each patch.
- Norman tested v6 1-3 on A7S with his own firmware. The PMIC rails
read back inside the v7 bounds. PMU counting and overflow on all
CPUs, MMC reads and write/readback, EEPROM reads, warm reboot and
power-off worked. Card hotplug worked with the EINT-mux fix.
https://lore.kernel.org/r/z51JFKDjnRGxR5v8f-2sigY7Ih39S9_hQJF-C7-0jwRzGvAZcyniqmAsBFOyj_Vci0JDoXGMbuWcop6uSGRMUon5bqjJFMIjMk9jN8TbaLU=@proton.me
- Alastair booted the v6 DTSI on an Orange Pi 4 Pro.
https://lore.kernel.org/r/20261127112608.2586434-1-alastair@d-silva.org
- Vinicius tested the v5 DTSI on A7Z v1.11, and Andre tested A7A with
the board file in 5/5, as described in the v6 cover.
Still untested: physical rail voltages, EL2 interrupts, ITS/MSI,
stimulated PMIC/NMI interrupts, suspend, 1.8 V SD signalling, EEPROM
writes and write protection, the MMC2 eMMC pins, A7Z v1.10 pull-up
behaviour and A7Z v2.00.
Jernej asked for the board MMC0 supply to come from a Port F regulator
provided by the pin controller. That needs a pinctrl binding and driver
first, so v7 still uses SWOUT2.
https://lore.kernel.org/r/Z0TCXVcTQNqeYPeVJpqj-w@gmail.com
Andre Przywara (1):
arm64: dts: allwinner: add Radxa Cubie A7A board
Enzo Adriano (3):
dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z
arm64: dts: allwinner: add A733 SoC description
arm64: dts: allwinner: add Radxa Cubie A7S board
Vinicius Pedrosa (1):
arm64: dts: allwinner: add Radxa Cubie A7Z board
.../devicetree/bindings/arm/sunxi.yaml | 8 +
arch/arm64/boot/dts/allwinner/Makefile | 3 +
.../dts/allwinner/sun60i-a733-cubie-a7a.dts | 378 ++++++++++
.../dts/allwinner/sun60i-a733-cubie-a7s.dts | 328 +++++++++
.../dts/allwinner/sun60i-a733-cubie-a7z.dts | 340 +++++++++
.../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 671 ++++++++++++++++++
6 files changed, 1728 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts
create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
base-commit: e100b2aed274024be7608900fafdc59a386edb3e
--
2.53.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v7 1/5] dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z
2026-12-03 16:24 [PATCH v7 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
@ 2026-12-03 16:24 ` Enzo Adriano
2026-12-03 16:25 ` [PATCH v7 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Enzo Adriano @ 2026-12-03 16:24 UTC (permalink / raw)
To: andre.przywara, robh, krzk+dt, conor+dt, wens, jernej.skrabec,
samuel
Cc: Maxime Ripard, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel, Junhui Liu, Jerome Brunet, Pablo Mazzini,
Vinicius Pedrosa, Alexander Sverdlin, Jun Yan, Lukas Schmid,
Cristian Filipescu, Norman Herms, Daniel Golle,
Alastair D'Silva
The Radxa Cubie A7A, A7S and A7Z are single board computers based on
the Allwinner A733 SoC.
Add their board compatibles to the Allwinner platform binding.
Link: https://lore.kernel.org/r/20261111134919.90264-2-vinicius.eduardo.pedrosa@gmail.com
Co-developed-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
Signed-off-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Enzo Adriano <enzo.adriano.code@gmail.com>
---
Changes in v7:
- Use one items list with an enum for the three boards, as requested.
- Rewrite the commit message without the vendor link and add Andre's
Reviewed-by, which was conditional on that.
Documentation/devicetree/bindings/arm/sunxi.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/sunxi.yaml b/Documentation/devicetree/bindings/arm/sunxi.yaml
index 7da84e2de748..cd97a0886dee 100644
--- a/Documentation/devicetree/bindings/arm/sunxi.yaml
+++ b/Documentation/devicetree/bindings/arm/sunxi.yaml
@@ -857,6 +857,14 @@ properties:
- const: radxa,cubie-a5e
- const: allwinner,sun55i-a527
+ - description: Radxa Cubie A7A, A7S and A7Z
+ items:
+ - enum:
+ - radxa,cubie-a7a
+ - radxa,cubie-a7s
+ - radxa,cubie-a7z
+ - const: allwinner,sun60i-a733
+
- description: Remix Mini PC
items:
- const: jide,remix-mini-pc
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v7 2/5] arm64: dts: allwinner: add A733 SoC description
2026-12-03 16:24 [PATCH v7 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
2026-12-03 16:24 ` [PATCH v7 1/5] dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z Enzo Adriano
@ 2026-12-03 16:25 ` Enzo Adriano
2026-12-03 17:12 ` sashiko-bot
2026-12-03 16:25 ` [PATCH v7 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
` (2 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Enzo Adriano @ 2026-12-03 16:25 UTC (permalink / raw)
To: andre.przywara, robh, krzk+dt, conor+dt, wens, jernej.skrabec,
samuel
Cc: Maxime Ripard, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel, Junhui Liu, Jerome Brunet, Pablo Mazzini,
Vinicius Pedrosa, Alexander Sverdlin, Jun Yan, Lukas Schmid,
Cristian Filipescu, Norman Herms, Daniel Golle,
Alastair D'Silva
The Allwinner A733 combines six Cortex-A55 and two Cortex-A76 cores.
Add the common device tree for the first Cubie A7A, A7S and A7Z board
DTS files. Describe the CPUs, PSCI, architectural timers, GIC, RTC,
main and always-on clock/reset and pin controllers, UART, I2C and
MMC. The preceding revision booted on the A7S and A7Z.
The A7S schematic, sheets 7 and 16, shows the EEPROM wired to I2C0
on PG8/PG9. Use mux 6 as documented in the A733 Datasheet v1.00,
section 4.2.6, table 4-36. The A7A schematic shows the external RTC
on S_TWI1. Add its R-I2C1 pin group on PL12/PL13, mux 3. The MMC2
group includes the eMMC data strobe and reset on PC0 and PC1, function
3 in the A733 User Manual v1.00, table 18-30, as on the A523.
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 A733 reference
and the A523 precedent. The CPUX interconnect diagram in section
5.1.2 supports the noncoherency inference. Leave the ITS disabled
pending clock/reset and MSI integration.
Describe the single DynamIQ cluster shown in section 5.1.2, figure
5-1, in the cpu-map, and leave the cache nodes for later. 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.
Link: https://gist.githubusercontent.com/apritzel/60fd7379b9560a15b8b352986b69d39f/raw/efd9cdf8f26ba5b0c7e138f093af44a1cf322469/sun60i-a733.dts
Link: https://lore.kernel.org/r/20261126172253.1097838-2-andre.przywara@arm.com
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com> # Radxa Cubie A7Z V1.11
Tested-by: Norman Herms <dockseed@proton.me> # Radxa Cubie A7S (A733)
Tested-by: Alastair D'Silva <alastair@d-silva.org> # OrangePi 4 Pro
Co-developed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Enzo Adriano <enzo.adriano.code@gmail.com>
---
Changes in v7:
- Put device_type first in the CPU nodes and allwinner,pinmux after
the generic pin properties.
- Add the eMMC data strobe and reset, PC0 and PC1, to the MMC2 group.
No board enables MMC2 yet.
- Say that the cpu-map describes the single cluster; there are no
cache nodes yet.
- Add Alastair's Tested-by from v6.
.../arm64/boot/dts/allwinner/sun60i-a733.dtsi | 671 ++++++++++++++++++
1 file changed, 671 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
new file mode 100644
index 000000000000..63f5322cce88
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
@@ -0,0 +1,671 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
+
+#include <dt-bindings/clock/allwinner,sun60i-a733-ccu.h>
+#include <dt-bindings/clock/allwinner,sun60i-a733-r-ccu.h>
+#include <dt-bindings/clock/sun6i-rtc.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 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x0>;
+ enable-method = "psci";
+ };
+
+ cpu1: cpu@100 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x100>;
+ enable-method = "psci";
+ };
+
+ cpu2: cpu@200 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x200>;
+ enable-method = "psci";
+ };
+
+ cpu3: cpu@300 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x300>;
+ enable-method = "psci";
+ };
+
+ cpu4: cpu@400 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x400>;
+ enable-method = "psci";
+ };
+
+ cpu5: cpu@500 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a55";
+ reg = <0x500>;
+ enable-method = "psci";
+ };
+
+ cpu6: cpu@600 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a76";
+ reg = <0x600>;
+ enable-method = "psci";
+ };
+
+ cpu7: cpu@700 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a76";
+ reg = <0x700>;
+ enable-method = "psci";
+ };
+ };
+
+ hosc: clock-hosc {
+ 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>, <&hosc>, <&rtc CLK_OSC32K>;
+ clock-names = "apb", "hosc", "losc";
+ gpio-controller;
+ #gpio-cells = <3>;
+ interrupt-controller;
+ #interrupt-cells = <3>;
+
+ /omit-if-no-ref/
+ i2c0_pg_pins: i2c0-pg-pins {
+ pins = "PG8", "PG9";
+ function = "i2c0";
+ allwinner,pinmux = <6>;
+ };
+
+ mmc0_pins: mmc0-pins {
+ pins = "PF0", "PF1", "PF2", "PF3", "PF4", "PF5";
+ function = "mmc0";
+ drive-strength = <30>;
+ bias-pull-up;
+ allwinner,pinmux = <2>;
+ };
+
+ mmc1_pins: mmc1-pins {
+ pins = "PG0", "PG1", "PG2", "PG3", "PG4", "PG5";
+ function = "mmc1";
+ drive-strength = <30>;
+ bias-pull-up;
+ allwinner,pinmux = <2>;
+ };
+
+ mmc2_pins: mmc2-pins {
+ pins = "PC0", "PC1", "PC5", "PC6", "PC8", "PC9",
+ "PC10", "PC11", "PC13", "PC14", "PC15", "PC16";
+ function = "mmc2";
+ drive-strength = <30>;
+ bias-pull-up;
+ allwinner,pinmux = <3>;
+ };
+
+ 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 = <&hosc>, <&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 = <&hosc>, <&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>, <&hosc>, <&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>;
+ };
+
+ /omit-if-no-ref/
+ r_i2c1_pl_pins: r-i2c1-pl-pins {
+ pins = "PL12", "PL13";
+ function = "r_i2c1";
+ allwinner,pinmux = <3>;
+ };
+ };
+
+ 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>, <&hosc>, <&r_ccu CLK_R_AHB>;
+ clock-names = "bus", "hosc", "ahb";
+ #clock-cells = <1>;
+ };
+ };
+};
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v7 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board
2026-12-03 16:24 [PATCH v7 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
2026-12-03 16:24 ` [PATCH v7 1/5] dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z Enzo Adriano
2026-12-03 16:25 ` [PATCH v7 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
@ 2026-12-03 16:25 ` Enzo Adriano
2026-12-03 17:45 ` sashiko-bot
2026-12-03 16:31 ` [PATCH v7 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board Enzo Adriano
2026-12-03 16:31 ` [PATCH v7 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Enzo Adriano
4 siblings, 1 reply; 10+ messages in thread
From: Enzo Adriano @ 2026-12-03 16:25 UTC (permalink / raw)
To: andre.przywara, robh, krzk+dt, conor+dt, wens, jernej.skrabec,
samuel
Cc: Maxime Ripard, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel, Junhui Liu, Jerome Brunet, Pablo Mazzini,
Vinicius Pedrosa, Alexander Sverdlin, Jun Yan, Lukas Schmid,
Cristian Filipescu, Norman Herms, Daniel Golle,
Alastair D'Silva
Enable the serial console, PMIC and microSD slot for initial Cubie A7S
bring-up with vendor firmware, using the new common A733 description.
Describe the oscillator inputs and power tree using the Radxa A7S
v1.10 schematic, sheets 4, 7 and 8. Keep the boot-critical supplies
enabled. Sheet 4 shows VCC5V0_SYS feeding DCIN and the PMIC PS output
feeding the buck inputs and UP11. Set DCDC9 to 1.240 V, the boot
firmware selector read back on the board for the ELDO input. Keep
ELDO1, the LPDDR5 VDD2L supply, enabled within 0.87-1.12 V. This
covers the VDD2L range in LPDDR5 datasheets and the 1.075 V and
1.10 V left by the two boot loaders seen on this board.
Use the Radxa 5.15 BSP CPU and GPU OPP envelopes for DCDC3/5 and
DCDC4. Use its regulator readback for DCDC2, BLDO1, DLDO1 and ELDO6,
consistent with sheets 4 and 8 and the VCC-MCSI entry in the A733
datasheet.
Allow 0.50-0.60 V on DCDC6, covering the 0.50 V LPDDR5 and 0.60 V
LPDDR4X VDDQ options on sheet 5. Allow 1.05-1.12 V on DCDC7,
covering LPDDR5 VDD2H at 1.05 V, the 1.10 V DRAM rail shown on
sheets 4 and 5 and the 1.12 V that Radxa's boot0 programs. The BSP
readback was 0.56 V and 1.08 V, respectively. Both fall inside the
bounds, so those selector values can be kept after DRAM training.
Set the LVDS0 supply to 1.8 V per the A733 Datasheet v1.00, table 5-2,
and leave its enable under consumer control. Omit the unused UFS and
codec regulator nodes (schematic sheets 4 and 6).
Use SWOUT2 for the card and the Port F VCC-IO path (sheets 4, 7 and
13). Its consumers, the pin banks and the card, keep it enabled.
Firmware must select the 3.3 V PF path for use with MMC0. CLDO5
supplies the separate 1.8 V input. The controller uses fixed
signalling with no VQMMC regulator and advertises no UHS modes.
Describe the active-high card-detect line on PF6 and its pull-down.
Add the PM2 power and PJ26 status LEDs, and the BL24C16F on I2C0 as
shown on sheets 7 and 16. The EEPROM is at 0x50 in Radxa's 5.15 DT.
PC7 drives an inverter that pulls the EEPROM's write-protect pin low.
Mark the EEPROM read-only, since it holds Radxa's factory data.
Keep ALDO1 always on for Port L, which powers the PMIC's own bus.
Omit the Port L supply phandle, as on the Cubie A5E: requesting
it would require the PMIC regulator before the PMIC can be reached.
The A733 pinctrl voltage-mode fix is required for the bank supply
connections.
Link: https://dl.radxa.com/cubie/a7s/hw/radxa_cubie_a7s_schematic_v1.10.pdf
Link: https://github.com/radxa/allwinner-device/blob/6d911d1582dcccdb5a4c38be8d3c1ee851019795/configs/cubie_a7s/linux-5.15/board.dts#L372-L384
Tested-by: Norman Herms <dockseed@proton.me> # Radxa Cubie A7S (A733)
Signed-off-by: Enzo Adriano <enzo.adriano.code@gmail.com>
---
Changes in v7:
- Constrain ELDO1 (VDD2L) to 0.87-1.12 V and raise the DCDC7 maximum to
1.12 V, the value Radxa's boot0 programs.
- Drop no-1-8-v and the status LED trigger, and mark the EEPROM
read-only.
- Drop regulator-always-on from the fixed regulators and SWOUT2; the
pin banks and the card hold SWOUT2.
- Move clock-osc32k after chosen, add the PF6 comment, use
interrupts-extended for the PMIC and drop unused labels.
- Carry Norman's Tested-by from v6; the rails he read back are inside
the new bounds.
arch/arm64/boot/dts/allwinner/Makefile | 1 +
.../dts/allwinner/sun60i-a733-cubie-a7s.dts | 328 ++++++++++++++++++
2 files changed, 329 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index da39f02252d4..9d1e740ff19e 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -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
diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
new file mode 100644
index 000000000000..9f7100617038
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
@@ -0,0 +1,328 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
+/dts-v1/;
+
+#include "sun60i-a733.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+
+/ {
+ model = "Radxa Cubie A7S";
+ compatible = "radxa,cubie-a7s", "allwinner,sun60i-a733";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ osc32k: clock-osc32k {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <32768>;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ power-led {
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
+ default-state = "on";
+ };
+
+ status-led {
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
+ gpios = <&pio 9 26 GPIO_ACTIVE_HIGH>; /* PJ26 */
+ };
+ };
+
+ reg_ldo_input: regulator-ldo2v5-input {
+ compatible = "regulator-fixed";
+ regulator-name = "ldo2v5-input";
+ regulator-min-microvolt = <2400000>;
+ regulator-max-microvolt = <2400000>;
+ vin-supply = <®_ps>;
+ };
+
+ /* AXP318W PS output, routed back to the PMIC and to UP11. */
+ reg_ps: regulator-ps-output {
+ compatible = "regulator-fixed";
+ regulator-name = "ps-output";
+ vin-supply = <®_vcc5v0_sys>;
+ };
+
+ reg_vcc5v0_sys: regulator-vcc5v0-sys {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc5v0-sys";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ };
+};
+
+&cpu0 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu1 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu2 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu3 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu4 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu5 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu6 {
+ cpu-supply = <®_dcdc3>;
+};
+
+&cpu7 {
+ cpu-supply = <®_dcdc3>;
+};
+
+&hosc {
+ clock-frequency = <26000000>;
+};
+
+&i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_pg_pins>;
+ status = "okay";
+
+ eeprom@50 {
+ compatible = "belling,bl24c16f", "atmel,24c16";
+ reg = <0x50>;
+ pagesize = <16>;
+ vcc-supply = <®_aldo1>;
+ read-only;
+ wp-gpios = <&pio 2 7 GPIO_ACTIVE_LOW>; /* PC7 via Q2 */
+ };
+};
+
+&mmc0 {
+ bus-width = <4>;
+ cap-mmc-highspeed;
+ cap-sd-highspeed;
+ cd-gpios = <&pio 5 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PF6 */
+ disable-wp;
+ vmmc-supply = <®_swout2>;
+ status = "okay";
+};
+
+&pio {
+ vcc-pb-supply = <®_swout2>; /* via VCC-IO */
+ vcc-pc-supply = <®_cldo5>;
+ vcc-pd-supply = <®_swout1>;
+ vcc-pe-supply = <®_bldo1>;
+ /* PF uses VCC-IO at 3.3 V, with CLDO5 as the 1.8 V input. */
+ vcc-pf-supply = <®_swout2>;
+ vcc-pg-supply = <®_aldo1>;
+ vcc-ph-supply = <®_swout2>;
+ vcc-pj-supply = <®_swout1>;
+ vcc-pk-supply = <®_bldo1>;
+};
+
+&r_i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&r_i2c0_pl_pins>;
+ status = "okay";
+
+ pmic@36 {
+ compatible = "x-powers,axp318w";
+ reg = <0x36>;
+ interrupts-extended = <&nmi_intc 0 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ aldo156in-supply = <®_ps>;
+ aldo234in-supply = <®_aldo1>;
+ bldoin-supply = <®_ldo_input>;
+ cldoin-supply = <®_ldo_input>;
+ dldoin-supply = <®_ps>;
+ eldoin-supply = <®_dcdc9>;
+ ips-supply = <®_ps>;
+ vin19-supply = <®_ps>;
+ vin23-supply = <®_ps>;
+ vin45-supply = <®_ps>;
+ vin678-supply = <®_ps>;
+
+ regulators {
+ reg_aldo1: aldo1 {
+ /* Port L powers the PMIC's own I2C bus. */
+ regulator-name = "vcc-pl";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ reg_bldo1: bldo1 {
+ regulator-name = "vcc-pe-pk-mcsi";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ bldo2 {
+ regulator-name = "vcc-lvds0";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ cldo1 {
+ regulator-name = "vdd18-lpddr";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ cldo2 {
+ regulator-name = "vcc18-hdmi";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ cldo3 {
+ regulator-name = "vcc-pll-dram";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ reg_cldo5: cldo5 {
+ regulator-name = "vcc18-pc-comb0";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ dcdc1 {
+ /* Board 3.3 V loads and the SWOUT1/2 input. */
+ regulator-name = "vcc-3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ dcdc2 {
+ /* System and DRAM core/PHY supply. */
+ regulator-name = "vdd-sys";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-always-on;
+ };
+
+ reg_dcdc3: dcdc3 {
+ /* Powers the running Cortex-A76 CPUs. */
+ regulator-name = "vdd-cpub";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1050000>;
+ regulator-always-on;
+ };
+
+ dcdc4 {
+ regulator-name = "vdd-gpu";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <960000>;
+ };
+
+ reg_dcdc5: dcdc5 {
+ /* Powers the running Cortex-A55 CPUs. */
+ regulator-name = "vdd-cpul";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1050000>;
+ regulator-always-on;
+ };
+
+ dcdc6 {
+ /* DRAM PHY and LPDDR4X/LPDDR5 VDDQ (via RP15). */
+ regulator-name = "vcc-draml";
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <600000>;
+ regulator-always-on;
+ };
+
+ dcdc7 {
+ /* DRAM PHY and LPDDR5 VDD2H (VCC-DRAM). */
+ regulator-name = "vcc-dram";
+ regulator-min-microvolt = <1050000>;
+ regulator-max-microvolt = <1120000>;
+ regulator-always-on;
+ };
+
+ reg_dcdc9: dcdc9 {
+ regulator-name = "eldo-input";
+ regulator-min-microvolt = <1240000>;
+ regulator-max-microvolt = <1240000>;
+ };
+
+ dldo1 {
+ /* SoC eFuse supply has no SID regulator consumer. */
+ regulator-name = "vcc-efuse";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ eldo1 {
+ regulator-name = "vdd2l-lpddr";
+ regulator-min-microvolt = <870000>;
+ regulator-max-microvolt = <1120000>;
+ regulator-always-on;
+ };
+
+ eldo6 {
+ /* Standby CPU and USB supply. */
+ regulator-name = "vdd-cpus";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-always-on;
+ };
+
+ rtc-ldo {
+ regulator-name = "vcc-rtc";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ reg_swout1: swout1 {
+ regulator-name = "vcc33-lcd";
+ };
+
+ reg_swout2: swout2 {
+ /* VCC-IO to the GPIO headers and microSD. */
+ regulator-name = "vcc-io-card";
+ };
+ };
+ };
+};
+
+&r_pio {
+ /* PL powers the PMIC bus itself; firmware must keep ALDO1 enabled. */
+ vcc-pm-supply = <®_aldo1>;
+};
+
+&rtc {
+ clocks = <&r_ccu CLK_BUS_R_RTC>, <&hosc>, <&r_ccu CLK_R_AHB>,
+ <&osc32k>;
+ clock-names = "bus", "hosc", "ahb", "ext-osc32k";
+};
+
+&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pb_pins>;
+ status = "okay";
+};
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v7 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board
2026-12-03 16:24 [PATCH v7 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
` (2 preceding siblings ...)
2026-12-03 16:25 ` [PATCH v7 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
@ 2026-12-03 16:31 ` Enzo Adriano
2026-12-03 18:03 ` sashiko-bot
2026-12-03 16:31 ` [PATCH v7 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Enzo Adriano
4 siblings, 1 reply; 10+ messages in thread
From: Enzo Adriano @ 2026-12-03 16:31 UTC (permalink / raw)
To: andre.przywara, robh, krzk+dt, conor+dt, wens, jernej.skrabec,
samuel
Cc: Vinicius Pedrosa, Maxime Ripard, devicetree, linux-arm-kernel,
linux-sunxi, linux-kernel, Junhui Liu, Jerome Brunet,
Pablo Mazzini, Alexander Sverdlin, Jun Yan, Lukas Schmid,
Cristian Filipescu, Norman Herms, Daniel Golle,
Alastair D'Silva
From: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
Add the device tree for the Radxa Cubie A7Z, an Allwinner A733
board with LPDDR4, a microSD slot and a 40-pin header.
Enable the UART0 console, AXP318W PMIC on R-I2C0, MMC0, RTC and
green user LED, and describe the board regulators and pin bank supplies.
The device tree is based on Enzo Adriano's Cubie A7S board description
and has been tested on A7Z v1.11 hardware.
Signed-off-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
[enzo: use regulator-ps-output to satisfy the DT schema unit-suffix check,
rename CLDO1 to vcc18-lpddr as Vinicius checked on the schematic, empty
the unused BLDO4 node, drop always-on from SWOUT2 and the fixed
regulators, use interrupts-extended and drop unused labels]
Signed-off-by: Enzo Adriano <enzo.adriano.code@gmail.com>
---
Changes in v7:
- Rename CLDO1 to vcc18-lpddr, as Vinicius checked on the schematic.
- Leave the unused BLDO4 node empty.
- Drop regulator-always-on from the fixed regulators and SWOUT2, add
the PF6 comment, use interrupts-extended and drop unused labels.
arch/arm64/boot/dts/allwinner/Makefile | 1 +
.../dts/allwinner/sun60i-a733-cubie-a7z.dts | 340 ++++++++++++++++++
2 files changed, 341 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts
diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index 9d1e740ff19e..62fab1d727d0 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -70,3 +70,4 @@ 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
+dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7z.dtb
diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts
new file mode 100644
index 000000000000..7db69cb83ddc
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts
@@ -0,0 +1,340 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
+// Copyright (C) 2026 Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
+/dts-v1/;
+
+#include "sun60i-a733.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+
+/ {
+ model = "Radxa Cubie A7Z";
+ compatible = "radxa,cubie-a7z", "allwinner,sun60i-a733";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ osc32k: clock-osc32k {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <32768>;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ led-0 {
+ function = LED_FUNCTION_HEARTBEAT;
+ color = <LED_COLOR_ID_GREEN>;
+ gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
+ linux,default-trigger = "heartbeat";
+ };
+ };
+
+ /*
+ * Discrete SY8089 step-down regulator, present on v1.11; v1.10
+ * feeds BLDOIN from SWOUT2 and CLDOIN from PS instead. The schematic
+ * names this rail LDO2V5-INPUT, but it is set to 2.4 V.
+ */
+ reg_ldo_input: regulator-ldo2v5-input {
+ compatible = "regulator-fixed";
+ regulator-name = "ldo2v5-input";
+ regulator-min-microvolt = <2400000>;
+ regulator-max-microvolt = <2400000>;
+ vin-supply = <®_ps>;
+ };
+
+ /* PMIC PS output, fed from the DCIN pins. 5 V is nominal. */
+ reg_ps: regulator-ps-output {
+ compatible = "regulator-fixed";
+ regulator-name = "ps";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ vin-supply = <®_vcc5v0>;
+ };
+
+ /* Board wide 5 V supply from the USB-C connector. */
+ reg_vcc5v0: regulator-vcc5v0 {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc5v0-sys";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ };
+};
+
+&cpu0 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu1 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu2 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu3 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu4 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu5 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu6 {
+ cpu-supply = <®_dcdc3>;
+};
+
+&cpu7 {
+ cpu-supply = <®_dcdc3>;
+};
+
+&hosc {
+ clock-frequency = <26000000>;
+};
+
+&mmc0 {
+ bus-width = <4>;
+ cap-mmc-highspeed;
+ cap-sd-highspeed;
+ /* v1.11 has an external 10k pull-up on PF6, v1.10 does not. */
+ cd-gpios = <&pio 5 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PF6 */
+ disable-wp;
+ vmmc-supply = <®_swout2>;
+ status = "okay";
+};
+
+&pio {
+ /* VCC-IO */
+ vcc-pb-supply = <®_swout2>;
+ vcc-pc-supply = <®_cldo5>;
+ vcc-pd-supply = <®_swout1>;
+ vcc-pe-supply = <®_bldo1>;
+ /* VCC-IO */
+ vcc-pf-supply = <®_swout2>;
+ vcc-pg-supply = <®_bldo5>;
+ /* VCC-IO */
+ vcc-ph-supply = <®_swout2>;
+ vcc-pj-supply = <®_swout1>;
+ vcc-pk-supply = <®_bldo1>;
+};
+
+&r_i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&r_i2c0_pl_pins>;
+ status = "okay";
+
+ pmic@36 {
+ compatible = "x-powers,axp318w";
+ reg = <0x36>;
+ interrupts-extended = <&nmi_intc 0 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ aldo156in-supply = <®_ps>;
+ aldo234in-supply = <®_aldo1>;
+ /* v1.10: BLDOIN from SWOUT2 and CLDOIN from PS */
+ bldoin-supply = <®_ldo_input>;
+ cldoin-supply = <®_ldo_input>;
+ dldoin-supply = <®_ps>;
+ eldoin-supply = <®_dcdc9>;
+ ips-supply = <®_ps>;
+ vin19-supply = <®_ps>;
+ vin23-supply = <®_ps>;
+ vin45-supply = <®_ps>;
+ vin678-supply = <®_ps>;
+
+ regulators {
+ reg_aldo1: aldo1 {
+ /* Port L powers the PMIC's own I2C bus. */
+ regulator-name = "vcc-pl-usb";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ reg_bldo1: bldo1 {
+ regulator-name = "vcc-pe-pk-mcsi";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ bldo2 {
+ regulator-name = "vcc-lvds0";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ bldo4 {
+ };
+
+ reg_bldo5: bldo5 {
+ regulator-name = "vcc-pg";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ cldo1 {
+ /* LPDDR4 VDD1. */
+ regulator-name = "vcc18-lpddr";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ cldo2 {
+ regulator-name = "vcc18-hdmi";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ cldo3 {
+ /* DRAM PLL and PHY 1.8 V. */
+ regulator-name = "vcc-pll-dram";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ reg_cldo5: cldo5 {
+ regulator-name = "vcc-pc-combo";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ dcdc1 {
+ /* Board 3.3 V loads and the SWOUT1/2 input. */
+ regulator-name = "vcc-3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ dcdc2 {
+ /* System and DRAM core supply. */
+ regulator-name = "vdd-sys";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-always-on;
+ };
+
+ reg_dcdc3: dcdc3 {
+ /* Powers the running Cortex-A76 CPUs. */
+ regulator-name = "vdd-cpub";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1050000>;
+ regulator-always-on;
+ };
+
+ dcdc4 {
+ regulator-name = "vdd-gpu";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <960000>;
+ };
+
+ reg_dcdc5: dcdc5 {
+ /* Powers the running Cortex-A55 CPUs. */
+ regulator-name = "vdd-cpul";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1050000>;
+ regulator-always-on;
+ };
+
+ dcdc6 {
+ /* DRAM PHY supply. */
+ regulator-name = "vcc-draml";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-always-on;
+ };
+
+ dcdc7 {
+ /* DRAM VDD2 and VDDQ. */
+ regulator-name = "vcc-dram";
+ regulator-min-microvolt = <1100000>;
+ regulator-max-microvolt = <1100000>;
+ regulator-always-on;
+ };
+
+ dcdc8 {
+ regulator-name = "vcc-ufs-io";
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1200000>;
+ };
+
+ reg_dcdc9: dcdc9 {
+ /* ELDOIN input, needs at least 1.2 V; firmware leaves 1.24 V. */
+ regulator-name = "eldo-input";
+ regulator-min-microvolt = <1240000>;
+ regulator-max-microvolt = <1240000>;
+ };
+
+ dldo1 {
+ /* SoC eFuse supply, no consumer is modelled yet. */
+ regulator-name = "vcc-efuse";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ dldo6 {
+ regulator-name = "vcc-ufs";
+ regulator-min-microvolt = <2500000>;
+ regulator-max-microvolt = <2500000>;
+ };
+
+ eldo6 {
+ /* Standby CPU and USB supply. */
+ regulator-name = "vdd-cpus";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-always-on;
+ };
+
+ rtc-ldo {
+ regulator-name = "vcc-rtc";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ reg_swout1: swout1 {
+ regulator-name = "vcc-pd-pj";
+ };
+
+ reg_swout2: swout2 {
+ /* VCC-IO to the GPIO headers and microSD. */
+ regulator-name = "vcc-io-ph-usb";
+ };
+ };
+ };
+};
+
+&r_pio {
+ /*
+ * PL powers the PMIC bus itself, so firmware must keep ALDO1 enabled:
+ * vcc-pl-supply = <®_aldo1>;
+ */
+ vcc-pm-supply = <®_aldo1>;
+};
+
+&rtc {
+ clocks = <&r_ccu CLK_BUS_R_RTC>, <&hosc>, <&r_ccu CLK_R_AHB>,
+ <&osc32k>;
+ clock-names = "bus", "hosc", "ahb", "ext-osc32k";
+};
+
+&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pb_pins>;
+ status = "okay";
+};
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v7 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board
2026-12-03 16:24 [PATCH v7 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
` (3 preceding siblings ...)
2026-12-03 16:31 ` [PATCH v7 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board Enzo Adriano
@ 2026-12-03 16:31 ` Enzo Adriano
2026-12-03 18:31 ` sashiko-bot
4 siblings, 1 reply; 10+ messages in thread
From: Enzo Adriano @ 2026-12-03 16:31 UTC (permalink / raw)
To: andre.przywara, robh, krzk+dt, conor+dt, wens, jernej.skrabec,
samuel
Cc: Maxime Ripard, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel, Junhui Liu, Jerome Brunet, Pablo Mazzini,
Vinicius Pedrosa, Alexander Sverdlin, Jun Yan, Lukas Schmid,
Cristian Filipescu, Norman Herms, Daniel Golle,
Alastair D'Silva
From: Andre Przywara <andre.przywara@arm.com>
The Radxa Cubie A7A is a single board computer using the Allwinner A733
SoC. It features:
- Allwinner A733 SoC (6*Arm Cortex-A55 + 2*Arm Cortex-A76)
- Imagination BXM-4-64 MC1 GPU and 3 TOPS NPU
- 2-16 GiB LPDDR5 DRAM
- AXP318W PMIC
- eMMC and UFS socket
- single lane PCIe 3.0 via FPC connector
- microSD card slot
- bootable SPI NOR flash
- HDMI 2.0 and MIPI-DSI connector
- MIPI-CSI camera connector
- GBit Ethernet socket, with optional POE support
- unknown Bluetooth and WiFi
- USB-C 2.0 OTG port (also primary power supply)
- USB-A 3.1 host port
- 3* USB-A 2.0 host ports (via hub)
- 40 pin GPIO connector
Add initial support for the peripherals we have DT bindings for so far,
including UART, PMIC, SD card, some EEPROM and an external RTC chip.
The PMIC rails assignment has been determined by the schematic.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
[enzo: use BLDO1 for vcc-pk as Jerome found, constrain ELDO1 to
0.87-1.12 V as agreed for LPDDR5 VDD2L, rename the 32 kHz clock node,
drop cap-sdio-irq and always-on from SWOUT2 and the fixed regulators,
use interrupts-extended and a level-low RTC interrupt, sort nodes and
drop unused labels]
Signed-off-by: Enzo Adriano <enzo.adriano.code@gmail.com>
---
Changes in v7:
- Use BLDO1 for vcc-pk-supply and constrain ELDO1 to 0.87-1.12 V.
- Rename the 32 kHz clock to clock-osc32k, drop cap-sdio-irq and use a
level-low RTC interrupt.
- Drop regulator-always-on from the fixed regulators and SWOUT2, use
interrupts-extended and C comments, sort the nodes and drop unused
labels.
arch/arm64/boot/dts/allwinner/Makefile | 1 +
.../dts/allwinner/sun60i-a733-cubie-a7a.dts | 378 ++++++++++++++++++
2 files changed, 379 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index 62fab1d727d0..cdeb966031ee 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -69,5 +69,6 @@ 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-a7a.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7s.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7z.dtb
diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
new file mode 100644
index 000000000000..e1e1db00bada
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
@@ -0,0 +1,378 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
+/*
+ * Copyright (c) 2026 Arm Ltd.
+ */
+
+/dts-v1/;
+
+#include "sun60i-a733.dtsi"
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/leds/common.h>
+
+/ {
+ model = "Radxa Cubie A7A";
+ compatible = "radxa,cubie-a7a", "allwinner,sun60i-a733";
+
+ aliases {
+ serial0 = &uart0;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+
+ osc32k: clock-osc32k {
+ compatible = "fixed-clock";
+ #clock-cells = <0>;
+ clock-frequency = <32768>;
+ };
+
+ leds {
+ compatible = "gpio-leds";
+
+ power-led {
+ function = LED_FUNCTION_POWER;
+ color = <LED_COLOR_ID_GREEN>;
+ /*
+ * The LED is connected between VCC and GND, so it
+ * turns on as soon as the board gets power. But a
+ * transistor allows to pull down the anode to GND,
+ * so the LED can be turned off.
+ */
+ gpios = <&pio 9 26 GPIO_ACTIVE_LOW>; /* PJ26 */
+ default-state = "on";
+ };
+
+ status-led {
+ function = LED_FUNCTION_STATUS;
+ color = <LED_COLOR_ID_BLUE>;
+ gpios = <&pio 9 27 GPIO_ACTIVE_HIGH>; /* PJ27 */
+ };
+ };
+
+ /* discrete SY8089A DC/DC step-down regulator */
+ reg_vcc2v4: regulator-2v4 {
+ compatible = "regulator-fixed";
+ regulator-name = "ldo-input";
+ regulator-min-microvolt = <2400000>;
+ regulator-max-microvolt = <2400000>;
+ vin-supply = <®_vcc5v>;
+ };
+
+ /* board wide 5V supply from the USB-C connector */
+ reg_vcc5v: regulator-5v {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc-5v";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ };
+};
+
+&cpu0 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu1 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu2 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu3 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu4 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu5 {
+ cpu-supply = <®_dcdc5>;
+};
+
+&cpu6 {
+ cpu-supply = <®_dcdc3>;
+};
+
+&cpu7 {
+ cpu-supply = <®_dcdc3>;
+};
+
+&hosc {
+ clock-frequency = <26000000>;
+};
+
+&i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c0_pg_pins>;
+ status = "okay";
+
+ eeprom@50 {
+ compatible = "belling,bl24c16f", "atmel,24c16";
+ reg = <0x50>;
+ pagesize = <16>;
+ vcc-supply = <®_aldo1>;
+ wp-gpios = <&pio 2 7 GPIO_ACTIVE_LOW>; /* PC7 */
+ };
+};
+
+&mmc0 {
+ bus-width = <4>;
+ cap-sd-highspeed;
+ cap-mmc-highspeed;
+ cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ disable-wp;
+ vmmc-supply = <®_swout2>;
+ status = "okay";
+};
+
+&pio {
+ vcc-pb-supply = <®_swout2>; /* via VCC-IO */
+ vcc-pc-supply = <®_cldo5>;
+ vcc-pd-supply = <®_swout1>;
+ vcc-pe-supply = <®_bldo1>;
+ vcc-pf-supply = <®_swout2>; /* via VCC-IO */
+ vcc-pg-supply = <®_aldo1>;
+ vcc-ph-supply = <®_swout2>; /* via VCC-IO */
+ vcc-pj-supply = <®_swout1>;
+ vcc-pk-supply = <®_bldo1>;
+};
+
+&r_i2c0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&r_i2c0_pl_pins>;
+ status = "okay";
+
+ pmic@36 {
+ compatible = "x-powers,axp318w";
+ reg = <0x36>;
+ interrupts-extended = <&nmi_intc 0 IRQ_TYPE_LEVEL_LOW>;
+ interrupt-controller;
+ #interrupt-cells = <1>;
+ aldo156in-supply = <®_vcc5v>;
+ aldo234in-supply = <®_aldo1>;
+ bldoin-supply = <®_vcc2v4>;
+ cldoin-supply = <®_vcc2v4>;
+ dldoin-supply = <®_vcc5v>;
+ eldoin-supply = <®_dcdc9>;
+ ips-supply = <®_vcc5v>;
+ vin19-supply = <®_vcc5v>;
+ vin23-supply = <®_vcc5v>;
+ vin45-supply = <®_vcc5v>;
+ vin678-supply = <®_vcc5v>;
+
+ regulators {
+ reg_aldo1: aldo1 {
+ /* PortL (this PMIC) and USB 3.3V supply #1 */
+ regulator-name = "vcc-pl-usb";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ aldo5 {
+ regulator-name = "vcc-ac101-codec";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
+ reg_bldo1: bldo1 {
+ regulator-name = "vcc-pe-pk-mcsi";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ bldo2 {
+ regulator-name = "vcc-lvds-lcd";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ bldo4 {
+ regulator-name = "vcc18-codec";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ cldo1 {
+ regulator-name = "vcc18-lpddr";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ cldo2 {
+ regulator-name = "vcc18-hdmi";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ cldo3 {
+ regulator-name = "vcc-pll-dram-avcc";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ reg_cldo5: cldo5 {
+ regulator-name = "vcc-pc-combo";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+
+ dcdc1 {
+ /* VCC3V3 on GPIO connector and power LED */
+ regulator-name = "vcc-wifi-hub-pci-gpio-led";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-always-on;
+ };
+
+ dcdc2 {
+ regulator-name = "vdd-sys-dram-ve-combo";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-always-on;
+ };
+
+ reg_dcdc3: dcdc3 {
+ regulator-name = "vdd-cpub";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1050000>;
+ regulator-always-on;
+ };
+
+ dcdc4 {
+ regulator-name = "vdd-gpu";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <960000>;
+ };
+
+ reg_dcdc5: dcdc5 {
+ regulator-name = "vdd-cpul";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <1050000>;
+ regulator-always-on;
+ };
+
+ dcdc6 {
+ /* Voltage set by DRAM init routine */
+ regulator-name = "vcc-draml-vddq";
+ regulator-min-microvolt = <500000>;
+ regulator-max-microvolt = <600000>;
+ regulator-always-on;
+ };
+
+ dcdc7 {
+ /* Voltage set by DRAM init routine */
+ regulator-name = "vcc-dram";
+ regulator-min-microvolt = <1050000>;
+ regulator-max-microvolt = <1100000>;
+ regulator-always-on;
+ };
+
+ dcdc8 {
+ regulator-name = "vcc-ufs-io";
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <1200000>;
+ };
+
+ reg_dcdc9: dcdc9 {
+ regulator-name = "eldo-input";
+ /*
+ * The schematic says 1.25V, but the
+ * granularity of DCDC9 is 20mV in this range.
+ */
+ regulator-min-microvolt = <1240000>;
+ regulator-max-microvolt = <1260000>;
+ };
+
+ dldo1 {
+ regulator-name = "vcc-efuse";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ dldo6 {
+ regulator-name = "vcc-ufs";
+ regulator-min-microvolt = <2500000>;
+ regulator-max-microvolt = <2500000>;
+ };
+
+ eldo1 {
+ regulator-name = "vcc09-lpddr5";
+ regulator-min-microvolt = <870000>;
+ regulator-max-microvolt = <1120000>;
+ regulator-always-on;
+ };
+
+ eldo6 {
+ regulator-name = "vdd-cpus-usb";
+ regulator-min-microvolt = <800000>;
+ regulator-max-microvolt = <800000>;
+ regulator-always-on;
+ };
+
+ rtc-ldo {
+ regulator-name = "vcc-rtc";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ regulator-always-on;
+ };
+
+ reg_swout1: swout1 {
+ regulator-name = "vcc-pd-pj-lcd-ephy";
+ };
+
+ reg_swout2: swout2 {
+ /* SoC VCC-IO and USB 3.3V supply #2 */
+ regulator-name = "vcc-io-sd-emmc-ph-usb";
+ };
+ };
+ };
+};
+
+&r_i2c1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&r_i2c1_pl_pins>;
+ status = "okay";
+
+ rtc@51 {
+ compatible = "haoyu,hym8563";
+ reg = <0x51>;
+ #clock-cells = <0>;
+ interrupts-extended = <&r_pio 0 3 IRQ_TYPE_LEVEL_LOW>; /* PL3 */
+ };
+};
+
+&r_i2c1_pl_pins {
+ /*
+ * The schematic shows external pull-up resistors, but still the
+ * internal pull-ups are required somehow.
+ */
+ bias-pull-up;
+};
+
+&r_pio {
+ /*
+ * Specifying the supply would create a circular dependency.
+ * vcc-pl-supply = <®_aldo1>;
+ */
+ vcc-pm-supply = <®_aldo1>;
+};
+
+&rtc {
+ clocks = <&r_ccu CLK_BUS_R_RTC>, <&hosc>, <&r_ccu CLK_R_AHB>,
+ <&osc32k>;
+ clock-names = "bus", "hosc", "ahb", "ext-osc32k";
+};
+
+&uart0 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_pb_pins>;
+ status = "okay";
+};
--
2.53.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v7 2/5] arm64: dts: allwinner: add A733 SoC description
2026-12-03 16:25 ` [PATCH v7 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
@ 2026-12-03 17:12 ` sashiko-bot
0 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-12-03 17:12 UTC (permalink / raw)
To: Enzo Adriano; +Cc: devicetree, linux-sunxi, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: allwinner: missing Port A interrupt in A733 pio
node
- [Low] arm64: dts: allwinner: undocumented allwinner,sun60i-a733-uart
compatible
--
commit a6cf968129b840c012594c8362ce55be24457ecb
Author: Enzo Adriano <enzo.adriano.code@gmail.com>
arm64: dts: allwinner: add A733 SoC description
This commit adds the base Devicetree include file for the Allwinner A733
SoC, describing its CPUs, PSCI, timers, GIC, RTC, clock/reset and pin
controllers, UARTs, I2C controllers, and MMC controllers.
Link: https://gist.githubusercontent.com/apritzel/60fd7379b9560a15b8b352986b69d39f/raw/efd9cdf8f26ba5b0c7e138f093af44a1cf322469/sun60i-a733.dts
Link: https://lore.kernel.org/r/20261126172253.1097838-2-andre.przywara@arm.com
> diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
> new file mode 100644
> index 0000000000000..63f5322cce883
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
[ ... ]
> + 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]
Is pio missing the Port A interrupt entry at index 0?
Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml
requires 11 interrupts for allwinner,sun60i-a733-pinctrl, so listing only
10 interrupts (GIC_SPI 69 through 87) fails dtbs_check.
In pinctrl-sunxi, prepare_function_table() assigns irqbank 1..10 to Ports
B..K and sunxi_irq_base_reg() maps bank 0 to Port A. Because
sunxi_pinctrl_init_with_flags() indexes pctl->irq[] from 0, omitting the
Port A slot shifts every main-domain GPIO bank interrupt off by one.
When a GPIO interrupt fires (such as microSD card-detect on PF6),
sunxi_pinctrl_irq_handler() reads the preceding bank's status register and
dispatches the wrong hwirq, leaving the level-triggered GIC SPI unhandled.
[ ... ]
> + uart0: serial@2500000 {
> + compatible = "allwinner,sun60i-a733-uart",
> + "snps,dw-apb-uart";
[Severity: Low]
As reported by Chen-Yu Tsai on v5 [1], is allwinner,sun60i-a733-uart
documented in Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml?
That schema does not include allwinner,sun60i-a733-uart, so dtbs_check fails
on all nine UART nodes (uart0..uart6, r_uart0, r_uart1). Either document
the compatible in the binding or use bare snps,dw-apb-uart like other
Allwinner arm64 DTSIs.
[1] https://lore.kernel.org/r/CAGb2v64c5oirvfq7R3a1CWQCydfOOipcRD7dhSFAb=zczRdTHw@mail.gmail.com
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-a733-cubie-a7s-dt-v7-0@gmail.com?part=2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v7 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board
2026-12-03 16:25 ` [PATCH v7 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
@ 2026-12-03 17:45 ` sashiko-bot
0 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-12-03 17:45 UTC (permalink / raw)
To: Enzo Adriano; +Cc: devicetree, linux-sunxi, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 4 potential
issues to consider:
- [High] arm64: dts: allwinner: pio missing 11th IRQ breaks dtbs_check
and PF6 CD IRQ
- [High] arm64: dts: allwinner: unbound axp318w PMIC breaks dtbs_check
and defers boot
- [High] arm64: dts: allwinner: pio bank supplies program inverted A733
IO bias mode
- [Low] arm64: dts: allwinner: undocumented sun60i-a733-uart compatible
in dtsi
--
commit c275314e0fa3c3cd640e6f0145400e425f3d8d31
Author: Enzo Adriano <enzo.adriano.code@gmail.com>
arm64: dts: allwinner: add Radxa Cubie A7S board
This commit adds the initial Devicetree for the Radxa Cubie A7S board
using the Allwinner A733 SoC, enabling the serial console, AXP318W PMIC,
microSD slot, EEPROM, and status LEDs, and adds it to the build.
Link: https://dl.radxa.com/cubie/a7s/hw/radxa_cubie_a7s_schematic_v1.10.pdf
Link: https://github.com/radxa/allwinner-device/blob/6d911d1582dcccdb5a4c38be8d3c1ee851019795/configs/cubie_a7s/linux-5.15/board.dts#L372-L384
> diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
> new file mode 100644
> index 0000000000000..9f71006170382
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7s.dts
[ ... ]
> +&mmc0 {
> + bus-width = <4>;
> + cap-mmc-highspeed;
> + cap-sd-highspeed;
> + cd-gpios = <&pio 5 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>; /* PF6 */
> + disable-wp;
> + vmmc-supply = <®_swout2>;
> + status = "okay";
> +};
[Severity: High]
Does PF6 card-detect break at runtime, and does make dtbs_check fail,
because pio in sun60i-a733.dtsi lists only 10 interrupts?
Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml
requires 11 interrupts for allwinner,sun60i-a733-pinctrl, matching commit
11f25ac56372 ("dt-bindings: pinctrl: sun55i-a523: increase IRQ banks
number"), which reserves slot 0 for unimplemented Port A.
Without that first entry, sunxi_pinctrl_init_with_flags() loads PF's
GIC_SPI 77 into pctl->irq[4] instead of pctl->irq[5]. When PF6 asserts
GIC_SPI 77, sunxi_pinctrl_irq_handler() matches bank 4 and reads PE's
status register instead of PF's, leaving PF's level-triggered interrupt
unacknowledged and never dispatching the card-detect IRQ to mmc0.
> +
> +&pio {
> + vcc-pb-supply = <®_swout2>; /* via VCC-IO */
> + vcc-pc-supply = <®_cldo5>;
> + vcc-pd-supply = <®_swout1>;
> + vcc-pe-supply = <®_bldo1>;
> + /* PF uses VCC-IO at 3.3 V, with CLDO5 as the 1.8 V input. */
> + vcc-pf-supply = <®_swout2>;
> + vcc-pg-supply = <®_aldo1>;
> + vcc-ph-supply = <®_swout2>;
> + vcc-pj-supply = <®_swout1>;
> + vcc-pk-supply = <®_bldo1>;
> +};
[Severity: High]
Will wiring vcc-pb-supply through vcc-pk-supply program inverted I/O
voltage modes on the A733 pin banks?
a733_pinctrl_data in drivers/pinctrl/sunxi/pinctrl-sun60i-a733.c still
uses BIAS_VOLTAGE_PIO_POW_MODE_SEL rather than
BIAS_VOLTAGE_PIO_POW_MODE_CTL_INV, as updated for A523 in commit
ef56085dfd1d ("pinctrl: sunxi: A523: fix voltage withstand encoding").
Once these bank supplies resolve, sunxi_pinctrl_set_io_bias_cfg() writes
non-inverted bits to PIO_NCAT3_POW_MOD_SEL_REG and skips
PIO_POW_MOD_CTL_OFS, setting 1.8 V mode on 3.3 V banks and 3.3 V mode on
1.8 V banks.
> +
> +&r_i2c0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&r_i2c0_pl_pins>;
> + status = "okay";
> +
> + pmic@36 {
> + compatible = "x-powers,axp318w";
> + reg = <0x36>;
> + interrupts-extended = <&nmi_intc 0 IRQ_TYPE_LEVEL_LOW>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + aldo156in-supply = <®_ps>;
> + aldo234in-supply = <®_aldo1>;
[Severity: High]
As reported by Chen-Yu Tsai on v5 [1], is x-powers,axp318w still missing
both its Devicetree binding and driver in this tree?
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml does not
document x-powers,axp318w, its grouped supply properties, or the
dcdc9/swout1/swout2 regulator subnodes, so make dtbs_check fails.
At runtime, no driver matches x-powers,axp318w, so none of its regulators
register. of_regulator_dev_lookup() then returns -EPROBE_DEFER for every
consumer referencing these phandles, permanently deferring uart0, mmc0,
i2c0, eeprom@50, and gpio-leds.
[ ... ]
> +&uart0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&uart0_pb_pins>;
> + status = "okay";
> +};
[Severity: Low]
Does enabling uart0 and building sun60i-a733-cubie-a7s.dtb fail make
dtbs_check because allwinner,sun60i-a733-uart is undocumented?
sun60i-a733.dtsi uses compatible = "allwinner,sun60i-a733-uart",
"snps,dw-apb-uart" on the UART nodes, but
Documentation/devicetree/bindings/serial/snps-dw-apb-uart.yaml does not
list allwinner,sun60i-a733-uart.
[1] https://lore.kernel.org/r/CAGb2v64p4GvDMDKzDLfedDQCexD+=gu3+YxMAt=ARj4bZxR_eA@mail.gmail.com
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-a733-cubie-a7s-dt-v7-0@gmail.com?part=3
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v7 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board
2026-12-03 16:31 ` [PATCH v7 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board Enzo Adriano
@ 2026-12-03 18:03 ` sashiko-bot
0 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-12-03 18:03 UTC (permalink / raw)
To: Enzo Adriano; +Cc: devicetree, linux-sunxi, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: allwinner: undocumented axp318w PMIC breaks
dtbs_check and boot
- [Medium] arm64: dts: allwinner: pio interrupts count mismatches
11-item A733 binding
--
commit ad298953ae3f0bb2c7041b75d56f31578ed245d0
Author: Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>
arm64: dts: allwinner: add Radxa Cubie A7Z board
This commit adds the devicetree for the Radxa Cubie A7Z board using the
Allwinner A733 SoC and enables UART0, the AXP318W PMIC on R-I2C0, MMC0,
RTC, and the green user LED.
> diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts
> new file mode 100644
> index 0000000000000..7db69cb83ddc0
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7z.dts
[ ... ]
> +&pio {
> + /* VCC-IO */
> + vcc-pb-supply = <®_swout2>;
> + vcc-pc-supply = <®_cldo5>;
> + vcc-pd-supply = <®_swout1>;
> + vcc-pe-supply = <®_bldo1>;
> + /* VCC-IO */
> + vcc-pf-supply = <®_swout2>;
> + vcc-pg-supply = <®_bldo5>;
> + /* VCC-IO */
> + vcc-ph-supply = <®_swout2>;
> + vcc-pj-supply = <®_swout1>;
> + vcc-pk-supply = <®_bldo1>;
> +};
[Severity: Medium]
Does the included pio node in sun60i-a733.dtsi fail dtbs_check on its
interrupts property?
Documentation/devicetree/bindings/pinctrl/allwinner,sun55i-a523-pinctrl.yaml
requires 11 interrupts for allwinner,sun60i-a733-pinctrl to cover the
unimplemented Port A slot plus PB through PK, as established in commit
11f25ac56372 ("dt-bindings: pinctrl: sun55i-a523: increase IRQ banks number").
Because pio: pinctrl@2000000 in arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
lists only 10 interrupts (matching .irq_banks = 10 in
drivers/pinctrl/sunxi/pinctrl-sun60i-a733.c), make dtbs_check fails on
sun60i-a733-cubie-a7z.dtb and the interrupt array is shifted by one bank
relative to the 1..10 register layout expected by sunxi_irq_base_reg().
> +&r_i2c0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&r_i2c0_pl_pins>;
> + status = "okay";
> +
> + pmic@36 {
> + compatible = "x-powers,axp318w";
> + reg = <0x36>;
> + interrupts-extended = <&nmi_intc 0 IRQ_TYPE_LEVEL_LOW>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + aldo156in-supply = <®_ps>;
> + aldo234in-supply = <®_aldo1>;
> + /* v1.10: BLDOIN from SWOUT2 and CLDOIN from PS */
> + bldoin-supply = <®_ldo_input>;
> + cldoin-supply = <®_ldo_input>;
> + dldoin-supply = <®_ps>;
> + eldoin-supply = <®_dcdc9>;
> + ips-supply = <®_ps>;
> + vin19-supply = <®_ps>;
> + vin23-supply = <®_ps>;
> + vin45-supply = <®_ps>;
> + vin678-supply = <®_ps>;
[Severity: High]
Does x-powers,axp318w fail dtbs_check and leave uart0, mmc0, and led-0
stuck in probe deferral?
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml does not define
x-powers,axp318w, its aldo156in/aldo234in/vin*-supply properties, or the
dcdc8, dcdc9, swout1, and swout2 regulator subnodes, so make dtbs_check
fails on sun60i-a733-cubie-a7z.dtb.
drivers/mfd/axp20x-i2c.c also has no match entry for x-powers,axp318w, so
pmic@36 never binds and none of its regulators register. Because pio
wires vcc-pb-supply and vcc-pf-supply to reg_swout2 and r_pio wires
vcc-pm-supply to reg_aldo1, sunxi_pmx_request() -> regulator_get() ->
of_regulator_dev_lookup() returns -EPROBE_DEFER permanently, preventing
the serial console, microSD slot, and user LED from probing.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-a733-cubie-a7s-dt-v7-0@gmail.com?part=4
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v7 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board
2026-12-03 16:31 ` [PATCH v7 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Enzo Adriano
@ 2026-12-03 18:31 ` sashiko-bot
0 siblings, 0 replies; 10+ messages in thread
From: sashiko-bot @ 2026-12-03 18:31 UTC (permalink / raw)
To: Enzo Adriano; +Cc: devicetree, linux-sunxi, robh, conor+dt
Thank you for your contribution! Sashiko AI review found 2 potential
issues to consider:
- [High] arm64: dts: allwinner: missing binding and driver for
x-powers,axp318w PMIC
- [Medium] arm64: dts: allwinner: cubie-a7a dcdc7 max voltage capped at
1.10 V
--
commit d676df2104285190d09fdb2d7c1b8086a0cae5b8
Author: Andre Przywara <andre.przywara@arm.com>
arm64: dts: allwinner: add Radxa Cubie A7A board
This commit adds the initial devicetree for the Radxa Cubie A7A board,
describing its UART, AXP318W PMIC, microSD slot, EEPROM, and external RTC,
and adds the DTB to the Allwinner Makefile.
> diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
> new file mode 100644
> index 0000000000000..e1e1db00bada9
> --- /dev/null
> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
[ ... ]
> +&r_i2c0 {
> + pinctrl-names = "default";
> + pinctrl-0 = <&r_i2c0_pl_pins>;
> + status = "okay";
> +
> + pmic@36 {
> + compatible = "x-powers,axp318w";
> + reg = <0x36>;
> + interrupts-extended = <&nmi_intc 0 IRQ_TYPE_LEVEL_LOW>;
> + interrupt-controller;
> + #interrupt-cells = <1>;
> + aldo156in-supply = <®_vcc5v>;
> + aldo234in-supply = <®_aldo1>;
> + bldoin-supply = <®_vcc2v4>;
> + cldoin-supply = <®_vcc2v4>;
> + dldoin-supply = <®_vcc5v>;
> + eldoin-supply = <®_dcdc9>;
> + ips-supply = <®_vcc5v>;
> + vin19-supply = <®_vcc5v>;
> + vin23-supply = <®_vcc5v>;
> + vin45-supply = <®_vcc5v>;
> + vin678-supply = <®_vcc5v>;
[Severity: High]
Does x-powers,axp318w have an in-tree DT binding and driver yet?
Documentation/devicetree/bindings/mfd/x-powers,axp152.yaml does not document
x-powers,axp318w, its supply properties (such as aldo156in-supply and
vin19-supply), or regulator subnodes like dcdc8, dcdc9, swout1, and swout2,
so make dtbs_check fails on pmic@36.
drivers/mfd/axp20x-i2c.c also does not match x-powers,axp318w, so none of
the PMIC regulators register. Because pio bank supplies and mmc0
vmmc-supply reference them, of_regulator_dev_lookup() returns -EPROBE_DEFER
and sunxi_pmx_request() permanently defers uart0, mmc0, and other devices.
[ ... ]
> + dcdc7 {
> + /* Voltage set by DRAM init routine */
> + regulator-name = "vcc-dram";
> + regulator-min-microvolt = <1050000>;
> + regulator-max-microvolt = <1100000>;
> + regulator-always-on;
> + };
[Severity: Medium]
Should regulator-max-microvolt on dcdc7 be raised to 1120000 uV to avoid
clamping the bootloader's LPDDR5 voltage?
When both regulator-min-microvolt and regulator-max-microvolt are specified,
of_get_regulation_constraints() sets apply_uV = true, so
machine_constraints_voltage() lowers the live rail to max_uV if firmware
programmed a higher voltage.
In commit "arm64: dts: allwinner: add Radxa Cubie A7S board", dcdc7 is
widened to 1050000-1120000 uV because Radxa's boot0 programs 1.12 V on
DCDC7. If Cubie A7A's boot0 also sets 1.12 V, capping dcdc7 at 1.10 V will
drop the DRAM rail during PMIC probe and risk memory corruption or hangs.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-a733-cubie-a7s-dt-v7-0@gmail.com?part=5
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-12-03 18:31 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 16:24 [PATCH v7 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
2026-12-03 16:24 ` [PATCH v7 1/5] dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z Enzo Adriano
2026-12-03 16:25 ` [PATCH v7 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
2026-12-03 17:12 ` sashiko-bot
2026-12-03 16:25 ` [PATCH v7 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
2026-12-03 17:45 ` sashiko-bot
2026-12-03 16:31 ` [PATCH v7 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board Enzo Adriano
2026-12-03 18:03 ` sashiko-bot
2026-12-03 16:31 ` [PATCH v7 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Enzo Adriano
2026-12-03 18:31 ` sashiko-bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox