[PATCH 7/7] pinctrl: sunxi: add support for the Allwinner A733

Andre Przywara andre.przywara at arm.com
Wed Nov 25 15:31:30 PST 2026


Hi Alastair,

On 11/25/26 12:57, Alastair D'Silva wrote:
> Hi Andre,
> 
> Two issues showed up while testing this A733 pinctrl series on the
> OrangePi 4 Pro:

While it's the right idea to reply to the patch that introduces some 
problematic behaviour, there are other things to consider here:
> 1. PIO_POW_MOD_SEL (0x0040) on A733 uses 2 bits per bank instead of

But we know that for a while now...

>     1 bit. With BIAS_VOLTAGE_PIO_POW_MODE_SEL, banks are written at the
>     wrong bit offset and left misconfigured (for example, bank H stays in
>     1.8V mode when supplied at 3.3V, breaking RGMII Gigabit TX).
>     Adding a 2-bit variant (writing 0b01 per bank with mask
>     0x3U << (2 * bank)) enables hardware auto-detect from PIO_POW_VAL
>     and fixes 3.3V RGMII TX (also addressed in Vinicius Pedrosa's
>     follow-up series).

Yes, Vinicius did the right thing, since this patch you reply to here 
has already been merged. If you want to support his series, please reply 
to the specific patch *there*, ideally with a Reviewed-by:, or at least 
with a Tested-by.
Replying to this old patch here is then not too useful.

> 
> 2. PA has 0 pins on A733, so PB..PK are hardware banks 1..10 while
>     irq_banks = 10 maps logical IRQ banks 0..9. Without .irq_bank_map
>     and sunxi_irq_hw_bank_num() in sunxi_irq_base_reg(), logical IRQ
>     bank 0 (PB) accesses PA's IRQ registers (0xc0) instead of PB's
>     (0x140). Adding:
>       static const unsigned int a733_irq_bank_map[] = {
>               1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
>       };
>     and using sunxi_irq_hw_bank_num(pctl->desc, bank) inside
>     sunxi_irq_base_reg() fixes the bank offset.

Again this is an issue we know about for a while, and for which patches 
are on the list. Please look at them, they solve this problem in a 
different way.
> Also, in patch 4/7, sunxi_grp_config_reg() takes an unused
> `const struct sunxi_pinctrl *pctl` parameter that can be dropped.

This again is an issue in a patch that is already merged. If you want 
that fixed, you need to send a patch on top of v7.4-rc1, and send it 
with a Fixes: tag, so that this can be remedied before the release.
If you just want to report this issue, do this as a reply to that 
specific patch, with the original patch text cited, and your report 
inline, directly after the problematic line. After all we have this well 
hung email patch submission system, to make this very clear and 
transparent.

Cheers,
Andre

> 
> Tested on OrangePi 4 Pro (Allwinner A733).
> 
> Thanks,
> Alastair




More information about the linux-arm-kernel mailing list