diff options
| author | Andre Przywara <andre.przywara@arm.com> | 2026-09-14 12:07:44 +0200 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-09-16 19:07:42 +0200 |
| commit | ef56085dfd1df3a53ecce8a4ff440cf6d67f430d (patch) | |
| tree | 573a60d1fe944f3858df07a1fd524d817ce375fd /drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c | |
| parent | a13f7f5d14af9baf34eb12c25962f8d3542b281d (diff) | |
| download | linux-next-ef56085dfd1df3a53ecce8a4ff440cf6d67f430d.tar.gz linux-next-ef56085dfd1df3a53ecce8a4ff440cf6d67f430d.zip | |
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: 648be4cd9517 ("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>
Diffstat (limited to 'drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c')
| -rw-r--r-- | drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c b/drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c index 462aa1c4a5fa..e27e4945def2 100644 --- a/drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c +++ b/drivers/pinctrl/sunxi/pinctrl-sun55i-a523-r.c @@ -26,7 +26,7 @@ static const u8 a523_r_irq_bank_muxes[SUNXI_PINCTRL_MAX_BANKS] = static struct sunxi_pinctrl_desc a523_r_pinctrl_data = { .irq_banks = ARRAY_SIZE(a523_r_irq_bank_map), .irq_bank_map = a523_r_irq_bank_map, - .io_bias_cfg_variant = BIAS_VOLTAGE_PIO_POW_MODE_SEL, + .io_bias_cfg_variant = BIAS_VOLTAGE_PIO_POW_MODE_CTL_INV, .pin_base = PL_BASE, }; |
