Skip to content

Commit d86deae

Browse files
dumitruceclanjic23
authored andcommitted
dt-bindings: iio: adc: Add common-mode-channel property
There are ADCs that are differential but support to measure single-ended signals on the same channels by connecting a constant voltage to the negative input pin. This property allows to properly define a single-ended channel that requires two inputs to be specified. Software can use the presence of this property to mark the channel as not differential. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Reviewed-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20240607-ad4111-v7-1-97e3855900a0@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 182b616 commit d86deae

File tree

1 file changed

+11
-0
lines changed
  • Documentation/devicetree/bindings/iio/adc

1 file changed

+11
-0
lines changed

Documentation/devicetree/bindings/iio/adc/adc.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ properties:
4646
differential channels). If this and diff-channels are not present reg
4747
shall be used instead.
4848

49+
common-mode-channel:
50+
$ref: /schemas/types.yaml#/definitions/uint32
51+
description:
52+
Some ADCs have differential input pins that can be used to measure
53+
single-ended or pseudo-differential inputs. This property can be used
54+
in addition to single-channel to signal software that this channel is
55+
not differential but still specify two inputs.
56+
57+
The input pair is specified by setting single-channel to the positive
58+
input pin and common-mode-channel to the negative pin.
59+
4960
settling-time-us:
5061
description:
5162
Time between enabling the channel and first stable readings.

0 commit comments

Comments
 (0)