File tree Expand file tree Collapse file tree 9 files changed +20
-24
lines changed Expand file tree Collapse file tree 9 files changed +20
-24
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ CONFIG_GPIO_SX150X=y
112
112
CONFIG_GPIO_74X164=y
113
113
CONFIG_GPIO_MAX7301=y
114
114
CONFIG_GPIO_MC33880=y
115
- CONFIG_GPIO_MCP23S08 =y
115
+ CONFIG_PINCTRL_MCP23S08 =y
116
116
CONFIG_SENSORS_DS620=y
117
117
CONFIG_SENSORS_MAX6639=y
118
118
CONFIG_WATCHDOG=y
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ CONFIG_SPI=y
105
105
CONFIG_SPI_ADI_V3=y
106
106
CONFIG_GPIOLIB=y
107
107
CONFIG_GPIO_SYSFS=y
108
- CONFIG_GPIO_MCP23S08 =y
108
+ CONFIG_PINCTRL_MCP23S08 =y
109
109
# CONFIG_HWMON is not set
110
110
CONFIG_WATCHDOG=y
111
111
CONFIG_BFIN_WDT=y
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ static struct platform_device bfin_i2s = {
348
348
};
349
349
#endif
350
350
351
- #if IS_ENABLED (CONFIG_GPIO_MCP23S08 )
351
+ #if IS_ENABLED (CONFIG_PINCTRL_MCP23S08 )
352
352
#include <linux/spi/mcp23s08.h>
353
353
static const struct mcp23s08_platform_data bfin_mcp23s08_sys_gpio_info = {
354
354
.chip [0 ].is_present = true,
@@ -423,7 +423,7 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = {
423
423
.mode = SPI_CPHA | SPI_CPOL ,
424
424
},
425
425
#endif
426
- #if IS_ENABLED (CONFIG_GPIO_MCP23S08 )
426
+ #if IS_ENABLED (CONFIG_PINCTRL_MCP23S08 )
427
427
{
428
428
.modalias = "mcp23s08" ,
429
429
.platform_data = & bfin_mcp23s08_sys_gpio_info ,
Original file line number Diff line number Diff line change @@ -1887,7 +1887,7 @@ static struct platform_device i2c_bfin_twi1_device = {
1887
1887
};
1888
1888
#endif
1889
1889
1890
- #if IS_ENABLED (CONFIG_GPIO_MCP23S08 )
1890
+ #if IS_ENABLED (CONFIG_PINCTRL_MCP23S08 )
1891
1891
#include <linux/spi/mcp23s08.h>
1892
1892
static const struct mcp23s08_platform_data bfin_mcp23s08_soft_switch0 = {
1893
1893
.base = 120 ,
@@ -1929,7 +1929,7 @@ static struct i2c_board_info __initdata bfin_i2c_board_info0[] = {
1929
1929
I2C_BOARD_INFO ("ssm2602" , 0x1b ),
1930
1930
},
1931
1931
#endif
1932
- #if IS_ENABLED (CONFIG_GPIO_MCP23S08 )
1932
+ #if IS_ENABLED (CONFIG_PINCTRL_MCP23S08 )
1933
1933
{
1934
1934
I2C_BOARD_INFO ("mcp23017" , 0x21 ),
1935
1935
.platform_data = (void * )& bfin_mcp23s08_soft_switch0
Original file line number Diff line number Diff line change @@ -1227,23 +1227,6 @@ config GPIO_PISOSR
1227
1227
1228
1228
endmenu
1229
1229
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
-
1247
1230
menu "USB GPIO expanders"
1248
1231
depends on USB
1249
1232
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ obj-$(CONFIG_GPIO_MENZ127) += gpio-menz127.o
77
77
obj-$(CONFIG_GPIO_MERRIFIELD) += gpio-merrifield.o
78
78
obj-$(CONFIG_GPIO_MC33880) += gpio-mc33880.o
79
79
obj-$(CONFIG_GPIO_MC9S08DZ60) += gpio-mc9s08dz60.o
80
- obj-$(CONFIG_GPIO_MCP23S08) += gpio-mcp23s08.o
81
80
obj-$(CONFIG_GPIO_ML_IOH) += gpio-ml-ioh.o
82
81
obj-$(CONFIG_GPIO_MM_LANTIQ) += gpio-mm-lantiq.o
83
82
obj-$(CONFIG_GPIO_MOCKUP) += gpio-mockup.o
Original file line number Diff line number Diff line change @@ -146,6 +146,19 @@ config PINCTRL_FALCON
146
146
depends on SOC_FALCON
147
147
depends on PINCTRL_LANTIQ
148
148
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
+
149
162
config PINCTRL_MESON
150
163
bool
151
164
depends on OF
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ obj-$(CONFIG_PINCTRL_DA850_PUPD) += pinctrl-da850-pupd.o
19
19
obj-$(CONFIG_PINCTRL_DIGICOLOR) += pinctrl-digicolor.o
20
20
obj-$(CONFIG_PINCTRL_FALCON) += pinctrl-falcon.o
21
21
obj-$(CONFIG_PINCTRL_MAX77620) += pinctrl-max77620.o
22
+ obj-$(CONFIG_PINCTRL_MCP23S08) += pinctrl-mcp23s08.o
22
23
obj-$(CONFIG_PINCTRL_MESON) += meson/
23
24
obj-$(CONFIG_PINCTRL_OXNAS) += pinctrl-oxnas.o
24
25
obj-$(CONFIG_PINCTRL_PALMAS) += pinctrl-palmas.o
File renamed without changes.
You can’t perform that action at this time.
0 commit comments