]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blob - Documentation/devicetree/bindings/media/renesas,rcar-csi2.txt
Merge branches 'for-5.1/upstream-fixes', 'for-5.2/core', 'for-5.2/ish', 'for-5.2...
[mirror_ubuntu-kernels.git] / Documentation / devicetree / bindings / media / renesas,rcar-csi2.txt
1 Renesas R-Car MIPI CSI-2
2 ------------------------
3
4 The R-Car CSI-2 receiver device provides MIPI CSI-2 capabilities for the
5 Renesas R-Car and RZ/G2 family of devices. It is used in conjunction with the
6 R-Car VIN module, which provides the video capture capabilities.
7
8 Mandatory properties
9 --------------------
10 - compatible: Must be one or more of the following
11 - "renesas,r8a774c0-csi2" for the R8A774C0 device.
12 - "renesas,r8a7795-csi2" for the R8A7795 device.
13 - "renesas,r8a7796-csi2" for the R8A7796 device.
14 - "renesas,r8a77965-csi2" for the R8A77965 device.
15 - "renesas,r8a77970-csi2" for the R8A77970 device.
16 - "renesas,r8a77980-csi2" for the R8A77980 device.
17 - "renesas,r8a77990-csi2" for the R8A77990 device.
18
19 - reg: the register base and size for the device registers
20 - interrupts: the interrupt for the device
21 - clocks: reference to the parent clock
22
23 The device node shall contain two 'port' child nodes according to the
24 bindings defined in Documentation/devicetree/bindings/media/
25 video-interfaces.txt. port@0 shall connect to the CSI-2 source. port@1
26 shall connect to all the R-Car VIN modules that have a hardware
27 connection to the CSI-2 receiver.
28
29 - port@0- Video source (mandatory)
30 - endpoint@0 - sub-node describing the endpoint that is the video source
31
32 - port@1 - VIN instances (optional)
33 - One endpoint sub-node for every R-Car VIN instance which is connected
34 to the R-Car CSI-2 receiver.
35
36 Example:
37
38 csi20: csi2@fea80000 {
39 compatible = "renesas,r8a7796-csi2";
40 reg = <0 0xfea80000 0 0x10000>;
41 interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
42 clocks = <&cpg CPG_MOD 714>;
43 power-domains = <&sysc R8A7796_PD_ALWAYS_ON>;
44 resets = <&cpg 714>;
45
46 ports {
47 #address-cells = <1>;
48 #size-cells = <0>;
49
50 port@0 {
51 #address-cells = <1>;
52 #size-cells = <0>;
53
54 reg = <0>;
55
56 csi20_in: endpoint@0 {
57 reg = <0>;
58 clock-lanes = <0>;
59 data-lanes = <1>;
60 remote-endpoint = <&adv7482_txb>;
61 };
62 };
63
64 port@1 {
65 #address-cells = <1>;
66 #size-cells = <0>;
67
68 reg = <1>;
69
70 csi20vin0: endpoint@0 {
71 reg = <0>;
72 remote-endpoint = <&vin0csi20>;
73 };
74 csi20vin1: endpoint@1 {
75 reg = <1>;
76 remote-endpoint = <&vin1csi20>;
77 };
78 csi20vin2: endpoint@2 {
79 reg = <2>;
80 remote-endpoint = <&vin2csi20>;
81 };
82 csi20vin3: endpoint@3 {
83 reg = <3>;
84 remote-endpoint = <&vin3csi20>;
85 };
86 csi20vin4: endpoint@4 {
87 reg = <4>;
88 remote-endpoint = <&vin4csi20>;
89 };
90 csi20vin5: endpoint@5 {
91 reg = <5>;
92 remote-endpoint = <&vin5csi20>;
93 };
94 csi20vin6: endpoint@6 {
95 reg = <6>;
96 remote-endpoint = <&vin6csi20>;
97 };
98 csi20vin7: endpoint@7 {
99 reg = <7>;
100 remote-endpoint = <&vin7csi20>;
101 };
102 };
103 };
104 };