xref: /linux/Documentation/devicetree/bindings/media/renesas,ceu.yaml (revision edaa9c460996068a128775f58e71bcd104c8203e)
158361eaaSJacopo Mondi# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
258361eaaSJacopo Mondi%YAML 1.2
358361eaaSJacopo Mondi---
458361eaaSJacopo Mondi$id: http://devicetree.org/schemas/media/renesas,ceu.yaml#
558361eaaSJacopo Mondi$schema: http://devicetree.org/meta-schemas/core.yaml#
658361eaaSJacopo Mondi
758361eaaSJacopo Mondititle: Renesas Capture Engine Unit (CEU) Bindings
858361eaaSJacopo Mondi
958361eaaSJacopo Mondimaintainers:
1058361eaaSJacopo Mondi  - Jacopo Mondi <jacopo+renesas@jmondi.org>
1158361eaaSJacopo Mondi  - linux-renesas-soc@vger.kernel.org
1258361eaaSJacopo Mondi
1358361eaaSJacopo Mondidescription: |+
1458361eaaSJacopo Mondi  The Capture Engine Unit is the image capture interface found in the Renesas SH
1558361eaaSJacopo Mondi  Mobile, R-Mobile and RZ SoCs. The interface supports a single parallel input
1658361eaaSJacopo Mondi  with data bus width of 8 or 16 bits.
1758361eaaSJacopo Mondi
1858361eaaSJacopo Mondiproperties:
1958361eaaSJacopo Mondi  compatible:
2058361eaaSJacopo Mondi    enum:
2158361eaaSJacopo Mondi      - renesas,r7s72100-ceu
2258361eaaSJacopo Mondi      - renesas,r8a7740-ceu
2358361eaaSJacopo Mondi
2458361eaaSJacopo Mondi  reg:
2558361eaaSJacopo Mondi    maxItems: 1
2658361eaaSJacopo Mondi
2758361eaaSJacopo Mondi  interrupts:
2858361eaaSJacopo Mondi    maxItems: 1
2958361eaaSJacopo Mondi
30*edaa9c46SGeert Uytterhoeven  clocks:
31*edaa9c46SGeert Uytterhoeven    maxItems: 1
32*edaa9c46SGeert Uytterhoeven
33*edaa9c46SGeert Uytterhoeven  power-domains:
34*edaa9c46SGeert Uytterhoeven    maxItems: 1
35*edaa9c46SGeert Uytterhoeven
3658361eaaSJacopo Mondi  port:
3758361eaaSJacopo Mondi    type: object
3858361eaaSJacopo Mondi    additionalProperties: false
3958361eaaSJacopo Mondi
4058361eaaSJacopo Mondi    properties:
4158361eaaSJacopo Mondi      endpoint:
4258361eaaSJacopo Mondi        type: object
4358361eaaSJacopo Mondi        additionalProperties: false
4458361eaaSJacopo Mondi
4558361eaaSJacopo Mondi         # Properties described in
4658361eaaSJacopo Mondi         # Documentation/devicetree/bindings/media/video-interfaces.txt
4758361eaaSJacopo Mondi        properties:
4858361eaaSJacopo Mondi          remote-endpoint: true
4958361eaaSJacopo Mondi          hsync-active: true
5058361eaaSJacopo Mondi          vsync-active: true
5158361eaaSJacopo Mondi          field-even-active: false
5258361eaaSJacopo Mondi          bus-width:
5358361eaaSJacopo Mondi            enum: [8, 16]
5458361eaaSJacopo Mondi            default: 8
5558361eaaSJacopo Mondi
5658361eaaSJacopo Mondi        required:
5758361eaaSJacopo Mondi          - remote-endpoint
5858361eaaSJacopo Mondi
5958361eaaSJacopo Mondi    required:
6058361eaaSJacopo Mondi      - endpoint
6158361eaaSJacopo Mondi
6258361eaaSJacopo Mondirequired:
6358361eaaSJacopo Mondi  - compatible
6458361eaaSJacopo Mondi  - reg
6558361eaaSJacopo Mondi  - interrupts
66*edaa9c46SGeert Uytterhoeven  - clocks
67*edaa9c46SGeert Uytterhoeven  - power-domains
6858361eaaSJacopo Mondi  - port
6958361eaaSJacopo Mondi
707f464532SRob HerringadditionalProperties: false
717f464532SRob Herring
7258361eaaSJacopo Mondiexamples:
7358361eaaSJacopo Mondi  - |
7458361eaaSJacopo Mondi    #include <dt-bindings/interrupt-controller/arm-gic.h>
75*edaa9c46SGeert Uytterhoeven    #include <dt-bindings/clock/r7s72100-clock.h>
7658361eaaSJacopo Mondi
7758361eaaSJacopo Mondi    ceu: ceu@e8210000 {
7858361eaaSJacopo Mondi        reg = <0xe8210000 0x209c>;
7958361eaaSJacopo Mondi        compatible = "renesas,r7s72100-ceu";
8058361eaaSJacopo Mondi        interrupts = <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>;
81*edaa9c46SGeert Uytterhoeven        clocks = <&mstp6_clks R7S72100_CLK_CEU>;
82*edaa9c46SGeert Uytterhoeven        power-domains = <&cpg_clocks>;
8358361eaaSJacopo Mondi
8458361eaaSJacopo Mondi        port {
8558361eaaSJacopo Mondi            ceu_in: endpoint {
8658361eaaSJacopo Mondi                remote-endpoint = <&ov7670_out>;
8758361eaaSJacopo Mondi                hsync-active = <1>;
8858361eaaSJacopo Mondi                vsync-active = <0>;
8958361eaaSJacopo Mondi            };
9058361eaaSJacopo Mondi        };
9158361eaaSJacopo Mondi    };
92