Skip to content

generic pinmux dt_node_to_map implementation/spacemit driver converted to use it

Conor Dooley linux-gpio linux-riscv lkml spacemit 2 versions – In review

Get series with b4
b4 am 20260519-germinate-ageless-631033d22797@spud

Versions newest first · linked by author and title

  1. v2 Latest4 patches 3 repliesIn review
  2. v1 RFC4 patches 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4pinctrl: generic: change signature of pinctrl_generic_to_map() to pass void datadrivers/pinctrl/pinconf.h drivers/pinctrl/pinctrl-generic.c+4 -70 replies
2/4pinctrl: add new generic groups/function creation function for pinmuxdrivers/pinctrl/pinconf.h drivers/pinctrl/pinctrl-generic.c+112 -211 reply
3/4pinctrl: spacemit: delete spacemit_pctrl_check_power()drivers/pinctrl/spacemit/pinctrl-k1.c+0 -370 replies
4/4pinctrl: spacemit: move over to generic pinmux dt_node_to_map implementationdrivers/pinctrl/spacemit/Kconfig drivers/pinctrl/spacemit/pinctrl-k1.c+12 -1321 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchTroy Mitchell
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

From: Conor Dooley <[email protected]>

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.

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(-)
Signature · 1 line
2.53.0