xref: /linux/Documentation/devicetree/bindings/iio/adc/adi,ad7949.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1e294abc7SJonathan Cameron# SPDX-License-Identifier: GPL-2.0
2e294abc7SJonathan Cameron%YAML 1.2
3e294abc7SJonathan Cameron---
4e294abc7SJonathan Cameron$id: http://devicetree.org/schemas/iio/adc/adi,ad7949.yaml#
5e294abc7SJonathan Cameron$schema: http://devicetree.org/meta-schemas/core.yaml#
6e294abc7SJonathan Cameron
7e294abc7SJonathan Camerontitle: Analog Devices AD7949/AD7682/AD7689 analog to digital converters
8e294abc7SJonathan Cameron
9e294abc7SJonathan Cameronmaintainers:
10e294abc7SJonathan Cameron  - Charles-Antoine Couret <charles-antoine.couret@essensium.com>
11e294abc7SJonathan Cameron
12e294abc7SJonathan Camerondescription: |
13e294abc7SJonathan Cameron  Specifications on the converters can be found at:
14e294abc7SJonathan Cameron    AD7949:
15e294abc7SJonathan Cameron      https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf
16e294abc7SJonathan Cameron    AD7682/AD7698:
17e294abc7SJonathan Cameron      https://www.analog.com/media/en/technical-documentation/data-sheets/AD7682_7689.pdf
18e294abc7SJonathan Cameron
19e294abc7SJonathan Cameronproperties:
20e294abc7SJonathan Cameron  compatible:
21e294abc7SJonathan Cameron    enum:
22e294abc7SJonathan Cameron      - adi,ad7682
23e294abc7SJonathan Cameron      - adi,ad7689
24e294abc7SJonathan Cameron      - adi,ad7949
25e294abc7SJonathan Cameron
26e294abc7SJonathan Cameron  reg:
27e294abc7SJonathan Cameron    maxItems: 1
28e294abc7SJonathan Cameron
299a7b7594SLiam Beguin  vrefin-supply:
309a7b7594SLiam Beguin    description:
319a7b7594SLiam Beguin      Buffered ADC reference voltage supply.
329a7b7594SLiam Beguin
33e294abc7SJonathan Cameron  vref-supply:
34e294abc7SJonathan Cameron    description:
359a7b7594SLiam Beguin      Unbuffered ADC reference voltage supply.
369a7b7594SLiam Beguin
379a7b7594SLiam Beguin  adi,internal-ref-microvolt:
389a7b7594SLiam Beguin    description: |
399a7b7594SLiam Beguin      Internal reference voltage selection in microvolts.
409a7b7594SLiam Beguin
419a7b7594SLiam Beguin      If no internal reference is specified, the channel will default to the
429a7b7594SLiam Beguin      external reference defined by vrefin-supply (or vref-supply).
439a7b7594SLiam Beguin      vrefin-supply will take precedence over vref-supply if both are defined.
449a7b7594SLiam Beguin
459a7b7594SLiam Beguin      If no supplies are defined, the reference selection will default to
469a7b7594SLiam Beguin      4096mV internal reference.
479a7b7594SLiam Beguin
489a7b7594SLiam Beguin    enum: [2500000, 4096000]
499a7b7594SLiam Beguin    default: 4096000
509a7b7594SLiam Beguin
51e294abc7SJonathan Cameron
529a7b7594SLiam Beguin  '#io-channel-cells':
53e294abc7SJonathan Cameron    const: 1
54e294abc7SJonathan Cameron
559a7b7594SLiam Beguin  '#address-cells':
569a7b7594SLiam Beguin    const: 1
579a7b7594SLiam Beguin
589a7b7594SLiam Beguin  '#size-cells':
599a7b7594SLiam Beguin    const: 0
609a7b7594SLiam Beguin
61e294abc7SJonathan Cameronrequired:
62e294abc7SJonathan Cameron  - compatible
63e294abc7SJonathan Cameron  - reg
64e294abc7SJonathan Cameron
65*80137388SKrzysztof KozlowskiallOf:
66*80137388SKrzysztof Kozlowski  - $ref: /schemas/spi/spi-peripheral-props.yaml#
67*80137388SKrzysztof Kozlowski
68*80137388SKrzysztof KozlowskiunevaluatedProperties: false
69e294abc7SJonathan Cameron
70e294abc7SJonathan Cameronexamples:
71e294abc7SJonathan Cameron  - |
72e294abc7SJonathan Cameron    spi {
73e294abc7SJonathan Cameron        #address-cells = <1>;
74e294abc7SJonathan Cameron        #size-cells = <0>;
75e294abc7SJonathan Cameron
76e294abc7SJonathan Cameron        adc@0 {
779a7b7594SLiam Beguin            #address-cells = <1>;
789a7b7594SLiam Beguin            #size-cells = <0>;
799a7b7594SLiam Beguin
80e294abc7SJonathan Cameron            compatible = "adi,ad7949";
81e294abc7SJonathan Cameron            reg = <0>;
82e294abc7SJonathan Cameron            vref-supply = <&vdd_supply>;
83e294abc7SJonathan Cameron        };
849a7b7594SLiam Beguin
859a7b7594SLiam Beguin        adc@1 {
869a7b7594SLiam Beguin            #address-cells = <1>;
879a7b7594SLiam Beguin            #size-cells = <0>;
889a7b7594SLiam Beguin
899a7b7594SLiam Beguin            compatible = "adi,ad7949";
909a7b7594SLiam Beguin            reg = <1>;
919a7b7594SLiam Beguin            vrefin-supply = <&vdd_supply>;
929a7b7594SLiam Beguin        };
939a7b7594SLiam Beguin
949a7b7594SLiam Beguin        adc@2 {
959a7b7594SLiam Beguin            #address-cells = <1>;
969a7b7594SLiam Beguin            #size-cells = <0>;
979a7b7594SLiam Beguin
989a7b7594SLiam Beguin            compatible = "adi,ad7949";
999a7b7594SLiam Beguin            reg = <2>;
1009a7b7594SLiam Beguin            adi,internal-ref-microvolt = <4096000>;
1019a7b7594SLiam Beguin        };
102e294abc7SJonathan Cameron    };
103e294abc7SJonathan Cameron...
104