linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] meson-saradc: add support for the Meson8m2 SoC
@ 2018-07-21 19:40 Martin Blumenstingl
  2018-07-21 19:40 ` [PATCH 1/2] dt-bindings: iio: adc: add Meson8m2 support Martin Blumenstingl
  2018-07-21 19:40 ` [PATCH 2/2] iio: adc: meson-saradc: add support for the Meson8m2 SoCs Martin Blumenstingl
  0 siblings, 2 replies; 5+ messages in thread
From: Martin Blumenstingl @ 2018-07-21 19:40 UTC (permalink / raw)
  To: jic23, knaack.h, lars, pmeerw, linux-amlogic, linux-iio
  Cc: Martin Blumenstingl

This is a trivial series which adds Meson8m2 support to the Meson
SAR ADC driver.
A separate compatible string is required because typically Meson8m2
inherits all IP blocks from Meson8. The ADC part of the SAR ADC is
indeed compatible, but the temperature calibration logic (not
supported yet, but I am working on this) is incompatible with
the Meson8 implementation (instead it uses the same variant as
Meson8m2).


Martin Blumenstingl (2):
  dt-bindings: iio: adc: add Meson8m2 support
  iio: adc: meson-saradc: add support for the Meson8m2 SoCs

 .../devicetree/bindings/iio/adc/amlogic,meson-saradc.txt | 1 +
 drivers/iio/adc/meson_saradc.c                           | 9 +++++++++
 2 files changed, 10 insertions(+)

-- 
2.18.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] dt-bindings: iio: adc: add Meson8m2 support
  2018-07-21 19:40 [PATCH 0/2] meson-saradc: add support for the Meson8m2 SoC Martin Blumenstingl
@ 2018-07-21 19:40 ` Martin Blumenstingl
  2018-07-22  8:18   ` Jonathan Cameron
  2018-07-21 19:40 ` [PATCH 2/2] iio: adc: meson-saradc: add support for the Meson8m2 SoCs Martin Blumenstingl
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Blumenstingl @ 2018-07-21 19:40 UTC (permalink / raw)
  To: jic23, knaack.h, lars, pmeerw, linux-amlogic, linux-iio
  Cc: Martin Blumenstingl

The Amlogic Meson SAR ADC implementation on the Meson8m2 SoC is
identical to the Meson8b variant. Add a compatible string to indicate
that we support the SAR ADC on the Meson8m2 SoC.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 .../devicetree/bindings/iio/adc/amlogic,meson-saradc.txt         | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt
index d1acd5ea2737..54b823f3a453 100644
--- a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt
+++ b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt
@@ -4,6 +4,7 @@ Required properties:
 - compatible:	depending on the SoC this should be one of:
 			- "amlogic,meson8-saradc" for Meson8
 			- "amlogic,meson8b-saradc" for Meson8b
+			- "amlogic,meson8m2-saradc" for Meson8m2
 			- "amlogic,meson-gxbb-saradc" for GXBB
 			- "amlogic,meson-gxl-saradc" for GXL
 			- "amlogic,meson-gxm-saradc" for GXM
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] iio: adc: meson-saradc: add support for the Meson8m2 SoCs
  2018-07-21 19:40 [PATCH 0/2] meson-saradc: add support for the Meson8m2 SoC Martin Blumenstingl
  2018-07-21 19:40 ` [PATCH 1/2] dt-bindings: iio: adc: add Meson8m2 support Martin Blumenstingl
@ 2018-07-21 19:40 ` Martin Blumenstingl
  2018-07-22  8:19   ` Jonathan Cameron
  1 sibling, 1 reply; 5+ messages in thread
From: Martin Blumenstingl @ 2018-07-21 19:40 UTC (permalink / raw)
  To: jic23, knaack.h, lars, pmeerw, linux-amlogic, linux-iio
  Cc: Martin Blumenstingl

The SAR ADC on Meson8m2 behaves identical to the one found in the
Meson8b SoCs. Add a separate compatible string because the temperature
sensor logic (not supported yet) differs between Meson8 and Meson8m2
(however, it's the same for Meson8b and Meson8m2).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 drivers/iio/adc/meson_saradc.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c
index 2948909f3ee3..da2d16dfa63e 100644
--- a/drivers/iio/adc/meson_saradc.c
+++ b/drivers/iio/adc/meson_saradc.c
@@ -922,6 +922,11 @@ static const struct meson_sar_adc_data meson_sar_adc_meson8b_data = {
 	.name = "meson-meson8b-saradc",
 };
 
+static const struct meson_sar_adc_data meson_sar_adc_meson8m2_data = {
+	.param = &meson_sar_adc_meson8_param,
+	.name = "meson-meson8m2-saradc",
+};
+
 static const struct meson_sar_adc_data meson_sar_adc_gxbb_data = {
 	.param = &meson_sar_adc_gxbb_param,
 	.name = "meson-gxbb-saradc",
@@ -951,6 +956,10 @@ static const struct of_device_id meson_sar_adc_of_match[] = {
 		.compatible = "amlogic,meson8b-saradc",
 		.data = &meson_sar_adc_meson8b_data,
 	},
+	{
+		.compatible = "amlogic,meson8m2-saradc",
+		.data = &meson_sar_adc_meson8m2_data,
+	},
 	{
 		.compatible = "amlogic,meson-gxbb-saradc",
 		.data = &meson_sar_adc_gxbb_data,
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: iio: adc: add Meson8m2 support
  2018-07-21 19:40 ` [PATCH 1/2] dt-bindings: iio: adc: add Meson8m2 support Martin Blumenstingl
@ 2018-07-22  8:18   ` Jonathan Cameron
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2018-07-22  8:18 UTC (permalink / raw)
  To: Martin Blumenstingl; +Cc: knaack.h, lars, pmeerw, linux-amlogic, linux-iio

On Sat, 21 Jul 2018 21:40:48 +0200
Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote:

> The Amlogic Meson SAR ADC implementation on the Meson8m2 SoC is
> identical to the Meson8b variant. Add a compatible string to indicate
> that we support the SAR ADC on the Meson8m2 SoC.
> 
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Applied to the togreg branch of iio.git and pushed out as testing for the
autobuilder to ignore it.

Thanks,

Jonathan

> ---
>  .../devicetree/bindings/iio/adc/amlogic,meson-saradc.txt         | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt
> index d1acd5ea2737..54b823f3a453 100644
> --- a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt
> +++ b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt
> @@ -4,6 +4,7 @@ Required properties:
>  - compatible:	depending on the SoC this should be one of:
>  			- "amlogic,meson8-saradc" for Meson8
>  			- "amlogic,meson8b-saradc" for Meson8b
> +			- "amlogic,meson8m2-saradc" for Meson8m2
>  			- "amlogic,meson-gxbb-saradc" for GXBB
>  			- "amlogic,meson-gxl-saradc" for GXL
>  			- "amlogic,meson-gxm-saradc" for GXM


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] iio: adc: meson-saradc: add support for the Meson8m2 SoCs
  2018-07-21 19:40 ` [PATCH 2/2] iio: adc: meson-saradc: add support for the Meson8m2 SoCs Martin Blumenstingl
@ 2018-07-22  8:19   ` Jonathan Cameron
  0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Cameron @ 2018-07-22  8:19 UTC (permalink / raw)
  To: Martin Blumenstingl; +Cc: knaack.h, lars, pmeerw, linux-amlogic, linux-iio

On Sat, 21 Jul 2018 21:40:49 +0200
Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote:

> The SAR ADC on Meson8m2 behaves identical to the one found in the
> Meson8b SoCs. Add a separate compatible string because the temperature
> sensor logic (not supported yet) differs between Meson8 and Meson8m2
> (however, it's the same for Meson8b and Meson8m2).
> 
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Applied, thanks

Jonathan

> ---
>  drivers/iio/adc/meson_saradc.c | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c
> index 2948909f3ee3..da2d16dfa63e 100644
> --- a/drivers/iio/adc/meson_saradc.c
> +++ b/drivers/iio/adc/meson_saradc.c
> @@ -922,6 +922,11 @@ static const struct meson_sar_adc_data meson_sar_adc_meson8b_data = {
>  	.name = "meson-meson8b-saradc",
>  };
>  
> +static const struct meson_sar_adc_data meson_sar_adc_meson8m2_data = {
> +	.param = &meson_sar_adc_meson8_param,
> +	.name = "meson-meson8m2-saradc",
> +};
> +
>  static const struct meson_sar_adc_data meson_sar_adc_gxbb_data = {
>  	.param = &meson_sar_adc_gxbb_param,
>  	.name = "meson-gxbb-saradc",
> @@ -951,6 +956,10 @@ static const struct of_device_id meson_sar_adc_of_match[] = {
>  		.compatible = "amlogic,meson8b-saradc",
>  		.data = &meson_sar_adc_meson8b_data,
>  	},
> +	{
> +		.compatible = "amlogic,meson8m2-saradc",
> +		.data = &meson_sar_adc_meson8m2_data,
> +	},
>  	{
>  		.compatible = "amlogic,meson-gxbb-saradc",
>  		.data = &meson_sar_adc_gxbb_data,


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-22  9:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-21 19:40 [PATCH 0/2] meson-saradc: add support for the Meson8m2 SoC Martin Blumenstingl
2018-07-21 19:40 ` [PATCH 1/2] dt-bindings: iio: adc: add Meson8m2 support Martin Blumenstingl
2018-07-22  8:18   ` Jonathan Cameron
2018-07-21 19:40 ` [PATCH 2/2] iio: adc: meson-saradc: add support for the Meson8m2 SoCs Martin Blumenstingl
2018-07-22  8:19   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).