Freescale MXS Low-Resolution ADC (LRADC)

Schema identifier ($id): "http://devicetree.org/schemas/mfd/mxs-lradc.yaml#"

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

Maintainers (maintainers): "Dario Binacchi <dario.binacchi@amarulasolutions.com>"

The LRADC provides 16 physical channels of 12-bit resolution for analog-to-digital conversion and includes an integrated 4-wire/5-wire touchscreen controller.

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "fsl,imx23-lradc", "fsl,imx28-lradc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

interrupts — required here #

Minimum number of items (minItems): 9

Maximum number of items (maxItems): 13

fsl,lradc-touchscreen-wires — not listed as required here #

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

Allowed values (enum): 4, 5

Number of wires used to connect the touchscreen to LRADC. If this property is not present, then the touchscreen is disabled.

fsl,ave-ctrl — not listed as required here #

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

Minimum value (minimum): 1

Maximum value (maximum): 32

Default value (default): 4

Number of samples per direction to calculate an average value.

fsl,ave-delay — not listed as required here #

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

Minimum value (minimum): 2

Maximum value (maximum): 2048

Default value (default): 2

Delay between consecutive samples. It is used if 'fsl,ave-ctrl' > 1, counts at 2 kHz and its default value (2) is 1 ms.

fsl,settling — not listed as required here #

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

Minimum value (minimum): 1

Maximum value (maximum): 2047

Default value (default): 10

Delay between plate switch to next sample. It counts at 2 kHz and its default (10) is 5 ms.

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

Exact value (const): 1

Required in this object (required): "compatible", "reg", "clocks", "interrupts"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx23-lradc"

When the condition matches (then) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

Array item rules (items)

Item 1

channel 0

Item 2

channel 1

Item 3

channel 2

Item 4

channel 3

Item 5

channel 4

Item 6

channel 5

Item 7

touchscreen

Item 8

channel 6

Item 9

channel 7

fsl,lradc-touchscreen-wires — not listed as required here #

Exact value (const): 4

When the condition does not match (else) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

Array item rules (items)

Item 1

threshold 0

Item 2

threshold 1

Item 3

channel 0

Item 4

channel 1

Item 5

channel 2

Item 6

channel 3

Item 7

channel 4

Item 8

channel 5

Item 9

button 0

Item 10

button 1

Item 11

touchscreen

Item 12

channel 6

Item 13

channel 7

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

false

Not allowed by this rule.

Examples (examples) #

lradc@80050000 {
    compatible = "fsl,imx23-lradc";
    reg = <0x80050000 0x2000>;
    interrupts = <36>, <37>, <38>, <39>, <40>,
                 <41>, <42>, <43>, <44>;
    clocks = <&clks 26>;
    #io-channel-cells = <1>;
    fsl,lradc-touchscreen-wires = <4>;
    fsl,ave-ctrl = <4>;
    fsl,ave-delay = <2>;
    fsl,settling = <10>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page