iio: adc: meson-txlx: add sar adc support

PD#154260: iio: adc: meson-txlx: add sar adc support

Change-Id: I2a692adddcf3721fac1e24af251d14932ea7e0a5
Signed-off-by: Xingyu Chen <xingyu.chen@amlogic.com>
This commit is contained in:
Xingyu Chen
2017-11-17 18:05:23 +08:00
committed by Jianxin Pan
parent a910157748
commit 7ab8721cfc
2 changed files with 15 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
Required properties:
- compatible: depending on the SoC this should be one of:
- "amlogic,meson-txlx-saradc" for TXLX
- "amlogic,meson-axg-saradc" for AXG
- "amlogic,meson-gxl-saradc" for GXL
- "amlogic,meson-gxm-saradc" for GXM

View File

@@ -1023,6 +1023,17 @@ static const struct iio_info meson_sar_adc_iio_info = {
.driver_module = THIS_MODULE,
};
struct meson_sar_adc_data meson_sar_adc_txlx_data = {
.obt_temp_chan6 = false,
.has_bl30_integration = true,
.vref_sel = VDDA_AS_VREF,
.resolution = SAR_ADC_12BIT,
.name = "meson-txlx-saradc",
.regs_diff = {
.reg3_ring_counter_disable = BIT_HIGH,
},
};
struct meson_sar_adc_data meson_sar_adc_axg_data = {
.obt_temp_chan6 = false,
.has_bl30_integration = true,
@@ -1069,6 +1080,9 @@ struct meson_sar_adc_data meson_sar_adc_m8b_data = {
static const struct of_device_id meson_sar_adc_of_match[] = {
{
.compatible = "amlogic,meson-txlx-saradc",
.data = &meson_sar_adc_txlx_data,
}, {
.compatible = "amlogic,meson-axg-saradc",
.data = &meson_sar_adc_axg_data,
}, {