Skip to contentSkip to conversation

pinctrl: mtmips: add support for MediaTek MT7620 SoC

PATCH New Weijie Gao 1 participant 1 message Oct 16, 2020

Subsystems (2)
lore
Share & tools
lore

Weijie Gao

author
#0 lore raw

PATCH 11/18 pinctrl: mtmips: add support for MediaTek MT7620 SoC

This patch adds pinctrl support for MediaTek MT7620 SoC. The MT7620 SoC supports only pinmux.

---
 drivers/pinctrl/mtmips/Kconfig          |   9 ++
 drivers/pinctrl/mtmips/Makefile         |   1 +
 drivers/pinctrl/mtmips/pinctrl-mt7620.c | 199 ++++++++++++++++++++++++
 3 files changed, 209 insertions(+)
 create mode 100644 drivers/pinctrl/mtmips/pinctrl-mt7620.c
drivers/pinctrl/mtmips/Kconfig +9 -0
index 8482a38ebc..844d5b743f 100644
@@ -3,6 +3,15 @@ config PINCTRL_MTMIPS
 	depends on ARCH_MTMIPS
 	bool
 
+config PINCTRL_MT7620
+	bool "MediaTek MT7620 pin control driver"
+	select PINCTRL_MTMIPS
+	depends on SOC_MT7620 && PINCTRL_GENERIC
+	help
+	  Support pin multiplexing control on MediaTek MT7620.
+	  The driver is controlled by a device tree node which contains
+	  the pin mux functions for each available pin groups.
+
 config PINCTRL_MT7628
 	bool "MediaTek MT7628 pin control driver"
 	select PINCTRL_MTMIPS
drivers/pinctrl/mtmips/Makefile +1 -0
index 3ba5c0c66d..ba945a89a7 100644
@@ -4,4 +4,5 @@
 obj-$(CONFIG_PINCTRL_MTMIPS) += pinctrl-mtmips-common.o
 
 # SoC Drivers
+obj-$(CONFIG_PINCTRL_MT7620) += pinctrl-mt7620.o
 obj-$(CONFIG_PINCTRL_MT7628) += pinctrl-mt7628.o
drivers/pinctrl/mtmips/pinctrl-mt7620.c new file +199 -0

199 lines not on this page · raw message

Signature · 1 line
2.17.1