[PATCH 0/5] pinctrl: replace legacy bgpio_init() with its modernized alternative

Bartosz Golaszewski posted 5 patches 1 month, 3 weeks ago
drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 181 +++++++++++++++---------------
drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 154 ++++++++++++-------------
drivers/pinctrl/nuvoton/pinctrl-wpcm450.c |  44 +++++---
drivers/pinctrl/pinctrl-equilibrium.c     |  26 +++--
drivers/pinctrl/pinctrl-equilibrium.h     |   2 +-
drivers/pinctrl/stm32/pinctrl-stm32-hdp.c |  32 +++---
6 files changed, 232 insertions(+), 207 deletions(-)
[PATCH 0/5] pinctrl: replace legacy bgpio_init() with its modernized alternative
Posted by Bartosz Golaszewski 1 month, 3 weeks ago
We are in the process of modernizing the gpio-mmio interface. This
series converts all pinctrl drivers calling bgpio_init() to using the
new variant from linux/gpio/generic.h.

Linus: Please create an immutable branch containing these commits once
queued as I'll have some more changes comming on top of them - most
importantly: removing the old interface. I will need them in my tree.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
Bartosz Golaszewski (5):
      pinctrl: stm32: use new generic GPIO chip API
      pinctrl: equilibrium: use new generic GPIO chip API
      pinctrl: npcm8xx: use new generic GPIO chip API
      pinctrl: npcm7xx: use new generic GPIO chip API
      pinctrl: wpcm450: use new generic GPIO chip API

 drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 181 +++++++++++++++---------------
 drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 154 ++++++++++++-------------
 drivers/pinctrl/nuvoton/pinctrl-wpcm450.c |  44 +++++---
 drivers/pinctrl/pinctrl-equilibrium.c     |  26 +++--
 drivers/pinctrl/pinctrl-equilibrium.h     |   2 +-
 drivers/pinctrl/stm32/pinctrl-stm32-hdp.c |  32 +++---
 6 files changed, 232 insertions(+), 207 deletions(-)
---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250728-gpio-mmio-pinctrl-conv-ad0ff8d046ec

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Re: [PATCH 0/5] pinctrl: replace legacy bgpio_init() with its modernized alternative
Posted by Linus Walleij 1 month, 2 weeks ago
On Mon, Aug 11, 2025 at 5:02 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> We are in the process of modernizing the gpio-mmio interface. This
> series converts all pinctrl drivers calling bgpio_init() to using the
> new variant from linux/gpio/generic.h.
>
> Linus: Please create an immutable branch containing these commits once
> queued as I'll have some more changes comming on top of them - most
> importantly: removing the old interface. I will need them in my tree.

All patches applied to this immutable branch based on v6.17-rc1:
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/log/?h=ib-gpio_generic_chip_init

Then I have merged this to my devel branch.

Yours,
Linus Walleij