Add Meson SAR ADC support for G12A
Subsystems (3)
cover 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(+)
Signature · 1 line
2.20.1
PATCH 1/2 dt-bindings: iio: adc: document the Meson G12A support
Update the documentation to expicitly support the Meson-G12A SoC.
--- .../devicetree/bindings/iio/adc/amlogic,meson-saradc.txt | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt +1 -0
@@ -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
Signature · 1 line
2.20.1
Re: [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support
Quoted 2 lines · Neil Armstrong
Update the documentation to expicitly support the Meson-G12A SoC.
typo: explicitly
Quoted 1 line
Signed-off-by Neil Armstrong <[email protected]>
apart from that:
Jonathan Cameron
AppliedRe: [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support
Quoted 8 lines · On Tue, 5 Mar 2019 22:01:38 +0100 Martin Blumenstingl…
Quoted 2 lines · Neil Armstrong
Update the documentation to expicitly support the Meson-G12A SoC.
typo: explicitly
Quoted 1 line
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
PATCH 2/2 iio: adc: meson-saradc: add support for Meson G12A
In reply to Neil ArmstrongAdd the SAR ADC driver for the Amlogic Meson-G12A SoC.
--- drivers/iio/adc/meson_saradc.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/iio/adc/meson_saradc.c +8 -0
@@ -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, }, {}, };
Signature · 1 line
2.20.1
Re: [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A
Quoted 4 lines · Neil Armstrong
Add the SAR ADC driver for the Amlogic Meson-G12A SoC.
Signed-off-by Neil Armstrong <[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
Re: [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A
Quoted 9 lines · On Tue, 5 Mar 2019 22:02:48 +0100 Martin Blumenstingl…
Quoted 4 lines · Neil Armstrong
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