2019-03-04 11:13:45

by Neil Armstrong

[permalink] [raw]
Subject: [PATCH 0/2] Add Meson SAR ADC support for G12A

These patches adds SAR ADC support for the G12A SoCs, using
the same setup/configuration as AXG and GXL.

The only change is the clocks, they are now handled by the AO
Clock Controller, but it doesn't change the bindings or the driver.

Neil Armstrong (2):
dt-bindings: iio: adc: document the Meson G12A support
iio: adc: meson-saradc: add support for Meson G12A

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

--
2.20.1



2019-03-04 11:13:06

by Neil Armstrong

[permalink] [raw]
Subject: [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support

Update the documentation to expicitly support the Meson-G12A SoC.

Signed-off-by: Neil Armstrong <[email protected]>
---
.../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 325090e43ce6..0d134e0ac600 100644
--- a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt
+++ b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt
@@ -9,6 +9,7 @@ Required properties:
- "amlogic,meson-gxl-saradc" for GXL
- "amlogic,meson-gxm-saradc" for GXM
- "amlogic,meson-axg-saradc" for AXG
+ - "amlogic,meson-g12a-saradc" for AXG
along with the generic "amlogic,meson-saradc"
- reg: the physical base address and length of the registers
- interrupts: the interrupt indicating end of sampling
--
2.20.1


2019-03-04 11:13:08

by Neil Armstrong

[permalink] [raw]
Subject: [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A

Add the SAR ADC driver for the Amlogic Meson-G12A SoC.

Signed-off-by: Neil Armstrong <[email protected]>
---
drivers/iio/adc/meson_saradc.c | 8 ++++++++
1 file changed, 8 insertions(+)

diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c
index 729becb2d3d9..69aeb5c58a9f 100644
--- a/drivers/iio/adc/meson_saradc.c
+++ b/drivers/iio/adc/meson_saradc.c
@@ -1117,6 +1117,11 @@ static const struct meson_sar_adc_data meson_sar_adc_axg_data = {
.name = "meson-axg-saradc",
};

+static const struct meson_sar_adc_data meson_sar_adc_g12a_data = {
+ .param = &meson_sar_adc_gxl_param,
+ .name = "meson-g12a-saradc",
+};
+
static const struct of_device_id meson_sar_adc_of_match[] = {
{
.compatible = "amlogic,meson8-saradc",
@@ -1142,6 +1147,9 @@ static const struct of_device_id meson_sar_adc_of_match[] = {
}, {
.compatible = "amlogic,meson-axg-saradc",
.data = &meson_sar_adc_axg_data,
+ }, {
+ .compatible = "amlogic,meson-g12a-saradc",
+ .data = &meson_sar_adc_g12a_data,
},
{},
};
--
2.20.1


2019-03-05 21:19:04

by Martin Blumenstingl

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support

On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong <[email protected]> wrote:
>
> Update the documentation to expicitly support the Meson-G12A SoC.
typo: explicitly

> Signed-off-by: Neil Armstrong <[email protected]>
apart from that:
Reviewed-by: Martin Blumenstingl <[email protected]>

2019-03-05 21:19:07

by Martin Blumenstingl

[permalink] [raw]
Subject: Re: [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A

On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong <[email protected]> wrote:
>
> Add the SAR ADC driver for the Amlogic Meson-G12A SoC.
>
> Signed-off-by: Neil Armstrong <[email protected]>
Reviewed-by: Martin Blumenstingl <[email protected]>

this new compatible string will be especially useful when we want to
add "buffer" support which was reworked in the IP block with G12A

2019-03-09 18:06:19

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support

On Tue, 5 Mar 2019 22:01:38 +0100
Martin Blumenstingl <[email protected]> wrote:

> On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong <[email protected]> wrote:
> >
> > Update the documentation to expicitly support the Meson-G12A SoC.
> typo: explicitly
>
> > Signed-off-by: Neil Armstrong <[email protected]>
> apart from that:
> Reviewed-by: Martin Blumenstingl <[email protected]>

Applied to the togreg branch of iio.git and pushed out
as testing to be completely ignored ;)

Thanks,

Jonathan

2019-03-09 18:09:29

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A

On Tue, 5 Mar 2019 22:02:48 +0100
Martin Blumenstingl <[email protected]> wrote:

> On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong <[email protected]> wrote:
> >
> > Add the SAR ADC driver for the Amlogic Meson-G12A SoC.
> >
> > Signed-off-by: Neil Armstrong <[email protected]>
> Reviewed-by: Martin Blumenstingl <[email protected]>
>
> this new compatible string will be especially useful when we want to
> add "buffer" support which was reworked in the IP block with G12A

Good to know. Thanks.

Applied to the togreg branch of iio.git and pushed out as testing
for the autobuilders to play with it.

Thanks,

Jonathan