brintos

brintos / linux-shallow public Read only

0
0
Text · 3.0 KiB · e910349 Raw
132 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/iio/adc/fsl,imx25-gcq.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Freescale ADC GCQ device8 9description:10  This is a generic conversion queue device that can convert any of the11  analog inputs using the ADC unit of the i.MX25.12 13maintainers:14  - Jonathan Cameron <jic23@kernel.org>15 16properties:17  compatible:18    const: fsl,imx25-gcq19 20  reg:21    maxItems: 122 23  interrupts:24    maxItems: 125 26  vref-ext-supply:27    description:28      The regulator supplying the ADC reference voltage.29      Required when at least one subnode uses the this reference.30 31  vref-xp-supply:32    description:33      The regulator supplying the ADC reference voltage on pin XP.34      Required when at least one subnode uses this reference.35 36  vref-yp-supply:37    description:38      The regulator supplying the ADC reference voltage on pin YP.39      Required when at least one subnode uses this reference.40 41  "#io-channel-cells":42    const: 143 44  "#address-cells":45    const: 146 47  "#size-cells":48    const: 049 50required:51  - compatible52  - reg53  - interrupts54  - "#address-cells"55  - "#size-cells"56 57patternProperties:58  "[a-z][a-z0-9]+@[0-9a-f]+$":59    type: object60    description:61      Child nodes used to define the reference voltages used for each channel62 63    properties:64      reg:65        description: |66          Number of the analog input.67          0: xp68          1: yp69          2: xn70          3: yn71          4: wiper72          5: inaux073          6: inaux174          7: inaux275        items:76          - minimum: 077            maximum: 778 79      fsl,adc-refp:80        $ref: /schemas/types.yaml#/definitions/uint3281        description: |82          Specifies the positive reference input as defined in83          <dt-bindings/iio/adc/fsl-imx25-gcq.h>84          0: YP voltage reference85          1: XP voltage reference86          2: External voltage reference87          3: Internal voltage reference (default)88        minimum: 089        maximum: 390 91      fsl,adc-refn:92        $ref: /schemas/types.yaml#/definitions/uint3293        description: |94          Specifies the negative reference input as defined in95          <dt-bindings/iio/adc/fsl-imx25-gcq.h>96          0: XN ground reference97          1: YN ground reference98          2: Internal ground reference99          3: External ground reference (default)100        minimum: 0101        maximum: 3102 103    required:104      - reg105 106    additionalProperties: false107 108additionalProperties: false109 110examples:111  - |112    #include <dt-bindings/iio/adc/fsl-imx25-gcq.h>113    soc {114        #address-cells = <1>;115        #size-cells = <1>;116        adc@50030800 {117            compatible = "fsl,imx25-gcq";118            reg = <0x50030800 0x60>;119            interrupt-parent = <&tscadc>;120            interrupts = <1>;121            #address-cells = <1>;122            #size-cells = <0>;123 124            inaux@5 {125                reg = <5>;126                fsl,adc-refp = <MX25_ADC_REFP_INT>;127                fsl,adc-refn = <MX25_ADC_REFN_NGND>;128            };129        };130    };131...132