[PATCH v2] gpio: Correct dependencies for MCP230xx
Charles Perry
charles.perry at microchip.com
Thu May 7 20:51:22 CEST 2026
This driver depends on DM_I2C and DM_SPI, add it.
Fixes: 3b639f643889 ("gpio: mcp230xx: Add support for models with SPI interface.")
Signed-off-by: Charles Perry <charles.perry at microchip.com>
Reviewed-by: Quentin Schulz <quentin.schulz at cherry.de>
---
Notes:
Changes in v2:
* Mention SPI devices in the Kconfig help
* Add a Fixes: tag
* Collect Quentin's Reviewed-by: Charles Perry <charles.perry at microchip.com>
drivers/gpio/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig
index 37cb672697c0..8cfdabf76cd8 100644
--- a/drivers/gpio/Kconfig
+++ b/drivers/gpio/Kconfig
@@ -309,9 +309,9 @@ config MAX77663_GPIO
config MCP230XX_GPIO
bool "MCP230XX GPIO driver"
- depends on DM
+ depends on DM && DM_I2C && DM_SPI
help
- Support for Microchip's MCP230XX I2C connected GPIO devices.
+ Support for Microchip's MCP230XX I2C and SPI connected GPIO devices.
The following chips are supported:
- MCP23008
- MCP23017
--
2.47.3
More information about the U-Boot
mailing list