Re: [PATCH 6/7] pinctrl: s32cc: implement GPIO functionality

From: Linus Walleij

Date: Tue May 05 2026 - 08:44:49 EST


Hi Khristine,

thanks for your patch!

On Mon, May 4, 2026 at 2:42 PM Khristine Andreea Barbulescu
<khristineandreea.barbulescu@xxxxxxxxxxx> wrote:

> From: Andrei Stefanescu <andrei.stefanescu@xxxxxxxxxxx>
>
> Add basic GPIO functionality (request, free, get, set) for
> the existing pinctrl SIUL2 driver since the hardware for
> pinctrl&GPIO is tightly coupled.
>
> The updated SIUL2 block groups pinctrl, GPIO data access
> and interrupt control within the same hardware unit.
> The SIUL2 driver is therefore structured as a monolithic
> pinctrl/GPIO driver.
>
> This change came as a result of upstream review in the
> following series:
> https://lore.kernel.org/linux-gpio/20260120115923.3463866-4-khristineandreea.barbulescu@xxxxxxxxxxx/T/#m543c9edbdde74bdc68b6a2364e8b975356c33043
>
> Support both SIUL2 DT layouts:
> - legacy pinctrl-only binding
> - extended pinctrl/GPIO/irqchip binding
>
> Also, remove pinmux_ops which are no longer needed.
>
> Signed-off-by: Andrei Stefanescu <andrei.stefanescu@xxxxxxxxxxx>
> Signed-off-by: Khristine Andreea Barbulescu <khristineandreea.barbulescu@xxxxxxxxxxx>

This looks good, but if you're overhauling the regmap handling,
have you taken a look at the gpio-regmap library?

select GPIO_REGMAP
#include <linux/gpio/regmap.h>
git grep gpio_regmap_config <- yields examples

Yours,
Linus Walleij