]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
iio: dac: ad5446: Add AD5542 to the spi id table
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 4 Nov 2025 15:35:17 +0000 (15:35 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Nov 2025 16:32:29 +0000 (16:32 +0000)
This adds support for the AD5542 single channel Current Source and
Voltage Output DACs.

It is similar to the AD5542A model so just use the same id.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Co-developed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5446-spi.c

index dfba1972d1e0dad35418b8e2bc7834836d7c0ed8..e29d77f21482602b4a975452928dea84d3db491c 100644 (file)
@@ -175,6 +175,7 @@ static const struct spi_device_id ad5446_spi_ids[] = {
        {"ad5453", (kernel_ulong_t)&ad5446_chip_info}, /* ad5453 is compatible to the ad5446 */
        {"ad5512a", (kernel_ulong_t)&ad5512a_chip_info},
        {"ad5541a", (kernel_ulong_t)&ad5541a_chip_info},
+       {"ad5542", (kernel_ulong_t)&ad5541a_chip_info}, /* ad5541a and ad5542 are compatible */
        {"ad5542a", (kernel_ulong_t)&ad5541a_chip_info}, /* ad5541a and ad5542a are compatible */
        {"ad5543", (kernel_ulong_t)&ad5541a_chip_info}, /* ad5541a and ad5543 are compatible */
        {"ad5553", (kernel_ulong_t)&ad5553_chip_info},
@@ -211,6 +212,7 @@ static const struct of_device_id ad5446_of_ids[] = {
        { .compatible = "adi,ad5453", .data = &ad5446_chip_info },
        { .compatible = "adi,ad5512a", .data = &ad5512a_chip_info },
        { .compatible = "adi,ad5541a", .data = &ad5541a_chip_info },
+       { .compatible = "adi,ad5542", .data = &ad5541a_chip_info },
        { .compatible = "adi,ad5542a", .data = &ad5541a_chip_info },
        { .compatible = "adi,ad5543", .data = &ad5541a_chip_info },
        { .compatible = "adi,ad5553", .data = &ad5553_chip_info },