1 # SPDX-License-Identifier: GPL-2.0-only
2 # Copyright (C) 2020 Renesas Electronics Corp.
5 $id: http://devicetree.org/schemas/media/renesas,vin.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Renesas R-Car Video Input (VIN)
11 - Niklas Söderlund <niklas.soderlund@ragnatech.se>
14 The R-Car Video Input (VIN) device provides video input capabilities for the
15 Renesas R-Car family of devices.
17 Each VIN instance has a single parallel input that supports RGB and YUV video,
18 with both external synchronization and BT.656 synchronization for the latter.
19 Depending on the instance the VIN input is connected to external SoC pins, or
20 on Gen3 and RZ/G2 platforms to a CSI-2 receiver.
27 - renesas,vin-r8a7743 # RZ/G1M
28 - renesas,vin-r8a7744 # RZ/G1N
29 - renesas,vin-r8a7745 # RZ/G1E
30 - renesas,vin-r8a77470 # RZ/G1C
31 - renesas,vin-r8a7790 # R-Car H2
32 - renesas,vin-r8a7791 # R-Car M2-W
33 - renesas,vin-r8a7792 # R-Car V2H
34 - renesas,vin-r8a7793 # R-Car M2-N
35 - renesas,vin-r8a7794 # R-Car E2
36 - const: renesas,rcar-gen2-vin # Generic R-Car Gen2 or RZ/G1
40 - renesas,vin-r8a774a1 # RZ/G2M
41 - renesas,vin-r8a774b1 # RZ/G2N
42 - renesas,vin-r8a774c0 # RZ/G2E
43 - renesas,vin-r8a7778 # R-Car M1
44 - renesas,vin-r8a7779 # R-Car H1
45 - renesas,vin-r8a7795 # R-Car H3
46 - renesas,vin-r8a7796 # R-Car M3-W
47 - renesas,vin-r8a77965 # R-Car M3-N
48 - renesas,vin-r8a77970 # R-Car V3M
49 - renesas,vin-r8a77980 # R-Car V3H
50 - renesas,vin-r8a77990 # R-Car E3
51 - renesas,vin-r8a77995 # R-Car D3
68 #The per-board settings for Gen2 and RZ/G1 platforms:
72 A node containing a parallel input with a single endpoint definitions as
74 Documentation/devicetree/bindings/media/video-interfaces.txt
83 If both HSYNC and VSYNC polarities are not specified, embedded
84 synchronization is selected.
89 If both HSYNC and VSYNC polarities are not specified, embedded
90 synchronization is selected.
93 field-active-even: true
100 description: Polarity of CLKENB signal
107 remote-endpoint: true
112 additionalProperties: false
114 additionalProperties: false
116 #The per-board settings for Gen3 and RZ/G2 platforms:
118 description: VIN channel number
120 - $ref: /schemas/types.yaml#/definitions/uint32
127 A node containing input nodes with endpoint definitions as documented in
128 Documentation/devicetree/bindings/media/video-interfaces.txt
134 Input port node, single endpoint describing a parallel input source.
146 If both HSYNC and VSYNC polarities are not specified, embedded
147 synchronization is selected.
152 If both HSYNC and VSYNC polarities are not specified, embedded
153 synchronization is selected.
156 field-active-even: true
163 description: Polarity of CLKENB signal
170 remote-endpoint: true
175 additionalProperties: false
180 additionalProperties: false
185 Input port node, multiple endpoints describing all the R-Car CSI-2
186 modules connected the VIN.
200 description: Endpoint connected to CSI20.
206 remote-endpoint: true
212 additionalProperties: false
216 description: Endpoint connected to CSI21.
222 remote-endpoint: true
228 additionalProperties: false
232 description: Endpoint connected to CSI40.
238 remote-endpoint: true
244 additionalProperties: false
248 description: Endpoint connected to CSI41.
254 remote-endpoint: true
260 additionalProperties: false
272 additionalProperties: false
287 - renesas,vin-r8a7778
288 - renesas,vin-r8a7779
289 - renesas,rcar-gen2-vin
298 additionalProperties: false
301 # Device node example for Gen2 platform
303 #include <dt-bindings/clock/r8a7790-cpg-mssr.h>
304 #include <dt-bindings/interrupt-controller/arm-gic.h>
305 #include <dt-bindings/power/r8a7790-sysc.h>
308 compatible = "renesas,vin-r8a7790",
309 "renesas,rcar-gen2-vin";
310 reg = <0 0xe6ef1000 0 0x1000>;
311 interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
312 clocks = <&cpg CPG_MOD 810>;
313 power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
318 remote-endpoint = <&adv7180>;
324 # Device node example for Gen3 platform with only CSI-2
326 #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
327 #include <dt-bindings/interrupt-controller/arm-gic.h>
328 #include <dt-bindings/power/r8a7795-sysc.h>
330 vin0: video@e6ef0000 {
331 compatible = "renesas,vin-r8a7795";
332 reg = <0 0xe6ef0000 0 0x1000>;
333 interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
334 clocks = <&cpg CPG_MOD 811>;
335 power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
340 #address-cells = <1>;
344 #address-cells = <1>;
349 vin0csi20: endpoint@0 {
351 remote-endpoint= <&csi20vin0>;
353 vin0csi40: endpoint@2 {
355 remote-endpoint= <&csi40vin0>;
361 # Device node example for Gen3 platform with CSI-2 and parallel
363 #include <dt-bindings/clock/r8a77970-cpg-mssr.h>
364 #include <dt-bindings/interrupt-controller/arm-gic.h>
365 #include <dt-bindings/power/r8a77970-sysc.h>
367 vin2: video@e6ef2000 {
368 compatible = "renesas,vin-r8a77970";
369 reg = <0 0xe6ef2000 0 0x1000>;
370 interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
371 clocks = <&cpg CPG_MOD 809>;
372 power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
377 #address-cells = <1>;
384 remote-endpoint = <&adv7612_out>;
391 #address-cells = <1>;
396 vin2csi40: endpoint@2 {
398 remote-endpoint = <&csi40vin2>;