AT91 sama9260 and similar Analog to Digital Converter (ADC)

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

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

Maintainers (maintainers): "Alexandre Belloni <alexandre.belloni@bootlin.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "atmel,at91sam9260-adc", "atmel,at91sam9rl-adc", "atmel,at91sam9g45-adc", "atmel,at91sam9x5-adc", "atmel,at91sama5d3-adc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "adc_clk"

Item 2

Exact value (const): "adc_op_clk"

atmel,adc-channels-used — required here #

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

Bitmask of the channels muxed and enabled for this device

atmel,adc-startup-time — required here #

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

Startup Time of the ADC in microseconds as defined in the datasheet

atmel,adc-vref — required here #

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

Reference voltage in millivolts for the conversions

atmel,adc-use-external-triggers — not listed as required here #

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

Enable the external triggers

atmel,adc-use-res — not listed as required here #

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

String corresponding to an identifier from atmel,adc-res-names property. If not specified, the highest resolution will be used.

Allowed values (enum): "lowres", "highres"

atmel,adc-sleep-mode — not listed as required here #

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

Enable sleep mode when no conversion

atmel,adc-sample-hold-time — not listed as required here #

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

Sample and Hold Time in microseconds

atmel,adc-ts-wires — not listed as required here #

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

Number of touchscreen wires. Must be set to enable touchscreen. NOTE: when adc touchscreen is enabled, the adc hardware trigger will be disabled. Since touchscreen will occupy the trigger register.

Allowed values (enum): 4, 5

atmel,adc-ts-pressure-threshold — not listed as required here #

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

Pressure threshold for touchscreen.

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

Exact value (const): 1

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "atmel,adc-channels-used", "atmel,adc-startup-time", "atmel,adc-vref"

Examples (examples) #

#include <dt-bindings/dma/at91.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
    #address-cells = <1>;
    #size-cells = <1>;

    adc@fffb0000 {
        compatible = "atmel,at91sam9260-adc";
        reg = <0xfffb0000 0x100>;
        interrupts = <20 IRQ_TYPE_LEVEL_HIGH 0>;
        clocks = <&adc_clk>, <&adc_op_clk>;
        clock-names = "adc_clk", "adc_op_clk";
        atmel,adc-channels-used = <0xff>;
        atmel,adc-startup-time = <40>;
        atmel,adc-use-external-triggers;
        atmel,adc-vref = <3300>;
        atmel,adc-use-res = "lowres";
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page