Rockchip MIPI CSI-2 Receiver

Schema identifier ($id): "http://devicetree.org/schemas/media/rockchip,rk3568-mipi-csi2.yaml#"

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

Maintainers (maintainers): "Michael Riesch <michael.riesch@collabora.com>"

The Rockchip MIPI CSI-2 Receiver is a CSI-2 bridge with one input port and one output port. It receives the data with the help of an external MIPI PHY (C-PHY or D-PHY) and passes it to the Rockchip Video Capture (VICAP) block.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3568-mipi-csi2"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Array item rules (items) #

Item 1

Interrupt that signals changes in CSI2HOST_ERR1.

Item 2

Interrupt that signals changes in CSI2HOST_ERR2.

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "err1"

Item 2

Exact value (const): "err2"

clocks — required here #

Maximum number of items (maxItems): 1

phys — required here #

Maximum number of items (maxItems): 1

MIPI C-PHY or D-PHY.

ports — required here #

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

Properties and child nodes (properties) #

port@0 — required here

Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Input port node. Connect to e.g., a MIPI CSI-2 image sensor.

Properties and child nodes (properties)

endpoint — not listed as required here

Shared schema rule ($ref): video-interfaces.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Properties and child nodes (properties)

bus-type — required here

Allowed values (enum): 1, 4

data-lanes — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Required in this object (required): "bus-type", "data-lanes"

port@1 — required here

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

Output port connected to a Rockchip VICAP port.

Required in this object (required): "port@0", "port@1"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "phys", "ports", "power-domains", "resets"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3568-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/media/video-interfaces.h>
#include <dt-bindings/power/rk3568-power.h>

soc {
    interrupt-parent = <&gic>;
    #address-cells = <2>;
    #size-cells = <2>;

    csi: csi@fdfb0000 {
        compatible = "rockchip,rk3568-mipi-csi2";
        reg = <0x0 0xfdfb0000 0x0 0x10000>;
        interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-names = "err1", "err2";
        clocks = <&cru PCLK_CSI2HOST1>;
        phys = <&csi_dphy>;
        power-domains = <&power RK3568_PD_VI>;
        resets = <&cru SRST_P_CSI2HOST1>;

        ports {
            #address-cells = <1>;
            #size-cells = <0>;

            csi_in: port@0 {
                reg = <0>;

                csi_input: endpoint {
                    bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
                    data-lanes = <1 2 3 4>;
                    remote-endpoint = <&imx415_output>;
                };
            };

            csi_out: port@1 {
                reg = <1>;

                csi_output: endpoint {
                    remote-endpoint = <&vicap_mipi_input>;
                };
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 59: MEDIA_BUS_TYPE_CSI2_CPHY

Line 60: MEDIA_BUS_TYPE_CSI2_DPHY

Edit this page