NXP IMX8QXP ADC

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

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

Maintainers (maintainers): "Cai Huoqing <caihuoqing@baidu.com>"

Supports the ADC found on the IMX8QXP SoC.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,imx8qxp-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): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "per"

Item 2

Exact value (const): "ipg"

assigned-clocks — required here #

Maximum number of items (maxItems): 1

assigned-clock-rates — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

vref-supply — not listed as required here #

External ADC reference voltage supply on VREFH pad. If VERID[MVI] is set, there are additional, internal reference voltages selectable. VREFH1 is always from VREFH pad.

#io-channel-cells — required here #

Exact value (const): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "assigned-clocks", "assigned-clock-rates", "power-domains", "#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/arm-gic.h>
#include <dt-bindings/firmware/imx/rsrc.h>
soc {
    #address-cells = <2>;
    #size-cells = <2>;
    adc@5a880000 {
        compatible = "nxp,imx8qxp-adc";
        reg = <0x0 0x5a880000 0x0 0x10000>;
        interrupts = <GIC_SPI 240 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clk IMX_SC_R_ADC_0>,
                 <&clk IMX_SC_R_ADC_0>;
        clock-names = "per", "ipg";
        assigned-clocks = <&clk IMX_SC_R_ADC_0>;
        assigned-clock-rates = <24000000>;
        power-domains = <&pd IMX_SC_R_ADC_0>;
        vref-supply = <&reg_1v8>;
        #io-channel-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page