Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/ti,adc0832.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Texas Instruments ADC0832 and similar ADCs
0008 
0009 maintainers:
0010   - Akinobu Mita <akinobu.mita@gmail.com>
0011 
0012 description: |
0013   8 bit ADCs with 1, 2, 4 or 8 inputs for single ended or differential
0014   conversion.
0015 
0016 properties:
0017   compatible:
0018     enum:
0019       - ti,adc0831
0020       - ti,adc0832
0021       - ti,adc0834
0022       - ti,adc0838
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   spi-max-frequency: true
0028 
0029   vref-supply:
0030     description: External reference, needed to establish input scaling
0031 
0032   "#io-channel-cells":
0033     const: 1
0034 
0035 required:
0036   - compatible
0037   - reg
0038   - vref-supply
0039 
0040 additionalProperties: false
0041 
0042 examples:
0043   - |
0044     spi {
0045         #address-cells = <1>;
0046         #size-cells = <0>;
0047 
0048         adc@0 {
0049             compatible = "ti,adc0832";
0050             reg = <0>;
0051             vref-supply = <&vdd_supply>;
0052             spi-max-frequency = <200000>;
0053             #io-channel-cells = <1>;
0054         };
0055     };
0056 ...