i.MX7 and i.MX8 CSI bridge (CMOS Sensor Interface)

Schema identifier ($id): "http://devicetree.org/schemas/media/nxp,imx7-csi.yaml#"

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

Maintainers (maintainers): "Rui Miguel Silva <rmfrfs@gmail.com>"

This is device node for the CMOS Sensor Interface (CSI) which enables the chip to connect directly to external CMOS image sensors.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx8mq-csi", "fsl,imx7-csi", "fsl,imx6ul-csi"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "fsl,imx8mm-csi"

Item 2

Exact value (const): "fsl,imx7-csi"

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 #

Array item rules (items) #

Item 1

Exact value (const): "mclk"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

port — required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/port

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "port"

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

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8mm-csi"

When the condition matches (then) #

Required in this object (required): "power-domains"

Examples (examples) #

#include <dt-bindings/clock/imx7d-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

csi: csi@30710000 {
        compatible = "fsl,imx7-csi";
        reg = <0x30710000 0x10000>;
        interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clks IMX7D_CSI_MCLK_ROOT_CLK>;
        clock-names = "mclk";

        port {
                csi_from_csi_mux: endpoint {
                        remote-endpoint = <&csi_mux_to_csi>;
                };
        };
};

Source notes #

Annotations retained from the schema source

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

Edit this page