AT91 SAMA5D2 Analog to Digital Converter (ADC)

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

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

Maintainers (maintainers): "Eugen Hristev <eugen.hristev@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "atmel,sama5d2-adc", "microchip,sam9x60-adc", "microchip,sama7g5-adc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "adc_clk"

vref-supply — required here #

true — No constraints added by this property rule.

vddana-supply — required here #

true — No constraints added by this property rule.

atmel,min-sample-rate-hz — required here #

Minimum sampling rate, it depends on SoC.

atmel,max-sample-rate-hz — required here #

Maximum sampling rate, it depends on SoC.

atmel,startup-time-ms — required here #

Startup time expressed in ms, it depends on SoC.

atmel,trigger-edge-type — not listed as required here #

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

One of possible edge types for the ADTRG hardware trigger pin. When the specific edge type is detected, the conversion will start. Should be one of IRQ_TYPE_EDGE_RISING, IRQ_TYPE_EDGE_FALLING or IRQ_TYPE_EDGE_BOTH.

Allowed values (enum): 1, 2, 3

dmas — not listed as required here #

Maximum number of items (maxItems): 1

dma-names — not listed as required here #

Exact value (const): "rx"

#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", "vref-supply", "vddana-supply", "atmel,min-sample-rate-hz", "atmel,max-sample-rate-hz", "atmel,startup-time-ms"

Examples (examples) #

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

    adc@fc030000 {
        compatible = "atmel,sama5d2-adc";
        reg = <0xfc030000 0x100>;
        interrupts = <40 IRQ_TYPE_LEVEL_HIGH 7>;
        clocks = <&adc_clk>;
        clock-names = "adc_clk";
        atmel,min-sample-rate-hz = <200000>;
        atmel,max-sample-rate-hz = <20000000>;
        atmel,startup-time-ms = <4>;
        vddana-supply = <&vdd_3v3_lp_reg>;
        vref-supply = <&vdd_3v3_lp_reg>;
        atmel,trigger-edge-type = <IRQ_TYPE_EDGE_BOTH>;
        dmas = <&dma0 (AT91_XDMAC_DT_MEM_IF(0) | AT91_XDMAC_DT_PER_IF(1) | AT91_XDMAC_DT_PERID(25))>;
        dma-names = "rx";
        #io-channel-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page