Skip to content

Commit 893fbaa

Browse files
machschmittnunojsa
authored andcommitted
arm: dts: zynq-coraz7s-ad7687-pmdz: Set bipolar prop for diff channel
Pulsar devices do differential voltage measurement by default. When the negative input is restricted to a known voltage level, the ADC channel can be configured to do unipolar measurement in which case IN+ is not allowed to go below IN- and, except for possible offset, all measurements should then express a positive quantity. In contrast, when the negative input is not restricted to a fixed level, the measurement can express positive (IN+ > IN-) and negative (IN+ < IN-) quantities. Set the bipolar property to the differential channel for devices which default chip configuration does not imply any fixed voltage to IN-. Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
1 parent d56fe95 commit 893fbaa

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

arch/arm/boot/dts/zynq-coraz7s-ad7687-pmdz.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
vref-supply = <&vref>;
6262
channel@0 {
6363
reg = <0>;
64+
bipolar;
6465
diff-channels = <0 1>;
6566
};
6667
};

arch/arm/boot/dts/zynq-coraz7s-ad7984.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
vref-supply = <&vref>;
6262
channel@0 {
6363
reg = <0>;
64+
bipolar;
6465
diff-channels = <0 1>;
6566
};
6667
};

0 commit comments

Comments
 (0)