pinctrl: intel: Add Intel Alder Lake pin controller support
Subsystems (2)
PATCH 1/1 pinctrl: intel: Add Intel Alder Lake pin controller support
This driver adds pinctrl/GPIO support for Intel Alder Lake SoC. The GPIO controller is based on the next generation GPIO hardware but still compatible with the one supported by the Intel core pinctrl/GPIO driver.
--- drivers/pinctrl/intel/Kconfig | 9 + drivers/pinctrl/intel/Makefile | 1 + drivers/pinctrl/intel/pinctrl-alderlake.c | 437 ++++++++++++++++++++++ 3 files changed, 447 insertions(+) create mode 100644 drivers/pinctrl/intel/pinctrl-alderlake.c
drivers/pinctrl/intel/Kconfig +9 -0
@@ -70,6 +70,14 @@ config PINCTRL_INTEL select GPIOLIB select GPIOLIB_IRQCHIP +config PINCTRL_ALDERLAKE + tristate "Intel Alder Lake pinctrl and GPIO driver" + depends on ACPI + select PINCTRL_INTEL + help + This pinctrl driver provides an interface that allows configuring + of Intel Alder Lake PCH pins and using them as GPIOs. + config PINCTRL_BROXTON tristate "Intel Broxton pinctrl and GPIO driver" depends on ACPI
@@ -158,4 +166,5 @@ config PINCTRL_TIGERLAKE help This pinctrl driver provides an interface that allows configuring of Intel Tiger Lake PCH pins and using them as GPIOs. + endif
drivers/pinctrl/intel/Makefile +1 -0
@@ -9,6 +9,7 @@ obj-$(CONFIG_PINCTRL_LYNXPOINT) += pinctrl-lynxpoint.o obj-$(CONFIG_PINCTRL_MERRIFIELD) += pinctrl-merrifield.o obj-$(CONFIG_PINCTRL_MOOREFIELD) += pinctrl-moorefield.o obj-$(CONFIG_PINCTRL_INTEL) += pinctrl-intel.o +obj-$(CONFIG_PINCTRL_ALDERLAKE) += pinctrl-alderlake.o obj-$(CONFIG_PINCTRL_BROXTON) += pinctrl-broxton.o obj-$(CONFIG_PINCTRL_CANNONLAKE) += pinctrl-cannonlake.o obj-$(CONFIG_PINCTRL_CEDARFORK) += pinctrl-cedarfork.o
drivers/pinctrl/intel/pinctrl-alderlake.c new file +437 -0
437 lines not on this page · raw message
Signature · 1 line
2.28.0
Mika Westerberg
maintainerHi,
I think the $subject should say "Alder Lake-S" as this is for -S variant.
Quoted 32 lines · Andy Shevchenko
This driver adds pinctrl/GPIO support for Intel Alder Lake SoC. The GPIO controller is based on the next generation GPIO hardware but still compatible with the one supported by the Intel core pinctrl/GPIO driver.
Signed-off-by Andy Shevchenko <[email protected]>--- drivers/pinctrl/intel/Kconfig | 9 + drivers/pinctrl/intel/Makefile | 1 + drivers/pinctrl/intel/pinctrl-alderlake.c | 437 ++++++++++++++++++++++ 3 files changed, 447 insertions(+) create mode 100644 drivers/pinctrl/intel/pinctrl-alderlake.cdrivers/pinctrl/intel/Kconfig +8
-0@@ -70,6 +70,14 @@ config PINCTRL_INTEL select GPIOLIB select GPIOLIB_IRQCHIP +config PINCTRL_ALDERLAKE + tristate "Intel Alder Lake pinctrl and GPIO driver" + depends on ACPI + select PINCTRL_INTEL + help + This pinctrl driver provides an interface that allows configuring + of Intel Alder Lake PCH pins and using them as GPIOs. + config PINCTRL_BROXTON tristate "Intel Broxton pinctrl and GPIO driver" depends on ACPI
drivers/pinctrl/intel/Kconfig config PINCTRL_TIGERLAKE · line 169
Quoted 4 lines
drivers/pinctrl/intel/Kconfig +1
-0@@ -158,4 +166,5 @@ config PINCTRL_TIGERLAKE help This pinctrl driver provides an interface that allows configuring of Intel Tiger Lake PCH pins and using them as GPIOs. +
Is this intentional ws change?
drivers/pinctrl/intel/Kconfig config PINCTRL_TIGERLAKE · line 170
Quoted 1 line
drivers/pinctrl/intel/Kconfig +0
-0endif
Otherwise looks good to me.
Quoted 2 lines · Mika Westerberg
I think the $subject should say "Alder Lake-S" as this is for -S variant.
OK!
...
Quoted 7 lines
drivers/pinctrl/intel/Kconfig config PINCTRL_TIGERLAKE · line 169
Quoted 5 lines
drivers/pinctrl/intel/Kconfig +1
-0@@ -158,4 +166,5 @@ config PINCTRL_TIGERLAKE help This pinctrl driver provides an interface that allows configuring of Intel Tiger Lake PCH pins and using them as GPIOs. +Is this intentional ws change?
I guess it was intentional at some point, but not strictly related to this new driver. I can split it out.
Quoted 3 lines
Review config PINCTRL_TIGERLAKE · line 170
Quoted 1 line
(quoted diff) +0
-0endifOtherwise looks good to me.
I'll send v2 soon.
Signature · 2 lines
With Best Regards, Andy Shevchenko