Re: [PATCH 0/3] arm64: dts: allwinner: add Radxa Cubie A7Z support
From: Andre Przywara
Date: Mon Nov 23 2026 - 07:11:44 EST
Hi,
On 11/23/26 12:15, Vinicius Pedrosa wrote:
On Sat, Nov 21, 2026 at 12:14 AM Chen-Yu Tsai <wens@xxxxxxxxxx> wrote:
There seem to be 3 revisions of A7Z. Which one are you targeting? Or are
there no differences as far as the OS is concerned?
I'm targeting V1.11, which is the board I have and tested.
I think we should aim to support both variants with one DT. I don't think it's nice to expect users to pick the right version. The board I have is v1.10, and it's about a year old. I think there is an even earlier batch, having been sent out in summer of 2025.
I think the DT can be made compatible with both v1.10 and v1.11, and probably even v2.00 later:
I compared the published schematics. V1.10 differs from V1.11 in two
places relevant to this DT:
On V1.10, BLDOIN comes from SWOUT2 and CLDOIN from PS. V1.11 uses a
separate SY8089 step-down regulator at 2.4 V for both.
Both SWOUT2 and PS are always-on, and this SY8089 regulator seems to have no enable control as well. So the DT dependencies should be only cosmetic. So it shouldn't hurt keeping the regulator, just adding a comment about the v1.10 not having it.
V1.11 adds a 10k external pull-up (R59) to the microSD card-detect line,
which V1.10 doesn't have.
Argh, on the v1.10 I need to enable the internal pull-down(!) to make the switch work. So I guess it connects to Vdd internally if an SD card is in? In the v1.11 schematic it looks like D1 and D2 form the two sides of the switch, and the other side (D2) is connected to GND. So the switch trigger is probably inverted?
When I leave the pull register bits at 0, the readout is inconsistent (goes to high when a card is inserted, but stays there when removed).
I wonder if this works anyway with using both the internal pull-down and potentially external pull-up resistors? As one would win over the other?
Can you try how your board behaves with:
cd-gpios = <&pio 5 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
Let's hope this works ...
Cheers,
Andre
So the power supplies and card-detect configuration would need changes
for V1.10.
From the V2.00 schematic, the parts covered by this DT (PMIC, microSD,
LED and UART) appear unchanged from V1.11. V2.00 adds MIPI DSI, a second
CSI connector and a backlight driver, none of which are described here.
Would you prefer keeping this DT for V1.11 (and V2.00), with a separate
DT for V1.10 if needed, or splitting the revision-specific parts now?
I also saw Andre's review of Enzo's v4 [1]. I'll apply the relevant
changes to this DT, including removing the MMC alias and revisiting the
regulator descriptions and constraints. I'll wait for Enzo's v5, test on
my V1.11 board and send a v2 with those changes and the LED patch
squashed into the board DT, as Krzysztof requested.
[1] https://lore.kernel.org/all/20261122003932.568c099c@xxxxxxxxx/
Thanks,
Vinicius