Re: [PATCH v6 2/5] arm64: dts: allwinner: add A733 SoC description
From: Norman Herms
Date: Fri Nov 27 2026 - 11:38:11 EST
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