[PATCH 0/3] Refactor Microchip MCP47FEB02 I2C driver in separate modules to add support for MCP48FEB02 SPI driver
Ariana Lazar <[email protected]>
| Newsgroups | org.kernel.vger.linux-iio,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
Refactor I2C driver implementation into separate modules in order to add support for SPI MCP48FxBy1/2/4/8 DAC family on top of the I2C implementation. The I2C and SPI devices have the same memory map and supported functionalities. Signed-off-by: Ariana Lazar <[email protected]> --- Ariana Lazar (3): iio: dac: mcp47feb02: refactor MCP47FEB02 I2C driver into two modules dt-bindings: iio: dac: add support for MCP48FEB02 SPI iio: dac: add support for Microchip MCP48FEB02 .../bindings/iio/dac/microchip,mcp47feb02.yaml | 244 +++++++++--- MAINTAINERS | 5 +- drivers/iio/dac/Kconfig | 33 +- drivers/iio/dac/Makefile | 4 +- .../iio/dac/{mcp47feb02.c => mcp47feb02-core.c} | 414 +-------------------- drivers/iio/dac/mcp47feb02-i2c.c | 145 ++++++++ drivers/iio/dac/mcp47feb02-spi.c | 146 ++++++++ drivers/iio/dac/mcp47feb02.h | 153 ++++++++ 8 files changed, 693 insertions(+), 451 deletions(-) --- base-commit: 9c6acc6e6555d34198e45cb0d309569dfbadf929 change-id: 20260625-mcp47feb02_refactor-fa8420ae3282 Best regards, -- Ariana Lazar <[email protected]>