* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-26 20:35 ` [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
@ 2026-11-27 4:29 ` Jernej Škrabec
2026-11-27 10:57 ` Andre Przywara
2026-11-27 11:28 ` Jerome Brunet
2026-11-27 11:18 ` Jerome Brunet
2026-11-27 11:26 ` Alastair D'Silva
2 siblings, 2 replies; 34+ messages in thread
From: Jernej Škrabec @ 2026-11-27 4:29 UTC (permalink / raw)
To: andre.przywara, robh, krzk+dt, conor+dt, wens, samuel,
Enzo Adriano
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
Dne četrtek, 26. november 2026 ob 21:35:40 Srednjeevropski standardni čas je Enzo Adriano napisal(a):
> 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 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 unit and shared L3 shown in section
> 5.1.2, figure 5-1. 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)
> 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 since v5:
> - Mark the I2C0 PG8/PG9 group /omit-if-no-ref/, as requested. This
> satisfies Andre's review condition.
> - Move the RTC clock include after the A733 clock headers and cite
> the A733 datasheet and A7S schematic for the I2C0 pins.
> - Fold in Andre's R-I2C1 pin group for A7A. A7S and A7Z leave
> it unused. A7S still references the I2C0 group.
> - Vinicius tested the v5 DTSI with his A7Z v1.11 board DT. Norman
> tested the v5 series on A7S. Their tags here cover the SoC DTSI.
>
> .../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..e062b08006da
> --- /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 {
> + 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";
> + };
> + };
> +
> + 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";
> + 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 = <&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";
That's not really the case, is it? A733 emmc has support for voltage switching,
so regulator should be added here for voltage switching.
I suggest that you drop this node until proper adjustment is made.
Best regards,
Jernej
> + 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>;
> + };
> + };
> +};
>
>
^ permalink raw reply [flat|nested] 34+ messages in thread* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-27 4:29 ` Jernej Škrabec
@ 2026-11-27 10:57 ` Andre Przywara
2026-11-27 18:06 ` Enzo Adriano
2026-11-28 17:38 ` Jernej Škrabec
2026-11-27 11:28 ` Jerome Brunet
1 sibling, 2 replies; 34+ messages in thread
From: Andre Przywara @ 2026-11-27 10:57 UTC (permalink / raw)
To: Jernej Škrabec, robh, krzk+dt, conor+dt, wens, samuel,
Enzo Adriano
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
Hi Jernej,
On 11/27/26 05:29, Jernej Škrabec wrote:
> Dne četrtek, 26. november 2026 ob 21:35:40 Srednjeevropski standardni čas je Enzo Adriano napisal(a):
>> 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 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 unit and shared L3 shown in section
>> 5.1.2, figure 5-1. 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)
>> 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 since v5:
>> - Mark the I2C0 PG8/PG9 group /omit-if-no-ref/, as requested. This
>> satisfies Andre's review condition.
>> - Move the RTC clock include after the A733 clock headers and cite
>> the A733 datasheet and A7S schematic for the I2C0 pins.
>> - Fold in Andre's R-I2C1 pin group for A7A. A7S and A7Z leave
>> it unused. A7S still references the I2C0 group.
>> - Vinicius tested the v5 DTSI with his A7Z v1.11 board DT. Norman
>> tested the v5 series on A7S. Their tags here cover the SoC DTSI.
>>
>> .../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..e062b08006da
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
>> @@ -0,0 +1,671 @@
[ ... ]
>> +
>> + mmc0: mmc@4020000 {
>> + compatible = "allwinner,sun60i-a733-mmc",
>> + "allwinner,sun20i-d1-mmc";
>
> That's not really the case, is it? A733 emmc has support for voltage switching,
> so regulator should be added here for voltage switching.
But it's still compatible to the D1 MMC controller, isn't it? As in: a
driver capable of supporting the D1 MMC IP can also drive the A733 MMC.
I think the voltage regulator is a separate problem: it's external to
the MMC IP. The vqmmc supply property is documented and usable, and the
availability of the regulator it points to is a separate issue.
The same as the H616 and A523 have the voltage switch already, but are
still compatible to the A100 and D1, respectively.
> I suggest that you drop this node until proper adjustment is made.
Do you have any code for the voltage switch already? Your comment in the
UHS-1 prep series suggests so? Any chance you can post that separately,
to get any DT compatibility problems out of the way early?
Cheers,
Andre
> Best regards,
> Jernej
>
>> + 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";
>> + };
>> +
^ permalink raw reply [flat|nested] 34+ messages in thread* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-27 10:57 ` Andre Przywara
@ 2026-11-27 18:06 ` Enzo Adriano
2026-11-28 14:59 ` Daniel Golle
2026-11-28 17:38 ` Jernej Škrabec
1 sibling, 1 reply; 34+ messages in thread
From: Enzo Adriano @ 2026-11-27 18:06 UTC (permalink / raw)
To: andre.przywara
Cc: jernej.skrabec, robh, krzk+dt, conor+dt, wens, samuel,
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
> But it's still compatible to the D1 MMC controller, isn't it? As in: a
> driver capable of supporting the D1 MMC IP can also drive the A733 MMC.
> I think the voltage regulator is a separate problem: it's external to
> the MMC IP. The vqmmc supply property is documented and usable, and the
> availability of the regulator it points to is a separate issue.
> The same as the H616 and A523 have the voltage switch already, but are
> still compatible to the A100 and D1, respectively.
Agreed, and the manual backs it. The A733 User Manual v1.00, section
11.3.1, lists SDR 200 MHz at 1.8 V IO for SMHC0, but the SMHC register
list has no voltage control. The Port F pad voltage is chosen in the
GPIO block: GPIO_POW_VAL_SET_CTL at 0x0200_0070, bit 0
VCC_PF_PWR_VOL_SEL (0 = 1.8 V, 1 = 3.3 V, reset 1), section 18.14.6.3.
So vqmmc for mmc0 would be a regulator provided from the pinctrl side.
On the A7S (schematic v1.10, sheets 4 and 7) both Port F supplies are
fixed rails: VCC-IO, 3.3 V from SWOUT2, and VCC18-PF, 1.8 V from CLDO5.
There is nothing to point vqmmc at today.
Unless Jernej still prefers dropping the node, v7 keeps mmc0 with the D1
fallback and no-1-8-v on all three boards. The Port F switch can follow
when it exists.
Jernej, if your "emmc" meant SMHC2, I can also drop the unused mmc2
node; no board enables it.
Enzo
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-27 18:06 ` Enzo Adriano
@ 2026-11-28 14:59 ` Daniel Golle
2026-11-28 20:01 ` Norman Herms
2026-11-28 20:18 ` Enzo Adriano
0 siblings, 2 replies; 34+ messages in thread
From: Daniel Golle @ 2026-11-28 14:59 UTC (permalink / raw)
To: Enzo Adriano
Cc: andre.przywara, jernej.skrabec, robh, krzk+dt, conor+dt, wens,
samuel, 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, Alastair D'Silva
Hi Enzo,
On Fri, Nov 27, 2026 at 01:06:50PM -0500, Enzo Adriano wrote:
> Jernej, if your "emmc" meant SMHC2, I can also drop the unused mmc2
> node; no board enables it.
Please keep it. The Xunlong Orange Pi 4 Pro has an eMMC module socket
on SMHC2. Alastair's posted board file does not enable it yet, but
the socket needs &mmc2 (8 bit, HS200 at 1.8 V, hardware reset), so
that board would be a user soon after yours.
While at it, the mmc2 pin group misses two signals the eMMC socket
uses: the data strobe on PC0 and the reset output on PC1, both
function 3 like the other MMC2 pins:
mmc2_pins: mmc2-pins {
pins = "PC0", "PC1", "PC5", "PC6", "PC8", "PC9",
"PC10", "PC11", "PC13", "PC14", "PC15", "PC16";
function = "mmc2";
...
};
Without PC1 the hardware reset (cap-mmc-hw-reset) has no effect, and
without PC0 HS400 cannot work. On the Orange Pi 4 Pro the host
controller probes with this node and the pin group above; I have only
checked it with no module plugged, so I cannot report a card test yet.
For transparency: an LLM coding assistant helped with the analysis and
with drafting this reply. I personally review every line before
submission and test manually on the hardware.
Cheers,
Daniel
^ permalink raw reply [flat|nested] 34+ messages in thread* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-28 14:59 ` Daniel Golle
@ 2026-11-28 20:01 ` Norman Herms
2026-11-28 20:18 ` Enzo Adriano
1 sibling, 0 replies; 34+ messages in thread
From: Norman Herms @ 2026-11-28 20:01 UTC (permalink / raw)
To: Daniel Golle
Cc: Enzo Adriano, andre.przywara, jernej.skrabec, robh, krzk+dt,
conor+dt, wens, samuel, 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,
Alastair D'Silva
On Sat, Nov 28, 2026 at 02:59:45PM +0000, Daniel Golle wrote:
> While at it, the mmc2 pin group misses two signals the eMMC socket
> uses: the data strobe on PC0 and the reset output on PC1, both
> function 3 like the other MMC2 pins:
>
> mmc2_pins: mmc2-pins {
> pins = "PC0", "PC1", "PC5", "PC6", "PC8", "PC9",
> "PC10", "PC11", "PC13", "PC14", "PC15", "PC16";
> function = "mmc2";
> ...
> };
On the Radxa Cubie A7S the eMMC uses these two pins as well: its
schematic (v1.10, page 7) connects EMMC_DS to PC0 and EMMC_RST to PC1,
and the A733 User Manual (PC_CFG0) lists SDC2-DS and SDC2-RST as
function 3 on these pins. The A7S has an eMMC footprint on SMHC2, so
it would use mmc2 as well.
We tested this group in our A7S device tree, on the eMMC of one of
our boards: one group with the twelve pins above, drive-strength 30
and bias-pull-up as in v6, and max-frequency = <200000000>. The card
came up in HS400 with enhanced strobe, and in the same boot we also
switched it to HS200; both ran at 200 MHz, 8 bit, 1.8 V. In each
mode, 1 GiB of random data written to a fresh area read back
identical three times, with no mmc errors. Our own A7S device tree
keeps PC0 in a group of its own with bias-pull-down, a value we read
back from the vendor image on this board; with PC0 switched to
pull-up by register on that tree, HS400ES gave the same result.
This ran on our 6.18 based kernel with about 30 out-of-tree
sunxi-mmc patches for the A733, among them HS400 with enhanced
strobe, sample and strobe delay tuning and module clock changes,
bound through an A733 eMMC compatible with the D1 fallback. The
sunxi-mmc in linux-next masks HS400 and has no tuning, so this shows
the pin group working, not v6 on linux-next. It was one board and one
card (DV4032), at room temperature and without a long run. We have
not tested whether the hardware reset on PC1 works, nor the group
without PC0 and PC1.
Enzo, the mmc2 node in v6 has no max-frequency. sunxi-mmc sets f_max
to 52 MHz before mmc_of_parse(), in linux-next as in our tree. On our
kernel, with the same group but without max-frequency, the eMMC ran
at a 50 MHz card clock in HS400ES and HS200, with the same data
result; with max-frequency = <200000000> it ran at 200 MHz.
Not every A7S comes with the eMMC fitted; one of ours has it, so we
can test the mmc2 node of the next version on it.
Measured and written up by AI agents (Claude) on my board.
Norman
^ permalink raw reply [flat|nested] 34+ messages in thread* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-28 14:59 ` Daniel Golle
2026-11-28 20:01 ` Norman Herms
@ 2026-11-28 20:18 ` Enzo Adriano
1 sibling, 0 replies; 34+ messages in thread
From: Enzo Adriano @ 2026-11-28 20:18 UTC (permalink / raw)
To: daniel
Cc: andre.przywara, jernej.skrabec, robh, krzk+dt, conor+dt, wens,
samuel, 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, Alastair D'Silva
> Please keep it. The Xunlong Orange Pi 4 Pro has an eMMC module socket
> on SMHC2. Alastair's posted board file does not enable it yet, but
> the socket needs &mmc2 (8 bit, HS200 at 1.8 V, hardware reset), so
> that board would be a user soon after yours.
v7 keeps mmc2.
> While at it, the mmc2 pin group misses two signals the eMMC socket
> uses: the data strobe on PC0 and the reset output on PC1, both
> function 3 like the other MMC2 pins:
Agreed. The A733 User Manual v1.00, table 18-30 (Port C Multiplex
Function) and PC_CFG0 (section 18.14.6.18) give SDC2-DS on PC0 and
SDC2-RST on PC1, both at function 3. The A523 dtsi has the same pin
group with both pins. v7 adds them.
No board in this series enables mmc2, so this is not tested here.
Enzo
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-27 10:57 ` Andre Przywara
2026-11-27 18:06 ` Enzo Adriano
@ 2026-11-28 17:38 ` Jernej Škrabec
1 sibling, 0 replies; 34+ messages in thread
From: Jernej Škrabec @ 2026-11-28 17:38 UTC (permalink / raw)
To: robh, krzk+dt, conor+dt, wens, samuel, Enzo Adriano,
Andre Przywara
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
Dne petek, 27. november 2026 ob 11:57:16 Srednjeevropski standardni čas je Andre Przywara napisal(a):
> Hi Jernej,
>
> On 11/27/26 05:29, Jernej Škrabec wrote:
> > Dne četrtek, 26. november 2026 ob 21:35:40 Srednjeevropski standardni čas je Enzo Adriano napisal(a):
> >> 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 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 unit and shared L3 shown in section
> >> 5.1.2, figure 5-1. 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)
> >> 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 since v5:
> >> - Mark the I2C0 PG8/PG9 group /omit-if-no-ref/, as requested. This
> >> satisfies Andre's review condition.
> >> - Move the RTC clock include after the A733 clock headers and cite
> >> the A733 datasheet and A7S schematic for the I2C0 pins.
> >> - Fold in Andre's R-I2C1 pin group for A7A. A7S and A7Z leave
> >> it unused. A7S still references the I2C0 group.
> >> - Vinicius tested the v5 DTSI with his A7Z v1.11 board DT. Norman
> >> tested the v5 series on A7S. Their tags here cover the SoC DTSI.
> >>
> >> .../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..e062b08006da
> >> --- /dev/null
> >> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
> >> @@ -0,0 +1,671 @@
>
> [ ... ]
>
> >> +
> >> + mmc0: mmc@4020000 {
> >> + compatible = "allwinner,sun60i-a733-mmc",
> >> + "allwinner,sun20i-d1-mmc";
> >
> > That's not really the case, is it? A733 emmc has support for voltage switching,
> > so regulator should be added here for voltage switching.
>
> But it's still compatible to the D1 MMC controller, isn't it? As in: a
> driver capable of supporting the D1 MMC IP can also drive the A733 MMC.
> I think the voltage regulator is a separate problem: it's external to
> the MMC IP. The vqmmc supply property is documented and usable, and the
> availability of the regulator it points to is a separate issue.
> The same as the H616 and A523 have the voltage switch already, but are
> still compatible to the A100 and D1, respectively.
Ah, sorry, mmc0 node is ok. Power supply is the tricky part and that
belongs to board dts.
>
> > I suggest that you drop this node until proper adjustment is made.
>
> Do you have any code for the voltage switch already? Your comment in the
> UHS-1 prep series suggests so? Any chance you can post that separately,
> to get any DT compatibility problems out of the way early?
As you may remember #linux-sunxi discussion a month or so ago, you had
objections regarding broking forward compatibility. So now is the time
to properly address this for A733. As discussed, proper way would be to
introduce regulator child node in pinctrl and point vmmc-supply to it.
Example is here:
https://github.com/jernejsk/linux-1/commits/sunxi-mmc-uhs/
(just pretend that vmmc-supply is used instead of vqmmc-supply)
Best regards,
Jernej
>
> Cheers,
> Andre
>
> > Best regards,
> > Jernej
> >
> >> + 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";
> >> + };
> >> +
>
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-27 4:29 ` Jernej Škrabec
2026-11-27 10:57 ` Andre Przywara
@ 2026-11-27 11:28 ` Jerome Brunet
2026-11-27 16:37 ` Norman Herms
1 sibling, 1 reply; 34+ messages in thread
From: Jerome Brunet @ 2026-11-27 11:28 UTC (permalink / raw)
To: Jernej Škrabec, andre.przywara, robh, krzk+dt, conor+dt,
wens, samuel, Enzo Adriano
Cc: Maxime Ripard, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel, Junhui Liu, Pablo Mazzini, Vinicius Pedrosa,
Alexander Sverdlin, Jun Yan, Lukas Schmid, Cristian Filipescu,
Norman Herms
On ven. 27 nov. 2026 at 05:29, Jernej Škrabec <jernej.skrabec@gmail.com> wrote:
>> +
>> + mmc0: mmc@4020000 {
>> + compatible = "allwinner,sun60i-a733-mmc",
>> + "allwinner,sun20i-d1-mmc";
>
> That's not really the case, is it? A733 emmc has support for voltage switching,
> so regulator should be added here for voltage switching.
>
> I suggest that you drop this node until proper adjustment is made.
I'm not sure what you mean here. AFAICT in the documentations, the D1
and A733 provide the same registers and should be compatible. They are
so far.
The driver does not implement CMD11 but this equally applicatble to D1,
isn't it ?
What we might be lacking right now is properly voltage selector on PORT F.
>
> Best regards,
> Jernej
>
--
Jerome
^ permalink raw reply [flat|nested] 34+ messages in thread* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-27 11:28 ` Jerome Brunet
@ 2026-11-27 16:37 ` Norman Herms
2026-11-27 17:06 ` Andre Przywara
0 siblings, 1 reply; 34+ messages in thread
From: Norman Herms @ 2026-11-27 16:37 UTC (permalink / raw)
To: Jerome Brunet
Cc: Jernej Škrabec, andre.przywara, robh, krzk+dt, conor+dt,
wens, samuel, Enzo Adriano, Maxime Ripard, devicetree,
linux-arm-kernel, linux-sunxi, linux-kernel, Junhui Liu,
Pablo Mazzini, Vinicius Pedrosa, Alexander Sverdlin, Jun Yan,
Lukas Schmid, Cristian Filipescu
Hi Jerome,
On the PF voltage selector: we have been running UHS-I on the Cubie
A7S for a while in our own trees (6.18 and mainline based). Here is
what we ran into, in case it helps whoever models it.
- The switch: on this board bank PF takes its supply from VCC-IO
(3.3 V) or from CLDO5 (1.8 V), selected by GPIO_POW_VAL_SET_CTL
bit 0 (1 = 3.3 V). There is no external regulator to switch, so
vqmmc does not fit, and sunxi-mmc without vqmmc returns -EINVAL for
1.8 V. We use two pinctrl states, "sdmmc-3v3" and "sdmmc-1v8" as on
Tegra, whose pin groups carry power-source.
- The withstand mode: with PF in the adaptive mode of
GPIO_POW_MOD_SEL (01, which is what the pinctrl automatic voltage
detection patch sets), the pads follow the SoC's own supply
detector, and on our board that detector now and then reports
3.3 V while PF runs at 1.8 V. With one card, 14 of 40 SD rebinds at
SDR104 failed: the CMD6 status read gets a data CRC error and the
card falls back to high speed; once the card was lost ("error -5
whilst initialising SD card"). Setting the PF mode by hand together
with the switch gave 0 of 40: 10 (3.3 V) before switching to 3.3 V,
and 11 (1.8 V) after switching to 1.8 V, once GPIO_POW_VAL reports
PF at 1.8 V. Our final patch does that and also gave 0 of 40.
Oddly, the fault also goes away while the USB3 combo PHY runs; on
this board CLDO5 supplies its analog part too. Another card passed
40 of 40 even in the adaptive mode.
- The eMMC on bank PC needs no switching, CLDO5 is fixed at 1.8 V.
But if the boot chain leaves the PC field at its reset value 10 (the
register resets to 0x022aaaa0), HS400 enhanced strobe fails with
"mmc_select_hs400es failed, error -110". So on PC, 10 behaves as the
3.3 V mode, as in the register table, not as the adaptive mode the
text of 18.14.4.6 gives for C/E/K. 01 and the fixed 1.8 V mode (11)
both work.
We can test patches for this on the A7S, SD and eMMC.
Built and measured by AI agents (Claude) on my boards.
Thanks,
Norman
^ permalink raw reply [flat|nested] 34+ messages in thread* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-27 16:37 ` Norman Herms
@ 2026-11-27 17:06 ` Andre Przywara
2026-11-27 17:54 ` Norman Herms
0 siblings, 1 reply; 34+ messages in thread
From: Andre Przywara @ 2026-11-27 17:06 UTC (permalink / raw)
To: Norman Herms, Jerome Brunet
Cc: Jernej Škrabec, robh, krzk+dt, conor+dt, wens, samuel,
Enzo Adriano, Maxime Ripard, devicetree, linux-arm-kernel,
linux-sunxi, linux-kernel, Junhui Liu, Pablo Mazzini,
Vinicius Pedrosa, Alexander Sverdlin, Jun Yan, Lukas Schmid,
Cristian Filipescu
Hi,
On 11/27/26 17:37, Norman Herms wrote:
> Hi Jerome,
>
> On the PF voltage selector: we have been running UHS-I on the Cubie
> A7S for a while in our own trees (6.18 and mainline based). Here is
> what we ran into, in case it helps whoever models it.
>
> - The switch: on this board bank PF takes its supply from VCC-IO
> (3.3 V) or from CLDO5 (1.8 V), selected by GPIO_POW_VAL_SET_CTL
> bit 0 (1 = 3.3 V). There is no external regulator to switch, so
What do you mean by that? The proper solution is to *create* a new
regulator driver, either embedded in the pinctrl driver (make the
pinctrl export a regulator device), or as a separate driver, using some
pinctrl provided regmap. To be precise, it should be some kind of
regulator mux, selecting between VCC-IO and VCC18-PF.
And then it should indeed just be a matter of pointing vqmmc-supply to
that regulator to make it work.
Are you using a different approach? I have seen various downstream
patches implementing something similar, and they seem to be happy.
And I have seen pinctrl states as well, but think we need a proper vqmmc
regulator, regardless?
> vqmmc does not fit, and sunxi-mmc without vqmmc returns -EINVAL for
> 1.8 V.
Do you mean you use vmmc-supply to point to some 1.8V regulator? This is
indeed bound to fail, as the SD spec requires 3.3V always for the supply
voltage. And the binding/SD card Linux subsystem allows not providing
vqmmc, at which point it will assume it's the same as vmmc - but not the
other way around.
> We use two pinctrl states, "sdmmc-3v3" and "sdmmc-1v8" as on>
Tegra, whose pin groups carry power-source.
>
> - The withstand mode: with PF in the adaptive mode of
> GPIO_POW_MOD_SEL (01, which is what the pinctrl automatic voltage
> detection patch sets), the pads follow the SoC's own supply
> detector, and on our board that detector now and then reports
> 3.3 V while PF runs at 1.8 V.
Is that a timing issue, maybe? Maybe the sampling happens only so often,
and you just happen to miss the change, occasionally?
> With one card, 14 of 40 SD rebinds at
> SDR104 failed: the CMD6 status read gets a data CRC error and the
> card falls back to high speed; once the card was lost ("error -5
> whilst initialising SD card"). Setting the PF mode by hand together
> with the switch gave 0 of 40: 10 (3.3 V) before switching to 3.3 V,
Just to clarify: "0 of 40" means *0 fails* here, so it works?
> and 11 (1.8 V) after switching to 1.8 V, once GPIO_POW_VAL reports
> PF at 1.8 V. Our final patch does that and also gave 0 of 40.
Do you mean your patch just badly hacks those two bits to do what you
want, by treating PortF separately, but it's not something that looks
nice and upstreamable?
> Oddly, the fault also goes away while the USB3 combo PHY runs; on
> this board CLDO5 supplies its analog part too. Another card passed
So according to the A7A schematics VCC18-PF is a separate power supply
pin on the SoC, and it's supplied by CLDO5. On the A7A CLDO5 is not
always-on, so you would need to reference it somewhere to be enabled, by
the SD card node.
> 40 of 40 even in the adaptive mode.
>
> - The eMMC on bank PC needs no switching, CLDO5 is fixed at 1.8 V.
> But if the boot chain leaves the PC field at its reset value 10 (the
> register resets to 0x022aaaa0), HS400 enhanced strobe fails with
> "mmc_select_hs400es failed, error -110". So on PC, 10 behaves as the
> 3.3 V mode, as in the register table, not as the adaptive mode the
But this is a firmware problem, then? As 0b10 is documented as 3.3V,
which is wrong if you use a 1.8V eMMC. So doesn't the new pinctrl fix
patch overwrite this with "auto" (0b01)?
Even if not, firmware should not program the wrong values. I guess
U-Boot would similarly fail to access the eMMC with that wrong value?
Cheers,
Andre
> text of 18.14.4.6 gives for C/E/K. 01 and the fixed 1.8 V mode (11)
> both work.
>
> We can test patches for this on the A7S, SD and eMMC.
>
> Built and measured by AI agents (Claude) on my boards.
>
> Thanks,
> Norman
^ permalink raw reply [flat|nested] 34+ messages in thread* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-27 17:06 ` Andre Przywara
@ 2026-11-27 17:54 ` Norman Herms
0 siblings, 0 replies; 34+ messages in thread
From: Norman Herms @ 2026-11-27 17:54 UTC (permalink / raw)
To: Andre Przywara
Cc: Jerome Brunet, Jernej Škrabec, robh, krzk+dt, conor+dt, wens,
samuel, Enzo Adriano, Maxime Ripard, devicetree, linux-arm-kernel,
linux-sunxi, linux-kernel, Junhui Liu, Pablo Mazzini,
Vinicius Pedrosa, Alexander Sverdlin, Jun Yan, Lukas Schmid,
Cristian Filipescu
Hi Andre,
> What do you mean by that? The proper solution is to *create* a new
> regulator driver, either embedded in the pinctrl driver (make the
> pinctrl export a regulator device), or as a separate driver, using some
> pinctrl provided regmap.
[...]
> Are you using a different approach?
Yes, a different one: I only meant that there is no PMIC regulator
whose voltage could be changed, the switch is inside the pin
controller. We went with pinctrl states, and sunxi-mmc selects them in
its voltage switch when there is no vqmmc. It works, but a regulator
mux exported by the pin controller, with vqmmc pointing at it, looks
cleaner to me and needs no change in sunxi-mmc. We are happy to test
that.
> Do you mean you use vmmc-supply to point to some 1.8V regulator?
No, vmmc is SWOUT2 at 3.3 V. Without vqmmc, sunxi_mmc_volt_switch()
returns -EINVAL for 1.8 V, so the card stays at 3.3 V without UHS.
> Is that a timing issue, maybe? Maybe the sampling happens only so often,
> and you just happen to miss the change, occasionally?
We cannot rule that out. We read the detector at every SD interrupt
while PF ran at 1.8 V: in the adaptive mode it said "not 1.8 V" at 2
of 90 and 6 of 83 reads, and with the mode set by hand at 1 of 99 and
3 of 103, where the card stayed clean. Right after a switch it already
reported 1.8 V on the first read in our trace, so it does not look
like a slow detector. The USB3 combo PHY points the same way, as it
shares CLDO5 on this board: with the PHY running the failures go
away, and in older traces the detector said 3.3 V in the first 25 ms
at 1.8 V at 2 of 76 reads with the PHY off, but at 0 of 1137 with it
running. Those two traces also differ in kernel and DT, though, and a
run comparing both in the same boot never happened.
> Just to clarify: "0 of 40" means *0 fails* here, so it works?
Yes, 0 failures in 40 rebinds.
> Do you mean your patch just badly hacks those two bits to do what you
> want, by treating PortF separately, but it's not something that looks
> nice and upstreamable?
Yes, it is a special case for bank PF in the pinctrl driver. With a
regulator mux, its set_voltage would be the natural place for the
same order.
> So according to the A7A schematics VCC18-PF is a separate power supply
> pin on the SoC, and it's supplied by CLDO5.
Same on the A7S. There CLDO5 also feeds VCC-PC (the eMMC VCCQ) and the
combo PHY's analog supply, and v6 already references it as
vcc-pc-supply.
> But this is a firmware problem, then? As 0b10 is documented as 3.3V,
> which is wrong if you use a 1.8V eMMC. So doesn't the new pinctrl fix
> patch overwrite this with "auto" (0b01)?
Yes, it is a firmware problem, and yes: with the pinctrl patch the
register reads 0x05555555 under v6, so PC is in auto. Our boot chain
writes auto too; we set PC to 10 by hand at runtime to see what
happens. My point was only that 10 on PC does not behave as the
adaptive mode that the manual text gives for C/E/K. Whether U-Boot
fails with it too, we have not tested.
Built and measured by AI agents (Claude) on my boards.
Thanks,
Norman
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-26 20:35 ` [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
2026-11-27 4:29 ` Jernej Škrabec
@ 2026-11-27 11:18 ` Jerome Brunet
2026-11-27 11:23 ` Andre Przywara
2026-11-27 11:26 ` Alastair D'Silva
2 siblings, 1 reply; 34+ messages in thread
From: Jerome Brunet @ 2026-11-27 11:18 UTC (permalink / raw)
To: Enzo Adriano, andre.przywara, robh, krzk+dt, conor+dt, wens,
jernej.skrabec, samuel
Cc: Maxime Ripard, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel, Junhui Liu, Pablo Mazzini, Vinicius Pedrosa,
Alexander Sverdlin, Jun Yan, Lukas Schmid, Cristian Filipescu,
Norman Herms
On jeu. 26 nov. 2026 at 15:35, Enzo Adriano <enzo.adriano.code@gmail.com> wrote:
> 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 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 unit and shared L3 shown in section
> 5.1.2, figure 5-1. 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)
> 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 since v5:
> - Mark the I2C0 PG8/PG9 group /omit-if-no-ref/, as requested. This
> satisfies Andre's review condition.
> - Move the RTC clock include after the A733 clock headers and cite
> the A733 datasheet and A7S schematic for the I2C0 pins.
> - Fold in Andre's R-I2C1 pin group for A7A. A7S and A7Z leave
> it unused. A7S still references the I2C0 group.
> - Vinicius tested the v5 DTSI with his A7Z v1.11 board DT. Norman
> tested the v5 series on A7S. Their tags here cover the SoC DTSI.
>
> .../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..e062b08006da
> --- /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 {
> + 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";
> + };
> + };
> +
> + 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";
> + 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 = <&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>;
Even if pins are usually the same board to board, do you really want to
set this in the SoC dtsi ?
> + #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>;
> + };
> + };
> +};
>
--
Jerome
^ permalink raw reply [flat|nested] 34+ messages in thread* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-27 11:18 ` Jerome Brunet
@ 2026-11-27 11:23 ` Andre Przywara
0 siblings, 0 replies; 34+ messages in thread
From: Andre Przywara @ 2026-11-27 11:23 UTC (permalink / raw)
To: Jerome Brunet, Enzo Adriano, robh, krzk+dt, conor+dt, wens,
jernej.skrabec, samuel
Cc: Maxime Ripard, devicetree, linux-arm-kernel, linux-sunxi,
linux-kernel, Junhui Liu, Pablo Mazzini, Vinicius Pedrosa,
Alexander Sverdlin, Jun Yan, Lukas Schmid, Cristian Filipescu,
Norman Herms
Hi,
On 11/27/26 12:18, Jerome Brunet wrote:
> On jeu. 26 nov. 2026 at 15:35, Enzo Adriano <enzo.adriano.code@gmail.com> wrote:
>
>> 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 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 unit and shared L3 shown in section
>> 5.1.2, figure 5-1. 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)
>> 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 since v5:
>> - Mark the I2C0 PG8/PG9 group /omit-if-no-ref/, as requested. This
>> satisfies Andre's review condition.
>> - Move the RTC clock include after the A733 clock headers and cite
>> the A733 datasheet and A7S schematic for the I2C0 pins.
>> - Fold in Andre's R-I2C1 pin group for A7A. A7S and A7Z leave
>> it unused. A7S still references the I2C0 group.
>> - Vinicius tested the v5 DTSI with his A7Z v1.11 board DT. Norman
>> tested the v5 series on A7S. Their tags here cover the SoC DTSI.
>>
>> .../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..e062b08006da
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733.dtsi
>> @@ -0,0 +1,671 @@
[ ... ]
>> +
>> + 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>;
>
> Even if pins are usually the same board to board, do you really want to
> set this in the SoC dtsi ?
There are not "usually" the same, there are *always* the same, since
there is only one set of pins connected to each MMC controller. And in
this case we put them in the .dtsi, as done already in other SoCs before.
Cheers,
Andre
>
>> + #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>;
>> + };
>> + };
>> +};
>>
>
^ permalink raw reply [flat|nested] 34+ messages in thread
* Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
2026-11-26 20:35 ` [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description Enzo Adriano
2026-11-27 4:29 ` Jernej Škrabec
2026-11-27 11:18 ` Jerome Brunet
@ 2026-11-27 11:26 ` Alastair D'Silva
2 siblings, 0 replies; 34+ messages in thread
From: Alastair D'Silva @ 2026-11-27 11:26 UTC (permalink / raw)
To: Enzo Adriano
Cc: andre.przywara, robh, krzk+dt, conor+dt, wens, jernej.skrabec,
samuel, 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, Alastair D'Silva
On Thu, 26 Nov 2026 15:35:40 -0500, Enzo Adriano <enzo.adriano.code@gmail.com> wrote:
> 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 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 unit and shared L3 shown in section
> 5.1.2, figure 5-1. 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)
> 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 since v5:
> - Mark the I2C0 PG8/PG9 group /omit-if-no-ref/, as requested. This
> satisfies Andre's review condition.
> - Move the RTC clock include after the A733 clock headers and cite
> the A733 datasheet and A7S schematic for the I2C0 pins.
> - Fold in Andre's R-I2C1 pin group for A7A. A7S and A7Z leave
> it unused. A7S still references the I2C0 group.
> - Vinicius tested the v5 DTSI with his A7Z v1.11 board DT. Norman
> tested the v5 series on A7S. Their tags here cover the SoC DTSI.
>
> .../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..e062b08006da
> --- /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 {
> + 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";
> + };
> + };
> +
> + 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";
> + 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 = <&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>;
> + };
> + };
> +};
>
Tested on Xunlong OrangePi 4 Pro (Allwinner A733):
- Boots to shell using sun60i-a733.dtsi with UART0, MMC0, R-I2C0,
AXP318W PMIC, CCU/R-CCU, PIO/R-PIO, GIC, and PMUs initialized.
Tested-by: Alastair D'Silva <alastair@d-silva.org> # OrangePi 4 Pro
^ permalink raw reply [flat|nested] 34+ messages in thread