DORMANTno replies

[PATCH 4/6] dt-bindings: iio: ad7949: Add cfg-readback option

From: Adam Michaelis <hidden>
Date: 2019-05-01 19:17:59

From 7bf834dd49844a4e785924a9b0ead37cb9cf83c6 Mon Sep 17 00:00:00 2001
From: Adam Michaelis <redacted>
Date: Thu, 25 Apr 2019 15:26:21 -0500
Subject: [PATCH 4/6] dt-bindings: iio: ad7949: Add cfg-readback option

Adding optional parameter to the ad7949 to indicate that the part should
be configured to include the configuration register value used when
acquiring the current sample value.

Signed-off-by: Adam Michaelis <redacted>
---
 Documentation/devicetree/bindings/iio/adc/ad7949.txt | 9 +++++++++
 1 file changed, 9 insertions(+)
diff --git a/Documentation/devicetree/bindings/iio/adc/ad7949.txt
b/Documentation/devicetree/bindings/iio/adc/ad7949.txt
index 14ee9a2cb2a5..cd3572828243 100644
--- a/Documentation/devicetree/bindings/iio/adc/ad7949.txt
+++ b/Documentation/devicetree/bindings/iio/adc/ad7949.txt
@@ -18,6 +18,8 @@ Optional properties:
    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'.
+ - adi,cfg-readback: If defined, set bit in configuration register to
+ read-back the configuration used for the current sample value.

 Examples:
 adc@0 {
@@ -32,3 +34,10 @@ adc@0 {
  reg = <0>;
  adi,reference-select = <0>;
 };
+
+adc@0 {
+ compatible = "adi,ad7949";
+ reg = <0>;
+ adi,reference-select = <1>;
+ adi,cfg-readback;
+};
-- 
1.9.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help