Skip to content

Commit a0f160f

Browse files
jgoulylinusw
authored andcommitted
pinctrl: add pinctrl/GPIO driver for Apple SoCs
This driver adds support for the pinctrl / GPIO hardware found on some Apple SoCs. Co-developed-by: Stan Skowronek <[email protected]> Signed-off-by: Stan Skowronek <[email protected]> Signed-off-by: Joey Gouly <[email protected]> Acked-by: Hector Martin <[email protected]> Reviewed-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Linus Walleij <[email protected]>
1 parent aa68e1b commit a0f160f

File tree

3 files changed

+551
-0
lines changed

3 files changed

+551
-0
lines changed

drivers/pinctrl/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,22 @@ config DEBUG_PINCTRL
3131
help
3232
Say Y here to add some extra checks and diagnostics to PINCTRL calls.
3333

34+
config PINCTRL_APPLE_GPIO
35+
tristate "Apple SoC GPIO pin controller driver"
36+
depends on ARCH_APPLE
37+
select PINMUX
38+
select GPIOLIB
39+
select GPIOLIB_IRQCHIP
40+
select GENERIC_PINCTRL_GROUPS
41+
select GENERIC_PINMUX_FUNCTIONS
42+
select OF_GPIO
43+
help
44+
This is the driver for the GPIO controller found on Apple ARM SoCs,
45+
including M1.
46+
47+
This driver can also be built as a module. If so, the module
48+
will be called pinctrl-apple-gpio.
49+
3450
config PINCTRL_ARTPEC6
3551
bool "Axis ARTPEC-6 pin controller driver"
3652
depends on MACH_ARTPEC6

drivers/pinctrl/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ obj-$(CONFIG_PINMUX) += pinmux.o
88
obj-$(CONFIG_PINCONF) += pinconf.o
99
obj-$(CONFIG_OF) += devicetree.o
1010
obj-$(CONFIG_GENERIC_PINCONF) += pinconf-generic.o
11+
obj-$(CONFIG_PINCTRL_APPLE_GPIO) += pinctrl-apple-gpio.o
1112
obj-$(CONFIG_PINCTRL_ARTPEC6) += pinctrl-artpec6.o
1213
obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
1314
obj-$(CONFIG_PINCTRL_AXP209) += pinctrl-axp209.o

0 commit comments

Comments
 (0)