+define KernelPackage/pinctrl-mcp23s08/description
+ Kernel module for Microchip MCP23xxx I/O expander
+endef
+
+$(eval $(call KernelPackage,pinctrl-mcp23s08))
+
+
+define KernelPackage/pinctrl-mcp23s08-i2c
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=Microchip MCP23xxx I/O expander (I2C)
+ DEPENDS:=@GPIO_SUPPORT \
+ +kmod-pinctrl-mcp23s08 \
+ +kmod-i2c-core \
+ +kmod-regmap-i2c
+ KCONFIG:=CONFIG_PINCTRL_MCP23S08_I2C
+ FILES:=$(LINUX_DIR)/drivers/pinctrl/pinctrl-mcp23s08_i2c.ko
+ AUTOLOAD:=$(call AutoLoad,40,pinctrl-mcp23s08-i2c)
+endef
+
+define KernelPackage/pinctrl-mcp23s08-i2c/description
+ Kernel module for Microchip MCP23xxx I/O expander via I2C
+endef
+
+$(eval $(call KernelPackage,pinctrl-mcp23s08-i2c))
+
+
+define KernelPackage/pinctrl-mcp23s08-spi
+ SUBMENU:=$(OTHER_MENU)
+ TITLE:=Microchip MCP23xxx I/O expander (SPI)
+ DEPENDS:=@GPIO_SUPPORT +kmod-pinctrl-mcp23s08
+ KCONFIG:=CONFIG_PINCTRL_MCP23S08_SPI
+ FILES:=$(LINUX_DIR)/drivers/pinctrl/pinctrl-mcp23s08_spi.ko
+ AUTOLOAD:=$(call AutoLoad,40,pinctrl-mcp23s08-spi)
+endef
+
+define KernelPackage/pinctrl-mcp23s08-spi/description
+ Kernel module for Microchip MCP23xxx I/O expander via SPI