[PATCH v2 0/9] gpio: remove uneeded Kconfig dependencies on OF_GPIO

From: Bartosz Golaszewski

Date: Mon Mar 16 2026 - 05:52:21 EST


NOTE: Each patch in this series can be picked up independently into
maintainer trees.

CONFIG_OF_GPIO is a switch that enables the compilation of the gpiolib-of
module. The module itself handles GPIO lookup via the OF-node tree and
is automatically enabled on all OF systems. It does not export any
public symbols to drivers. There is no reason for them to select or
depend on it in Kconfig.

This series removes any such dependencies from Kconfig. If a given entry
has no other dependencies than OF_GPIO - they are converted to OF to
avoid new symbols popping up for everyone in make config.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
---
Changes in v2:
- Make gpio-watchdog depend on OF && GPIOLIB
- Drop picked up patches
- Link to v1: https://patch.msgid.link/20260304-gpio-of-kconfig-v1-0-d597916e79e7@xxxxxxxxxxxxxxxx

---
Bartosz Golaszewski (9):
arm64: Kconfig: drop unneeded dependency on OF_GPIO
net: mdio: drop unneeded dependency on OF_GPIO
gpio: drop unneeded Kconfig dependencies on OF_GPIO
leds: Kconfig: drop unneeded dependency on OF_GPIO
watchdog: convert the Kconfig dependency on OF_GPIO to OF
bus: drop unneeded dependency on OF_GPIO
staging: media: max96712: drop unneeded dependency on OF_GPIO
power: reset: drop unneeded dependencies on OF_GPIO
media: i2c: drop unneeded dependencies on OF_GPIO

arch/arm64/Kconfig.platforms | 1 -
drivers/bus/Kconfig | 2 +-
drivers/gpio/Kconfig | 53 +++++++++++-----------------------
drivers/leds/Kconfig | 1 -
drivers/media/i2c/Kconfig | 12 ++++----
drivers/net/mdio/Kconfig | 2 +-
drivers/power/reset/Kconfig | 8 ++---
drivers/staging/media/max96712/Kconfig | 1 -
drivers/watchdog/Kconfig | 2 +-
9 files changed, 29 insertions(+), 53 deletions(-)
---
base-commit: b84a0ebe421ca56995ff78b66307667b62b3a900
change-id: 20260304-gpio-of-kconfig-e257ea7c9a09

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>