Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[sfrench/cifs-2.6.git] / Documentation / devicetree / bindings / media / renesas,ceu.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/media/renesas,ceu.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Renesas Capture Engine Unit (CEU) Bindings
8
9 maintainers:
10   - Jacopo Mondi <jacopo+renesas@jmondi.org>
11   - linux-renesas-soc@vger.kernel.org
12
13 description: |+
14   The Capture Engine Unit is the image capture interface found in the Renesas SH
15   Mobile, R-Mobile and RZ SoCs. The interface supports a single parallel input
16   with data bus width of 8 or 16 bits.
17
18 properties:
19   compatible:
20     enum:
21       - renesas,r7s72100-ceu
22       - renesas,r8a7740-ceu
23
24   reg:
25     maxItems: 1
26
27   interrupts:
28     maxItems: 1
29
30   port:
31     type: object
32     additionalProperties: false
33
34     properties:
35        endpoint:
36          type: object
37          additionalProperties: false
38
39          # Properties described in
40          # Documentation/devicetree/bindings/media/video-interfaces.txt
41          properties:
42            remote-endpoint: true
43            hsync-active: true
44            vsync-active: true
45            field-even-active: false
46            bus-width:
47              enum: [8, 16]
48              default: 8
49
50          required:
51            - remote-endpoint
52
53     required:
54       - endpoint
55
56 required:
57   - compatible
58   - reg
59   - interrupts
60   - port
61
62 examples:
63   - |
64     #include <dt-bindings/interrupt-controller/arm-gic.h>
65
66     ceu: ceu@e8210000 {
67         reg = <0xe8210000 0x209c>;
68         compatible = "renesas,r7s72100-ceu";
69         interrupts = <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>;
70
71         port {
72             ceu_in: endpoint {
73                 remote-endpoint = <&ov7670_out>;
74                 hsync-active = <1>;
75                 vsync-active = <0>;
76             };
77         };
78     };