From: Liam Beguin <liambeguin@gmail.com>
To: liambeguin@gmail.com, lars@metafoo.de,
Michael.Hennerich@analog.com, jic23@kernel.org,
charles-antoine.couret@essensium.com, Nuno.Sa@analog.com
Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org,
devicetree@vger.kernel.org, robh+dt@kernel.org
Subject: [PATCH v2 4/4] dt-bindings: iio: adc: ad7949: add adi,reference-source
Date: Fri, 9 Jul 2021 11:58:56 -0400 [thread overview]
Message-ID: <20210709155856.1732245-5-liambeguin@gmail.com> (raw)
In-Reply-To: <20210709155856.1732245-1-liambeguin@gmail.com>
From: Liam Beguin <lvb@xiphos.com>
Add bindings documentation for the adi,reference-source property.
This property is required to properly configure the ADC sample request
based on which reference source should be used for the calculation.
Signed-off-by: Liam Beguin <lvb@xiphos.com>
---
.../bindings/iio/adc/adi,ad7949.yaml | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml
index 9b56bd4d5510..eae3121cad01 100644
--- a/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml
+++ b/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml
@@ -35,6 +35,27 @@ properties:
"#io-channel-cells":
const: 1
+ adi,reference-select:
+ description: |
+ Select the reference voltage source to use when converting samples.
+ Acceptable values are:
+ - 0: Internal reference and temperature sensor enabled.
+ Vref=2.5V, buffered output
+ - 1: Internal reference and temperature sensor enabled.
+ Vref=4.096V, buffered output
+ - 2: Use external reference, temperature sensor enabled.
+ Internal buffer disabled
+ - 3: Use external reference, internal buffer and temperature sensor
+ enabled.
+ - 6: Use external reference, internal buffer and temperature sensor
+ disabled.
+ - 7: Use external reference, internal buffer enabled.
+ Internal reference and temperature sensor disabled.
+
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [0, 1, 2, 3, 6, 7]
+ default: 7
+
required:
- compatible
- reg
--
2.30.1.489.g328c10930387
next prev parent reply other threads:[~2021-07-09 15:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-09 15:58 [PATCH v1 0/4] AD7949 Fixes Liam Beguin
2021-07-09 15:58 ` [PATCH v2 1/4] iio: adc: ad7949: define and use bitfield names Liam Beguin
2021-07-10 16:08 ` Jonathan Cameron
2021-07-10 18:17 ` Liam Beguin
2021-07-09 15:58 ` [PATCH v2 2/4] iio: adc: ad7949: fix spi messages on non 14-bit controllers Liam Beguin
2021-07-10 16:39 ` Jonathan Cameron
2021-07-11 19:58 ` Liam Beguin
2021-07-12 10:12 ` Jonathan Cameron
2021-07-09 15:58 ` [PATCH v2 3/4] iio: adc: ad7949: add support for internal vref Liam Beguin
2021-07-10 17:03 ` Jonathan Cameron
2021-07-09 15:58 ` Liam Beguin [this message]
2021-07-10 17:00 ` [PATCH v2 4/4] dt-bindings: iio: adc: ad7949: add adi,reference-source Jonathan Cameron
2021-07-12 17:05 ` Liam Beguin
2021-07-13 9:16 ` 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=20210709155856.1732245-5-liambeguin@gmail.com \
--to=liambeguin@gmail.com \
--cc=Michael.Hennerich@analog.com \
--cc=Nuno.Sa@analog.com \
--cc=charles-antoine.couret@essensium.com \
--cc=devicetree@vger.kernel.org \
--cc=jic23@kernel.org \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--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).