Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: dac: ti-dac5571: Add DAC081C081 support

The DAC081C081 is a TI DAC whose software interface is compatible with
the DAC5571. It is the 8-bit version of the DAC121C081, already
supported by the DAC5571 driver. Extends the driver to support this
chip.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sean Nyekjaer <sean@geanix.com <mailto:sean@geanix.com>>
Link: https://lore.kernel.org/r/20240325203245.31660-3-laurent.pinchart@ideasonboard.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Laurent Pinchart and committed by
Jonathan Cameron
3d797af1 cba15a62

+3
+3
drivers/iio/dac/ti-dac5571.c
··· 13 13 * https://www.ti.com/lit/ds/symlink/dac5573.pdf 14 14 * https://www.ti.com/lit/ds/symlink/dac6573.pdf 15 15 * https://www.ti.com/lit/ds/symlink/dac7573.pdf 16 + * https://www.ti.com/lit/ds/symlink/dac081c081.pdf 16 17 * https://www.ti.com/lit/ds/symlink/dac121c081.pdf 17 18 */ 18 19 ··· 387 386 } 388 387 389 388 static const struct of_device_id dac5571_of_id[] = { 389 + {.compatible = "ti,dac081c081", .data = &dac5571_spec[single_8bit] }, 390 390 {.compatible = "ti,dac121c081", .data = &dac5571_spec[single_12bit] }, 391 391 {.compatible = "ti,dac5571", .data = &dac5571_spec[single_8bit] }, 392 392 {.compatible = "ti,dac6571", .data = &dac5571_spec[single_10bit] }, ··· 403 401 MODULE_DEVICE_TABLE(of, dac5571_of_id); 404 402 405 403 static const struct i2c_device_id dac5571_id[] = { 404 + {"dac081c081", (kernel_ulong_t)&dac5571_spec[single_8bit] }, 406 405 {"dac121c081", (kernel_ulong_t)&dac5571_spec[single_12bit] }, 407 406 {"dac5571", (kernel_ulong_t)&dac5571_spec[single_8bit] }, 408 407 {"dac6571", (kernel_ulong_t)&dac5571_spec[single_10bit] },