mbox series

[0/4] iio: adc: at91-sama5d2: add support for sama7g5

Message ID 20210301143256.16502-1-eugen.hristev@microchip.com
Headers show
Series iio: adc: at91-sama5d2: add support for sama7g5 | expand

Message

Eugen Hristev March 1, 2021, 2:32 p.m. UTC
Hi Jonathan, all,

This series adds support for sama7g5.
The last patch (4/4) adds the support.

The sama7g5 is slightly different from sama5d2, but has the same basic
operations. The register map is a bit different, so, I added some primitives
to differentiate between the two classes of hardware blocks (sama5d2-sam9x60
and sama7g5).

Sama7g5 has 16 channels ADC, no resistive touch, and extra features
(FIFOs, better oversampling , not implemented yet).

I had to chop through the driver to add support for sama7g5, so, let me
know what you think, if something would need changing.

Thanks,
Eugen

Eugen Hristev (4):
  dt-bindings: iio: adc: at91-sama5d2: add compatible for sama7g5-adc
  iio: adc: at91-sama5d2: initialize hardware after clock is started
  iio: adc: at91-sama5d2: remove unused definition
  iio: adc: at91-sama5d2: add support for sama7g5 device

 .../bindings/iio/adc/atmel,sama5d2-adc.yaml   |   1 +
 drivers/iio/adc/at91-sama5d2_adc.c            | 293 ++++++++++++++----
 2 files changed, 237 insertions(+), 57 deletions(-)

Comments

Rob Herring March 8, 2021, 5:36 p.m. UTC | #1
On Mon, 01 Mar 2021 16:32:53 +0200, Eugen Hristev wrote:
> Add compatible for microchip,sama7g5-adc device.

> 

> Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>

> ---

>  Documentation/devicetree/bindings/iio/adc/atmel,sama5d2-adc.yaml | 1 +

>  1 file changed, 1 insertion(+)

> 


Acked-by: Rob Herring <robh@kernel.org>