Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/adi,ad7292.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Analog Devices AD7292 10-Bit Monitor and Control System
0008 
0009 maintainers:
0010   - Marcelo Schmitt <marcelo.schmitt1@gmail.com>
0011 
0012 description: |
0013   Analog Devices AD7292 10-Bit Monitor and Control System with ADC, DACs,
0014   Temperature Sensor, and GPIOs
0015 
0016   Specifications about the part can be found at:
0017     https://www.analog.com/media/en/technical-documentation/data-sheets/ad7292.pdf
0018 
0019 properties:
0020   compatible:
0021     enum:
0022       - adi,ad7292
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   vref-supply:
0028     description: |
0029       The regulator supply for ADC and DAC reference voltage.
0030 
0031   spi-cpha: true
0032 
0033   spi-max-frequency: true
0034 
0035   '#address-cells':
0036     const: 1
0037 
0038   '#size-cells':
0039     const: 0
0040 
0041 required:
0042   - compatible
0043   - reg
0044   - spi-cpha
0045 
0046 patternProperties:
0047   "^channel@[0-7]$":
0048     $ref: "adc.yaml"
0049     type: object
0050     description: |
0051       Represents the external channels which are connected to the ADC.
0052 
0053     properties:
0054       reg:
0055         description: |
0056           The channel number. It can have up to 8 channels numbered from 0 to 7.
0057         items:
0058           - minimum: 0
0059             maximum: 7
0060 
0061       diff-channels: true
0062 
0063     required:
0064       - reg
0065 
0066     additionalProperties: true
0067 
0068 additionalProperties: false
0069 
0070 examples:
0071   - |
0072     spi {
0073       #address-cells = <1>;
0074       #size-cells = <0>;
0075 
0076       ad7292: adc@0 {
0077         compatible = "adi,ad7292";
0078         reg = <0>;
0079         spi-max-frequency = <25000000>;
0080         vref-supply = <&adc_vref>;
0081         spi-cpha;
0082 
0083         #address-cells = <1>;
0084         #size-cells = <0>;
0085 
0086         channel@0 {
0087           reg = <0>;
0088           diff-channels = <0 1>;
0089         };
0090         channel@2 {
0091           reg = <2>;
0092         };
0093         channel@3 {
0094           reg = <3>;
0095         };
0096         channel@4 {
0097           reg = <4>;
0098         };
0099         channel@5 {
0100           reg = <5>;
0101         };
0102         channel@6 {
0103           reg = <6>;
0104         };
0105         channel@7 {
0106           reg = <7>;
0107         };
0108       };
0109     };