NXP iMX93 ADC

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

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

Maintainers (maintainers): "Haibo Chen <haibo.chen@nxp.com>"

The ADC on iMX93 is a 8-channel 12-bit 1MS/s ADC with 4 channels connected to pins. it support normal and inject mode, include One-Shot and Scan (continuous) conversions. Programmable DMA enables for each channel Also this ADC contain alternate analog watchdog thresholds, select threshold through input ports. And also has Self-test logic and Software-initiated calibration.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nxp,imx93-adc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nxp,imx94-adc", "nxp,imx95-adc"

Item 2

Exact value (const): "nxp,imx93-adc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

WDGnL, watchdog threshold interrupt requests.

Item 2

WDGnH, watchdog threshold interrupt requests.

Item 3

normal conversion, include EOC (End of Conversion), ECH (End of Chain), JEOC (End of Injected Conversion) and JECH (End of injected Chain).

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "ipg"

vref-supply — required here #

The reference voltage which used to establish channel scaling.

#io-channel-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "vref-supply", "#io-channel-cells"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/imx93-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
    #address-cells = <1>;
    #size-cells = <1>;
    adc@44530000 {
        compatible = "nxp,imx93-adc";
        reg = <0x44530000 0x10000>;
        interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 219 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clk IMX93_CLK_ADC1_GATE>;
        clock-names = "ipg";
        vref-supply = <&reg_vref_1v8>;
        #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