2022-01-10 08:50:37

by Guodong Liu

[permalink] [raw]
Subject: [PATCH v1 2/2] iio: adc: mt8186: Add compatible node for mt8186

This commit adds mt8186 compatible node.

Signed-off-by: Guodong Liu <[email protected]>
---
drivers/iio/adc/mt6577_auxadc.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c
index d4fccd52ef08..fb08d761589a 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},
{ }
};
--
2.25.1



Subject: Re: [PATCH v1 2/2] iio: adc: mt8186: Add compatible node for mt8186

Il 10/01/22 09:48, Guodong Liu ha scritto:
> This commit adds mt8186 compatible node.
>
> Signed-off-by: Guodong Liu <[email protected]>

Acked-by: AngeloGioacchino Del Regno <[email protected]>

> ---
> drivers/iio/adc/mt6577_auxadc.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c
> index d4fccd52ef08..fb08d761589a 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},
> { }
> };
>

2022-01-16 06:46:21

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH v1 2/2] iio: adc: mt8186: Add compatible node for mt8186

On Mon, 10 Jan 2022 11:01:28 +0100
AngeloGioacchino Del Regno <[email protected]> wrote:

> Il 10/01/22 09:48, Guodong Liu ha scritto:
> > This commit adds mt8186 compatible node.
> >
> > Signed-off-by: Guodong Liu <[email protected]>
>
> Acked-by: AngeloGioacchino Del Regno <[email protected]>
Applied with a slight tweak to patch 2 as an earlier tidyup added
a bracket before the } in the table so make this line match as well.

Applied to the togreg branch of iio.git and pushed out as testing for
0-day to poke at it for us. I'll be rebasing the tree after rc1 is out.

Thanks,
Jonathan

>
> > ---
> > drivers/iio/adc/mt6577_auxadc.c | 6 ++++++
> > 1 file changed, 6 insertions(+)
> >
> > diff --git a/drivers/iio/adc/mt6577_auxadc.c b/drivers/iio/adc/mt6577_auxadc.c
> > index d4fccd52ef08..fb08d761589a 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},
> > { }
> > };
> >