linux/drivers/pinctrl/sunxi
Andre Przywara ef56085dfd pinctrl: sunxi: A523: fix voltage withstand encoding
The Allwinner A523 uses the same GPIO voltage "withstand" programming
(setting the input level voltage thresholds) as the previous SoCs, but
for some odd reason inverts the encoding of 1.8V vs. 3.3V.

Add a new bias voltage type to note this difference, and select it for
the A523. At the same time also use the newer "CTL" version, which in
addition allows to turn off the withstand programming for I/O voltages
other than exact 1.8V or 3.3V (for instance for 2.5V sometimes used for
Ethernet PHYs). The A523 has that enable register, but didn't use it
so far.

This fixes eMMC and reportedly Ethernet operation on some A523 boards.

Fixes: 648be4cd95 ("pinctrl: sunxi: Add support for the Allwinner A523")
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Tested-by: Per Larsson <per@palvencia.se>
Tested-by: Juan Manuel Lopez Carrillo <juanmanuellopezcarrillo@gmail.com>
Reviewed-by: Chen-Yu Tsai <wens@kernel.org>
Tested-by: Chen-Yu Tsai <wens@kernel.org> # Fixes eMMC on Orange Pi 4A
Signed-off-by: Linus Walleij <linusw@kernel.org>
History 2026-09-16 19:07:42 +02:00
..
Kconfig pinctrl: sunxi: Add support for the secondary A523 GPIO ports 2025-03-13 14:48:57 +01:00
Makefile pinctrl: sunxi: Add support for the secondary A523 GPIO ports 2025-03-13 14:48:57 +01:00
pinctrl-sun4i-a10.c pinctrl: sunxi: refactor pinctrl variants into flags 2025-03-13 14:48:55 +01:00
pinctrl-sun5i.c pinctrl: sunxi: refactor pinctrl variants into flags 2025-03-13 14:48:55 +01:00
pinctrl-sun6i-a31-r.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun6i-a31.c pinctrl: sunxi: refactor pinctrl variants into flags 2025-03-13 14:48:55 +01:00
pinctrl-sun8i-a23-r.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun8i-a23.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun8i-a33.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun8i-a83t-r.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun8i-a83t.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun8i-h3-r.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun8i-h3.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun8i-v3s.c pinctrl: sunxi: v3s: Fix wrong comment about UART2 pinmux 2025-07-04 10:00:35 +02:00
pinctrl-sun9i-a80-r.c pinctrl: sunxi: sun9i-a80-r: drop driver owner assignment 2024-04-04 13:39:47 +02:00
pinctrl-sun9i-a80.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun20i-d1.c pinctrl: sunxi: refactor pinctrl variants into flags 2025-03-13 14:48:55 +01:00
pinctrl-sun50i-a64-r.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun50i-a64.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun50i-a100-r.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun50i-a100.c pinctrl: sunxi: add missed lvds pins for a100/a133 2025-01-13 15:29:23 +01:00
pinctrl-sun50i-h5.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun50i-h6-r.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun50i-h6.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun50i-h616-r.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sun50i-h616.c pinctrl: sunxi: h616: add extra gpio banks 2023-09-25 15:26:33 +02:00
pinctrl-sun55i-a523-r.c pinctrl: sunxi: A523: fix voltage withstand encoding 2026-09-16 19:07:42 +02:00
pinctrl-sun55i-a523.c pinctrl: sunxi: A523: fix voltage withstand encoding 2026-09-16 19:07:42 +02:00
pinctrl-suniv-f1c100s.c pinctrl: Explicitly include correct DT includes 2023-07-20 21:41:24 +02:00
pinctrl-sunxi-dt.c pinctrl: Simplify printks with pOF format 2025-09-12 14:19:31 +02:00
pinctrl-sunxi.c pinctrl: sunxi: A523: fix voltage withstand encoding 2026-09-16 19:07:42 +02:00
pinctrl-sunxi.h pinctrl: sunxi: A523: fix voltage withstand encoding 2026-09-16 19:07:42 +02:00