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