Skip to contentSkip to conversation

Add Meson SAR ADC support for G12A

PATCH Applied Neil Armstrong 3 participants 7 messages Mar 4, 2019 – Mar 9, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 325090e43ce6..0d134e0ac600 100644
@@ -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
#3 lore raw

Re: [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

apart from that:

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

Thanks,

Jonathan

#4 lore raw

PATCH 2/2 iio: adc: meson-saradc: add support for Meson G12A

In reply to Neil Armstrong

Add 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
index 729becb2d3d9..69aeb5c58a9f 100644
@@ -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
#6 lore raw

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.

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