Skip to content

Commit 1c8ace2

Browse files
LorenzoBianconilinusw
authored andcommitted
pinctrl: airoha: Add support for EN7581 SoC
Introduce pinctrl driver for EN7581 SoC. Current EN7581 pinctrl driver supports the following functionalities: - pin multiplexing - pin pull-up, pull-down, open-drain, current strength, {input,output}_enable, output_{low,high} - gpio controller - irq controller Tested-by: Benjamin Larsson <[email protected]> Co-developed-by: Benjamin Larsson <[email protected]> Signed-off-by: Benjamin Larsson <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://lore.kernel.org/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent 50dedb1 commit 1c8ace2

File tree

4 files changed

+2994
-1
lines changed

4 files changed

+2994
-1
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18232,6 +18232,13 @@ F: drivers/pinctrl/
1823218232
F: include/dt-bindings/pinctrl/
1823318233
F: include/linux/pinctrl/
1823418234

18235+
PIN CONTROLLER - AIROHA
18236+
M: Lorenzo Bianconi <[email protected]>
18237+
L: [email protected] (moderated for non-subscribers)
18238+
S: Maintained
18239+
F: Documentation/devicetree/bindings/pinctrl/airoha,en7581-pinctrl.yaml
18240+
F: drivers/pinctrl/mediatek/pinctrl-airoha.c
18241+
1823518242
PIN CONTROLLER - AMD
1823618243
M: Basavaraj Natikar <[email protected]>
1823718244
M: Shyam Sundar S K <[email protected]>

drivers/pinctrl/mediatek/Kconfig

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
menu "MediaTek pinctrl drivers"
3-
depends on ARCH_MEDIATEK || RALINK || COMPILE_TEST
3+
depends on ARCH_MEDIATEK || ARCH_AIROHA || RALINK || COMPILE_TEST
44

55
config EINT_MTK
66
tristate "MediaTek External Interrupt Support"
@@ -126,6 +126,21 @@ config PINCTRL_MT8127
126126
select PINCTRL_MTK
127127

128128
# For ARMv8 SoCs
129+
config PINCTRL_AIROHA
130+
tristate "Airoha EN7581 pin control"
131+
depends on OF
132+
depends on ARM64 || COMPILE_TEST
133+
select PINMUX
134+
select GENERIC_PINCONF
135+
select GENERIC_PINCTRL_GROUPS
136+
select GENERIC_PINMUX_FUNCTIONS
137+
select GPIOLIB
138+
select GPIOLIB_IRQCHIP
139+
select REGMAP_MMIO
140+
help
141+
Say yes here to support pin controller and gpio driver
142+
on Airoha EN7581 SoC.
143+
129144
config PINCTRL_MT2712
130145
bool "MediaTek MT2712 pin control"
131146
depends on OF

drivers/pinctrl/mediatek/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ obj-$(CONFIG_PINCTRL_MTK_MOORE) += pinctrl-moore.o
88
obj-$(CONFIG_PINCTRL_MTK_PARIS) += pinctrl-paris.o
99

1010
# SoC Drivers
11+
obj-$(CONFIG_PINCTRL_AIROHA) += pinctrl-airoha.o
1112
obj-$(CONFIG_PINCTRL_MT7620) += pinctrl-mt7620.o
1213
obj-$(CONFIG_PINCTRL_MT7621) += pinctrl-mt7621.o
1314
obj-$(CONFIG_PINCTRL_MT76X8) += pinctrl-mt76x8.o

0 commit comments

Comments
 (0)