dt-bindings: iio: adc: Add compatible for Mediatek MT8186
Subsystems (3)
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
@@ -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
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
@@ -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
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.
Signed-off-by Guodong Liu <[email protected]>
Quoted 29 lines
--- drivers/iio/adc/mt6577_auxadc.c | 6 ++++++ 1 file changed, 6 insertions(+)drivers/iio/adc/mt6577_auxadc.c +6
-0@@ -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}, { } };
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.
Signed-off-by Guodong Liu <[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
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@@ -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}, { } };
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.
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
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@@ -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
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.
Signed-off-by Guodong Liu <[email protected]>
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@@ -34,6 +34,7 @@ properties: - items: - enum: - mediatek,mt8183-auxadc + - mediatek,mt8186-auxadc - mediatek,mt8195-auxadc - mediatek,mt8516-auxadc - const: mediatek,mt8173-auxadc
Quoted 8 lines · Guodong Liu
This commit adds dt-binding documentation of auxadc for Mediatek MT8186 SoC Platform.
Signed-off-by Guodong Liu <[email protected]>--- .../devicetree/bindings/iio/adc/mediatek,mt2701-auxadc.yaml | 1 + 1 file changed, 1 insertion(+)