summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc
diff options
context:
space:
mode:
authorGuodong Liu <guodong.liu@mediatek.com>2022-01-10 16:48:41 +0800
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-23 18:03:35 +0000
commitff04eb478658743c43d8ca0d3fa949b6d3fe03b4 (patch)
tree28768c1cc58e567bdfb5739941387d40ae34ba0c /drivers/iio/adc
parentf247d58efbce7eb017b32ed713f4770ef635eb30 (diff)
downloadlinux-ff04eb478658743c43d8ca0d3fa949b6d3fe03b4.tar.bz2
iio: adc: mt8186: Add compatible node for mt8186
This commit adds mt8186 compatible node. Signed-off-by: Guodong Liu <guodong.liu@mediatek.com> Acked-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20220110084841.575-2-guodong.liu@mediatek.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/mt6577_auxadc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c
index 327fff96c6c8..e78c96a185db 100644
--- a/drivers/iio/adc/mt6577_auxadc.c
+++ b/drivers/iio/adc/mt6577_auxadc.c
@@ -46,6 +46,11 @@ struct mt6577_auxadc_device {
const struct mtk_auxadc_compatible *dev_comp;
};
+static const struct mtk_auxadc_compatible mt8186_compat = {
+ .sample_data_cali = false,
+ .check_global_idle = false,
+};
+
static const struct mtk_auxadc_compatible mt8173_compat = {
.sample_data_cali = false,
.check_global_idle = true,
@@ -334,6 +339,7 @@ static const struct of_device_id mt6577_auxadc_of_match[] = {
{ .compatible = "mediatek,mt2712-auxadc", .data = &mt8173_compat },
{ .compatible = "mediatek,mt7622-auxadc", .data = &mt8173_compat },
{ .compatible = "mediatek,mt8173-auxadc", .data = &mt8173_compat },
+ { .compatible = "mediatek,mt8186-auxadc", .data = &mt8186_compat },
{ .compatible = "mediatek,mt6765-auxadc", .data = &mt6765_compat },
{ }
};