Skip to content

Commit 488d704

Browse files
ConchuODlinusw
authored andcommitted
pinctrl: add polarfire soc mssio pinctrl driver
On Polarfire SoC, the Bank 2 and Bank 4 IOs connected to the Multiprocessor Subsystem (MSS) are controlled by IOMUX_CRs 1 through 6, which determine what function in routed to them, and MSSIO_BANK#_IO_CFG_CRs, which determine the configuration of each pin. Add a driver for this pin controller, including several custom properties that reflect aspects of the MSS's configuration. Reuse the Kconfig option for iomux0, since controlling MSSIOs without iomux0 routing a function to the MSSIOs in question is pointless, and routing a function to the MSSIOs is equally unhelpful if none of them are configured to make use of that function. Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Linus Walleij <linusw@kernel.org>
1 parent 6b324d1 commit 488d704

3 files changed

Lines changed: 741 additions & 3 deletions

File tree

drivers/pinctrl/microchip/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ config PINCTRL_PIC64GX
99
This selects the pinctrl driver for gpio2 on pic64gx.
1010

1111
config PINCTRL_POLARFIRE_SOC
12-
bool "Polarfire SoC pinctrl driver"
12+
bool "Polarfire SoC pinctrl drivers"
1313
depends on ARCH_MICROCHIP || COMPILE_TEST
1414
depends on OF
15-
select GENERIC_PINCONF
15+
select GENERIC_PINCTRL
1616
help
17-
This selects the pinctrl driver for Microchip Polarfire SoC.
17+
This selects the pinctrl drivers for Microchip Polarfire SoC.

drivers/pinctrl/microchip/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
obj-$(CONFIG_PINCTRL_PIC64GX) += pinctrl-pic64gx-gpio2.o
44
obj-$(CONFIG_PINCTRL_POLARFIRE_SOC) += pinctrl-mpfs-iomux0.o
5+
obj-$(CONFIG_PINCTRL_POLARFIRE_SOC) += pinctrl-mpfs-mssio.o

0 commit comments

Comments
 (0)