Skip to content

Commit c8ce878

Browse files
ldewanganLinus Walleij
authored andcommitted
pincntrl: add support for ams AS3722 pin control driver
The AS3722 is a compact system PMU suitable for mobile phones, tablets etc. Add a driver to support accessing the GPIO, pinmux and pin configuration of 8 GPIO pins found on the ams AS3722 through pin control driver and gpiolib. The driver will register itself as the pincontrol driver and gpio driver. Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent d1c3011 commit c8ce878

3 files changed

Lines changed: 642 additions & 0 deletions

File tree

‎drivers/pinctrl/Kconfig‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ config PINCTRL_ADI2
5959
future processors. This option is selected automatically when specific
6060
machine and arch are selected to build.
6161

62+
config PINCTRL_AS3722
63+
bool "Pinctrl and GPIO driver for ams AS3722 PMIC"
64+
depends on MFD_AS3722 && GPIOLIB
65+
select PINMUX
66+
select GENERIC_PINCONF
67+
help
68+
AS3722 device supports the configuration of GPIO pins for different
69+
functionality. This driver supports the pinmux, push-pull and
70+
open drain configuration for the GPIO pins of AS3722 devices. It also
71+
supports the GPIO functionality through gpiolib.
72+
6273
config PINCTRL_BF54x
6374
def_bool y if BF54x
6475
select PINCTRL_ADI2

‎drivers/pinctrl/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ obj-$(CONFIG_PINCTRL_AB8540) += pinctrl-ab8540.o
1515
obj-$(CONFIG_PINCTRL_AB9540) += pinctrl-ab9540.o
1616
obj-$(CONFIG_PINCTRL_AB8505) += pinctrl-ab8505.o
1717
obj-$(CONFIG_PINCTRL_ADI2) += pinctrl-adi2.o
18+
obj-$(CONFIG_PINCTRL_AS3722) += pinctrl-as3722.o
1819
obj-$(CONFIG_PINCTRL_BF54x) += pinctrl-adi2-bf54x.o
1920
obj-$(CONFIG_PINCTRL_BF60x) += pinctrl-adi2-bf60x.o
2021
obj-$(CONFIG_PINCTRL_AT91) += pinctrl-at91.o

0 commit comments

Comments
 (0)