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