From: Jonathan Cameron <jic23@kernel.org>
To: Adam Michaelis <adam.michaelis@rockwellcollins.com>
Cc: linux-iio@vger.kernel.org, lars@metafoo.de,
michael.hennerich@analog.com, knaack.h@gmx.de, pmeerw@pmeerw.net,
robh+dt@kernel.org, mark.rutland@arm.com,
charles-antoine.couret@essensium.com, devicetree@vger.kernel.org,
brandon.maier@rockwellcollins.com,
clayton.shotwell@rockwellcollins.com
Subject: Re: [PATCH v2 2/6] dt-bindings: iio: ad7949: Add adi,reference-select
Date: Sun, 5 May 2019 15:33:16 +0100 [thread overview]
Message-ID: <20190505153316.6c444eef@archlinux> (raw)
In-Reply-To: <1556813672-49861-2-git-send-email-adam.michaelis@rockwellcollins.com>
On Thu, 2 May 2019 11:14:28 -0500
Adam Michaelis <adam.michaelis@rockwellcollins.com> wrote:
> Adding optional parameter to AD7949 to specify the source for the
> reference voltage signal. Default value is maintaned with option '6' to
> match previous version of driver.
>
> Signed-off-by: Adam Michaelis <adam.michaelis@rockwellcollins.com>
See reply to v1. I missed there was already a v2 until after writing a
reply for this one!
Jonathan
> ---
> V2: Add some defines to reduce use of magic numbers.
> ---
> .../devicetree/bindings/iio/adc/ad7949.txt | 22 ++++++++++++++++++++--
> 1 file changed, 20 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/iio/adc/ad7949.txt b/Documentation/devicetree/bindings/iio/adc/ad7949.txt
> index c7f5057356b1..14ee9a2cb2a5 100644
> --- a/Documentation/devicetree/bindings/iio/adc/ad7949.txt
> +++ b/Documentation/devicetree/bindings/iio/adc/ad7949.txt
> @@ -6,11 +6,29 @@ Required properties:
> * "adi,ad7682"
> * "adi,ad7689"
> - reg: spi chip select number for the device
> - - vref-supply: The regulator supply for ADC reference voltage
>
> -Example:
> +Optional properties:
> + - adi,reference-select: Select the reference voltage source to use
> + when converting the input voltages. Valid values are:
> + 0: Internal 2.5V reference; temperature sensor enabled
> + 1: Internal 4.096V reference; temperature sensor enabled
> + 2: External reference, temperature sensor enabled, no buffer
> + 3: External reference, temperature sensor enabled, buffer enabled
> + 6: External reference, temperature sensor disabled, no buffer
> + 7: External reference, temperature sensor disabled, buffer enabled
> + - vref-supply: The regulator supply for ADC reference voltage. Required
> + if external reference selected by 'adi,reference-select'.
> +
> +Examples:
> adc@0 {
> compatible = "adi,ad7949";
> reg = <0>;
> + adi,reference-select = <2>;
> vref-supply = <&vdd_supply>;
> };
> +
> +adc@0 {
> + compatible = "adi,ad7949";
> + reg = <0>;
> + adi,reference-select = <0>;
> +};
next prev parent reply other threads:[~2019-05-05 14:33 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-02 16:14 [PATCH v2 1/6] iio: ad7949: Support internal Vref Adam Michaelis
2019-05-02 16:14 ` [PATCH v2 2/6] dt-bindings: iio: ad7949: Add adi,reference-select Adam Michaelis
2019-05-05 14:33 ` Jonathan Cameron [this message]
2019-05-02 16:14 ` [PATCH v2 3/6] iio: ad7949: Support configuration read-back Adam Michaelis
2019-05-05 14:42 ` Jonathan Cameron
2019-05-06 19:32 ` Adam Michaelis
2019-05-07 19:53 ` Adam Michaelis
2019-05-11 10:31 ` Jonathan Cameron
2019-05-13 10:04 ` Popa, Stefan Serban
2019-05-13 14:52 ` [External] " Adam Michaelis
2019-05-24 12:02 ` Couret Charles-Antoine
2019-05-02 16:14 ` [PATCH v2 4/6] dt-bindings: iio: ad7949: Add cfg-readback option Adam Michaelis
2019-05-02 16:14 ` [PATCH v2 5/6] iio: ad7949: Fix SPI interfacing for 14-bit messages Adam Michaelis
2019-05-05 15:06 ` Jonathan Cameron
2019-05-02 16:14 ` [PATCH v2 6/6] iio: ad7949: Fix dummy read cycle placement Adam Michaelis
2019-05-05 15:08 ` Jonathan Cameron
2019-05-05 14:39 ` [PATCH v2 1/6] iio: ad7949: Support internal Vref Jonathan Cameron
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=20190505153316.6c444eef@archlinux \
--to=jic23@kernel.org \
--cc=adam.michaelis@rockwellcollins.com \
--cc=brandon.maier@rockwellcollins.com \
--cc=charles-antoine.couret@essensium.com \
--cc=clayton.shotwell@rockwellcollins.com \
--cc=devicetree@vger.kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=michael.hennerich@analog.com \
--cc=pmeerw@pmeerw.net \
--cc=robh+dt@kernel.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).