xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/adi,ad7768-1.yaml (revision 6be3386466ab79a84b48429ae66244f21526d3df)
1*6be33864SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2*6be33864SEmmanuel Vadot%YAML 1.2
3*6be33864SEmmanuel Vadot---
4*6be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/adi,ad7768-1.yaml#
5*6be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*6be33864SEmmanuel Vadot
7*6be33864SEmmanuel Vadottitle: Analog Devices AD7768-1 ADC device driver
8*6be33864SEmmanuel Vadot
9*6be33864SEmmanuel Vadotmaintainers:
10*6be33864SEmmanuel Vadot  - Michael Hennerich <michael.hennerich@analog.com>
11*6be33864SEmmanuel Vadot
12*6be33864SEmmanuel Vadotdescription: |
13*6be33864SEmmanuel Vadot  Datasheet at:
14*6be33864SEmmanuel Vadot    https://www.analog.com/media/en/technical-documentation/data-sheets/ad7768-1.pdf
15*6be33864SEmmanuel Vadot
16*6be33864SEmmanuel Vadotproperties:
17*6be33864SEmmanuel Vadot  compatible:
18*6be33864SEmmanuel Vadot    const: adi,ad7768-1
19*6be33864SEmmanuel Vadot
20*6be33864SEmmanuel Vadot  reg:
21*6be33864SEmmanuel Vadot    maxItems: 1
22*6be33864SEmmanuel Vadot
23*6be33864SEmmanuel Vadot  clocks:
24*6be33864SEmmanuel Vadot    maxItems: 1
25*6be33864SEmmanuel Vadot
26*6be33864SEmmanuel Vadot  clock-names:
27*6be33864SEmmanuel Vadot    const: mclk
28*6be33864SEmmanuel Vadot
29*6be33864SEmmanuel Vadot  interrupts:
30*6be33864SEmmanuel Vadot    maxItems: 1
31*6be33864SEmmanuel Vadot
32*6be33864SEmmanuel Vadot  vref-supply:
33*6be33864SEmmanuel Vadot    description:
34*6be33864SEmmanuel Vadot      ADC reference voltage supply
35*6be33864SEmmanuel Vadot
36*6be33864SEmmanuel Vadot  adi,sync-in-gpios:
37*6be33864SEmmanuel Vadot    description:
38*6be33864SEmmanuel Vadot      Enables synchronization of multiple devices that require simultaneous
39*6be33864SEmmanuel Vadot      sampling. A pulse is always required if the configuration is changed
40*6be33864SEmmanuel Vadot      in any way, for example if the filter decimation rate changes.
41*6be33864SEmmanuel Vadot      As the line is active low, it should be marked GPIO_ACTIVE_LOW.
42*6be33864SEmmanuel Vadot
43*6be33864SEmmanuel Vadot  reset-gpios:
44*6be33864SEmmanuel Vadot    maxItems: 1
45*6be33864SEmmanuel Vadot
46*6be33864SEmmanuel Vadot  spi-max-frequency: true
47*6be33864SEmmanuel Vadot
48*6be33864SEmmanuel Vadot  spi-cpol: true
49*6be33864SEmmanuel Vadot
50*6be33864SEmmanuel Vadot  spi-cpha: true
51*6be33864SEmmanuel Vadot
52*6be33864SEmmanuel Vadot  "#io-channel-cells":
53*6be33864SEmmanuel Vadot    const: 1
54*6be33864SEmmanuel Vadot
55*6be33864SEmmanuel Vadotrequired:
56*6be33864SEmmanuel Vadot  - compatible
57*6be33864SEmmanuel Vadot  - reg
58*6be33864SEmmanuel Vadot  - clocks
59*6be33864SEmmanuel Vadot  - clock-names
60*6be33864SEmmanuel Vadot  - vref-supply
61*6be33864SEmmanuel Vadot  - spi-cpol
62*6be33864SEmmanuel Vadot  - spi-cpha
63*6be33864SEmmanuel Vadot  - adi,sync-in-gpios
64*6be33864SEmmanuel Vadot
65*6be33864SEmmanuel VadotadditionalProperties: false
66*6be33864SEmmanuel Vadot
67*6be33864SEmmanuel Vadotexamples:
68*6be33864SEmmanuel Vadot  - |
69*6be33864SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
70*6be33864SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
71*6be33864SEmmanuel Vadot    spi {
72*6be33864SEmmanuel Vadot        #address-cells = <1>;
73*6be33864SEmmanuel Vadot        #size-cells = <0>;
74*6be33864SEmmanuel Vadot
75*6be33864SEmmanuel Vadot        adc@0 {
76*6be33864SEmmanuel Vadot            compatible = "adi,ad7768-1";
77*6be33864SEmmanuel Vadot            reg = <0>;
78*6be33864SEmmanuel Vadot            spi-max-frequency = <2000000>;
79*6be33864SEmmanuel Vadot            spi-cpol;
80*6be33864SEmmanuel Vadot            spi-cpha;
81*6be33864SEmmanuel Vadot            vref-supply = <&adc_vref>;
82*6be33864SEmmanuel Vadot            interrupts = <25 IRQ_TYPE_EDGE_RISING>;
83*6be33864SEmmanuel Vadot            interrupt-parent = <&gpio>;
84*6be33864SEmmanuel Vadot            adi,sync-in-gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
85*6be33864SEmmanuel Vadot            reset-gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
86*6be33864SEmmanuel Vadot            clocks = <&ad7768_mclk>;
87*6be33864SEmmanuel Vadot            clock-names = "mclk";
88*6be33864SEmmanuel Vadot        };
89*6be33864SEmmanuel Vadot    };
90*6be33864SEmmanuel Vadot...
91