Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1297317

Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver

From Ludovic Desroches <ludovic.desroches@atmel.com>
Newsgroups linux.kernel
Subject Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver
Date 2015-12-23 11:30 +0100
Message-ID <qIOQa-8nu-11@gated-at.bofh.it> (permalink)
References <qI4WZ-4EK-5@gated-at.bofh.it> <qI4X0-4EK-29@gated-at.bofh.it> <qIFWy-2J8-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Dec 22, 2015 at 06:51:18PM -0600, Rob Herring wrote:
> On Mon, Dec 21, 2015 at 10:24:08AM +0100, Ludovic Desroches wrote:
> > This driver supports the new version of the Atmel ADC device introduced
> > with the SAMA5D2 SoC family.
> > 
> > Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
> > ---
> >  .../devicetree/bindings/iio/adc/at91_adc8xx.txt    |  27 ++
> >  drivers/iio/adc/Kconfig                            |  11 +
> >  drivers/iio/adc/Makefile                           |   1 +
> >  drivers/iio/adc/at91_adc8xx.c                      | 417 +++++++++++++++++++++
> >  4 files changed, 456 insertions(+)
> >  create mode 100644 Documentation/devicetree/bindings/iio/adc/at91_adc8xx.txt
> >  create mode 100644 drivers/iio/adc/at91_adc8xx.c
> > 
> > diff --git a/Documentation/devicetree/bindings/iio/adc/at91_adc8xx.txt b/Documentation/devicetree/bindings/iio/adc/at91_adc8xx.txt
> > new file mode 100644
> > index 0000000..64ad6a5
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/iio/adc/at91_adc8xx.txt
> > @@ -0,0 +1,27 @@
> > +* AT91 SAMA5D2 Analog to Digital Converter (ADC)
> > +
> > +Required properties:
> > +  - compatible: Should be "atmel,sama5d2-adc".
> > +  - reg: Should contain ADC registers location and length.
> > +  - interrupts: Should contain the IRQ line for the ADC.
> > +  - clocks: phandles to clocks.
> > +  - clock-names: tuple listing clock names.
> > +      Required elements: "adc_clk", "adc_op_clk". "adc_clk" is the peripheral
> > +      clock, "adc_clk" is the sampling clock.
> > +  - vref-supply: Supply used as reference for conversions.
> > +
> > +Optional properties:
> > +  - vddana-supply: Supply for the adc device.
> 
> What makes a supply optional? If chip dependent, then then you need a 
> more specific compatible string.
> 

I thought I had read that we can supply an external vddana or having a
default one. Double checking the datasheet. I can't find it, I probably
read it on a draft version. Will move the vddana supply to required
properties.

Thanks

Ludovic
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] Introduce at91_adc8xx driver Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-12-21 10:30 +0100
  [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-12-21 10:30 +0100
    Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver Jonathan Cameron <jic23@kernel.org> - 2015-12-22 19:40 +0100
      Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-12-23 11:30 +0100
        Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-12-23 11:50 +0100
          Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver Jonathan Cameron <jic23@jic23.retrosnub.co.uk> - 2015-12-23 18:30 +0100
        Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver Jonathan Cameron <jic23@kernel.org> - 2015-12-31 20:30 +0100
    Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver Rob Herring <robh@kernel.org> - 2015-12-23 02:00 +0100
      Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-12-23 11:30 +0100
    Re: [PATCH 1/5] iio:adc:at91_adc8xx: introduce new atmel adc driver Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-12-23 11:30 +0100

csiph-web