Skip to contentSkip to conversation

iio: adc: ad7476: Support ROHM BU79100G

PATCH Applied Matti Vaittinen 2 participants 2 messages May 30, 2025 – May 31, 2025

Subsystems (3)
lore
Share & tools
lore

Matti Vaittinen

author maintainer
#0 lore raw

PATCH 1/1 iio: adc: ad7476: Support ROHM BU79100G

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

---

Please, see the relevant discussion (as to why an ID for a fallback is added) in:
https://lore.kernel.org/all/[email protected]/

This patch was based on v6.15-rc1. I can rebase if needed.

 drivers/iio/adc/ad7476.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/iio/adc/ad7476.c +7 -0
index 37b0515cf4fc..d48ee8f1d547 100644
@@ -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 },
 	{ }
 };
Signature · 1 line
2.49.0
maintainer Applied
#1 lore raw
Quoted 5 lines · On Fri, 30 May 2025 07:40:08 +0300 Matti Vaittinen <[email protected]>…

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

Applied.

Quoted 29 lines

---

Please, see the relevant discussion (as to why an ID for a fallback is added) in:
https://lore.kernel.org/all/[email protected]/

This patch was based on v6.15-rc1. I can rebase if needed.

 drivers/iio/adc/ad7476.c | 7 +++++++
 1 file changed, 7 insertions(+)
drivers/iio/adc/ad7476.c +7 -0
index 37b0515cf4fc..d48ee8f1d547 100644
@@ -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 },
 	{ }
 };