From: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
To: Paul Cercueil <paul.cercueil-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
Cc: Jonathan Cameron <jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Lars-Peter Clausen <lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org>,
"linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org"
<rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>,
Pawel Moll <Pawel.Moll-5wv7dgnIgG8@public.gmane.org>,
Ian Campbell
<ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>,
Kumar Gala <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>,
"devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 3/3] devicetree: ad5064: Added devicetree bindings documentation
Date: Wed, 12 Feb 2014 12:18:32 +0000 [thread overview]
Message-ID: <20140212121832.GF21992@e106331-lin.cambridge.arm.com> (raw)
In-Reply-To: <1392206518-1457-3-git-send-email-paul.cercueil-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
On Wed, Feb 12, 2014 at 12:01:58PM +0000, Paul Cercueil wrote:
> Signed-off-by: Paul Cercueil <paul.cercueil-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
> Cc: Rob Herring <rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org>
> Cc: Pawel Moll <pawel.moll-5wv7dgnIgG8@public.gmane.org>
> Cc: Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>
> Cc: Ian Campbell <ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org>
> Cc: Kumar Gala <galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org>
> Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> ---
> .../devicetree/bindings/iio/dac/ad5064.txt | 49 ++++++++++++++++++++
> 1 file changed, 49 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/iio/dac/ad5064.txt
>
> diff --git a/Documentation/devicetree/bindings/iio/dac/ad5064.txt b/Documentation/devicetree/bindings/iio/dac/ad5064.txt
> new file mode 100644
> index 0000000..e5997b0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/iio/dac/ad5064.txt
> @@ -0,0 +1,49 @@
> +Analog Devices AD5064 DAC device driver
It would be nice to have a short description here, with useful facts
(e.g. this is an SPI device).
Is there any public documentation? It might not need to go in the
document, but having a link really helps with review.
> +
> +Required properties:
> + - compatible: Must be one of:
> + * "adi,ad5024"
> + * "adi,ad5025"
> + * "adi,ad5044"
> + * "adi,ad5045"
> + * "adi,ad5064"
> + * "adi,ad5064-1"
> + * "adi,ad5065"
> + * "adi,ad5628-1"
> + * "adi,ad5628-2"
> + * "adi,ad5648-1"
> + * "adi,ad5648-2"
> + * "adi,ad5666-1"
> + * "adi,ad5666-2"
> + * "adi,ad5668-1"
> + * "adi,ad5668-2"
> + * "adi,ad5668-3"
How do these differ? Are these just different revisions of the same
chip?
Are particular strings expected to be used as fallbacks in the
compatible list?
> + - reg: SPI chip select number for the device
> + - spi-max-frequency: Max SPI frequency to use (< 30000000)
> + - vrefA-supply, vrefB-supply: phandles to external reference voltage
> + supplies for channels 0 and 1 respectively.
> + This property must be present for ad5024, ad5025, ad5044, ad5045,
> + ad5064, ad5065.
Does ad5064 also imply ad5604-1 here?
> + - vrefC-supply, vrefD-supply: phandles to external reference voltage
> + supplies for channels 2 and 3 respectively.
> + This property must be present for ad5024, ad5044, ad5064.
Likewise.
These seem oddly named given the description. Are these named A B C D in
the documentation? If not, vref-channel-X-supply would seem to be
clearer.
Why are these grouped in pairs rather than listed individually?
> +
> +Optional properties:
> + - adi,use-external-reference: If set, the external reference voltage
> + supply is used. This should only be set if there is an external
> + reference voltage connected to the vref or vref[A-D] pins.
> + If the property is not set, the internal reference voltage supply
> + is used if present, or an error is issued by the driver.
When would you want to do this, and when would you want to use the
internal reference? Could the driver not choose to do this based on
whether a supply is listed in the dt?
Strip the part about the error, that's not a description of the device
and not a matter for the binding.
> + - vref-supply: phandle to the external reference voltage supply.
> + This property can be used with ad5064-1, ad5628-1, ad5628-2, ad5648-1,
> + ad5648-2, ad5666-1, ad5666-2, ad5668-1, ad5668-2, ad5668-3.
Just to check, on some versions (e.g. ad5668-3), this can work without
any supply listed at all, yes?
Cheers,
Mark.
next prev parent reply other threads:[~2014-02-12 12:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1392206518-1457-1-git-send-email-paul.cercueil@analog.com>
[not found] ` <1392206518-1457-1-git-send-email-paul.cercueil-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
2014-02-12 12:01 ` [PATCH 3/3] devicetree: ad5064: Added devicetree bindings documentation Paul Cercueil
[not found] ` <1392206518-1457-3-git-send-email-paul.cercueil-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
2014-02-12 12:18 ` Mark Rutland [this message]
[not found] ` <20140212121832.GF21992-NuALmloUBlrZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2014-02-12 14:07 ` Paul Cercueil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140212121832.GF21992@e106331-lin.cambridge.arm.com \
--to=mark.rutland-5wv7dgnigg8@public.gmane.org \
--cc=Pawel.Moll-5wv7dgnIgG8@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org \
--cc=ijc+devicetree-KcIKpvwj1kUDXYZnReoRVg@public.gmane.org \
--cc=jic23-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=lars-Qo5EllUWu/uELgA04lAiVw@public.gmane.org \
--cc=linux-iio-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=paul.cercueil-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org \
--cc=rob.herring-bsGFqQB8/DxBDgjK7y7TUQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).