Freescale ADC GCQ device

Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/fsl,imx25-gcq.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

This is a generic conversion queue device that can convert any of the analog inputs using the ADC unit of the i.MX25.

Maintainers (maintainers): "Jonathan Cameron <jic23@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx25-gcq"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

vref-ext-supply — not listed as required here #

The regulator supplying the ADC reference voltage. Required when at least one subnode uses the this reference.

vref-xp-supply — not listed as required here #

The regulator supplying the ADC reference voltage on pin XP. Required when at least one subnode uses this reference.

vref-yp-supply — not listed as required here #

The regulator supplying the ADC reference voltage on pin YP. Required when at least one subnode uses this reference.

#io-channel-cells — not listed as required here #

Exact value (const): 1

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

Required in this object (required): "compatible", "reg", "interrupts", "#address-cells", "#size-cells"

Properties matching a name pattern (patternProperties) #

[a-z][a-z0-9]+@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

Child nodes used to define the reference voltages used for each channel

Properties and child nodes (properties) #

reg — required here

Number of the analog input. 0: xp 1: yp 2: xn 3: yn 4: wiper 5: inaux0 6: inaux1 7: inaux2

Array item rules (items)

Item 1

Minimum value (minimum): 0

Maximum value (maximum): 7

fsl,adc-refp — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Specifies the positive reference input as defined in <dt-bindings/iio/adc/fsl-imx25-gcq.h> 0: YP voltage reference 1: XP voltage reference 2: External voltage reference 3: Internal voltage reference (default)

Minimum value (minimum): 0

Maximum value (maximum): 3

fsl,adc-refn — not listed as required here

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Specifies the negative reference input as defined in <dt-bindings/iio/adc/fsl-imx25-gcq.h> 0: XN ground reference 1: YN ground reference 2: Internal ground reference 3: External ground reference (default)

Minimum value (minimum): 0

Maximum value (maximum): 3

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/iio/adc/fsl-imx25-gcq.h>
soc {
    #address-cells = <1>;
    #size-cells = <1>;
    adc@50030800 {
        compatible = "fsl,imx25-gcq";
        reg = <0x50030800 0x60>;
        interrupt-parent = <&tscadc>;
        interrupts = <1>;
        #address-cells = <1>;
        #size-cells = <0>;

        inaux@5 {
            reg = <5>;
            fsl,adc-refp = <MX25_ADC_REFP_INT>;
            fsl,adc-refn = <MX25_ADC_REFN_NGND>;
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Edit this page