ST SPEAr ADC device driver

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

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

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

Integrated ADC inside the ST SPEAr SoC, SPEAr600, supporting 10-bit resolution. Datasheet can be found here: https://www.st.com/resource/en/datasheet/spear600.pdf

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "st,spear600-adc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

sampling-frequency — required here #

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

Minimum value (minimum): 2500000

Maximum value (maximum): 20000000

Default sampling frequency of the ADC in Hz.

vref-external — not listed as required here #

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

Minimum value (minimum): 1000

Maximum value (maximum): 2800

External voltage reference in milli-volts. If omitted the internal voltage reference will be used.

average-samples — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 15

Default value (default): 0

Number of samples to generate an average value. If omitted, single data conversion will be used.

Required in this object (required): "compatible", "reg", "interrupts", "sampling-frequency"

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

false

Not allowed by this rule.

Examples (examples) #

adc@d8200000 {
    compatible = "st,spear600-adc";
    reg = <0xd8200000 0x1000>;
    interrupt-parent = <&vic1>;
    interrupts = <6>;
    sampling-frequency = <5000000>;
    vref-external = <2500>;	/* 2.5V VRef */
};

Source notes #

Annotations retained from the schema source

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

Edit this page