xref: /linux/Documentation/devicetree/bindings/media/renesas,ceu.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
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
7*84e85359SKrzysztof Kozlowskititle: Renesas Capture Engine Unit (CEU)
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
30edaa9c46SGeert Uytterhoeven  clocks:
31edaa9c46SGeert Uytterhoeven    maxItems: 1
32edaa9c46SGeert Uytterhoeven
33edaa9c46SGeert Uytterhoeven  power-domains:
34edaa9c46SGeert Uytterhoeven    maxItems: 1
35edaa9c46SGeert Uytterhoeven
3658361eaaSJacopo Mondi  port:
37066a94e2SRob Herring    $ref: /schemas/graph.yaml#/$defs/port-base
38066a94e2SRob Herring    unevaluatedProperties: false
3958361eaaSJacopo Mondi
4058361eaaSJacopo Mondi    properties:
4158361eaaSJacopo Mondi      endpoint:
42066a94e2SRob Herring        $ref: video-interfaces.yaml#
43066a94e2SRob Herring        unevaluatedProperties: false
4458361eaaSJacopo Mondi
4558361eaaSJacopo Mondi        properties:
4658361eaaSJacopo Mondi          hsync-active: true
4758361eaaSJacopo Mondi          vsync-active: true
4858361eaaSJacopo Mondi          field-even-active: false
4958361eaaSJacopo Mondi          bus-width:
5058361eaaSJacopo Mondi            enum: [8, 16]
5158361eaaSJacopo Mondi            default: 8
5258361eaaSJacopo Mondi
5358361eaaSJacopo Mondirequired:
5458361eaaSJacopo Mondi  - compatible
5558361eaaSJacopo Mondi  - reg
5658361eaaSJacopo Mondi  - interrupts
57edaa9c46SGeert Uytterhoeven  - clocks
58edaa9c46SGeert Uytterhoeven  - power-domains
5958361eaaSJacopo Mondi  - port
6058361eaaSJacopo Mondi
617f464532SRob HerringadditionalProperties: false
627f464532SRob Herring
6358361eaaSJacopo Mondiexamples:
6458361eaaSJacopo Mondi  - |
6558361eaaSJacopo Mondi    #include <dt-bindings/interrupt-controller/arm-gic.h>
66edaa9c46SGeert Uytterhoeven    #include <dt-bindings/clock/r7s72100-clock.h>
6758361eaaSJacopo Mondi
6858361eaaSJacopo Mondi    ceu: ceu@e8210000 {
6958361eaaSJacopo Mondi        reg = <0xe8210000 0x209c>;
7058361eaaSJacopo Mondi        compatible = "renesas,r7s72100-ceu";
7158361eaaSJacopo Mondi        interrupts = <GIC_SPI 332 IRQ_TYPE_LEVEL_HIGH>;
72edaa9c46SGeert Uytterhoeven        clocks = <&mstp6_clks R7S72100_CLK_CEU>;
73edaa9c46SGeert Uytterhoeven        power-domains = <&cpg_clocks>;
7458361eaaSJacopo Mondi
7558361eaaSJacopo Mondi        port {
7658361eaaSJacopo Mondi            ceu_in: endpoint {
7758361eaaSJacopo Mondi                remote-endpoint = <&ov7670_out>;
7858361eaaSJacopo Mondi                hsync-active = <1>;
7958361eaaSJacopo Mondi                vsync-active = <0>;
8058361eaaSJacopo Mondi            };
8158361eaaSJacopo Mondi        };
8258361eaaSJacopo Mondi    };
83