[PATCH v2 0/4] generic pinmux dt_node_to_map implementation/spacemit driver converted to use it

Conor Dooley posted 4 patches 1 month ago
drivers/pinctrl/pinconf.h             |  20 ++-
drivers/pinctrl/pinctrl-generic.c     | 124 ++++++++++++++----
drivers/pinctrl/spacemit/Kconfig      |   4 +-
drivers/pinctrl/spacemit/pinctrl-k1.c | 177 ++------------------------
4 files changed, 128 insertions(+), 197 deletions(-)
[PATCH v2 0/4] generic pinmux dt_node_to_map implementation/spacemit driver converted to use it
Posted by Conor Dooley 1 month ago
From: Conor Dooley <conor.dooley@microchip.com>

Hey folks,

Here's a real version of my generic pinmux dt_node_to_map
implementation. I tested this on my bpif3 but the dts in mainline is
very limited in terms of pinctrl use so I would really appreciate any
testing that could be done with a more complete setup.

If you try to apply this, it's on top of Frank's mux series. It's also
here if any of the spacemit-ters want to look at what I did to their
driver:
https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/log/?h=spacemit-pinctrl

Cheers,
Conor.

CC: Linus Walleij <linusw@kernel.org>
CC: Yixun Lan <dlan@kernel.org>
CC: Conor Dooley <conor.dooley@microchip.com>
CC: Troy Mitchell <troy.mitchell@linux.spacemit.com>
CC: linux-gpio@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: linux-riscv@lists.infradead.org
CC: spacemit@lists.linux.dev

Conor Dooley (4):
  pinctrl: generic: change signature of pinctrl_generic_to_map() to pass
    void data
  pinctrl: add new generic groups/function creation function for pinmux
  pinctrl: spacemit: delete spacemit_pctrl_check_power()
  pinctrl: spacemit: move over to generic pinmux dt_node_to_map
    implementation

 drivers/pinctrl/pinconf.h             |  20 ++-
 drivers/pinctrl/pinctrl-generic.c     | 124 ++++++++++++++----
 drivers/pinctrl/spacemit/Kconfig      |   4 +-
 drivers/pinctrl/spacemit/pinctrl-k1.c | 177 ++------------------------
 4 files changed, 128 insertions(+), 197 deletions(-)

-- 
2.53.0
Re: [PATCH v2 0/4] generic pinmux dt_node_to_map implementation/spacemit driver converted to use it
Posted by Linus Walleij 3 weeks, 2 days ago
On Tue, May 19, 2026 at 11:37 AM Conor Dooley <conor@kernel.org> wrote:

> Here's a real version of my generic pinmux dt_node_to_map
> implementation. I tested this on my bpif3 but the dts in mainline is
> very limited in terms of pinctrl use so I would really appreciate any
> testing that could be done with a more complete setup.
>
> If you try to apply this, it's on top of Frank's mux series. It's also
> here if any of the spacemit-ters want to look at what I did to their
> driver:
> https://git.kernel.org/pub/scm/linux/kernel/git/conor/linux.git/log/?h=spacemit-pinctrl

I just applied it and it seems to work, at least it compiles!

No point in waiting for more review comments, let's ship it and see
what happens.

Yours,
Linus Walleij