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