* [PATCH 0/2] Add Meson SAR ADC support for G12A @ 2019-03-04 11:12 Neil Armstrong 2019-03-04 11:12 ` [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support Neil Armstrong 2019-03-04 11:12 ` [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A Neil Armstrong 0 siblings, 2 replies; 7+ messages in thread From: Neil Armstrong @ 2019-03-04 11:12 UTC (permalink / raw) To: linux-iio, martin.blumenstingl Cc: Neil Armstrong, linux-amlogic, linux-arm-kernel, linux-kernel 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support 2019-03-04 11:12 [PATCH 0/2] Add Meson SAR ADC support for G12A Neil Armstrong @ 2019-03-04 11:12 ` Neil Armstrong 2019-03-05 21:01 ` Martin Blumenstingl 2019-03-04 11:12 ` [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A Neil Armstrong 1 sibling, 1 reply; 7+ messages in thread From: Neil Armstrong @ 2019-03-04 11:12 UTC (permalink / raw) To: linux-iio, martin.blumenstingl, devicetree Cc: Neil Armstrong, linux-amlogic, linux-arm-kernel, linux-kernel Update the documentation to expicitly support the Meson-G12A SoC. Signed-off-by: Neil Armstrong <narmstrong@baylibre.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 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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support 2019-03-04 11:12 ` [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support Neil Armstrong @ 2019-03-05 21:01 ` Martin Blumenstingl 2019-03-09 18:05 ` Jonathan Cameron 0 siblings, 1 reply; 7+ messages in thread From: Martin Blumenstingl @ 2019-03-05 21:01 UTC (permalink / raw) To: Neil Armstrong Cc: linux-iio, devicetree, linux-amlogic, linux-arm-kernel, linux-kernel On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong <narmstrong@baylibre.com> wrote: > > Update the documentation to expicitly support the Meson-G12A SoC. typo: explicitly > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> apart from that: Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support 2019-03-05 21:01 ` Martin Blumenstingl @ 2019-03-09 18:05 ` Jonathan Cameron 0 siblings, 0 replies; 7+ messages in thread From: Jonathan Cameron @ 2019-03-09 18:05 UTC (permalink / raw) To: Martin Blumenstingl Cc: Neil Armstrong, linux-iio, devicetree, linux-amlogic, linux-arm-kernel, linux-kernel On Tue, 5 Mar 2019 22:01:38 +0100 Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote: > On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong <narmstrong@baylibre.com> wrote: > > > > Update the documentation to expicitly support the Meson-G12A SoC. > typo: explicitly > > > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> > apart from that: > Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Applied to the togreg branch of iio.git and pushed out as testing to be completely ignored ;) Thanks, Jonathan ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A 2019-03-04 11:12 [PATCH 0/2] Add Meson SAR ADC support for G12A Neil Armstrong 2019-03-04 11:12 ` [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support Neil Armstrong @ 2019-03-04 11:12 ` Neil Armstrong 2019-03-05 21:02 ` Martin Blumenstingl 1 sibling, 1 reply; 7+ messages in thread From: Neil Armstrong @ 2019-03-04 11:12 UTC (permalink / raw) To: linux-iio, martin.blumenstingl Cc: Neil Armstrong, linux-amlogic, linux-arm-kernel, linux-kernel Add the SAR ADC driver for the Amlogic Meson-G12A SoC. Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> --- 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 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A 2019-03-04 11:12 ` [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A Neil Armstrong @ 2019-03-05 21:02 ` Martin Blumenstingl 2019-03-09 18:07 ` Jonathan Cameron 0 siblings, 1 reply; 7+ messages in thread From: Martin Blumenstingl @ 2019-03-05 21:02 UTC (permalink / raw) To: Neil Armstrong; +Cc: linux-iio, linux-amlogic, linux-arm-kernel, linux-kernel On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong <narmstrong@baylibre.com> wrote: > > Add the SAR ADC driver for the Amlogic Meson-G12A SoC. > > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> this new compatible string will be especially useful when we want to add "buffer" support which was reworked in the IP block with G12A ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A 2019-03-05 21:02 ` Martin Blumenstingl @ 2019-03-09 18:07 ` Jonathan Cameron 0 siblings, 0 replies; 7+ messages in thread From: Jonathan Cameron @ 2019-03-09 18:07 UTC (permalink / raw) To: Martin Blumenstingl Cc: Neil Armstrong, linux-iio, linux-amlogic, linux-arm-kernel, linux-kernel On Tue, 5 Mar 2019 22:02:48 +0100 Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote: > On Mon, Mar 4, 2019 at 12:12 PM Neil Armstrong <narmstrong@baylibre.com> wrote: > > > > Add the SAR ADC driver for the Amlogic Meson-G12A SoC. > > > > Signed-off-by: Neil Armstrong <narmstrong@baylibre.com> > Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> > > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-03-09 18:07 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-03-04 11:12 [PATCH 0/2] Add Meson SAR ADC support for G12A Neil Armstrong 2019-03-04 11:12 ` [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support Neil Armstrong 2019-03-05 21:01 ` Martin Blumenstingl 2019-03-09 18:05 ` Jonathan Cameron 2019-03-04 11:12 ` [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A Neil Armstrong 2019-03-05 21:02 ` Martin Blumenstingl 2019-03-09 18:07 ` 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).