Skip to content

Commit 64ac43e

Browse files
srelinusw
authored andcommitted
gpio: mcp23s08: move to pinctrl
This moves the mcp23s08 driver from gpio to pinctrl. Actual pinctrl support for configuration of the pull-up resistors follows in its own patch. Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 0833289 commit 64ac43e

File tree

9 files changed

+20
-24
lines changed

9 files changed

+20
-24
lines changed

arch/arm/configs/lpc32xx_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ CONFIG_GPIO_SX150X=y
112112
CONFIG_GPIO_74X164=y
113113
CONFIG_GPIO_MAX7301=y
114114
CONFIG_GPIO_MC33880=y
115-
CONFIG_GPIO_MCP23S08=y
115+
CONFIG_PINCTRL_MCP23S08=y
116116
CONFIG_SENSORS_DS620=y
117117
CONFIG_SENSORS_MAX6639=y
118118
CONFIG_WATCHDOG=y

arch/blackfin/configs/BF609-EZKIT_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ CONFIG_SPI=y
105105
CONFIG_SPI_ADI_V3=y
106106
CONFIG_GPIOLIB=y
107107
CONFIG_GPIO_SYSFS=y
108-
CONFIG_GPIO_MCP23S08=y
108+
CONFIG_PINCTRL_MCP23S08=y
109109
# CONFIG_HWMON is not set
110110
CONFIG_WATCHDOG=y
111111
CONFIG_BFIN_WDT=y

arch/blackfin/mach-bf527/boards/tll6527m.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static struct platform_device bfin_i2s = {
348348
};
349349
#endif
350350

351-
#if IS_ENABLED(CONFIG_GPIO_MCP23S08)
351+
#if IS_ENABLED(CONFIG_PINCTRL_MCP23S08)
352352
#include <linux/spi/mcp23s08.h>
353353
static const struct mcp23s08_platform_data bfin_mcp23s08_sys_gpio_info = {
354354
.chip[0].is_present = true,
@@ -423,7 +423,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
423423
.mode = SPI_CPHA | SPI_CPOL,
424424
},
425425
#endif
426-
#if IS_ENABLED(CONFIG_GPIO_MCP23S08)
426+
#if IS_ENABLED(CONFIG_PINCTRL_MCP23S08)
427427
{
428428
.modalias = "mcp23s08",
429429
.platform_data = &bfin_mcp23s08_sys_gpio_info,

arch/blackfin/mach-bf609/boards/ezkit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ static struct platform_device i2c_bfin_twi1_device = {
18871887
};
18881888
#endif
18891889

1890-
#if IS_ENABLED(CONFIG_GPIO_MCP23S08)
1890+
#if IS_ENABLED(CONFIG_PINCTRL_MCP23S08)
18911891
#include <linux/spi/mcp23s08.h>
18921892
static const struct mcp23s08_platform_data bfin_mcp23s08_soft_switch0 = {
18931893
.base = 120,
@@ -1929,7 +1929,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
19291929
I2C_BOARD_INFO("ssm2602", 0x1b),
19301930
},
19311931
#endif
1932-
#if IS_ENABLED(CONFIG_GPIO_MCP23S08)
1932+
#if IS_ENABLED(CONFIG_PINCTRL_MCP23S08)
19331933
{
19341934
I2C_BOARD_INFO("mcp23017", 0x21),
19351935
.platform_data = (void *)&bfin_mcp23s08_soft_switch0

drivers/gpio/Kconfig

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,23 +1227,6 @@ config GPIO_PISOSR
12271227

12281228
endmenu
12291229

1230-
menu "SPI or I2C GPIO expanders"
1231-
depends on (SPI_MASTER && !I2C) || I2C
1232-
1233-
config GPIO_MCP23S08
1234-
tristate "Microchip MCP23xxx I/O expander"
1235-
depends on OF_GPIO
1236-
select GPIOLIB_IRQCHIP
1237-
select REGMAP_I2C if I2C
1238-
select REGMAP if SPI_MASTER
1239-
help
1240-
SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
1241-
I/O expanders.
1242-
This provides a GPIO interface supporting inputs and outputs.
1243-
The I2C versions of the chips can be used as interrupt-controller.
1244-
1245-
endmenu
1246-
12471230
menu "USB GPIO expanders"
12481231
depends on USB
12491232

drivers/gpio/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ obj-$(CONFIG_GPIO_MENZ127) += gpio-menz127.o
7777
obj-$(CONFIG_GPIO_MERRIFIELD) += gpio-merrifield.o
7878
obj-$(CONFIG_GPIO_MC33880) += gpio-mc33880.o
7979
obj-$(CONFIG_GPIO_MC9S08DZ60) += gpio-mc9s08dz60.o
80-
obj-$(CONFIG_GPIO_MCP23S08) += gpio-mcp23s08.o
8180
obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o
8281
obj-$(CONFIG_GPIO_MM_LANTIQ) += gpio-mm-lantiq.o
8382
obj-$(CONFIG_GPIO_MOCKUP) += gpio-mockup.o

drivers/pinctrl/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,19 @@ config PINCTRL_FALCON
146146
depends on SOC_FALCON
147147
depends on PINCTRL_LANTIQ
148148

149+
config PINCTRL_MCP23S08
150+
tristate "Microchip MCP23xxx I/O expander"
151+
depends on OF_GPIO
152+
depends on SPI_MASTER || I2C
153+
select GPIOLIB_IRQCHIP
154+
select REGMAP_I2C if I2C
155+
select REGMAP_SPI if SPI_MASTER
156+
help
157+
SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
158+
I/O expanders.
159+
This provides a GPIO interface supporting inputs and outputs.
160+
The I2C versions of the chips can be used as interrupt-controller.
161+
149162
config PINCTRL_MESON
150163
bool
151164
depends on OF

drivers/pinctrl/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ obj-$(CONFIG_PINCTRL_DA850_PUPD) += pinctrl-da850-pupd.o
1919
obj-$(CONFIG_PINCTRL_DIGICOLOR) += pinctrl-digicolor.o
2020
obj-$(CONFIG_PINCTRL_FALCON) += pinctrl-falcon.o
2121
obj-$(CONFIG_PINCTRL_MAX77620) += pinctrl-max77620.o
22+
obj-$(CONFIG_PINCTRL_MCP23S08) += pinctrl-mcp23s08.o
2223
obj-$(CONFIG_PINCTRL_MESON) += meson/
2324
obj-$(CONFIG_PINCTRL_OXNAS) += pinctrl-oxnas.o
2425
obj-$(CONFIG_PINCTRL_PALMAS) += pinctrl-palmas.o
File renamed without changes.

0 commit comments

Comments
 (0)