Renesas RZ/G2L (and alike SoC's) MIPI CSI-2 receiver

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

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

Maintainers (maintainers): "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"

The CSI-2 receiver device provides MIPI CSI-2 capabilities for the Renesas RZ/G2L (and alike SoCs). MIPI CSI-2 is part of the CRU block which is used in conjunction with the Image Processing module, which provides the video capture capabilities.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "renesas,r9a07g043-csi2", "renesas,r9a07g044-csi2", "renesas,r9a07g054-csi2"

Item 2

Exact value (const): "renesas,rzg2l-csi2"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a09g047-csi2"

Item 2

Exact value (const): "renesas,r9a09g057-csi2"

Rule 3

Exact value (const): "renesas,r9a09g057-csi2"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Internal clock for connecting CRU and MIPI

Item 2

CRU Main clock

Item 3

CRU Register access clock

Rule 2

Array item rules (items)

Item 1

CRU Main clock

Item 2

CRU Register access clock

clock-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "system"

Item 2

Exact value (const): "video"

Item 3

Exact value (const): "apb"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "video"

Item 2

Exact value (const): "apb"

power-domains — required here #

Maximum number of items (maxItems): 1

resets — required here #

Array item rules (items) #

Item 1

CRU_PRESETN reset terminal

Item 2

D-PHY reset (CRU_CMN_RSTB or CRU_n_S_RESETN)

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "presetn"

Item 2

Exact value (const): "cmn-rstb"

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, single endpoint describing the CSI-2 transmitter.

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)

data-lanes — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

Array item rules (items)

Maximum value (maximum): 4

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

port@1 — required here

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

Output port node, Image Processing block connected to the CSI-2 receiver.

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

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains", "resets", "reset-names", "ports"

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)

Exact value (const): "renesas,r9a09g057-csi2"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Maximum number of items (maxItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 3

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r9a07g044-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

csi: csi@10830400 {
    compatible = "renesas,r9a07g044-csi2", "renesas,rzg2l-csi2";
    reg = <0x10830400 0xfc00>;
    interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD R9A07G044_CRU_SYSCLK>,
             <&cpg CPG_MOD R9A07G044_CRU_VCLK>,
             <&cpg CPG_MOD R9A07G044_CRU_PCLK>;
    clock-names = "system", "video", "apb";
    power-domains = <&cpg>;
    resets = <&cpg R9A07G044_CRU_PRESETN>,
             <&cpg R9A07G044_CRU_CMN_RSTB>;
    reset-names = "presetn", "cmn-rstb";

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

        port@0 {
            reg = <0>;

            csi2_in: endpoint {
                clock-lanes = <0>;
                data-lanes = <1 2>;
                remote-endpoint = <&ov5645_ep>;
            };
        };

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

            reg = <1>;

            csi2cru: endpoint@0 {
                reg = <0>;
                remote-endpoint = <&crucsi2>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2022 Renesas Electronics Corp.

Line 23: RZ/G2UL

Line 24: RZ/G2{L,LC}

Line 25: RZ/V2L

Line 28: RZ/G3E

Line 30: RZ/V2H(P)

Edit this page