gpio: Add Intel Nova Lake ACPI GPIO events driver
Subsystems (2)
Alan Borzeszkowski
maintainerPATCH v2 1/1 gpio: Add Intel Nova Lake ACPI GPIO events driver
This driver provides support for new way of handling platform events, through the use of GPIO-signaled ACPI events. This mechanism is used on Intel client platforms released in 2026 and later, starting with Intel Nova Lake.
---
v1 -> v2:
- formatting changes
- move priv memory alloc after ACPI IO resource validation
v1: https://lore.kernel.org/linux-gpio/[email protected]/
MAINTAINERS | 7 + drivers/gpio/Kconfig | 26 +++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-novalake-events.c | 323 ++++++++++++++++++++++++++++ 4 files changed, 357 insertions(+) create mode 100644 drivers/gpio/gpio-novalake-events.c
MAINTAINERS +7 -0
@@ -12847,6 +12847,13 @@ F: drivers/gpio/gpio-sodaville.c F: drivers/gpio/gpio-tangier.c F: drivers/gpio/gpio-tangier.h +INTEL GPIO GPE DRIVER +M: Alan Borzeszkowski <[email protected]> +R: Mika Westerberg <[email protected]> +L: [email protected] +S: Supported +F: drivers/gpio/gpio-novalake-events.c + INTEL GVT-g DRIVERS (Intel GPU Virtualization) R: Zhenyu Wang <[email protected]> R: Zhi Wang <[email protected]>
drivers/gpio/Kconfig +26 -0
@@ -1057,6 +1057,32 @@ config GPIO_SCH The Intel Quark X1000 SoC has 2 GPIOs powered by the core power well and 6 from the suspend power well. +config GPIO_NOVALAKE + tristate "Intel Nova Lake GPIO-signaled ACPI events support" + depends on (X86 || COMPILE_TEST) && ACPI + select GPIOLIB_IRQCHIP + help + Select this to enable GPIO-signaled ACPI events support on platforms + with the following SoCs: + + - Intel Nova Lake + + This driver adds support for new mode of handling platform events, + through the use of GPIO-signaled ACPI events. Main purpose is to + handle platform IRQs that originate in PCH components, for example + interrupt triggered by Power Management Event (PME). + + This driver, at this time, is not required to handle platform events. + Listed platform(s) will stay in legacy mode, handling ACPI events as + in previous generations. However, future platforms will eventually + switch to new handling mode, requiring this driver to run events + properly. + + Driver supports up to 128 GPIO pins per GPE block. + + To compile this driver as a module, choose M here: the module will + be called gpio-novalake-events. + config GPIO_SCH311X tristate "SMSC SCH311x SuperI/O GPIO" help
drivers/gpio/Makefile +1 -0
@@ -134,6 +134,7 @@ obj-$(CONFIG_GPIO_MXC) += gpio-mxc.o obj-$(CONFIG_GPIO_MXS) += gpio-mxs.o obj-$(CONFIG_GPIO_NCT6694) += gpio-nct6694.o obj-$(CONFIG_GPIO_NOMADIK) += gpio-nomadik.o +obj-$(CONFIG_GPIO_NOVALAKE) += gpio-novalake-events.o obj-$(CONFIG_GPIO_NPCM_SGPIO) += gpio-npcm-sgpio.o obj-$(CONFIG_GPIO_OCTEON) += gpio-octeon.o obj-$(CONFIG_GPIO_OMAP) += gpio-omap.o
drivers/gpio/gpio-novalake-events.c new file +323 -0
323 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 6 lines · Alan Borzeszkowski
This driver provides support for new way of handling platform events, through the use of GPIO-signaled ACPI events. This mechanism is used on Intel client platforms released in 2026 and later, starting with Intel Nova Lake.
Signed-off-by Alan Borzeszkowski <[email protected]>
Bartosz Golaszewski
maintainerQuoted 10 lines · Mika Westerberg
Quoted 6 lines · Alan Borzeszkowski
This driver provides support for new way of handling platform events, through the use of GPIO-signaled ACPI events. This mechanism is used on Intel client platforms released in 2026 and later, starting with Intel Nova Lake.
Signed-off-by Alan Borzeszkowski <[email protected]>Reviewed-by Mika Westerberg <[email protected]>
Should I queue it for v7.1 or will Andy pick it up?
Bart
Quoted 8 lines · Bartosz Golaszewski
Quoted 6 lines · Mika Westerberg
Quoted 5 lines · Alan Borzeszkowski
This driver provides support for new way of handling platform events, through the use of GPIO-signaled ACPI events. This mechanism is used on Intel client platforms released in 2026 and later, starting with Intel Nova Lake.
Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Alan Borzeszkowski <[email protected]>Reviewed-by Mika Westerberg <[email protected]>Should I queue it for v7.1 or will Andy pick it up?
It's unrelated to real GPIO HW drivers I handle. So, please take it.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 6 lines · Alan Borzeszkowski
This driver provides support for new way of handling platform events, through the use of GPIO-signaled ACPI events. This mechanism is used on Intel client platforms released in 2026 and later, starting with Intel Nova Lake.
Signed-off-by Alan Borzeszkowski <[email protected]>
Nice driver!
Yours,
Linus Walleij
Bartosz Golaszewski
AppliedQuoted 6 lines · Alan Borzeszkowski
This driver provides support for new way of handling platform events, through the use of GPIO-signaled ACPI events. This mechanism is used on Intel client platforms released in 2026 and later, starting with Intel Nova Lake.
Applied, thanks!
[1/1] gpio: Add Intel Nova Lake ACPI GPIO events driver
https://git.kernel.org/brgl/c/15cbd66b69a9ecdc5c3638aa400ca9b872b84509
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>