Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / media / renesas,ceu.txt
1 Renesas Capture Engine Unit (CEU)
2 ----------------------------------------------
3
4 The Capture Engine Unit is the image capture interface found in the Renesas
5 SH Mobile, R-Mobile and RZ SoCs.
6
7 The interface supports a single parallel input with data bus width of 8 or 16
8 bits.
9
10 Required properties:
11 - compatible: Shall be one of the following values:
12         "renesas,r7s72100-ceu" for CEU units found in RZ/A1H and RZ/A1M SoCs
13         "renesas,r8a7740-ceu" for CEU units found in R-Mobile A1 R8A7740 SoCs
14 - reg: Registers address base and size.
15 - interrupts: The interrupt specifier.
16
17 The CEU supports a single parallel input and should contain a single 'port'
18 subnode with a single 'endpoint'. Connection to input devices are modeled
19 according to the video interfaces OF bindings specified in:
20 Documentation/devicetree/bindings/media/video-interfaces.txt
21
22 Optional endpoint properties applicable to parallel input bus described in
23 the above mentioned "video-interfaces.txt" file are supported.
24
25 - hsync-active: Active state of the HSYNC signal, 0/1 for LOW/HIGH respectively.
26   If property is not present, default is active high.
27 - vsync-active: Active state of the VSYNC signal, 0/1 for LOW/HIGH respectively.
28   If property is not present, default is active high.
29
30 Example:
31
32 The example describes the connection between the Capture Engine Unit and an
33 OV7670 image sensor connected to i2c1 interface.
34
35 ceu: ceu@e8210000 {
36         reg = <0xe8210000 0x209c>;
37         compatible = "renesas,r7s72100-ceu";
38         interrupts = <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>;
39
40         pinctrl-names = "default";
41         pinctrl-0 = <&vio_pins>;
42
43         status = "okay";
44
45         port {
46                 ceu_in: endpoint {
47                         remote-endpoint = <&ov7670_out>;
48
49                         hsync-active = <1>;
50                         vsync-active = <0>;
51                 };
52         };
53 };
54
55 i2c1: i2c@fcfee400 {
56         pinctrl-names = "default";
57         pinctrl-0 = <&i2c1_pins>;
58
59         status = "okay";
60
61         clock-frequency = <100000>;
62
63         ov7670: camera@21 {
64                 compatible = "ovti,ov7670";
65                 reg = <0x21>;
66
67                 pinctrl-names = "default";
68                 pinctrl-0 = <&vio_pins>;
69
70                 reset-gpios = <&port3 11 GPIO_ACTIVE_LOW>;
71                 powerdown-gpios = <&port3 12 GPIO_ACTIVE_HIGH>;
72
73                 port {
74                         ov7670_out: endpoint {
75                                 remote-endpoint = <&ceu_in>;
76
77                                 hsync-active = <1>;
78                                 vsync-active = <0>;
79                         };
80                 };
81         };
82 };