Renesas RZ/G2L (and alike SoC's) Camera Data Receiving Unit (CRU) Image processing

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

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

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

The CRU image processing module is a data conversion module equipped with pixel color space conversion, LUT, pixel format conversion, etc. An MIPI CSI-2 input and parallel (including ITU-R BT.656) input are provided as the image sensor interface.

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-cru", "renesas,r9a07g044-cru", "renesas,r9a07g054-cru"

Item 2

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

Rule 2

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

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

CRU Interrupt for image_conv

Item 2

CRU Interrupt for image_conv_err

Item 3

CRU AXI master error interrupt

Rule 2

Array item rules (items)

Item 1

CRU Interrupt for image_conv

Item 2

CRU AXI master error interrupt

Item 3

CRU Video Data AXI Master Address 0 Write End interrupt

Item 4

CRU Statistics data AXI master addr 0 write end interrupt

Item 5

CRU Video statistics data AXI master addr 0 write end interrupt

interrupt-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "image_conv"

Item 2

Exact value (const): "image_conv_err"

Item 3

Exact value (const): "axi_mst_err"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "image_conv"

Item 2

Exact value (const): "axi_mst_err"

Item 3

Exact value (const): "vd_addr_wend"

Item 4

Exact value (const): "sd_addr_wend"

Item 5

Exact value (const): "vsd_addr_wend"

clocks — required here #

Array item rules (items) #

Item 1

CRU Main clock

Item 2

CRU Register access clock

Item 3

CRU image transfer clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "video"

Item 2

Exact value (const): "apb"

Item 3

Exact value (const): "axi"

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

CRU_ARESETN reset terminal

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "presetn"

Item 2

Exact value (const): "aresetn"

ports — not listed as required here #

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

Properties and child nodes (properties) #

port@0 — not listed as 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 a parallel input source.

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)

hsync-active — not listed as required here

true — No constraints added by this property rule.

vsync-active — not listed as required here

true — No constraints added by this property rule.

bus-width — not listed as required here

true — No constraints added by this property rule.

data-shift — not listed as required here

true — No constraints added by this property rule.

port@1 — not listed as required here

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

Input port node, describing the Image Processing module connected to the CSI-2 receiver.

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

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): "renesas,r9a07g044-cru", "renesas,r9a07g054-cru"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 3

interrupt-names — not listed as required here

Maximum number of items (maxItems): 3

ports — not listed as required here

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a07g043-cru"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 3

interrupt-names — not listed as required here

Maximum number of items (maxItems): 3

ports — not listed as required here

Properties and child nodes (properties)

port@0 — not listed as required here

false — Not permitted by this property rule.

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

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

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

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 5

interrupt-names — not listed as required here

Minimum number of items (minItems): 5

ports — not listed as required here

Properties and child nodes (properties)

port@0 — not listed as required here

false — Not permitted by this property rule.

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

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>

cru: video@10830000 {
    compatible = "renesas,r9a07g044-cru", "renesas,rzg2l-cru";
    reg = <0x10830000 0x400>;
    interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
                 <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
    interrupt-names = "image_conv", "image_conv_err", "axi_mst_err";
    clocks = <&cpg CPG_MOD R9A07G044_CRU_VCLK>,
             <&cpg CPG_MOD R9A07G044_CRU_PCLK>,
             <&cpg CPG_MOD R9A07G044_CRU_ACLK>;
    clock-names = "video", "apb", "axi";
    power-domains = <&cpg>;
    resets = <&cpg R9A07G044_CRU_PRESETN>,
             <&cpg R9A07G044_CRU_ARESETN>;
    reset-names = "presetn", "aresetn";

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

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

            cru_parallel_in: endpoint@0 {
                reg = <0>;
                remote-endpoint = <&ov5642>;
                hsync-active = <1>;
                vsync-active = <1>;
            };
        };

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

            cru_csi_in: endpoint@0 {
                reg = <0>;
                remote-endpoint = <&csi_cru_in>;
            };
        };
    };
};

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 27: RZ/G3E

Line 178: Device node example with CSI-2

Edit this page