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