]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: adc: ltc2309: add support for ltc2305
authorKyle Hsieh <kylehsieh1995@gmail.com>
Wed, 25 Mar 2026 02:24:22 +0000 (10:24 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 25 Mar 2026 19:48:45 +0000 (19:48 +0000)
commit8625d418d24bc0ff463267b26b7cb2e7a612495f
tree041c6b9f4072485025674f65dbd1a2cb4fb545a5
parent999ca38066302347c94fda49db7a33ce87def5b6
iio: adc: ltc2309: add support for ltc2305

Add support for the LTC2305 ADC to the LTC2309 driver. The LTC2305 is
a 2-channel, 12-bit SAR ADC that is register-compatible with the
LTC2309 but has a different channel selection mapping and count.

To support multiple chips in this family, introduce ltc2309_chip_info
struct to store chip-specific channel specifications and names.
The probe function now uses i2c_get_match_data() to retrieve the
correct configuration for the detected device.

Specific channel addresses for LTC2305 (CH0, CH1, and differential
pairs) are added based on the datasheet.

Signed-off-by: Kyle Hsieh <kylehsieh1995@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ltc2309.c