Home
last modified time | relevance | path

Searched full:mcp23s08 (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/pinctrl/
H A Dpinctrl-mcp23s08_spi.c2 /* MCP23S08 SPI GPIO driver */
10 #include "pinctrl-mcp23s08.h"
22 struct mcp23s08 *mcp[8];
23 struct mcp23s08 chip[];
28 struct mcp23s08 *mcp = context; in mcp23sxx_spi_write()
45 struct mcp23s08 *mcp = context; in mcp23sxx_spi_gather_write()
63 struct mcp23s08 *mcp = context; in mcp23sxx_spi_read()
82 static int mcp23s08_spi_regmap_init(struct mcp23s08 *mcp, struct device *dev, in mcp23s08_spi_regmap_init()
91 mcp->chip.label = devm_kasprintf(dev, GFP_KERNEL, "mcp23s08.%d", addr); in mcp23s08_spi_regmap_init()
222 { "mcp23s08", (kernel_ulong_t)&mcp23s08_spi },
[all …]
H A Dpinctrl-mcp23s08.c2 /* MCP23S08 SPI/I2C GPIO driver */
22 #include "pinctrl-mcp23s08.h"
140 static int mcp_read(struct mcp23s08 *mcp, unsigned int reg, unsigned int *val) in mcp_read()
145 static int mcp_write(struct mcp23s08 *mcp, unsigned int reg, unsigned int val) in mcp_write()
150 static int mcp_update_bits(struct mcp23s08 *mcp, unsigned int reg, in mcp_update_bits()
157 static int mcp_set_bit(struct mcp23s08 *mcp, unsigned int reg, in mcp_set_bit()
226 struct mcp23s08 *mcp = pinctrl_dev_get_drvdata(pctldev); in mcp_pinconf_get()
252 struct mcp23s08 *mcp = pinctrl_dev_get_drvdata(pctldev); in mcp_pinconf_set()
287 struct mcp23s08 *mcp = gpiochip_get_data(chip); in mcp23s08_direction_input()
299 struct mcp23s08 *mcp = gpiochip_get_data(chip); in mcp23s08_get()
[all …]
H A Dpinctrl-mcp23s08_i2c.c2 /* MCP23S08 I2C GPIO driver */
9 #include "pinctrl-mcp23s08.h"
15 struct mcp23s08 *mcp; in mcp230xx_probe()
114 MODULE_DESCRIPTION("MCP23S08 I2C GPIO driver");
H A Dpinctrl-mcp23s08.h2 /* MCP23S08 SPI/I2C GPIO driver */
33 struct mcp23s08 { struct
59 int mcp23s08_probe_one(struct mcp23s08 *mcp, struct device *dev, argument
H A DMakefile41 obj-$(CONFIG_PINCTRL_MCP23S08) += pinctrl-mcp23s08.o
H A DKconfig365 SPI/I2C driver for Microchip MCP23S08 / MCP23S17 / MCP23S18 /
/linux/Documentation/devicetree/bindings/pinctrl/
H A Dmicrochip,mcp23s08.yaml4 $id: http://devicetree.org/schemas/pinctrl/microchip,mcp23s08.yaml#
13 Microchip MCP23008, MCP23017, MCP23S08, MCP23S17, MCP23S18 GPIO expander
22 - microchip,mcp23s08
54 address 3 connected, you have to set bit3 to 1, which is 0x08. mcp23s08
55 chip variant only supports bits 0-3. It is not possible to mix mcp23s08