[PATCH v3 0/6] Microchip mpfs/pic64gx pinctrl part 2

Conor Dooley posted 6 patches 2 weeks, 5 days ago
There is a newer version of this series
.../pinctrl/microchip,mpfs-pinctrl-mssio.yaml | 109 +++
.../microchip,mpfs-mss-top-sysreg.yaml        |   4 +
MAINTAINERS                                   |   6 +-
.../dts/microchip/mpfs-icicle-kit-common.dtsi |   1 -
.../dts/microchip/mpfs-icicle-kit-fabric.dtsi |  63 ++
.../boot/dts/microchip/mpfs-pinctrl.dtsi      | 167 ++++
arch/riscv/boot/dts/microchip/mpfs.dtsi       |  16 +
drivers/pinctrl/Kconfig                       |  25 +-
drivers/pinctrl/Makefile                      |   4 +-
drivers/pinctrl/microchip/Kconfig             |  19 +
drivers/pinctrl/microchip/Makefile            |   5 +
.../{ => microchip}/pinctrl-mpfs-iomux0.c     |   8 +-
.../pinctrl/microchip/pinctrl-mpfs-mssio.c    | 737 ++++++++++++++++++
.../{ => microchip}/pinctrl-pic64gx-gpio2.c   |   2 +-
drivers/pinctrl/pinconf.h                     |  16 +
drivers/pinctrl/pinctrl-generic.c             | 189 +++++
16 files changed, 1343 insertions(+), 28 deletions(-)
create mode 100644 Documentation/devicetree/bindings/pinctrl/microchip,mpfs-pinctrl-mssio.yaml
create mode 100644 arch/riscv/boot/dts/microchip/mpfs-pinctrl.dtsi
create mode 100644 drivers/pinctrl/microchip/Kconfig
create mode 100644 drivers/pinctrl/microchip/Makefile
rename drivers/pinctrl/{ => microchip}/pinctrl-mpfs-iomux0.c (98%)
create mode 100644 drivers/pinctrl/microchip/pinctrl-mpfs-mssio.c
rename drivers/pinctrl/{ => microchip}/pinctrl-pic64gx-gpio2.c (99%)
create mode 100644 drivers/pinctrl/pinctrl-generic.c
[PATCH v3 0/6] Microchip mpfs/pic64gx pinctrl part 2
Posted by Conor Dooley 2 weeks, 5 days ago
From: Conor Dooley <conor.dooley@microchip.com>

Hey Linus,

v3 here, with the rfc dropped. I've still got the property checking
stuff in my todo-list but not tested it sufficiently after the changes
to add generic string properties yet.
I only moved my drivers into the microchip dir, I'll come along and do a
pass on the rest if you're happy with what's here.

Cheers,
Conor.

changes in v3:
- drop the todos
- rename the kconfig symbol
- move my drivers into a microchip dir
- use power-source instead of custom property

main changes in v2:
- bank voltage is now controllable from dt
- bank lockdown no longer controllable from dt
- dt_node_to_map callback is now a(n attempt at a) new generic function
- some schmitt properties now no longer supported

CC: Linus Walleij <linus.walleij@linaro.org>
CC: Rob Herring <robh@kernel.org>
CC: Krzysztof Kozlowski <krzk+dt@kernel.org>
CC: linux-kernel@vger.kernel.org
CC: linux-gpio@vger.kernel.org
CC: devicetree@vger.kernel.org
CC: Valentina.FernandezAlanis@microchip.com

Conor Dooley (6):
  pinctrl: move microchip riscv pinctrl drivers to a folder
  pinctrl: add generic functions + pins mapper
  dt-bindings: pinctrl: document polarfire soc mssio pin controller
  pinctrl: add polarfire soc mssio pinctrl driver
  MAINTAINERS: add Microchip mpfs mssio driver/bindings to entry
  riscv: dts: microchip: add pinctrl nodes for mpfs/icicle kit

 .../pinctrl/microchip,mpfs-pinctrl-mssio.yaml | 109 +++
 .../microchip,mpfs-mss-top-sysreg.yaml        |   4 +
 MAINTAINERS                                   |   6 +-
 .../dts/microchip/mpfs-icicle-kit-common.dtsi |   1 -
 .../dts/microchip/mpfs-icicle-kit-fabric.dtsi |  63 ++
 .../boot/dts/microchip/mpfs-pinctrl.dtsi      | 167 ++++
 arch/riscv/boot/dts/microchip/mpfs.dtsi       |  16 +
 drivers/pinctrl/Kconfig                       |  25 +-
 drivers/pinctrl/Makefile                      |   4 +-
 drivers/pinctrl/microchip/Kconfig             |  19 +
 drivers/pinctrl/microchip/Makefile            |   5 +
 .../{ => microchip}/pinctrl-mpfs-iomux0.c     |   8 +-
 .../pinctrl/microchip/pinctrl-mpfs-mssio.c    | 737 ++++++++++++++++++
 .../{ => microchip}/pinctrl-pic64gx-gpio2.c   |   2 +-
 drivers/pinctrl/pinconf.h                     |  16 +
 drivers/pinctrl/pinctrl-generic.c             | 189 +++++
 16 files changed, 1343 insertions(+), 28 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pinctrl/microchip,mpfs-pinctrl-mssio.yaml
 create mode 100644 arch/riscv/boot/dts/microchip/mpfs-pinctrl.dtsi
 create mode 100644 drivers/pinctrl/microchip/Kconfig
 create mode 100644 drivers/pinctrl/microchip/Makefile
 rename drivers/pinctrl/{ => microchip}/pinctrl-mpfs-iomux0.c (98%)
 create mode 100644 drivers/pinctrl/microchip/pinctrl-mpfs-mssio.c
 rename drivers/pinctrl/{ => microchip}/pinctrl-pic64gx-gpio2.c (99%)
 create mode 100644 drivers/pinctrl/pinctrl-generic.c

-- 
2.51.0
Re: [PATCH v3 0/6] Microchip mpfs/pic64gx pinctrl part 2
Posted by Linus Walleij 2 weeks, 4 days ago
On Mon, Jan 19, 2026 at 12:04 PM Conor Dooley <conor@kernel.org> wrote:

> v3 here, with the rfc dropped. I've still got the property checking
> stuff in my todo-list but not tested it sufficiently after the changes
> to add generic string properties yet.
> I only moved my drivers into the microchip dir, I'll come along and do a
> pass on the rest if you're happy with what's here.

Looks good!

I could not apply the patches because I have Johans patch removing
the default y in my tree, could you rebase on my "devel" branch?
https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/log/?h=devel

Pls make sure patch 1 does not re-introduce default y...

Then I will apply the first 5 patches (patch 6 goes to the SoC tree).

Yours,
Linus Walleij
Re: [PATCH v3 0/6] Microchip mpfs/pic64gx pinctrl part 2
Posted by Conor Dooley 2 weeks, 3 days ago
On Tue, Jan 20, 2026 at 12:45:05AM +0100, Linus Walleij wrote:
> On Mon, Jan 19, 2026 at 12:04 PM Conor Dooley <conor@kernel.org> wrote:
> 
> > v3 here, with the rfc dropped. I've still got the property checking
> > stuff in my todo-list but not tested it sufficiently after the changes
> > to add generic string properties yet.
> > I only moved my drivers into the microchip dir, I'll come along and do a
> > pass on the rest if you're happy with what's here.
> 
> Looks good!
> 
> I could not apply the patches because I have Johans patch removing
> the default y in my tree, could you rebase on my "devel" branch?
> https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl.git/log/?h=devel
> 
> Pls make sure patch 1 does not re-introduce default y...

Oh, I didn't notice that patch. Guess it went in over Christmas - I had
a month off basically and barely read the lists :)