xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/ti-adc12138.txt (revision 25ecdc7d52770caf1c9b44b5ec11f468f6b636f3)
1* Texas Instruments' ADC12130/ADC12132/ADC12138
2
3Required properties:
4 - compatible: Should be one of
5	* "ti,adc12130"
6	* "ti,adc12132"
7	* "ti,adc12138"
8 - reg: SPI chip select number for the device
9 - interrupts: Should contain interrupt for EOC (end of conversion)
10 - clocks: phandle to conversion clock input
11 - spi-max-frequency: Definision as per
12	Documentation/devicetree/bindings/spi/spi-bus.txt
13 - vref-p-supply: The regulator supply for positive analog voltage reference
14
15Optional properties:
16 - vref-n-supply: The regulator supply for negative analog voltage reference
17	(Note that this must not go below GND or exceed vref-p)
18	If not specified, this is assumed to be analog ground.
19 - ti,acquisition-time: The number of conversion clock periods for the S/H's
20	acquisition time.  Should be one of 6, 10, 18, 34.  If not specified,
21	default value of 10 is used.
22	For high source impedances, this value can be increased to 18 or 34.
23	For less ADC accuracy and/or slower CCLK frequencies this value may be
24	decreased to 6.  See section 6.0 INPUT SOURCE RESISTANCE in the
25	datasheet for details.
26
27Example:
28adc@0 {
29	compatible = "ti,adc12138";
30	reg = <0>;
31	interrupts = <28 IRQ_TYPE_EDGE_RISING>;
32	interrupt-parent = <&gpio1>;
33	clocks = <&cclk>;
34	vref-p-supply = <&ldo4_reg>;
35	spi-max-frequency = <5000000>;
36	ti,acquisition-time = <6>;
37};
38