Merge drm-fixes into drm-next.
[deliverable/linux.git] / Documentation / devicetree / bindings / media / rcar_vin.txt
CommitLineData
47c71bd6
BD
1Renesas RCar Video Input driver (rcar_vin)
2------------------------------------------
3
4The rcar_vin device provides video input capabilities for the Renesas R-Car
5family of devices. The current blocks are always slaves and suppot one input
6channel which can be either RGB, YUYV or BT656.
7
8 - compatible: Must be one of the following
1dff3338 9 - "renesas,vin-r8a7795" for the R8A7795 device
76deaff8
YK
10 - "renesas,vin-r8a7794" for the R8A7794 device
11 - "renesas,vin-r8a7793" for the R8A7793 device
47c71bd6
BD
12 - "renesas,vin-r8a7791" for the R8A7791 device
13 - "renesas,vin-r8a7790" for the R8A7790 device
14 - "renesas,vin-r8a7779" for the R8A7779 device
15 - "renesas,vin-r8a7778" for the R8A7778 device
16 - reg: the register base and size for the device registers
17 - interrupts: the interrupt for the device
18 - clocks: Reference to the parent clock
19
20Additionally, an alias named vinX will need to be created to specify
21which video input device this is.
22
23The per-board settings:
24 - port sub-node describing a single endpoint connected to the vin
25 as described in video-interfaces.txt[1]. Only the first one will
26 be considered as each vin interface has one input port.
27
28 These settings are used to work out video input format and widths
29 into the system.
30
31
32Device node example
33-------------------
34
35 aliases {
36 vin0 = &vin0;
37 };
38
39 vin0: vin@0xe6ef0000 {
40 compatible = "renesas,vin-r8a7790";
41 clocks = <&mstp8_clks R8A7790_CLK_VIN0>;
42 reg = <0 0xe6ef0000 0 0x1000>;
43 interrupts = <0 188 IRQ_TYPE_LEVEL_HIGH>;
44 status = "disabled";
45 };
46
47Board setup example (vin1 composite video input)
48------------------------------------------------
49
50&i2c2 {
51 status = "ok";
52 pinctrl-0 = <&i2c2_pins>;
53 pinctrl-names = "default";
54
55 adv7180@20 {
56 compatible = "adi,adv7180";
57 reg = <0x20>;
58 remote = <&vin1>;
59
60 port {
61 adv7180: endpoint {
62 bus-width = <8>;
63 remote-endpoint = <&vin1ep0>;
64 };
65 };
66 };
67};
68
69/* composite video input */
70&vin1 {
71 pinctrl-0 = <&vin1_pins>;
72 pinctrl-names = "default";
73
74 status = "ok";
75
76 port {
77 #address-cells = <1>;
78 #size-cells = <0>;
79
80 vin1ep0: endpoint {
81 remote-endpoint = <&adv7180>;
82 bus-width = <8>;
83 };
84 };
85};
86
87
88
89[1] video-interfaces.txt common video media interface
This page took 0.069358 seconds and 5 git commands to generate.