Skip to contentSkip to conversation

dt-bindings: iio: adc: Add compatible for Mediatek MT8186

PATCH In review Guodong Liu 4 participants 7 messages Jan 10, 2022 – Jan 21, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: iio: adc: Add compatible for Mediatek MT8186

This commit adds dt-binding documentation of auxadc for Mediatek MT8186 SoC Platform.

---
 .../devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml      | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml +1 -0
index b939f9652e3a..65581ad4b816 100644
@@ -34,6 +34,7 @@ properties:
       - items:
           - enum:
               - mediatek,mt8183-auxadc
+              - mediatek,mt8186-auxadc
               - mediatek,mt8195-auxadc
               - mediatek,mt8516-auxadc
           - const: mediatek,mt8173-auxadc
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 iio: adc: mt8186: Add compatible node for mt8186

This commit adds mt8186 compatible node.

---
 drivers/iio/adc/mt6577_auxadc.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/iio/adc/mt6577_auxadc.c +6 -0
index d4fccd52ef08..fb08d761589a 100644
@@ -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},
 	{ }
 };
Signature · 1 line
2.25.1
maintainer Acked-by on v1 2/2
#2 lore raw

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

Il 10/01/22 09:48, Guodong Liu ha scritto:

Quoted 3 lines

This commit adds mt8186 compatible node.

Quoted 29 lines
---
  drivers/iio/adc/mt6577_auxadc.c | 6 ++++++
  1 file changed, 6 insertions(+)
drivers/iio/adc/mt6577_auxadc.c +6 -0
index d4fccd52ef08..fb08d761589a 100644
@@ -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},
  	{ }
  };
#3 lore raw

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

Quoted 6 lines · On Mon, 10 Jan 2022 11:01:28 +0100 AngeloGioacchino Del Regno…

Il 10/01/22 09:48, Guodong Liu ha scritto:

Quoted 3 lines

This commit adds mt8186 compatible node.

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

Quoted 30 lines
Quoted 30 lines
---
  drivers/iio/adc/mt6577_auxadc.c | 6 ++++++
  1 file changed, 6 insertions(+)
drivers/iio/adc/mt6577_auxadc.c +6 -0
index d4fccd52ef08..fb08d761589a 100644
@@ -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},
  	{ }
  };
#4 lore raw

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

-----Original Message-----
From: Jonathan Cameron <[email protected]>
To: AngeloGioacchino Del Regno <[email protected]

Quoted 1 line

Cc: Guodong Liu <[email protected]>, Lars-Peter Clausen < [email protected]>, Rob Herring <[email protected]>, Matthias Brugger < [email protected]>, Zhiyong Tao <[email protected]>, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: [SPAM]Re: [PATCH v1 2/2] iio: adc: mt8186: Add compatible node for mt8186
Date: Sat, 15 Jan 2022 15:02:08 +0000

Quoted 7 lines · On Mon, 10 Jan 2022 11:01:28 +0100 AngeloGioacchino Del Regno…

Il 10/01/22 09:48, Guodong Liu ha scritto:

Quoted 3 lines

This commit adds mt8186 compatible node.

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

Hi Jonathan

Thanks for you help.

Thanks,
Guodong

Quoted 29 lines
Quoted 29 lines
---
  drivers/iio/adc/mt6577_auxadc.c | 6 ++++++
  1 file changed, 6 insertions(+)
drivers/iio/adc/mt6577_auxadc.c +5 -0
index d4fccd52ef08..fb08d761589a 100644
@@ -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 =
Quoted 8 lines
Quoted 8 lines

&mt8173_compat},

drivers/iio/adc/mt6577_auxadc.c +1 -0
+	{ .compatible = "mediatek,mt8186-auxadc", .data =

&mt8186_compat},
{ .compatible = "mediatek,mt6765-auxadc", .data =
&mt6765_compat},
{ }
};

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

maintainer Acked-by on v1 1/2
#5 lore raw
In reply to Guodong Liu

Il 10/01/22 09:48, Guodong Liu ha scritto:

Quoted 4 lines

This commit adds dt-binding documentation of auxadc for Mediatek MT8186 SoC Platform.

Quoted 17 lines
---
  .../devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml      | 1 +
  1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml +1 -0
index b939f9652e3a..65581ad4b816 100644
@@ -34,6 +34,7 @@ properties:
        - items:
            - enum:
                - mediatek,mt8183-auxadc
+              - mediatek,mt8186-auxadc
                - mediatek,mt8195-auxadc
                - mediatek,mt8516-auxadc
            - const: mediatek,mt8173-auxadc