Renesas R-Car Video Input (VIN)
Schema identifier ($id): "http://devicetree.org/schemas/media/renesas,vin.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Niklas Söderlund <niklas.soderlund@ragnatech.se>"
The R-Car Video Input (VIN) device provides video input capabilities for the Renesas R-Car family of devices. Each VIN instance has a single parallel input that supports RGB and YUV video, with both external synchronization and BT.656 synchronization for the latter. Depending on the instance the VIN input is connected to external SoC pins, or on Gen3 and RZ/G2 platforms to a CSI-2 receiver.
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,vin-r8a7742","renesas,vin-r8a7743","renesas,vin-r8a7744","renesas,vin-r8a7745","renesas,vin-r8a77470","renesas,vin-r8a7790","renesas,vin-r8a7791","renesas,vin-r8a7792","renesas,vin-r8a7793","renesas,vin-r8a7794"Item 2
Exact value (
const):"renesas,rcar-gen2-vin"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,vin-r8a774a1","renesas,vin-r8a774b1","renesas,vin-r8a774c0","renesas,vin-r8a774e1","renesas,vin-r8a7778","renesas,vin-r8a7779","renesas,vin-r8a7795","renesas,vin-r8a7796","renesas,vin-r8a77961","renesas,vin-r8a77965","renesas,vin-r8a77970","renesas,vin-r8a77980","renesas,vin-r8a77990","renesas,vin-r8a77995"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,vin-r8a779a0","renesas,vin-r8a779g0","renesas,vin-r8a779h0"Item 2
Exact value (
const):"renesas,rcar-gen4-vin"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
port — 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.
A node containing a parallel input
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
If both HSYNC and VSYNC polarities are not specified, embedded synchronization is selected.
Default value (default): 1
vsync-active — not listed as required here
If both HSYNC and VSYNC polarities are not specified, embedded synchronization is selected.
Default value (default): 1
field-even-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.
data-enable-active — not listed as required here
Polarity of CLKENB signal
Default value (default): 1
pclk-sample — not listed as required here
true — No constraints added by this property rule.
data-active — not listed as required here
true — No constraints added by this property rule.
renesas,id — not listed as required here #
VIN channel number
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 31
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
If both HSYNC and VSYNC polarities are not specified, embedded synchronization is selected.
Default value (default): 1
vsync-active — not listed as required here
If both HSYNC and VSYNC polarities are not specified, embedded synchronization is selected.
Default value (default): 1
field-even-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.
data-enable-active — not listed as required here
Polarity of CLKENB signal
Default value (default): 1
pclk-sample — not listed as required here
true — No constraints added by this property rule.
data-active — 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, multiple endpoints describing all the R-Car CSI-2 modules connected the VIN.
Properties and child nodes (properties)
endpoint@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Endpoint connected to CSI20.
endpoint@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Endpoint connected to CSI21.
endpoint@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Endpoint connected to CSI40.
endpoint@3 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Endpoint connected to CSI41.
At least one of these rules must match (anyOf)
Rule 1
Rule 2
Rule 3
Rule 4
port@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/port
Input port node, multiple endpoints describing all the R-Car ISP modules connected the VIN.
Properties and child nodes (properties)
endpoint@0 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Endpoint connected to ISP0.
endpoint@1 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Endpoint connected to ISP1.
endpoint@2 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Endpoint connected to ISP2.
endpoint@3 — not listed as required here
Shared schema rule ($ref): /schemas/graph.yaml#/properties/endpoint
Endpoint connected to ISP3.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,vin-r8a7778","renesas,vin-r8a7779"When the condition matches (
then) #
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,vin-r8a7778","renesas,vin-r8a7779","renesas,rcar-gen2-vin"When the condition matches (
then) #When the condition does not match (
else) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
vin1: vin@e6ef1000 {
compatible = "renesas,vin-r8a7790",
"renesas,rcar-gen2-vin";
reg = <0xe6ef1000 0x1000>;
interrupts = <GIC_SPI 189 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 810>;
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 810>;
port {
vin1ep0: endpoint {
remote-endpoint = <&adv7180>;
bus-width = <8>;
};
};
};
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7795-sysc.h>
vin0: video@e6ef0000 {
compatible = "renesas,vin-r8a7795";
reg = <0xe6ef0000 0x1000>;
interrupts = <GIC_SPI 188 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 811>;
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
resets = <&cpg 811>;
renesas,id = <0>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
vin0csi20: endpoint@0 {
reg = <0>;
remote-endpoint = <&csi20vin0>;
};
vin0csi40: endpoint@2 {
reg = <2>;
remote-endpoint = <&csi40vin0>;
};
};
};
};
#include <dt-bindings/clock/r8a77970-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a77970-sysc.h>
vin2: video@e6ef2000 {
compatible = "renesas,vin-r8a77970";
reg = <0xe6ef2000 0x1000>;
interrupts = <GIC_SPI 190 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 809>;
power-domains = <&sysc R8A77970_PD_ALWAYS_ON>;
resets = <&cpg 809>;
renesas,id = <2>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
vin2_in: endpoint {
remote-endpoint = <&adv7612_out>;
hsync-active = <0>;
vsync-active = <0>;
};
};
port@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
vin2csi40: endpoint@2 {
reg = <2>;
remote-endpoint = <&csi40vin2>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 2: Copyright (C) 2020 Renesas Electronics Corp.
Line 27: RZ/G1H
Line 28: RZ/G1M
Line 29: RZ/G1N
Line 30: RZ/G1E
Line 31: RZ/G1C
Line 32: R-Car H2
Line 33: R-Car M2-W
Line 34: R-Car V2H
Line 35: R-Car M2-N
Line 36: R-Car E2
Line 37: Generic R-Car Gen2 or RZ/G1
Line 41: RZ/G2M
Line 42: RZ/G2N
Line 43: RZ/G2E
Line 44: RZ/G2H
Line 45: R-Car M1
Line 46: R-Car H1
Line 47: R-Car H3
Line 48: R-Car M3-W
Line 49: R-Car M3-W+
Line 50: R-Car M3-N
Line 51: R-Car V3M
Line 52: R-Car V3H
Line 53: R-Car E3
Line 54: R-Car D3
Line 57: R-Car V3U
Line 58: R-Car V4H
Line 59: R-Car V4M
Line 60: Generic R-Car Gen4
Line 77: The per-board settings for Gen2 and RZ/G1 platforms:
Line 116: The per-board settings for Gen3 and RZ/G2 platforms:
Line 260: Device node example for Gen2 platform
Line 283: Device node example for Gen3 platform with only CSI-2
Line 320: Device node example for Gen3 platform with CSI-2 and parallel