Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
From: Norman Herms
Date: Sat Nov 28 2026 - 15:01:26 EST
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