mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …
Subsystems (2)
Mircea Caprioru
maintainerPATCH v5 2/2 mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux …
This patch adds basic support for Analog Device ADGS1408/09 SPI mux controller.
The device is probed and set to a disabled state. It uses the new mux controller framework.
Signed-off-by Mircea Caprioru <[email protected]>
---
Changelog V4 -> V5
- defined idle_state as s32 and used (u32 *) cast
- replaced device_property_read_u32_array with device_property_read_u32
drivers/mux/Kconfig | 10 ++++ drivers/mux/Makefile | 2 + drivers/mux/adgs1408.c | 131 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 143 insertions(+) create mode 100644 drivers/mux/adgs1408.c
drivers/mux/Kconfig +10 -0
@@ -21,6 +21,16 @@ config MUX_ADG792A To compile the driver as a module, choose M here: the module will be called mux-adg792a. +config MUX_ADGS1408 + tristate "Analog Devices ADGS1408/ADGS1409 Multiplexers" + depends on SPI + help + ADGS1408 8:1 multiplexer and ADGS1409 double 4:1 multiplexer + switches. + + To compile the driver as a module, choose M here: the module will + be called mux-adgs1408. + config MUX_GPIO tristate "GPIO-controlled Multiplexer" depends on GPIOLIB || COMPILE_TEST
drivers/mux/Makefile +2 -0
@@ -5,10 +5,12 @@ mux-core-objs := core.o mux-adg792a-objs := adg792a.o +mux-adgs1408-objs := adgs1408.o mux-gpio-objs := gpio.o mux-mmio-objs := mmio.o obj-$(CONFIG_MULTIPLEXER) += mux-core.o obj-$(CONFIG_MUX_ADG792A) += mux-adg792a.o +obj-$(CONFIG_MUX_ADGS1408) += mux-adgs1408.o obj-$(CONFIG_MUX_GPIO) += mux-gpio.o obj-$(CONFIG_MUX_MMIO) += mux-mmio.o
drivers/mux/adgs1408.c new file +131 -0
131 lines not on this page · raw message
Signature · 1 line
2.17.1