From: Andre Przywara <andre.przywara@arm.com>
To: wens@kernel.org, Enzo Adriano <enzo.adriano.code@gmail.com>
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
jernej.skrabec@gmail.com, samuel@sholland.org,
Maxime Ripard <mripard@kernel.org>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org,
Junhui Liu <junhui.liu@pigmoral.tech>,
Jerome Brunet <jbrunet@baylibre.com>,
Pablo Mazzini <pmazzini@gmail.com>,
Vinicius Pedrosa <vinicius.eduardo.pedrosa@gmail.com>,
Alexander Sverdlin <alex@sverdlin.org>,
Jun Yan <jerrysteve1101@gmail.com>,
Lukas Schmid <lukas.schmid@netcube.li>,
Cristian Filipescu <filipescu.cristian@gmail.com>,
Norman Herms <dockseed@proton.me>
Subject: Re: [PATCH v6 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board
Date: Thu, 3 Dec 2026 16:58:58 +0100 [thread overview]
Message-ID: <143a6606-266c-4778-ae21-4289054d2e40@arm.com> (raw)
In-Reply-To: <CAGb2v667t-rGNaJJP5vS=EPryjOQ08nJ+XWpu3jjsODv+p26Eg@mail.gmail.com>
Hi Chen-Yu,
thanks for devoting some of your precious time on this!
On 12/3/26 16:30, Chen-Yu Tsai wrote:
> On Fri, Nov 27, 2026 at 5:36 AM Enzo Adriano
> <enzo.adriano.code@gmail.com> wrote:
>>
>> From: Andre Przywara <andre.przywara@arm.com>
>>
>> The Radxa Cubie A7A is a single board computer using the Allwinner A733
>> SoC. It features:
>> - Allwinner A733 SoC (6*Arm Cortex-A55 + 2*Arm Cortex-A76)
>> - Imagination BXM-4-64 MC1 GPU and 3 TOPS NPU
>> - 2-16 GiB LPDDR5 DRAM
>> - AXP318W PMIC
>> - eMMC and UFS socket
>> - single lane PCIe 3.0 via FPC connector
>> - microSD card slot
>> - bootable SPI NOR flash
>> - HDMI 2.0 and MIPI-DSI connector
>> - MIPI-CSI camera connector
>> - GBit Ethernet socket, with optional POE support
>> - unknown Bluetooth and WiFi
>> - USB-C 2.0 OTG port (also primary power supply)
>> - USB-A 3.1 host port
>> - 3* USB-A 2.0 host ports (via hub)
>> - 40 pin GPIO connector
>>
>> Add initial support for the peripherals we have DT bindings for so far,
>> including UART, PMIC, SD card, some EEPROM and an external RTC chip.
>> The PMIC rails assignment has been determined by the schematic.
>>
>> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>> Signed-off-by: Enzo Adriano <enzo.adriano.code@gmail.com>
>> ---
>> Changes since the DT series v5:
>> - Add Andre's posted Cubie A7A board patch. It now gets its R-I2C1
>> pin group from the common DTSI. The board DTS is identical to the
>> posted version. The Makefile context includes the A7Z entry.
>>
>> Link: https://lore.kernel.org/r/20261126172253.1097838-3-andre.przywara@arm.com
>>
>> arch/arm64/boot/dts/allwinner/Makefile | 1 +
>> .../dts/allwinner/sun60i-a733-cubie-a7a.dts | 385 ++++++++++++++++++
>> 2 files changed, 386 insertions(+)
>> create mode 100644 arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
>>
>> diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
>> index 62fab1d727d0..cdeb966031ee 100644
>> --- a/arch/arm64/boot/dts/allwinner/Makefile
>> +++ b/arch/arm64/boot/dts/allwinner/Makefile
>> @@ -69,5 +69,6 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun55i-a527-cubie-a5e.dtb
>> dtb-$(CONFIG_ARCH_SUNXI) += sun55i-h728-x96qpro+.dtb
>> dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-avaota-a1.dtb
>> dtb-$(CONFIG_ARCH_SUNXI) += sun55i-t527-orangepi-4a.dtb
>> +dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7a.dtb
>> dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7s.dtb
>> dtb-$(CONFIG_ARCH_SUNXI) += sun60i-a733-cubie-a7z.dtb
>> diff --git a/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
>> new file mode 100644
>> index 000000000000..9017cadf6c6a
>> --- /dev/null
>> +++ b/arch/arm64/boot/dts/allwinner/sun60i-a733-cubie-a7a.dts
>> @@ -0,0 +1,385 @@
>> +// SPDX-License-Identifier: (GPL-2.0-only OR MIT)
>> +/*
>> + * Copyright (c) 2026 Arm Ltd.
>> + */
>> +
>> +/dts-v1/;
>> +
>> +#include "sun60i-a733.dtsi"
>> +
>> +#include <dt-bindings/gpio/gpio.h>
>> +#include <dt-bindings/leds/common.h>
>> +
>> +/ {
>> + model = "Radxa Cubie A7A";
>> + compatible = "radxa,cubie-a7a", "allwinner,sun60i-a733";
>> +
>> + aliases {
>> + serial0 = &uart0;
>> + };
>> +
>> + chosen {
>> + stdout-path = "serial0:115200n8";
>> + };
>> +
>> + leds {
>> + compatible = "gpio-leds";
>> +
>> + power-led {
>> + function = LED_FUNCTION_POWER;
>> + color = <LED_COLOR_ID_GREEN>;
>> + /*
>> + * The LED is connected between VCC and GND, so it
>> + * turns on as soon as the board gets power. But a
>> + * transistor allows to pull down the anode to GND,
>> + * so the LED can be turned off.
>> + */
>> + gpios = <&pio 9 26 GPIO_ACTIVE_LOW>; /* PJ26 */
>> + default-state = "on";
>> + };
>> +
>> + status-led {
>> + function = LED_FUNCTION_STATUS;
>> + color = <LED_COLOR_ID_BLUE>;
>> + gpios = <&pio 9 27 GPIO_ACTIVE_HIGH>; /* PJ27 */
>> + };
>> + };
>> +
>> + osc32k: osc32k-clk {
>
> Name needs to be changed to match the current expected pattern, and
> then the node moved accordingly.
Sure, Enzo did this already (at least the rename).
>
>> + compatible = "fixed-clock";
>> + #clock-cells = <0>;
>> + clock-frequency = <32768>;
>> + };
>> +
>> + /* discrete SY8089A DC/DC step-down regulator */
>> + reg_vcc2v4: regulator-2v4 {
>> + compatible = "regulator-fixed";
>> + regulator-name = "ldo-input";
>> + regulator-min-microvolt = <2400000>;
>> + regulator-max-microvolt = <2400000>;
>> + regulator-always-on;
>
> regulator-always-on on an uncontrollable fixed regulator can be dropped.
>
>> + vin-supply = <®_vcc5v>;
>> + };
>> +
>> + /* board wide 5V supply from the USB-C connector */
>> + reg_vcc5v: regulator-5v {
>> + compatible = "regulator-fixed";
>> + regulator-name = "vcc-5v";
>> + regulator-min-microvolt = <5000000>;
>> + regulator-max-microvolt = <5000000>;
>> + regulator-always-on;
>
> Same here.
>
> [...]
>
>> +&mmc0 {
>> + bus-width = <4>;
>> + cap-sd-highspeed;
>> + cap-mmc-highspeed;
>> + cap-sdio-irq;
>
> No SDIO.
>
>> + cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
>> + disable-wp;
>> + vmmc-supply = <®_swout2>;
>> + status = "okay";
>> +};
>> +
>> +&hosc {
>> + clock-frequency = <26000000>;
>> +};
>
> References by label should be ordered by the label name. So this goes above
> &i2c0.
Ah yes, this got renamed, and I missed moving it.
>> +
>> +&pio {
>> + vcc-pb-supply = <®_swout2>; // via VCC-IO
>
> Use C style (/* ... */) comments.
>
>> + vcc-pc-supply = <®_cldo5>;
>> + vcc-pd-supply = <®_swout1>;
>> + vcc-pe-supply = <®_bldo1>;
>> + vcc-pf-supply = <®_swout2>; // via VCC-IO
>
> Same here.
>
>> + vcc-pg-supply = <®_aldo1>;
>> + vcc-ph-supply = <®_swout2>; // via VCC-IO
>
> And here.
Ack.
>
>> + vcc-pj-supply = <®_swout1>;
>> + vcc-pk-supply = <®_aldo1>;
>> +};
>> +
>> +&r_i2c0 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&r_i2c0_pl_pins>;
>> + status = "okay";
>> +
>> + axp318w: pmic@36 {
>> + compatible = "x-powers,axp318w";
>> + reg = <0x36>;
>
>> + interrupt-parent = <&nmi_intc>;
>> + interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
>
> Use interrupts-extended.
Will do.
>
>> + interrupt-controller;
>> + #interrupt-cells = <1>;
>> +
>
> Drop the empty line.
Oh yeah, copy & pasted ...
>
>> + aldo156in-supply = <®_vcc5v>;
>> + aldo234in-supply = <®_aldo1>;
>> + bldoin-supply = <®_vcc2v4>;
>> + cldoin-supply = <®_vcc2v4>;
>> + dldoin-supply = <®_vcc5v>;
>> + eldoin-supply = <®_dcdc9>;
>> + ips-supply = <®_vcc5v>;
>> + vin19-supply = <®_vcc5v>;
>> + vin23-supply = <®_vcc5v>;
>> + vin45-supply = <®_vcc5v>;
>> + vin678-supply = <®_vcc5v>;
>> +
>> + regulators {
>> + reg_dcdc1: dcdc1 {
>> + /* VCC3V3 on GPIO connector and power LED */
>> + regulator-name = "vcc-wifi-hub-pci-gpio-led";
>> + regulator-min-microvolt = <3300000>;
>> + regulator-max-microvolt = <3300000>;
>> + regulator-always-on;
>> + };
>> +
>> + reg_dcdc2: dcdc2 {
>> + regulator-name = "vdd-sys-dram-ve-combo";
>> + regulator-min-microvolt = <800000>;
>> + regulator-max-microvolt = <800000>;
>> + regulator-always-on;
>> + };
>
> Child nodes should be in alphabetical order when there are no addresses
> involved. I know we didn't do this in the past, but the coding style
> says so. So please fix the order of all the regulator nodes.
Uh, OK.
> [...]
>
>> + reg_swout2: swout2 {
>> + /* SoC VCC-IO and USB 3.3V supply #2 */
>> + regulator-name = "vcc-io-sd-emmc-ph-usb";
>
> [...]
>
>> +&r_i2c1 {
>> + pinctrl-names = "default";
>> + pinctrl-0 = <&r_i2c1_pl_pins>;
>> + status = "okay";
>> +
>> + rtc@51 {
>> + compatible = "haoyu,hym8563";
>> + reg = <0x51>;
>> + #clock-cells = <0>;
>> + interrupt-parent = <&r_pio>;
>> + interrupts = <0 3 IRQ_TYPE_EDGE_FALLING>; /* PL3 */
>
> Should be IRQ_TYPE_LEVEL_LOW. And please switch to interrupts-extended.
Ah, good point. There are examples with both trigger types in the tree,
and I just copied from the wrong one. I just checked the datasheet, the
description in there reads like level triggered indeed (write-to-clear).
Thanks,
Andre
next prev parent reply other threads:[~2026-12-03 15:59 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 20:35 [PATCH v6 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Enzo Adriano
2026-11-26 20:35 ` [PATCH v6 1/5] dt-bindings: arm: sunxi: document Radxa Cubie A7A, A7S and A7Z Enzo Adriano
2026-11-26 23:16 ` Andre Przywara
2026-12-01 5:18 ` Krzysztof Kozlowski
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 18:06 ` Enzo Adriano
2026-11-28 14:59 ` Daniel Golle
2026-11-28 20:01 ` Norman Herms
2026-11-30 23:55 ` Enzo Adriano
2026-11-28 20:18 ` Enzo Adriano
2026-11-28 17:38 ` Jernej Škrabec
2026-11-27 11:28 ` Jerome Brunet
2026-11-27 16:37 ` Norman Herms
2026-11-27 17:06 ` Andre Przywara
2026-11-27 17:54 ` Norman Herms
2026-11-27 11:18 ` Jerome Brunet
2026-11-27 11:23 ` Andre Przywara
2026-11-27 11:26 ` Alastair D'Silva
2026-12-03 14:32 ` Chen-Yu Tsai
2026-11-26 20:35 ` [PATCH v6 3/5] arm64: dts: allwinner: add Radxa Cubie A7S board Enzo Adriano
2026-11-27 0:24 ` Andre Przywara
2026-11-27 16:17 ` Norman Herms
2026-11-27 16:30 ` Andre Przywara
2026-11-27 17:00 ` Norman Herms
2026-11-28 20:18 ` Enzo Adriano
2026-11-27 18:07 ` Enzo Adriano
2026-12-03 15:21 ` Chen-Yu Tsai
2026-11-27 16:14 ` Norman Herms
2026-11-27 18:07 ` Enzo Adriano
2026-12-03 15:00 ` Chen-Yu Tsai
2026-12-03 16:25 ` Enzo Adriano
2026-11-26 20:35 ` [PATCH v6 4/5] arm64: dts: allwinner: add Radxa Cubie A7Z board Enzo Adriano
[not found] ` <sashiko-outbox-236169@kernel.org>
2026-11-27 18:07 ` Enzo Adriano
2026-11-30 11:07 ` Vinicius Pedrosa
2026-12-03 15:05 ` Chen-Yu Tsai
2026-12-03 15:13 ` Chen-Yu Tsai
2026-11-26 20:36 ` [PATCH v6 5/5] arm64: dts: allwinner: add Radxa Cubie A7A board Enzo Adriano
2026-11-27 11:33 ` Jerome Brunet
2026-11-27 11:56 ` Andre Przywara
2026-11-27 18:07 ` Enzo Adriano
2026-11-27 18:36 ` Andre Przywara
2026-12-01 17:00 ` Andre Przywara
2026-12-01 21:35 ` Enzo Adriano
2026-12-03 15:30 ` Chen-Yu Tsai
2026-12-03 15:58 ` Andre Przywara [this message]
2026-12-03 10:44 ` [PATCH v6 0/5] arm64: dts: allwinner: add A733 and Radxa Cubie A7 support Andre Przywara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=143a6606-266c-4778-ae21-4289054d2e40@arm.com \
--to=andre.przywara@arm.com \
--cc=alex@sverdlin.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dockseed@proton.me \
--cc=enzo.adriano.code@gmail.com \
--cc=filipescu.cristian@gmail.com \
--cc=jbrunet@baylibre.com \
--cc=jernej.skrabec@gmail.com \
--cc=jerrysteve1101@gmail.com \
--cc=junhui.liu@pigmoral.tech \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=lukas.schmid@netcube.li \
--cc=mripard@kernel.org \
--cc=pmazzini@gmail.com \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=vinicius.eduardo.pedrosa@gmail.com \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox