xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/adi,ad4030.yaml (revision 8ccc0d235c226d84112561d453c49904398d085c)
1*8ccc0d23SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*8ccc0d23SEmmanuel Vadot# Copyright 2024 Analog Devices Inc.
3*8ccc0d23SEmmanuel Vadot# Copyright 2024 BayLibre, SAS.
4*8ccc0d23SEmmanuel Vadot%YAML 1.2
5*8ccc0d23SEmmanuel Vadot---
6*8ccc0d23SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/adi,ad4030.yaml#
7*8ccc0d23SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
8*8ccc0d23SEmmanuel Vadot
9*8ccc0d23SEmmanuel Vadottitle: Analog Devices AD4030 and AD4630 ADC families
10*8ccc0d23SEmmanuel Vadot
11*8ccc0d23SEmmanuel Vadotmaintainers:
12*8ccc0d23SEmmanuel Vadot  - Michael Hennerich <michael.hennerich@analog.com>
13*8ccc0d23SEmmanuel Vadot  - Nuno Sa <nuno.sa@analog.com>
14*8ccc0d23SEmmanuel Vadot
15*8ccc0d23SEmmanuel Vadotdescription: |
16*8ccc0d23SEmmanuel Vadot  Analog Devices AD4030 single channel and AD4630/AD4632 dual channel precision
17*8ccc0d23SEmmanuel Vadot  SAR ADC families
18*8ccc0d23SEmmanuel Vadot
19*8ccc0d23SEmmanuel Vadot  * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4030-24-4032-24.pdf
20*8ccc0d23SEmmanuel Vadot  * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-24_ad4632-24.pdf
21*8ccc0d23SEmmanuel Vadot  * https://www.analog.com/media/en/technical-documentation/data-sheets/ad4630-16-4632-16.pdf
22*8ccc0d23SEmmanuel Vadot
23*8ccc0d23SEmmanuel Vadotproperties:
24*8ccc0d23SEmmanuel Vadot  compatible:
25*8ccc0d23SEmmanuel Vadot    enum:
26*8ccc0d23SEmmanuel Vadot      - adi,ad4030-24
27*8ccc0d23SEmmanuel Vadot      - adi,ad4032-24
28*8ccc0d23SEmmanuel Vadot      - adi,ad4630-16
29*8ccc0d23SEmmanuel Vadot      - adi,ad4630-24
30*8ccc0d23SEmmanuel Vadot      - adi,ad4632-16
31*8ccc0d23SEmmanuel Vadot      - adi,ad4632-24
32*8ccc0d23SEmmanuel Vadot
33*8ccc0d23SEmmanuel Vadot  reg:
34*8ccc0d23SEmmanuel Vadot    maxItems: 1
35*8ccc0d23SEmmanuel Vadot
36*8ccc0d23SEmmanuel Vadot  spi-max-frequency:
37*8ccc0d23SEmmanuel Vadot    maximum: 102040816
38*8ccc0d23SEmmanuel Vadot
39*8ccc0d23SEmmanuel Vadot  spi-rx-bus-width:
40*8ccc0d23SEmmanuel Vadot    enum: [1, 2, 4]
41*8ccc0d23SEmmanuel Vadot
42*8ccc0d23SEmmanuel Vadot  vdd-5v-supply: true
43*8ccc0d23SEmmanuel Vadot  vdd-1v8-supply: true
44*8ccc0d23SEmmanuel Vadot  vio-supply: true
45*8ccc0d23SEmmanuel Vadot
46*8ccc0d23SEmmanuel Vadot  ref-supply:
47*8ccc0d23SEmmanuel Vadot    description:
48*8ccc0d23SEmmanuel Vadot      Optional External unbuffered reference. Used when refin-supply is not
49*8ccc0d23SEmmanuel Vadot      connected.
50*8ccc0d23SEmmanuel Vadot
51*8ccc0d23SEmmanuel Vadot  refin-supply:
52*8ccc0d23SEmmanuel Vadot    description:
53*8ccc0d23SEmmanuel Vadot      Internal buffered Reference. Used when ref-supply is not connected.
54*8ccc0d23SEmmanuel Vadot
55*8ccc0d23SEmmanuel Vadot  cnv-gpios:
56*8ccc0d23SEmmanuel Vadot    description:
57*8ccc0d23SEmmanuel Vadot      The Convert Input (CNV). It initiates the sampling conversions.
58*8ccc0d23SEmmanuel Vadot    maxItems: 1
59*8ccc0d23SEmmanuel Vadot
60*8ccc0d23SEmmanuel Vadot  reset-gpios:
61*8ccc0d23SEmmanuel Vadot    description:
62*8ccc0d23SEmmanuel Vadot      The Reset Input (/RST). Used for asynchronous device reset.
63*8ccc0d23SEmmanuel Vadot    maxItems: 1
64*8ccc0d23SEmmanuel Vadot
65*8ccc0d23SEmmanuel Vadot  interrupts:
66*8ccc0d23SEmmanuel Vadot    description:
67*8ccc0d23SEmmanuel Vadot      The BUSY pin is used to signal that the conversions results are available
68*8ccc0d23SEmmanuel Vadot      to be transferred when in SPI Clocking Mode. This nodes should be
69*8ccc0d23SEmmanuel Vadot      connected to an interrupt that is triggered when the BUSY line goes low.
70*8ccc0d23SEmmanuel Vadot    maxItems: 1
71*8ccc0d23SEmmanuel Vadot
72*8ccc0d23SEmmanuel Vadot  interrupt-names:
73*8ccc0d23SEmmanuel Vadot    const: busy
74*8ccc0d23SEmmanuel Vadot
75*8ccc0d23SEmmanuel Vadotrequired:
76*8ccc0d23SEmmanuel Vadot  - compatible
77*8ccc0d23SEmmanuel Vadot  - reg
78*8ccc0d23SEmmanuel Vadot  - vdd-5v-supply
79*8ccc0d23SEmmanuel Vadot  - vdd-1v8-supply
80*8ccc0d23SEmmanuel Vadot  - vio-supply
81*8ccc0d23SEmmanuel Vadot  - cnv-gpios
82*8ccc0d23SEmmanuel Vadot
83*8ccc0d23SEmmanuel VadotoneOf:
84*8ccc0d23SEmmanuel Vadot  - required:
85*8ccc0d23SEmmanuel Vadot      - ref-supply
86*8ccc0d23SEmmanuel Vadot  - required:
87*8ccc0d23SEmmanuel Vadot      - refin-supply
88*8ccc0d23SEmmanuel Vadot
89*8ccc0d23SEmmanuel VadotunevaluatedProperties: false
90*8ccc0d23SEmmanuel Vadot
91*8ccc0d23SEmmanuel Vadotexamples:
92*8ccc0d23SEmmanuel Vadot  - |
93*8ccc0d23SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
94*8ccc0d23SEmmanuel Vadot
95*8ccc0d23SEmmanuel Vadot    spi {
96*8ccc0d23SEmmanuel Vadot        #address-cells = <1>;
97*8ccc0d23SEmmanuel Vadot        #size-cells = <0>;
98*8ccc0d23SEmmanuel Vadot
99*8ccc0d23SEmmanuel Vadot        adc@0 {
100*8ccc0d23SEmmanuel Vadot            compatible = "adi,ad4030-24";
101*8ccc0d23SEmmanuel Vadot            reg = <0>;
102*8ccc0d23SEmmanuel Vadot            spi-max-frequency = <80000000>;
103*8ccc0d23SEmmanuel Vadot            vdd-5v-supply = <&supply_5V>;
104*8ccc0d23SEmmanuel Vadot            vdd-1v8-supply = <&supply_1_8V>;
105*8ccc0d23SEmmanuel Vadot            vio-supply = <&supply_1_8V>;
106*8ccc0d23SEmmanuel Vadot            ref-supply = <&supply_5V>;
107*8ccc0d23SEmmanuel Vadot            cnv-gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
108*8ccc0d23SEmmanuel Vadot            reset-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
109*8ccc0d23SEmmanuel Vadot        };
110*8ccc0d23SEmmanuel Vadot    };
111