Re: [PATCH v4] pinctrl: sunxi: use automatic voltage detection on A733
From: Alastair D'Silva
Date: Thu Nov 26 2026 - 16:10:07 EST
On Thu, Nov 26, 2026 at 03:33:36PM -0500, Enzo Adriano wrote:
> A733 uses two-bit voltage-mode fields, but the handlers selected when
> v7.4-rc1 added A733 support program them as one-bit fields. The R-PIO
> handler also writes an A523 control register absent on A733.
>
> Add BIAS_VOLTAGE_PIO_POW_AUTO to select auto (01) in every field of
> POW_MOD_SEL at controller init and skip per-pin voltage setup. Use it
> for both A733 controllers: the A733 User Manual v1.00 documents 01 as
> auto in sections 18.14.6.1 and 18.14.7.20. Give A733-R a separate
> descriptor so A523-R keeps its existing voltage handling.
>
> On Orange Pi 4 Pro, the one-bit handler leaves bank H in 1.8 V mode
> while supplied at 3.3 V, breaking RGMII Gigabit TX. Alastair D'Silva
> reported that selecting auto mode restores TX.
>
> Fixes: 0535bfbfa97b ("pinctrl: sunxi: add support for the Allwinner A733")
> Fixes: 31d68e10381c ("pinctrl: sunxi: a523-r: add a733-r compatible string")
> Link: https://lore.kernel.org/r/20261107000135.6b684277@xxxxxxxxx
> Reported-by: Alastair D'Silva <alastair@xxxxxxxxxxx>
> Closes: https://lore.kernel.org/r/20261125115703.3724690-1-alastair@xxxxxxxxxxx
> Suggested-by: Andre Przywara <andre.przywara@xxxxxxx>
> Suggested-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@xxxxxxxxx>
> Tested-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa@xxxxxxxxx> # Radxa Cubie A7Z
> Tested-by: Norman Herms <dockseed@xxxxxxxxx> # Radxa Cubie A7S (A733)
> Signed-off-by: Enzo Adriano <enzo.adriano.code@xxxxxxxxx>
Verified on Orange Pi 4 Pro: PIO_POW_MOD_SEL (0x02000040) reads
0x05555555 and 3.3 V RGMII Gigabit TX on bank H works at 1Gbps/Full
(DHCP, ping, and iperf3).
Reviewed-by: Alastair D'Silva <alastair@xxxxxxxxxxx>
Tested-by: Alastair D'Silva <alastair@xxxxxxxxxxx> # Orange Pi 4 Pro (A733)