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

Linus Walleij linusw at kernel.org
Tue May 5 05:43:55 PDT 2026


Hi Khristine,

thanks for your patch!

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

> From: Andrei Stefanescu <andrei.stefanescu at oss.nxp.com>
>
> 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@oss.nxp.com/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 at oss.nxp.com>
> Signed-off-by: Khristine Andreea Barbulescu <khristineandreea.barbulescu at oss.nxp.com>

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



More information about the linux-arm-kernel mailing list