[PATCH v4] pinctrl: sunxi: use automatic voltage detection on A733
Alastair D'Silva
alastair at d-silva.org
Thu Nov 26 13:09:55 PST 2026
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@ryzen.lan
> Reported-by: Alastair D'Silva <alastair at d-silva.org>
> Closes: https://lore.kernel.org/r/20261125115703.3724690-1-alastair@d-silva.org
> Suggested-by: Andre Przywara <andre.przywara at arm.com>
> Suggested-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa at gmail.com>
> Tested-by: Vinicius Pedrosa <vinicius.eduardo.pedrosa at gmail.com> # Radxa Cubie A7Z
> Tested-by: Norman Herms <dockseed at proton.me> # Radxa Cubie A7S (A733)
> Signed-off-by: Enzo Adriano <enzo.adriano.code at gmail.com>
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 at d-silva.org>
Tested-by: Alastair D'Silva <alastair at d-silva.org> # Orange Pi 4 Pro (A733)
More information about the linux-arm-kernel
mailing list