xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/adc.txt (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel VadotCommon ADCs properties
2*c66ec88fSEmmanuel Vadot
3*c66ec88fSEmmanuel VadotOptional properties for child nodes:
4*c66ec88fSEmmanuel Vadot- bipolar : Boolean, if set the channel is used in bipolar mode.
5*c66ec88fSEmmanuel Vadot- diff-channels : Differential channels muxed for this ADC. The first value
6*c66ec88fSEmmanuel Vadot		specifies the positive input pin, the second value the negative
7*c66ec88fSEmmanuel Vadot		input pin.
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel VadotExample:
10*c66ec88fSEmmanuel Vadot	adc@0 {
11*c66ec88fSEmmanuel Vadot		compatible = "some,adc";
12*c66ec88fSEmmanuel Vadot		...
13*c66ec88fSEmmanuel Vadot		channel@0 {
14*c66ec88fSEmmanuel Vadot			bipolar;
15*c66ec88fSEmmanuel Vadot			diff-channels = <0 1>;
16*c66ec88fSEmmanuel Vadot			...
17*c66ec88fSEmmanuel Vadot		};
18*c66ec88fSEmmanuel Vadot
19*c66ec88fSEmmanuel Vadot		channel@1 {
20*c66ec88fSEmmanuel Vadot			diff-channels = <2 3>;
21*c66ec88fSEmmanuel Vadot			...
22*c66ec88fSEmmanuel Vadot		};
23*c66ec88fSEmmanuel Vadot	};
24