Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 90c430d3 authored by Stefan Popa's avatar Stefan Popa Committed by Jonathan Cameron
Browse files

dt-bindings: iio: adc: Add common ADCs properties to a separate file



There are several ADC drivers that depend on the same device tree
bindings. Rather than continue to duplicate the properties, this patch
adds a common adc binding document that can be referenced. For beginning,
only two properties are documented.

Signed-off-by: default avatarStefan Popa <stefan.popa@analog.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent f0aef2d0
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
Common ADCs properties

Optional properties for child nodes:
- bipolar : Boolean, if set the channel is used in bipolar mode.
- diff-channels : Differential channels muxed for this ADC. The first value
		specifies the positive input pin, the second value the negative
		input pin.

Example:
	adc@0 {
		compatible = "some,adc";
		...
		channel@0 {
			bipolar;
			diff-channels = <0 1>;
			...
		};

		channel@1 {
			diff-channels = <2 3>;
			...
		};
	};