xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/adi,ad7768-1.txt (revision ec0ea6efa1ad229d75c394c1a9b9cac33af2b1d3)
1Analog Devices AD7768-1 ADC device driver
2
3Required properties for the AD7768-1:
4
5- compatible: Must be "adi,ad7768-1"
6- reg: SPI chip select number for the device
7- spi-max-frequency: Max SPI frequency to use
8	see: Documentation/devicetree/bindings/spi/spi-bus.txt
9- clocks: phandle to the master clock (mclk)
10	see: Documentation/devicetree/bindings/clock/clock-bindings.txt
11- clock-names: Must be "mclk".
12- interrupts: IRQ line for the ADC
13	see: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
14- vref-supply: vref supply can be used as reference for conversion
15- adi,sync-in-gpios: must be the device tree identifier of the SYNC-IN pin. Enables
16	synchronization of multiple devices that require simultaneous sampling.
17	A pulse is always required if the configuration is changed in any way, for example
18	if the filter decimation rate changes. As the line is active low, it should
19	be marked GPIO_ACTIVE_LOW.
20
21Optional properties:
22
23 - reset-gpios : GPIO spec for the RESET pin. If specified, it will be asserted during
24	driver probe. As the line is active low, it should be marked GPIO_ACTIVE_LOW.
25
26Example:
27
28	adc@0 {
29		compatible = "adi,ad7768-1";
30		reg = <0>;
31		spi-max-frequency = <2000000>;
32		spi-cpol;
33		spi-cpha;
34		vref-supply = <&adc_vref>;
35		interrupts = <25 IRQ_TYPE_EDGE_RISING>;
36		interrupt-parent = <&gpio>;
37		adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
38		reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
39		clocks = <&ad7768_mclk>;
40		clock-names = "mclk";
41	};
42