iio: adc: cpcap-adc: add support for Mot ADC

Add support for ADC found in Motorola Mot board, used as a base for
Atrix 4G and Droid X2 smartphones.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Svyatoslav Ryhel 2026-02-06 19:28:39 +02:00 committed by Jonathan Cameron
parent dd31b649ef
commit 18a1ae3e73

View File

@ -934,6 +934,17 @@ static const struct cpcap_adc_ato mapphone_adc = {
.atox_ps_factor_out = 0,
};
static const struct cpcap_adc_ato mot_adc = {
.ato_in = 0x0300,
.atox_in = 0,
.adc_ps_factor_in = 0x0200,
.atox_ps_factor_in = 0,
.ato_out = 0x0780,
.atox_out = 0,
.adc_ps_factor_out = 0x0600,
.atox_ps_factor_out = 0,
};
static const struct of_device_id cpcap_adc_id_table[] = {
{
.compatible = "motorola,cpcap-adc",
@ -942,6 +953,10 @@ static const struct of_device_id cpcap_adc_id_table[] = {
.compatible = "motorola,mapphone-cpcap-adc",
.data = &mapphone_adc,
},
{
.compatible = "motorola,mot-cpcap-adc",
.data = &mot_adc,
},
{ }
};
MODULE_DEVICE_TABLE(of, cpcap_adc_id_table);