@@ -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;
+};
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 <adam.michaelis@rockwellcollins.com> --- V2: Add some defines to reduce use of magic numbers. --- Documentation/devicetree/bindings/iio/adc/ad7949.txt | 9 +++++++++ 1 file changed, 9 insertions(+)