]> www.infradead.org Git - users/hch/misc.git/commitdiff
iio: adc: ad7476: Support ROHM BU79100G
authorMatti Vaittinen <mazziesaccount@gmail.com>
Fri, 30 May 2025 04:40:08 +0000 (07:40 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Jun 2025 06:45:36 +0000 (07:45 +0100)
ROHM BU79100G is a 12-bit, single channel ADC. From the software point
of view it is identical to the TI's ADS7866. Support reading ADC
measurements using the ad7476.c

Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com>
Link: https://patch.msgid.link/aDk2qNE9LTVnfAFM@mva-rohm
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad7476.c

index ddb607ac186033bb1f5218d18898f1882a1849e4..aea734aa06bde677cfb9ce2b1e89c8f8df939a5d 100644 (file)
@@ -435,6 +435,13 @@ static const struct spi_device_id ad7476_id[] = {
        { "ads7866", ID_ADS7866 },
        { "ads7867", ID_ADS7867 },
        { "ads7868", ID_ADS7868 },
+       /*
+        * The ROHM BU79100G is identical to the TI's ADS7866 from the software
+        * point of view. The binding document mandates the ADS7866 to be
+        * marked as a fallback for the BU79100G, but we still need the SPI ID
+        * here to make the module loading work.
+        */
+       { "bu79100g", ID_ADS7866 },
        { "ltc2314-14", ID_LTC2314_14 },
        { }
 };