Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/adi,ad7949.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Analog Devices AD7949/AD7682/AD7689 analog to digital converters
0008 
0009 maintainers:
0010   - Charles-Antoine Couret <charles-antoine.couret@essensium.com>
0011 
0012 description: |
0013   Specifications on the converters can be found at:
0014     AD7949:
0015       https://www.analog.com/media/en/technical-documentation/data-sheets/AD7949.pdf
0016     AD7682/AD7698:
0017       https://www.analog.com/media/en/technical-documentation/data-sheets/AD7682_7689.pdf
0018 
0019 properties:
0020   compatible:
0021     enum:
0022       - adi,ad7682
0023       - adi,ad7689
0024       - adi,ad7949
0025 
0026   reg:
0027     maxItems: 1
0028 
0029   vrefin-supply:
0030     description:
0031       Buffered ADC reference voltage supply.
0032 
0033   vref-supply:
0034     description:
0035       Unbuffered ADC reference voltage supply.
0036 
0037   adi,internal-ref-microvolt:
0038     description: |
0039       Internal reference voltage selection in microvolts.
0040 
0041       If no internal reference is specified, the channel will default to the
0042       external reference defined by vrefin-supply (or vref-supply).
0043       vrefin-supply will take precedence over vref-supply if both are defined.
0044 
0045       If no supplies are defined, the reference selection will default to
0046       4096mV internal reference.
0047 
0048     enum: [2500000, 4096000]
0049     default: 4096000
0050 
0051 
0052   spi-max-frequency: true
0053 
0054   '#io-channel-cells':
0055     const: 1
0056 
0057   '#address-cells':
0058     const: 1
0059 
0060   '#size-cells':
0061     const: 0
0062 
0063 required:
0064   - compatible
0065   - reg
0066 
0067 additionalProperties: false
0068 
0069 examples:
0070   - |
0071     spi {
0072         #address-cells = <1>;
0073         #size-cells = <0>;
0074 
0075         adc@0 {
0076             #address-cells = <1>;
0077             #size-cells = <0>;
0078 
0079             compatible = "adi,ad7949";
0080             reg = <0>;
0081             vref-supply = <&vdd_supply>;
0082         };
0083 
0084         adc@1 {
0085             #address-cells = <1>;
0086             #size-cells = <0>;
0087 
0088             compatible = "adi,ad7949";
0089             reg = <1>;
0090             vrefin-supply = <&vdd_supply>;
0091         };
0092 
0093         adc@2 {
0094             #address-cells = <1>;
0095             #size-cells = <0>;
0096 
0097             compatible = "adi,ad7949";
0098             reg = <2>;
0099             adi,internal-ref-microvolt = <4096000>;
0100         };
0101     };
0102 ...