Re: [PATCH v4 0/9] pinctrl: airoha: add AN7589 support

From: Linus Walleij

Date: Mon Nov 30 2026 - 16:22:57 EST


Hi John,

On Tue, Nov 24, 2026 at 10:41 AM John Crispin <john@xxxxxxxxxxx> wrote:

> The Airoha AN7589 has a GPIO controller like the EN7581 one, with a
> third bank for 74 GPIOs in total. Its pin functions are selected
> differently: a separate IOMUX block holds a 4 bit mode field per pin,
> eight pins per register, and mode 0 makes any pin a GPIO.
>
> The first four patches prepare the shared driver and change nothing
> for the SoCs it serves today:
>
> 1. The GPIO register layout moves into the match data, so a SoC can
> describe more than 64 pins.
> 2. A function group can carry one IOMUX mode per pin. A SoC
> describes its IOMUX in the match data: the width of the mode
> field and, from patch 4, the mode that makes a pin a GPIO.
> 3. The chip SCU becomes optional, as the AN7589 needs none.
> 4. A pin requested by gpiolib is put into GPIO mode through the
> IOMUX, so no per pin gpio function is needed.
>
> Patch 5 adds the IOMUX to the syscon compatibles. Patch 6 adds the
> binding for the pin controller. Patch 7 adds the binding for the GPIO
> system controller it sits under, which also holds the PWM controller.
> Patch 8 moves the GPIO register offsets to the common header, so the
> AN7589 data can describe its own register table, with no functional
> change. Patch 9 adds the AN7589 pin data.
>
> The series applies to next-20261123 and has no dependencies.

Lee applied patch 5 so I just applied the rest to the pinctrl tree
now.

Thanks!
Linus Walleij