Commit ff632dda authored by Xingyu Chen's avatar Xingyu Chen Committed by Jonathan Cameron

iio: adc: meson-saradc: add support for Meson AXG

Add the SAR ADC driver for the Amlogic Meson-AXG SoC.
Signed-off-by: default avatarXingyu Chen <xingyu.chen@amlogic.com>
Acked-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 8e50d74d
...@@ -935,6 +935,11 @@ static const struct meson_sar_adc_data meson_sar_adc_gxm_data = { ...@@ -935,6 +935,11 @@ static const struct meson_sar_adc_data meson_sar_adc_gxm_data = {
.name = "meson-gxm-saradc", .name = "meson-gxm-saradc",
}; };
static const struct meson_sar_adc_data meson_sar_adc_axg_data = {
.param = &meson_sar_adc_gxl_param,
.name = "meson-axg-saradc",
};
static const struct of_device_id meson_sar_adc_of_match[] = { static const struct of_device_id meson_sar_adc_of_match[] = {
{ {
.compatible = "amlogic,meson8-saradc", .compatible = "amlogic,meson8-saradc",
...@@ -953,6 +958,9 @@ static const struct of_device_id meson_sar_adc_of_match[] = { ...@@ -953,6 +958,9 @@ static const struct of_device_id meson_sar_adc_of_match[] = {
}, { }, {
.compatible = "amlogic,meson-gxm-saradc", .compatible = "amlogic,meson-gxm-saradc",
.data = &meson_sar_adc_gxm_data, .data = &meson_sar_adc_gxm_data,
}, {
.compatible = "amlogic,meson-axg-saradc",
.data = &meson_sar_adc_axg_data,
}, },
{}, {},
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment