Skip to content

Commit 12422af

Browse files
Lakshmi-SowjanyaLinus Walleij
authored andcommitted
pinctrl: Add Intel Thunder Bay pinctrl driver
About Intel Thunder Bay: ----------------------- Intel Thunder Bay is a computer vision AI accelerator SoC based on ARM CPU. Pinctrl IP: ---------- The SoC has a customised pinmux controller IP which controls pin multiplexing and configuration. Thunder Bay pinctrl IP is not based on and have nothing in common with the existing pinctrl drivers. The registers used are incompatible with the existing drivers, so it requires a new driver. Add pinctrl driver to enable pin control support in the Intel Thunder Bay SoC. Co-developed-by: Kiran Kumar S <kiran.kumar1.s@intel.com> Signed-off-by: Kiran Kumar S <kiran.kumar1.s@intel.com> Signed-off-by: Lakshmi Sowjanya D <lakshmi.sowjanya.d@intel.com> Link: https://lore.kernel.org/r/20211201072626.19599-3-lakshmi.sowjanya.d@intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent bd92baa commit 12422af

File tree

3 files changed

+1342
-0
lines changed

3 files changed

+1342
-0
lines changed

drivers/pinctrl/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,4 +499,23 @@ config PINCTRL_EQUILIBRIUM
499499
pin functions, configure GPIO attributes for LGM SoC pins. Pinmux and
500500
pinconf settings are retrieved from device tree.
501501

502+
config PINCTRL_THUNDERBAY
503+
tristate "Generic pinctrl and GPIO driver for Intel Thunder Bay SoC"
504+
depends on ARCH_THUNDERBAY || (ARM64 && COMPILE_TEST)
505+
depends on HAS_IOMEM
506+
select PINMUX
507+
select PINCONF
508+
select GENERIC_PINCONF
509+
select GENERIC_PINCTRL_GROUPS
510+
select GENERIC_PINMUX_FUNCTIONS
511+
select GPIOLIB
512+
select GPIOLIB_IRQCHIP
513+
select GPIO_GENERIC
514+
help
515+
This selects pin control driver for the Intel Thunder Bay SoC.
516+
It provides pin config functions such as pullup, pulldown,
517+
interrupt, drive strength, sec lock, schmitt trigger, slew
518+
rate control and direction control. This module will be
519+
called as pinctrl-thunderbay.
520+
502521
endif

drivers/pinctrl/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ obj-$(CONFIG_PINCTRL_MICROCHIP_SGPIO) += pinctrl-microchip-sgpio.o
4949
obj-$(CONFIG_PINCTRL_EQUILIBRIUM) += pinctrl-equilibrium.o
5050
obj-$(CONFIG_PINCTRL_K210) += pinctrl-k210.o
5151
obj-$(CONFIG_PINCTRL_KEEMBAY) += pinctrl-keembay.o
52+
obj-$(CONFIG_PINCTRL_THUNDERBAY) += pinctrl-thunderbay.o
5253

5354
obj-y += actions/
5455
obj-$(CONFIG_ARCH_ASPEED) += aspeed/

0 commit comments

Comments
 (0)