diff mbox series

[v1,2/2] iio: adc: mt8186: Add compatible node for mt8186

Message ID 20220110084841.575-2-guodong.liu@mediatek.com (mailing list archive)
State New, archived
Headers show
Series [v1,1/2] dt-bindings: iio: adc: Add compatible for Mediatek MT8186 | expand

Commit Message

Guodong Liu Jan. 10, 2022, 8:48 a.m. UTC
This commit adds mt8186 compatible node.

Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>
---
 drivers/iio/adc/mt6577_auxadc.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

AngeloGioacchino Del Regno Jan. 10, 2022, 10:01 a.m. UTC | #1
Il 10/01/22 09:48, Guodong Liu ha scritto:
> This commit adds mt8186 compatible node.
> 
> Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>

Acked-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>

> ---
>   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},
>   	{ }
>   };
>
Jonathan Cameron Jan. 15, 2022, 3:02 p.m. UTC | #2
On Mon, 10 Jan 2022 11:01:28 +0100
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote:

> Il 10/01/22 09:48, Guodong Liu ha scritto:
> > This commit adds mt8186 compatible node.
> > 
> > Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>  
> 
> Acked-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
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},
> >   	{ }
> >   };
> >
Guodong Liu Jan. 20, 2022, 1:22 a.m. UTC | #3
-----Original Message-----
From: Jonathan Cameron <jic23@jic23.retrosnub.co.uk>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com
>
Cc: Guodong Liu <guodong.liu@mediatek.com>, Lars-Peter Clausen <
lars@metafoo.de>, Rob Herring <robh+dt@kernel.org>, Matthias Brugger <
matthias.bgg@gmail.com>, Zhiyong Tao <zhiyong.tao@mediatek.com>, 
linux-iio@vger.kernel.org, devicetree@vger.kernel.org, 
linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, 
linux-mediatek@lists.infradead.org, 
Project_Global_Chrome_Upstream_Group@mediatek.com
Subject: [SPAM]Re: [PATCH v1 2/2] iio: adc: mt8186: Add compatible node
for mt8186
Date: Sat, 15 Jan 2022 15:02:08 +0000

On Mon, 10 Jan 2022 11:01:28 +0100
AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
wrote:

> Il 10/01/22 09:48, Guodong Liu ha scritto:
> > This commit adds mt8186 compatible node.
> > 
> > Signed-off-by: Guodong Liu <guodong.liu@mediatek.com>  
> 
> Acked-by: AngeloGioacchino Del Regno <
> angelogioacchino.delregno@collabora.com>

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


Hi Jonathan

Thanks for you help.

Thanks,
Guodong

> 
> > ---
> >   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},
> >   	{ }
> >   };
> >
diff mbox series

Patch

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},
 	{ }
 };