Freescale ADC found on the imx7d SoC

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

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

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "fsl,imx7d-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"

vref-supply — required here #

true — No constraints added by this property rule.

#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/imx7d-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
    #address-cells = <1>;
    #size-cells = <1>;
    adc@30610000 {
        compatible = "fsl,imx7d-adc";
        reg = <0x30610000 0x10000>;
        interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clks IMX7D_ADC_ROOT_CLK>;
        clock-names = "adc";
        vref-supply = <&reg_vcc_3v3_mcu>;
        #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