gpio: Move most of the Intel GPIO to the dedicated folder
Subsystems (6)
cover gpio: Move most of the Intel GPIO to the dedicated folder
For the easier maintenance and future development move most of Intel GPIO drivers to the dedicated 'intel' folder. For now it only covers the drivers I maintain (as per record in the MAINTAINERS).
The idea is to have the 'intel' folder to be associated with the respective Git tree from which the maintainer (currently me) sends PRs to Bart (GPIO maintainer) from time to time.
Nova Lake event driver is up to their maintainers what to do (co-maintainers are welcome!).
USBIO drivers as per Hans are for the camera (IPU) only, perhaps media tree is the best to handle them. I can, of course, host them in 'intel/usbio' subfolder on the terms that I do not touch or handle anything behind it. Otherwise co-maintainers are a must.
Cc'ed to William on the point to might be hosting i8255 et alia (PC104?) under the 'intel/i8255' subfolder on the terms like described above for USBIO. Or you, William, can send me PRs, either way I don't want to maintain those.
PXA driver is indeed was used on early Intel MID, but we used to have a different (now gone) driver and PXA was never adapted for that.
IPX one is Intel by vendor, but quite alien to anything listed above. Don't think its place is in 'intel' subfolder.
This mini-series is supposed to go via my tree to avoid current conflicts.
Andy Shevchenko (5):
gpio: Move Intel GPIO drivers to the dedicated subfolder
gpio: Move Intel PMIC GPIO drivers to the dedicated subfolder
gpio: Move Intel PCH type of GPIO drivers to the intel subfolder
gpio: Move Intel Sodaville GPIO driver to the intel subfolder
gpio: Move Intel vGPIO driver to the intel subfolder
MAINTAINERS | 21 +--
drivers/gpio/Kconfig | 147 +-----------------
drivers/gpio/Makefile | 13 +-
drivers/gpio/intel/Kconfig | 136 ++++++++++++++++
drivers/gpio/intel/Makefile | 19 +++
drivers/gpio/{ => intel}/gpio-elkhartlake.c | 0
drivers/gpio/{ => intel}/gpio-graniterapids.c | 0
drivers/gpio/{ => intel}/gpio-ich.c | 0
drivers/gpio/{ => intel}/gpio-merrifield.c | 0
drivers/gpio/{ => intel}/gpio-ml-ioh.c | 0
drivers/gpio/{ => intel}/gpio-pch.c | 0
drivers/gpio/{ => intel}/gpio-sch.c | 0
drivers/gpio/{ => intel}/gpio-sodaville.c | 0
drivers/gpio/{ => intel}/gpio-tangier.c | 0
drivers/gpio/{ => intel}/gpio-tangier.h | 0
drivers/gpio/intel/pmic/Kconfig | 30 ++++
drivers/gpio/intel/pmic/Makefile | 5 +
.../gpio/{ => intel/pmic}/gpio-crystalcove.c | 0
drivers/gpio/{ => intel/pmic}/gpio-wcove.c | 0
19 files changed, 200 insertions(+), 171 deletions(-)
create mode 100644 drivers/gpio/intel/Kconfig
create mode 100644 drivers/gpio/intel/Makefile
rename drivers/gpio/{ => intel}/gpio-elkhartlake.c (100%)
rename drivers/gpio/{ => intel}/gpio-graniterapids.c (100%)
rename drivers/gpio/{ => intel}/gpio-ich.c (100%)
rename drivers/gpio/{ => intel}/gpio-merrifield.c (100%)
rename drivers/gpio/{ => intel}/gpio-ml-ioh.c (100%)
rename drivers/gpio/{ => intel}/gpio-pch.c (100%)
rename drivers/gpio/{ => intel}/gpio-sch.c (100%)
rename drivers/gpio/{ => intel}/gpio-sodaville.c (100%)
rename drivers/gpio/{ => intel}/gpio-tangier.c (100%)
rename drivers/gpio/{ => intel}/gpio-tangier.h (100%)
create mode 100644 drivers/gpio/intel/pmic/Kconfig
create mode 100644 drivers/gpio/intel/pmic/Makefile
rename drivers/gpio/{ => intel/pmic}/gpio-crystalcove.c (100%)
rename drivers/gpio/{ => intel/pmic}/gpio-wcove.c (100%)Signature · 1 line
2.50.1
PATCH 3/5 gpio: Move Intel PCH type of GPIO drivers to the intel subfolder
For better maintenance and development experience, move Intel PCH type of GPIO drivers to the intel subfolder.
---
MAINTAINERS | 6 +--
drivers/gpio/Kconfig | 64 -----------------------
drivers/gpio/Makefile | 4 --
drivers/gpio/intel/Kconfig | 70 ++++++++++++++++++++++++++
drivers/gpio/intel/Makefile | 7 +++
drivers/gpio/{ => intel}/gpio-ich.c | 0
drivers/gpio/{ => intel}/gpio-ml-ioh.c | 0
drivers/gpio/{ => intel}/gpio-pch.c | 0
drivers/gpio/{ => intel}/gpio-sch.c | 0
9 files changed, 78 insertions(+), 73 deletions(-)
rename drivers/gpio/{ => intel}/gpio-ich.c (100%)
rename drivers/gpio/{ => intel}/gpio-ml-ioh.c (100%)
rename drivers/gpio/{ => intel}/gpio-pch.c (100%)
rename drivers/gpio/{ => intel}/gpio-sch.c (100%)MAINTAINERS +1 -5
@@ -12563,7 +12563,7 @@ F: drivers/scsi/ips.* ICH LPC AND GPIO DRIVER M: Peter Tyser <[email protected]> S: Maintained -F: drivers/gpio/gpio-ich.c +F: drivers/gpio/intel/gpio-ich.c F: drivers/mfd/lpc_ich.c ICY I2C DRIVER
@@ -13132,10 +13132,6 @@ L: [email protected] S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel.git F: drivers/gpio/gpio-graniterapids.c -F: drivers/gpio/gpio-ich.c -F: drivers/gpio/gpio-ml-ioh.c -F: drivers/gpio/gpio-pch.c -F: drivers/gpio/gpio-sch.c F: drivers/gpio/gpio-sodaville.c F: drivers/gpio/intel/
drivers/gpio/Kconfig +0 -64
82 lines not on this page · raw message
drivers/gpio/Makefile +0 -4
@@ -81,7 +81,6 @@ obj-$(CONFIG_GPIO_HISI) += gpio-hisi.o obj-$(CONFIG_GPIO_HLWD) += gpio-hlwd.o obj-$(CONFIG_HTC_EGPIO) += gpio-htc-egpio.o obj-$(CONFIG_GPIO_I8255) += gpio-i8255.o -obj-$(CONFIG_GPIO_ICH) += gpio-ich.o obj-$(CONFIG_GPIO_IDIO_16) += gpio-idio-16.o obj-$(CONFIG_GPIO_IDT3243X) += gpio-idt3243x.o obj-$(CONFIG_GPIO_IMX_SCU) += gpio-imx-scu.o
@@ -116,7 +115,6 @@ obj-$(CONFIG_GPIO_MAX77759) += gpio-max77759.o obj-$(CONFIG_GPIO_MB86S7X) += gpio-mb86s7x.o obj-$(CONFIG_GPIO_MC33880) += gpio-mc33880.o obj-$(CONFIG_GPIO_MENZ127) += gpio-menz127.o -obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o obj-$(CONFIG_GPIO_MLXBF) += gpio-mlxbf.o obj-$(CONFIG_GPIO_MLXBF2) += gpio-mlxbf2.o obj-$(CONFIG_GPIO_MLXBF3) += gpio-mlxbf3.o
@@ -141,7 +139,6 @@ obj-$(CONFIG_GPIO_PALMAS) += gpio-palmas.o obj-$(CONFIG_GPIO_PCA953X) += gpio-pca953x.o obj-$(CONFIG_GPIO_PCA9570) += gpio-pca9570.o obj-$(CONFIG_GPIO_PCF857X) += gpio-pcf857x.o -obj-$(CONFIG_GPIO_PCH) += gpio-pch.o obj-$(CONFIG_GPIO_PCIE_IDIO_24) += gpio-pcie-idio-24.o obj-$(CONFIG_GPIO_PCI_IDIO_16) += gpio-pci-idio-16.o obj-$(CONFIG_GPIO_PISOSR) += gpio-pisosr.o
@@ -164,7 +161,6 @@ obj-$(CONFIG_GPIO_RTD1625) += gpio-rtd1625.o obj-$(CONFIG_ARCH_SA1100) += gpio-sa1100.o obj-$(CONFIG_GPIO_SAMA5D2_PIOBU) += gpio-sama5d2-piobu.o obj-$(CONFIG_GPIO_SCH311X) += gpio-sch311x.o -obj-$(CONFIG_GPIO_SCH) += gpio-sch.o obj-$(CONFIG_GPIO_SHARED_PROXY) += gpio-shared-proxy.o obj-$(CONFIG_GPIO_SIFIVE) += gpio-sifive.o obj-$(CONFIG_GPIO_SIM) += gpio-sim.o
drivers/gpio/intel/Kconfig +70 -0
74 lines not on this page · raw message
drivers/gpio/intel/Makefile +7 -0
@@ -5,4 +5,11 @@ obj-$(CONFIG_GPIO_TANGIER) += gpio-tangier.o obj-$(CONFIG_GPIO_ELKHARTLAKE) += gpio-elkhartlake.o obj-$(CONFIG_GPIO_MERRIFIELD) += gpio-merrifield.o +# PCH type of drivers + +obj-$(CONFIG_GPIO_ICH) += gpio-ich.o +obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o +obj-$(CONFIG_GPIO_PCH) += gpio-pch.o +obj-$(CONFIG_GPIO_SCH) += gpio-sch.o + obj-y += pmic/
drivers/gpio/intel/gpio-ich.c renamed from drivers/gpio/gpio-ich.c +0 -0
drivers/gpio/intel/gpio-ml-ioh.c renamed from drivers/gpio/gpio-ml-ioh.c +0 -0
drivers/gpio/intel/gpio-pch.c renamed from drivers/gpio/gpio-pch.c +0 -0
drivers/gpio/intel/gpio-sch.c renamed from drivers/gpio/gpio-sch.c +0 -0
Signature · 1 line
2.50.1
PATCH 1/5 gpio: Move Intel GPIO drivers to the dedicated subfolder
In reply to Andy ShevchenkoFor better maintenance and development experience, move Intel GPIO drivers to the dedicated subfolder. This starts with Intel MID and Elkhart Lake ones that share the same core part.
---
MAINTAINERS | 9 ++---
drivers/gpio/Kconfig | 31 ++---------------
drivers/gpio/Makefile | 5 ++-
drivers/gpio/intel/Kconfig | 37 +++++++++++++++++++++
drivers/gpio/intel/Makefile | 6 ++++
drivers/gpio/{ => intel}/gpio-elkhartlake.c | 0
drivers/gpio/{ => intel}/gpio-merrifield.c | 0
drivers/gpio/{ => intel}/gpio-tangier.c | 0
drivers/gpio/{ => intel}/gpio-tangier.h | 0
9 files changed, 50 insertions(+), 38 deletions(-)
create mode 100644 drivers/gpio/intel/Kconfig
create mode 100644 drivers/gpio/intel/Makefile
rename drivers/gpio/{ => intel}/gpio-elkhartlake.c (100%)
rename drivers/gpio/{ => intel}/gpio-merrifield.c (100%)
rename drivers/gpio/{ => intel}/gpio-tangier.c (100%)
rename drivers/gpio/{ => intel}/gpio-tangier.h (100%)MAINTAINERS +3 -6
@@ -13131,16 +13131,13 @@ M: Andy Shevchenko <[email protected]> L: [email protected] S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel.git -F: drivers/gpio/gpio-elkhartlake.c F: drivers/gpio/gpio-graniterapids.c F: drivers/gpio/gpio-ich.c -F: drivers/gpio/gpio-merrifield.c F: drivers/gpio/gpio-ml-ioh.c F: drivers/gpio/gpio-pch.c F: drivers/gpio/gpio-sch.c F: drivers/gpio/gpio-sodaville.c -F: drivers/gpio/gpio-tangier.c -F: drivers/gpio/gpio-tangier.h +F: drivers/gpio/intel/ INTEL GPIO GPE DRIVER M: Alan Borzeszkowski <[email protected]>
@@ -13361,8 +13358,8 @@ F: arch/x86/pci/intel_mid.c F: arch/x86/platform/intel-mid/ F: drivers/dma/hsu/ F: drivers/extcon/extcon-intel-mrfld.c -F: drivers/gpio/gpio-merrifield.c -F: drivers/gpio/gpio-tangier.* +F: drivers/gpio/intel/gpio-merrifield.c +F: drivers/gpio/intel/gpio-tangier.* F: drivers/iio/adc/intel_mrfld_adc.c F: drivers/mfd/intel_soc_pmic_mrfld.c F: drivers/pinctrl/intel/pinctrl-merrifield.c
drivers/gpio/Kconfig +2 -29
@@ -129,6 +129,8 @@ config GPIO_SWNODE_UNDEFINED # put drivers in the right section, in alphabetical order +source "drivers/gpio/intel/Kconfig" + # This symbol is selected by both I2C and SPI expanders config GPIO_MAX730X tristate
@@ -756,17 +758,6 @@ config GPIO_SYSCON help Say yes here to support GPIO functionality though SYSCON driver. -config GPIO_TANGIER - tristate - select GPIOLIB_IRQCHIP - help - GPIO support for Intel Tangier and compatible platforms. - Currently supported: - - Elkhart Lake - - Merrifield - - If built as a module its name will be gpio-tangier. - config GPIO_TB10X bool "Abilis Systems TB10x GPIO controller" depends on ARC_PLAT_TB10X || COMPILE_TEST
@@ -1477,17 +1468,6 @@ config HTC_EGPIO several HTC phones. It provides basic support for input pins, output pins, and IRQs. -config GPIO_ELKHARTLAKE - tristate "Intel Elkhart Lake PSE GPIO support" - depends on INTEL_EHL_PSE_IO - select GPIO_TANGIER - help - Select this option to enable GPIO support for Intel Elkhart Lake - PSE GPIO IP. - - To compile this driver as a module, choose M here: the module will - be called gpio-elkhartlake. - config GPIO_JANZ_TTL tristate "Janz VMOD-TTL Digital IO Module" depends on MFD_JANZ_CMODIO
@@ -1862,13 +1842,6 @@ config GPIO_BT8XX If unsure, say N. -config GPIO_MERRIFIELD - tristate "Intel Merrifield GPIO support" - depends on X86_INTEL_MID - select GPIO_TANGIER - help - Say Y here to support Intel Merrifield GPIO. - config GPIO_MLXBF tristate "Mellanox BlueField SoC GPIO" depends on (MELLANOX_PLATFORM && ARM64 && ACPI) || (64BIT && COMPILE_TEST)
drivers/gpio/Makefile +2 -3
@@ -22,6 +22,8 @@ obj-$(CONFIG_GPIO_GENERIC) += gpio-generic.o # directly supported by gpio-generic gpio-generic-$(CONFIG_GPIO_GENERIC) += gpio-mmio.o +obj-y += intel/ + obj-$(CONFIG_GPIO_104_DIO_48E) += gpio-104-dio-48e.o obj-$(CONFIG_GPIO_104_IDI_48) += gpio-104-idi-48.o obj-$(CONFIG_GPIO_104_IDIO_16) += gpio-104-idio-16.o
@@ -64,7 +66,6 @@ obj-$(CONFIG_GPIO_DLN2) += gpio-dln2.o obj-$(CONFIG_GPIO_DS4520) += gpio-ds4520.o obj-$(CONFIG_GPIO_DWAPB) += gpio-dwapb.o obj-$(CONFIG_GPIO_EIC_SPRD) += gpio-eic-sprd.o -obj-$(CONFIG_GPIO_ELKHARTLAKE) += gpio-elkhartlake.o obj-$(CONFIG_GPIO_EM) += gpio-em.o obj-$(CONFIG_GPIO_EN7523) += gpio-en7523.o obj-$(CONFIG_GPIO_EP93XX) += gpio-ep93xx.o
@@ -116,7 +117,6 @@ obj-$(CONFIG_GPIO_MAX77759) += gpio-max77759.o obj-$(CONFIG_GPIO_MB86S7X) += gpio-mb86s7x.o obj-$(CONFIG_GPIO_MC33880) += gpio-mc33880.o obj-$(CONFIG_GPIO_MENZ127) += gpio-menz127.o -obj-$(CONFIG_GPIO_MERRIFIELD) += gpio-merrifield.o obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o obj-$(CONFIG_GPIO_MLXBF) += gpio-mlxbf.o obj-$(CONFIG_GPIO_MLXBF2) += gpio-mlxbf2.o
@@ -179,7 +179,6 @@ obj-$(CONFIG_GPIO_SPRD) += gpio-sprd.o obj-$(CONFIG_GPIO_STMPE) += gpio-stmpe.o obj-$(CONFIG_GPIO_STP_XWAY) += gpio-stp-xway.o obj-$(CONFIG_GPIO_SYSCON) += gpio-syscon.o -obj-$(CONFIG_GPIO_TANGIER) += gpio-tangier.o obj-$(CONFIG_GPIO_TB10X) += gpio-tb10x.o obj-$(CONFIG_GPIO_TC3589X) += gpio-tc3589x.o obj-$(CONFIG_GPIO_TEGRA186) += gpio-tegra186.o
drivers/gpio/intel/Kconfig new file +37 -0
@@ -0,0 +1,37 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Intel GPIO drivers +# + +if HAS_IOMEM + +config GPIO_TANGIER + tristate + select GPIOLIB_IRQCHIP + help + GPIO support for Intel Tangier and compatible platforms. + Currently supported: + - Elkhart Lake + - Merrifield + + If built as a module its name will be gpio-tangier. + +config GPIO_ELKHARTLAKE + tristate "Intel Elkhart Lake PSE GPIO support" + depends on INTEL_EHL_PSE_IO + select GPIO_TANGIER + help + Select this option to enable GPIO support for Intel Elkhart Lake + PSE GPIO IP. + + To compile this driver as a module, choose M here: the module will + be called gpio-elkhartlake. + +config GPIO_MERRIFIELD + tristate "Intel Merrifield GPIO support" + depends on X86_INTEL_MID + select GPIO_TANGIER + help + Say Y here to support Intel Merrifield GPIO. + +endif
drivers/gpio/intel/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0 +# Intel GPIO drivers + +obj-$(CONFIG_GPIO_TANGIER) += gpio-tangier.o +obj-$(CONFIG_GPIO_ELKHARTLAKE) += gpio-elkhartlake.o +obj-$(CONFIG_GPIO_MERRIFIELD) += gpio-merrifield.o
drivers/gpio/intel/gpio-elkhartlake.c renamed from drivers/gpio/gpio-elkhartlake.c +0 -0
drivers/gpio/intel/gpio-merrifield.c renamed from drivers/gpio/gpio-merrifield.c +0 -0
drivers/gpio/intel/gpio-tangier.c renamed from drivers/gpio/gpio-tangier.c +0 -0
drivers/gpio/intel/gpio-tangier.h renamed from drivers/gpio/gpio-tangier.h +0 -0
Signature · 1 line
2.50.1
PATCH 2/5 gpio: Move Intel PMIC GPIO drivers to the dedicated subfolder
In reply to Andy ShevchenkoFor better maintenance and development experience, move Intel PMIC GPIO drivers to the dedicated subfolder.
---
MAINTAINERS | 4 +--
drivers/gpio/Kconfig | 26 ----------------
drivers/gpio/Makefile | 2 --
drivers/gpio/intel/Kconfig | 2 ++
drivers/gpio/intel/Makefile | 2 ++
drivers/gpio/intel/pmic/Kconfig | 30 +++++++++++++++++++
drivers/gpio/intel/pmic/Makefile | 5 ++++
.../gpio/{ => intel/pmic}/gpio-crystalcove.c | 0
drivers/gpio/{ => intel/pmic}/gpio-wcove.c | 0
9 files changed, 41 insertions(+), 30 deletions(-)
create mode 100644 drivers/gpio/intel/pmic/Kconfig
create mode 100644 drivers/gpio/intel/pmic/Makefile
rename drivers/gpio/{ => intel/pmic}/gpio-crystalcove.c (100%)
rename drivers/gpio/{ => intel/pmic}/gpio-wcove.c (100%)MAINTAINERS +2 -2
@@ -13394,7 +13394,7 @@ INTEL PMIC GPIO DRIVERS M: Andy Shevchenko <[email protected]> S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel.git -F: drivers/gpio/gpio-*cove.c +F: drivers/gpio/intel/pmic/ INTEL PMIC MULTIFUNCTION DEVICE DRIVERS M: Andy Shevchenko <[email protected]>
@@ -29374,7 +29374,7 @@ WHISKEYCOVE PMIC GPIO DRIVER M: Kuppuswamy Sathyanarayanan <[email protected]> L: [email protected] S: Maintained -F: drivers/gpio/gpio-wcove.c +F: drivers/gpio/intel/pmic/gpio-wcove.c WHWAVE RTC DRIVER M: Dianlong Li <[email protected]>
drivers/gpio/Kconfig +0 -26
@@ -1407,19 +1407,6 @@ config GPIO_CROS_EC This driver can also be built as a module. If so, the module will be called gpio-cros-ec. -config GPIO_CRYSTAL_COVE - tristate "GPIO support for Crystal Cove PMIC" - depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC - select GPIOLIB_IRQCHIP - help - Support for GPIO pins on Crystal Cove PMIC. - - Say Yes if you have a Intel SoC-based tablet with Crystal Cove PMIC - inside. - - This driver can also be built as a module. If so, the module will be - called gpio-crystalcove. - config GPIO_CS5535 tristate "AMD CS5535/CS5536 GPIO support" depends on X86 || MIPS || COMPILE_TEST
@@ -1759,19 +1746,6 @@ config GPIO_TWL6040 Say yes here to access the GPO signals of twl6040 audio chip from Texas Instruments. -config GPIO_WHISKEY_COVE - tristate "GPIO support for Whiskey Cove PMIC" - depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWC - select GPIOLIB_IRQCHIP - help - Support for GPIO pins on Whiskey Cove PMIC. - - Say Yes if you have an Intel SoC-based tablet with Whiskey Cove PMIC - inside. - - This driver can also be built as a module. If so, the module will be - called gpio-wcove. - config GPIO_WM831X tristate "WM831x GPIOs" depends on MFD_WM831X
drivers/gpio/Makefile +0 -2
@@ -57,7 +57,6 @@ obj-$(CONFIG_GPIO_CGBC) += gpio-cgbc.o obj-$(CONFIG_GPIO_CLPS711X) += gpio-clps711x.o obj-$(CONFIG_GPIO_SNPS_CREG) += gpio-creg-snps.o obj-$(CONFIG_GPIO_CROS_EC) += gpio-cros-ec.o -obj-$(CONFIG_GPIO_CRYSTAL_COVE) += gpio-crystalcove.o obj-$(CONFIG_GPIO_CS5535) += gpio-cs5535.o obj-$(CONFIG_GPIO_DA9052) += gpio-da9052.o obj-$(CONFIG_GPIO_DA9055) += gpio-da9055.o
@@ -209,7 +208,6 @@ obj-$(CONFIG_GPIO_VISCONTI) += gpio-visconti.o obj-$(CONFIG_GPIO_VX855) += gpio-vx855.o obj-$(CONFIG_GPIO_WAVESHARE_DSI_TOUCH) += gpio-waveshare-dsi.o obj-$(CONFIG_GPIO_WCD934X) += gpio-wcd934x.o -obj-$(CONFIG_GPIO_WHISKEY_COVE) += gpio-wcove.o obj-$(CONFIG_GPIO_WINBOND) += gpio-winbond.o obj-$(CONFIG_GPIO_WM831X) += gpio-wm831x.o obj-$(CONFIG_GPIO_WM8350) += gpio-wm8350.o
drivers/gpio/intel/Kconfig +2 -0
@@ -35,3 +35,5 @@ config GPIO_MERRIFIELD Say Y here to support Intel Merrifield GPIO. endif + +source "drivers/gpio/intel/pmic/Kconfig"
drivers/gpio/intel/Makefile +2 -0
@@ -4,3 +4,5 @@ obj-$(CONFIG_GPIO_TANGIER) += gpio-tangier.o obj-$(CONFIG_GPIO_ELKHARTLAKE) += gpio-elkhartlake.o obj-$(CONFIG_GPIO_MERRIFIELD) += gpio-merrifield.o + +obj-y += pmic/
drivers/gpio/intel/pmic/Kconfig new file +30 -0
@@ -0,0 +1,30 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Intel PMIC GPIO drivers +# + +config GPIO_CRYSTAL_COVE + tristate "GPIO support for Crystal Cove PMIC" + depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC + select GPIOLIB_IRQCHIP + help + Support for GPIO pins on Crystal Cove PMIC. + + Say Yes if you have a Intel SoC-based tablet with Crystal Cove PMIC + inside. + + This driver can also be built as a module. If so, the module will be + called gpio-crystalcove. + +config GPIO_WHISKEY_COVE + tristate "GPIO support for Whiskey Cove PMIC" + depends on (X86 || COMPILE_TEST) && INTEL_SOC_PMIC_BXTWC + select GPIOLIB_IRQCHIP + help + Support for GPIO pins on Whiskey Cove PMIC. + + Say Yes if you have an Intel SoC-based tablet with Whiskey Cove PMIC + inside. + + This driver can also be built as a module. If so, the module will be + called gpio-wcove.
drivers/gpio/intel/pmic/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-2.0 +# Intel PMIC GPIO drivers + +obj-$(CONFIG_GPIO_CRYSTAL_COVE) += gpio-crystalcove.o +obj-$(CONFIG_GPIO_WHISKEY_COVE) += gpio-wcove.o
drivers/gpio/intel/pmic/gpio-crystalcove.c renamed from drivers/gpio/gpio-crystalcove.c +0 -0
drivers/gpio/intel/pmic/gpio-wcove.c renamed from drivers/gpio/gpio-wcove.c +0 -0
Signature · 1 line
2.50.1
PATCH 4/5 gpio: Move Intel Sodaville GPIO driver to the intel subfolder
In reply to Andy ShevchenkoFor better maintenance and development experience, move Intel Sodaville GPIO driver to the intel subfolder.
---
MAINTAINERS | 1 -
drivers/gpio/Kconfig | 8 --------
drivers/gpio/Makefile | 1 -
drivers/gpio/intel/Kconfig | 9 +++++++++
drivers/gpio/intel/Makefile | 2 ++
drivers/gpio/{ => intel}/gpio-sodaville.c | 0
6 files changed, 11 insertions(+), 10 deletions(-)
rename drivers/gpio/{ => intel}/gpio-sodaville.c (100%)MAINTAINERS +0 -1
@@ -13132,7 +13132,6 @@ L: [email protected] S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel.git F: drivers/gpio/gpio-graniterapids.c -F: drivers/gpio/gpio-sodaville.c F: drivers/gpio/intel/ INTEL GPIO GPE DRIVER
drivers/gpio/Kconfig +0 -8
@@ -1837,14 +1837,6 @@ config GPIO_RDC321X Support for the RDC R321x SoC GPIOs over southbridge PCI configuration space. -config GPIO_SODAVILLE - bool "Intel Sodaville GPIO support" - depends on X86 && OF - select GPIO_GENERIC - select GENERIC_IRQ_CHIP - help - Say Y here to support Intel Sodaville GPIO. - endmenu menu "SPI GPIO expanders"
drivers/gpio/Makefile +0 -1
@@ -167,7 +167,6 @@ obj-$(CONFIG_GPIO_SIM) += gpio-sim.o obj-$(CONFIG_GPIO_SIOX) += gpio-siox.o obj-$(CONFIG_GPIO_SL28CPLD) += gpio-sl28cpld.o obj-$(CONFIG_GPIO_SLOPPY_LOGIC_ANALYZER) += gpio-sloppy-logic-analyzer.o -obj-$(CONFIG_GPIO_SODAVILLE) += gpio-sodaville.o obj-$(CONFIG_GPIO_SPACEMIT_K1) += gpio-spacemit-k1.o obj-$(CONFIG_GPIO_SPEAR_SPICS) += gpio-spear-spics.o obj-$(CONFIG_GPIO_SPRD) += gpio-sprd.o
drivers/gpio/intel/Kconfig +9 -0
@@ -36,6 +36,15 @@ config GPIO_MERRIFIELD endif +config GPIO_SODAVILLE + bool "Intel Sodaville GPIO support" + depends on X86 && OF + depends on PCI + select GPIO_GENERIC + select GENERIC_IRQ_CHIP + help + Say Y here to support Intel Sodaville GPIO. + # PCH type of drivers if PCI
drivers/gpio/intel/Makefile +2 -0
@@ -5,6 +5,8 @@ obj-$(CONFIG_GPIO_TANGIER) += gpio-tangier.o obj-$(CONFIG_GPIO_ELKHARTLAKE) += gpio-elkhartlake.o obj-$(CONFIG_GPIO_MERRIFIELD) += gpio-merrifield.o +obj-$(CONFIG_GPIO_SODAVILLE) += gpio-sodaville.o + # PCH type of drivers obj-$(CONFIG_GPIO_ICH) += gpio-ich.o
drivers/gpio/intel/gpio-sodaville.c renamed from drivers/gpio/gpio-sodaville.c +0 -0
Signature · 1 line
2.50.1
PATCH 5/5 gpio: Move Intel vGPIO driver to the intel subfolder
In reply to Andy ShevchenkoFor better maintenance and development experience, move Intel vGPIO driver to the intel subfolder.
---
MAINTAINERS | 1 -
drivers/gpio/Kconfig | 18 ------------------
drivers/gpio/Makefile | 1 -
drivers/gpio/intel/Kconfig | 18 ++++++++++++++++++
drivers/gpio/intel/Makefile | 2 ++
drivers/gpio/{ => intel}/gpio-graniterapids.c | 0
6 files changed, 20 insertions(+), 20 deletions(-)
rename drivers/gpio/{ => intel}/gpio-graniterapids.c (100%)MAINTAINERS +0 -1
@@ -13131,7 +13131,6 @@ M: Andy Shevchenko <[email protected]> L: [email protected] S: Supported T: git git://git.kernel.org/pub/scm/linux/kernel/git/andy/linux-gpio-intel.git -F: drivers/gpio/gpio-graniterapids.c F: drivers/gpio/intel/ INTEL GPIO GPE DRIVER
drivers/gpio/Kconfig +0 -18
@@ -362,24 +362,6 @@ config GPIO_GENERIC_PLATFORM help Say yes here to support basic platform_device memory-mapped GPIO controllers. -config GPIO_GRANITERAPIDS - tristate "Intel Granite Rapids-D vGPIO support" - depends on X86 || COMPILE_TEST - select GPIOLIB_IRQCHIP - help - Select this to enable virtual GPIO support on platforms with the - following SoCs: - - - Intel Granite Rapids-D - - The driver enables basic GPIO functionality and implements interrupt - support. The virtual GPIO driver controls GPIO lines via a firmware - interface. The physical GPIO pins reside on device that is external - from the main SoC package, such as a BMC or a CPLD. - - To compile this driver as a module, choose M here: the module will - be called gpio-graniterapids. - config GPIO_GRGPIO tristate "Aeroflex Gaisler GRGPIO support" depends on OF || COMPILE_TEST
drivers/gpio/Makefile +0 -1
@@ -74,7 +74,6 @@ obj-$(CONFIG_GPIO_FTGPIO010) += gpio-ftgpio010.o obj-$(CONFIG_GPIO_FXL6408) += gpio-fxl6408.o obj-$(CONFIG_GPIO_GE_FPGA) += gpio-ge.o obj-$(CONFIG_GPIO_GPIO_MM) += gpio-gpio-mm.o -obj-$(CONFIG_GPIO_GRANITERAPIDS) += gpio-graniterapids.o obj-$(CONFIG_GPIO_GRGPIO) += gpio-grgpio.o obj-$(CONFIG_GPIO_GW_PLD) += gpio-gw-pld.o obj-$(CONFIG_GPIO_HISI) += gpio-hisi.o
drivers/gpio/intel/Kconfig +18 -0
@@ -5,6 +5,24 @@ if HAS_IOMEM +config GPIO_GRANITERAPIDS + tristate "Intel Granite Rapids-D vGPIO support" + depends on X86 || COMPILE_TEST + select GPIOLIB_IRQCHIP + help + Select this to enable virtual GPIO support on platforms with the + following SoCs: + + - Intel Granite Rapids-D + + The driver enables basic GPIO functionality and implements interrupt + support. The virtual GPIO driver controls GPIO lines via a firmware + interface. The physical GPIO pins reside on device that is external + from the main SoC package, such as a BMC or a CPLD. + + To compile this driver as a module, choose M here: the module will + be called gpio-graniterapids. + config GPIO_TANGIER tristate select GPIOLIB_IRQCHIP
drivers/gpio/intel/Makefile +2 -0
@@ -1,6 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 # Intel GPIO drivers +obj-$(CONFIG_GPIO_GRANITERAPIDS) += gpio-graniterapids.o + obj-$(CONFIG_GPIO_TANGIER) += gpio-tangier.o obj-$(CONFIG_GPIO_ELKHARTLAKE) += gpio-elkhartlake.o obj-$(CONFIG_GPIO_MERRIFIELD) += gpio-merrifield.o
drivers/gpio/intel/gpio-graniterapids.c renamed from drivers/gpio/gpio-graniterapids.c +0 -0
Signature · 1 line
2.50.1
Re: [PATCH v1 1/5] gpio: Move Intel GPIO drivers to the dedicated subfolder
In reply to Andy ShevchenkoQuoted 5 lines · Andy Shevchenko
For better maintenance and development experience, move Intel GPIO drivers to the dedicated subfolder. This starts with Intel MID and Elkhart Lake ones that share the same core part.
Signed-off-by Andy Shevchenko <[email protected]>
Quoted 9 lines
---
MAINTAINERS | 9 ++---
drivers/gpio/Kconfig | 31 ++---------------
drivers/gpio/Makefile | 5 ++-
drivers/gpio/intel/Kconfig | 37 +++++++++++++++++++++
drivers/gpio/intel/Makefile | 6 ++++
drivers/gpio/{ => intel}/gpio-elkhartlake.c | 0
drivers/gpio/{ => intel}/gpio-merrifield.c | 0
drivers/gpio/{ => intel}/gpio-tangier.c | 0Quoted 8 lines
drivers/gpio/{ => intel}/gpio-tangier.h | 0
9 files changed, 50 insertions(+), 38 deletions(-)
create mode 100644 drivers/gpio/intel/Kconfig
create mode 100644 drivers/gpio/intel/Makefile
rename drivers/gpio/{ => intel}/gpio-elkhartlake.c (100%)
rename drivers/gpio/{ => intel}/gpio-merrifield.c (100%)
rename drivers/gpio/{ => intel}/gpio-tangier.c (100%)
rename drivers/gpio/{ => intel}/gpio-tangier.h (100%)These are already in good hands but I'd like to be atleast informed about these. Although I'm not sure if it's worth a dedicated entry, so I'll leave it upto you.
Raag
Re: [PATCH v1 1/5] gpio: Move Intel GPIO drivers to the dedicated subfolder
Quoted 1 line · Raag Jadav
On Fri, Sep 25, 2026 at 05:57:03PM +0200, Andy Shevchenko wrote:
...
Quoted 12 lines
Quoted 11 lines
drivers/gpio/{ => intel}/gpio-elkhartlake.c | 0 drivers/gpio/{ => intel}/gpio-merrifield.c | 0 drivers/gpio/{ => intel}/gpio-tangier.c | 0 drivers/gpio/{ => intel}/gpio-tangier.h | 0 9 files changed, 50 insertions(+), 38 deletions(-) create mode 100644 drivers/gpio/intel/Kconfig create mode 100644 drivers/gpio/intel/Makefile rename drivers/gpio/{ => intel}/gpio-elkhartlake.c (100%) rename drivers/gpio/{ => intel}/gpio-merrifield.c (100%) rename drivers/gpio/{ => intel}/gpio-tangier.c (100%) rename drivers/gpio/{ => intel}/gpio-tangier.h (100%)
Quoted 3 lines
These are already in good hands but I'd like to be atleast informed about these. Although I'm not sure if it's worth a dedicated entry, so I'll leave it upto you.
The patch adding the respective entry to MAINTAINERS is welcome, if you think it worth doing.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Bartosz Golaszewski
maintainerRe: [PATCH v1 2/5] gpio: Move Intel PMIC GPIO drivers to the dedicated subfolder
In reply to Andy ShevchenkoQuoted 4 lines · Andy Shevchenko
For better maintenance and development experience, move Intel PMIC GPIO drivers to the dedicated subfolder.
Signed-off-by Andy Shevchenko <[email protected]>
Quoted 8 lines
--- MAINTAINERS | 4 +-- drivers/gpio/Kconfig | 26 ---------------- drivers/gpio/Makefile | 2 -- drivers/gpio/intel/Kconfig | 2 ++ drivers/gpio/intel/Makefile | 2 ++ drivers/gpio/intel/pmic/Kconfig | 30 +++++++++++++++++++ drivers/gpio/intel/pmic/Makefile | 5 ++++
This makes it a very fine-grained split, I'm not sure we really need this big directory structure when - so far - we got along with all the drivers being in the same directory?
Look at drivers/pinctrl/intel - there's no such deep structure there.
Bart
Re: [PATCH v1 2/5] gpio: Move Intel PMIC GPIO drivers to the dedicated subfolder
Quoted 4 lines · Bartosz Golaszewski
Quoted 2 lines · Andy Shevchenko
For better maintenance and development experience, move Intel PMIC GPIO drivers to the dedicated subfolder.
...
Quoted 8 lines
Quoted 7 lines
MAINTAINERS | 4 +-- drivers/gpio/Kconfig | 26 ---------------- drivers/gpio/Makefile | 2 -- drivers/gpio/intel/Kconfig | 2 ++ drivers/gpio/intel/Makefile | 2 ++ drivers/gpio/intel/pmic/Kconfig | 30 +++++++++++++++++++ drivers/gpio/intel/pmic/Makefile | 5 ++++
Quoted 5 lines
This makes it a very fine-grained split, I'm not sure we really need this big directory structure when - so far - we got along with all the drivers being in the same directory?
Look at
drivers/pinctrl/intel- there's no such deep structure there.
These have a separate MAINTAINERS entry and not that common GPIO drivers with the rest.
Basically the whole series follows the split that we have in the MAINTAINERS already. One patch per group of the drivers / MAINTAINERS record.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCH v1 3/5] gpio: Move Intel PCH type of GPIO drivers to the intel subfolder
In reply to Andy ShevchenkoHi Andy,
One small note: moving GPIO_ICH under "if PCI" also excludes its existing COMPILE_TEST && HAS_IOPORT path when PCI=n.
I checked that gpio-ich.o builds with W=1 in that configuration before the move. Could we keep GPIO_ICH outside the PCI conditional to preserve that coverage?
Thanks,
Junjie
Re: [PATCH v1 3/5] gpio: Move Intel PCH type of GPIO drivers to the intel subfolder
Quoted 8 lines · Junjie Cao
One small note: moving
GPIO_ICHunder "if PCI" also excludes its existingCOMPILE_TEST&&HAS_IOPORTpath when PCI=n.I checked that gpio-ich.o builds with W=1 in that configuration before the move. Could we keep
GPIO_ICHoutside the PCI conditional to preserve that coverage?
For what purpose? Yes, it might compile with PCI=n, but it makes no functional sense. Note, that currently Kconfig puts (mistakenly!) this driver as memory mapped GPIO driver, which is true, but not the whole picture. This is part of MFD driver, that is solely PCI and never been anything else. My series rectifies (or, if you wish, clarifies) this.
Also note, that having compile test enabled on PCI devices with PCI=n may lead to build issues as PCI doesn't have full set of stubs (yet?). It's not directly related to _this_ driver, but MFD parent one might be the case.
But, of course, it's not a big deal to add " || COMPILE_TEST" to that "if PCI". I will consider doing that if we move forward with this series at all. Currently there is no consensus on what to do with some drivers.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 3 lines · Andy Shevchenko
Cc'ed to William on the point to might be hosting i8255 et alia (PC104?) under the 'intel/i8255' subfolder on the terms like described above for USBIO. Or you, William, can send me PRs, either way I don't want to maintain those.
Hi Andy,
I can stay as maintainer for the i8255 files with them hosted under the intel folder.
Thanks,
William Breathitt Gray
Bartosz Golaszewski
maintainerQuoted 4 lines · Andy Shevchenko
For the easier maintenance and future development move most of Intel GPIO drivers to the dedicated 'intel' folder. For now it only covers the drivers I maintain (as per record in the
MAINTAINERS).
I wanted to apply this in order to see how the menuconfig looks like with it but it doesn't apply neither to next/master nor v7.4-rc1.
Bart
Quoted 8 lines · Bartosz Golaszewski
Quoted 3 lines · Andy Shevchenko
For the easier maintenance and future development move most of Intel GPIO drivers to the dedicated 'intel' folder. For now it only covers the drivers I maintain (as per record in the
MAINTAINERS).I wanted to apply this in order to see how the menuconfig looks like with it but it doesn't apply neither to next/master nor v7.4-rc1.
I will check this as soon as I can (currently I have something else to address which is more urgent and it's not related to Linux at all).
Signature · 2 lines
With Best Regards, Andy Shevchenko
Quoted 11 lines · Andy Shevchenko
Quoted 7 lines · Bartosz Golaszewski
Quoted 3 lines · Andy Shevchenko
For the easier maintenance and future development move most of Intel GPIO drivers to the dedicated 'intel' folder. For now it only covers the drivers I maintain (as per record in the
MAINTAINERS).I wanted to apply this in order to see how the menuconfig looks like with it but it doesn't apply neither to next/master nor v7.4-rc1.
I will check this as soon as I can (currently I have something else to address which is more urgent and it's not related to Linux at all).
Actually I can't do it right now as it will be a race with the incoming patches (for example, I see gpio-sodaville change in the mailing list). Can you tell me when it will be the time that
1) your for-current is present in for-next (so no merging conflicts)
2) your for-next is closed for new patches for a few days?
Only with that I can achieve some good result, otherwise you will always tell me to rebase/resend and while I do this, there will be a chance of a new contribution that continues the loop.
TL;DR: I truly believe that the best timing for such a series is just after the -rc1 as a first batch against for-current *and* for-next (same piece assumed to go to -rc2). But of course, we may resolve the potential conflicts.
So, what do you think?
Signature · 2 lines
With Best Regards, Andy Shevchenko
Bartosz Golaszewski
maintainerQuoted 20 lines · Andy Shevchenko
Quoted 11 lines · Andy Shevchenko
Quoted 7 lines · Bartosz Golaszewski
Quoted 3 lines · Andy Shevchenko
For the easier maintenance and future development move most of Intel GPIO drivers to the dedicated 'intel' folder. For now it only covers the drivers I maintain (as per record in the
MAINTAINERS).I wanted to apply this in order to see how the menuconfig looks like with it but it doesn't apply neither to next/master nor v7.4-rc1.
I will check this as soon as I can (currently I have something else to address which is more urgent and it's not related to Linux at all).
Actually I can't do it right now as it will be a race with the incoming patches (for example, I see gpio-sodaville change in the mailing list). Can you tell me when it will be the time that
1) your for-current is present in for-next (so no merging conflicts)
2) your for-next is closed for new patches for a few days?
Quoted 9 lines
Only with that I can achieve some good result, otherwise you will always tell me to rebase/resend and while I do this, there will be a chance of a new contribution that continues the loop.
TL;DR: I truly believe that the best timing for such a series is just after the -rc1 as a first batch against for-current *and* for-next (same piece assumed to go to -rc2). But of course, we may resolve the potential conflicts.
Can we do it during the next merge window? After I send my initial PR, you rebase, resend, I queue it and send it to Linus in a subsequent PR?
Do you have a public branch in the meantime that I could play with?
Bart
Quoted 25 lines · Bartosz Golaszewski
Quoted 24 lines · Andy Shevchenko
Quoted 11 lines · Andy Shevchenko
Quoted 7 lines · Bartosz Golaszewski
Quoted 3 lines · Andy Shevchenko
For the easier maintenance and future development move most of Intel GPIO drivers to the dedicated 'intel' folder. For now it only covers the drivers I maintain (as per record in the
MAINTAINERS).I wanted to apply this in order to see how the menuconfig looks like with it but it doesn't apply neither to next/master nor v7.4-rc1.
I will check this as soon as I can (currently I have something else to address which is more urgent and it's not related to Linux at all).
Actually I can't do it right now as it will be a race with the incoming patches (for example, I see gpio-sodaville change in the mailing list). Can you tell me when it will be the time that
1) your for-current is present in for-next (so no merging conflicts)
2) your for-next is closed for new patches for a few days?Only with that I can achieve some good result, otherwise you will always tell me to rebase/resend and while I do this, there will be a chance of a new contribution that continues the loop.
Quoted 8 lines
Quoted 5 lines
TL;DR: I truly believe that the best timing for such a series is just after the -rc1 as a first batch against for-current *and* for-next (same piece assumed to go to -rc2). But of course, we may resolve the potential conflicts.
Can we do it during the next merge window? After I send my initial PR, you rebase, resend, I queue it and send it to Linus in a subsequent PR?
Sure.
Quoted 1 line
Do you have a public branch in the meantime that I could play with?
Not at the moment, but I can resurrect my public GitLab repo. I will provide details later on.
Signature · 2 lines
With Best Regards, Andy Shevchenko