1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 # Copyright (C) 2022 Renesas Electronics Corp.
5 $id: http://devicetree.org/schemas/media/renesas,rzg2l-cru.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Renesas RZ/G2L (and alike SoC's) Camera Data Receiving Unit (CRU) Image processing
11 - Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
14 The CRU image processing module is a data conversion module equipped with pixel
15 color space conversion, LUT, pixel format conversion, etc. An MIPI CSI-2 input and
16 parallel (including ITU-R BT.656) input are provided as the image sensor interface.
22 - renesas,r9a07g044-cru # RZ/G2{L,LC}
23 - renesas,r9a07g054-cru # RZ/V2L
24 - const: renesas,rzg2l-cru
35 - const: image_conv_err
40 - description: CRU Main clock
41 - description: CRU Register access clock
42 - description: CRU image transfer clock
55 - description: CRU_PRESETN reset terminal
56 - description: CRU_ARESETN reset terminal
64 $ref: /schemas/graph.yaml#/properties/ports
68 $ref: /schemas/graph.yaml#/$defs/port-base
69 unevaluatedProperties: false
71 Input port node, single endpoint describing a parallel input source.
75 $ref: video-interfaces.yaml#
76 unevaluatedProperties: false
85 $ref: /schemas/graph.yaml#/properties/port
87 Input port node, describing the Image Processing module connected to the
105 additionalProperties: false
108 # Device node example with CSI-2
110 #include <dt-bindings/clock/r9a07g044-cpg.h>
111 #include <dt-bindings/interrupt-controller/arm-gic.h>
113 cru: video@10830000 {
114 compatible = "renesas,r9a07g044-cru", "renesas,rzg2l-cru";
115 reg = <0x10830000 0x400>;
116 interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>,
117 <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
118 <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
119 interrupt-names = "image_conv", "image_conv_err", "axi_mst_err";
120 clocks = <&cpg CPG_MOD R9A07G044_CRU_VCLK>,
121 <&cpg CPG_MOD R9A07G044_CRU_PCLK>,
122 <&cpg CPG_MOD R9A07G044_CRU_ACLK>;
123 clock-names = "video", "apb", "axi";
124 power-domains = <&cpg>;
125 resets = <&cpg R9A07G044_CRU_PRESETN>,
126 <&cpg R9A07G044_CRU_ARESETN>;
127 reset-names = "presetn", "aresetn";
130 #address-cells = <1>;
134 #address-cells = <1>;
138 cru_parallel_in: endpoint@0 {
140 remote-endpoint = <&ov5642>;
147 #address-cells = <1>;
151 cru_csi_in: endpoint@0 {
153 remote-endpoint = <&csi_cru_in>;