Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: adc: meson: add separate config for axg SoC family

According to Amlogic custom kernels ADC of axg SoC family has
vref_select and requires this setting to work nominally and thus
needs a separate config.

Fixes: 90c6241860bf ("iio: adc: meson: init voltage control bits")
Signed-off-by: George Stark <gnstark@salutedevices.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20231127235558.71995-1-gnstark@salutedevices.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

George Stark and committed by
Jonathan Cameron
59b75dcb 2475ecdb

+15 -1
+15 -1
drivers/iio/adc/meson_saradc.c
··· 1241 1241 .cmv_select = 1, 1242 1242 }; 1243 1243 1244 + static const struct meson_sar_adc_param meson_sar_adc_axg_param = { 1245 + .has_bl30_integration = true, 1246 + .clock_rate = 1200000, 1247 + .bandgap_reg = MESON_SAR_ADC_REG11, 1248 + .regmap_config = &meson_sar_adc_regmap_config_gxbb, 1249 + .resolution = 12, 1250 + .disable_ring_counter = 1, 1251 + .has_reg11 = true, 1252 + .vref_volatge = 1, 1253 + .has_vref_select = true, 1254 + .vref_select = VREF_VDDA, 1255 + .cmv_select = 1, 1256 + }; 1257 + 1244 1258 static const struct meson_sar_adc_param meson_sar_adc_g12a_param = { 1245 1259 .has_bl30_integration = false, 1246 1260 .clock_rate = 1200000, ··· 1299 1285 }; 1300 1286 1301 1287 static const struct meson_sar_adc_data meson_sar_adc_axg_data = { 1302 - .param = &meson_sar_adc_gxl_param, 1288 + .param = &meson_sar_adc_axg_param, 1303 1289 .name = "meson-axg-saradc", 1304 1290 }; 1305 1291