diff options
author | Fabio Estevam <festevam@gmail.com> | 2022-11-30 15:26:32 -0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-12-28 17:19:45 +0000 |
commit | 58c2630020c5f820d63e2d03aa2341d19d4c0c5b (patch) | |
tree | 8ef6e1ab2ffb556497253c6464e0996bc9225373 /drivers/iio/dac/ad5696-i2c.c | |
parent | 611370fe482bf611ef61d2343b92742e4b2dc5a3 (diff) | |
download | linux-next-58c2630020c5f820d63e2d03aa2341d19d4c0c5b.tar.gz |
iio: dac: ad5686: Add support for AD5337
AD5337 belongs to the same family as the AD5338.
The difference is that the AD5337 has 8-bit precision instead of 10-bit.
Add support for the AD5337 chip in the driver.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20221130182632.3856675-2-festevam@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac/ad5696-i2c.c')
-rw-r--r-- | drivers/iio/dac/ad5696-i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/dac/ad5696-i2c.c b/drivers/iio/dac/ad5696-i2c.c index 160e80cf9135..8a95f0278018 100644 --- a/drivers/iio/dac/ad5696-i2c.c +++ b/drivers/iio/dac/ad5696-i2c.c @@ -72,6 +72,7 @@ static void ad5686_i2c_remove(struct i2c_client *i2c) static const struct i2c_device_id ad5686_i2c_id[] = { {"ad5311r", ID_AD5311R}, + {"ad5337r", ID_AD5337R}, {"ad5338r", ID_AD5338R}, {"ad5671r", ID_AD5671R}, {"ad5673r", ID_AD5673R}, @@ -92,6 +93,7 @@ MODULE_DEVICE_TABLE(i2c, ad5686_i2c_id); static const struct of_device_id ad5686_of_match[] = { { .compatible = "adi,ad5311r" }, + { .compatible = "adi,ad5337r" }, { .compatible = "adi,ad5338r" }, { .compatible = "adi,ad5671r" }, { .compatible = "adi,ad5675r" }, |