1391ce40dSLaurent Pinchart# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2391ce40dSLaurent Pinchart%YAML 1.2
3391ce40dSLaurent Pinchart---
4391ce40dSLaurent Pinchart$id: http://devicetree.org/schemas/display/bridge/renesas,dw-hdmi.yaml#
5391ce40dSLaurent Pinchart$schema: http://devicetree.org/meta-schemas/core.yaml#
6391ce40dSLaurent Pinchart
7391ce40dSLaurent Pincharttitle: Renesas R-Car DWC HDMI TX Encoder
8391ce40dSLaurent Pinchart
9391ce40dSLaurent Pinchartmaintainers:
10391ce40dSLaurent Pinchart  - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
11391ce40dSLaurent Pinchart
12391ce40dSLaurent Pinchartdescription: |
13391ce40dSLaurent Pinchart  The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP
14391ce40dSLaurent Pinchart  with a companion PHY IP.
15391ce40dSLaurent Pinchart
16391ce40dSLaurent PinchartallOf:
17391ce40dSLaurent Pinchart  - $ref: synopsys,dw-hdmi.yaml#
18391ce40dSLaurent Pinchart
19391ce40dSLaurent Pinchartproperties:
20391ce40dSLaurent Pinchart  compatible:
21391ce40dSLaurent Pinchart    items:
22391ce40dSLaurent Pinchart      - enum:
23391ce40dSLaurent Pinchart          - renesas,r8a774a1-hdmi # for RZ/G2M compatible HDMI TX
24391ce40dSLaurent Pinchart          - renesas,r8a774b1-hdmi # for RZ/G2N compatible HDMI TX
25391ce40dSLaurent Pinchart          - renesas,r8a774e1-hdmi # for RZ/G2H compatible HDMI TX
26391ce40dSLaurent Pinchart          - renesas,r8a7795-hdmi # for R-Car H3 compatible HDMI TX
27391ce40dSLaurent Pinchart          - renesas,r8a7796-hdmi # for R-Car M3-W compatible HDMI TX
28391ce40dSLaurent Pinchart          - renesas,r8a77961-hdmi # for R-Car M3-W+ compatible HDMI TX
29391ce40dSLaurent Pinchart          - renesas,r8a77965-hdmi # for R-Car M3-N compatible HDMI TX
30391ce40dSLaurent Pinchart      - const: renesas,rcar-gen3-hdmi
31391ce40dSLaurent Pinchart
32391ce40dSLaurent Pinchart  reg-io-width:
33391ce40dSLaurent Pinchart    const: 1
34391ce40dSLaurent Pinchart
35391ce40dSLaurent Pinchart  clocks:
36391ce40dSLaurent Pinchart    maxItems: 2
37391ce40dSLaurent Pinchart
38391ce40dSLaurent Pinchart  clock-names:
39391ce40dSLaurent Pinchart    maxItems: 2
40391ce40dSLaurent Pinchart
41*cee3e583SLad Prabhakar  resets:
42*cee3e583SLad Prabhakar    maxItems: 1
43*cee3e583SLad Prabhakar
44391ce40dSLaurent Pinchart  ports:
45391ce40dSLaurent Pinchart    $ref: /schemas/graph.yaml#/properties/ports
46391ce40dSLaurent Pinchart
47391ce40dSLaurent Pinchart    properties:
48391ce40dSLaurent Pinchart      port@0:
49391ce40dSLaurent Pinchart        $ref: /schemas/graph.yaml#/properties/port
50391ce40dSLaurent Pinchart        description: Parallel RGB input port
51391ce40dSLaurent Pinchart
52391ce40dSLaurent Pinchart      port@1:
53391ce40dSLaurent Pinchart        $ref: /schemas/graph.yaml#/properties/port
54391ce40dSLaurent Pinchart        description: HDMI output port
55391ce40dSLaurent Pinchart
56391ce40dSLaurent Pinchart      port@2:
57391ce40dSLaurent Pinchart        $ref: /schemas/graph.yaml#/properties/port
58391ce40dSLaurent Pinchart        description: Sound input port
59391ce40dSLaurent Pinchart
60391ce40dSLaurent Pinchart    required:
61391ce40dSLaurent Pinchart      - port@0
62391ce40dSLaurent Pinchart      - port@1
63391ce40dSLaurent Pinchart      - port@2
64391ce40dSLaurent Pinchart
65391ce40dSLaurent Pinchart  power-domains:
66391ce40dSLaurent Pinchart    maxItems: 1
67391ce40dSLaurent Pinchart
68391ce40dSLaurent Pinchartrequired:
69391ce40dSLaurent Pinchart  - compatible
70391ce40dSLaurent Pinchart  - reg
71391ce40dSLaurent Pinchart  - clocks
72391ce40dSLaurent Pinchart  - clock-names
73*cee3e583SLad Prabhakar  - resets
74391ce40dSLaurent Pinchart  - interrupts
75391ce40dSLaurent Pinchart  - ports
76391ce40dSLaurent Pinchart
77391ce40dSLaurent PinchartunevaluatedProperties: false
78391ce40dSLaurent Pinchart
79391ce40dSLaurent Pinchartexamples:
80391ce40dSLaurent Pinchart  - |
81391ce40dSLaurent Pinchart    #include <dt-bindings/clock/r8a7795-cpg-mssr.h>
82391ce40dSLaurent Pinchart    #include <dt-bindings/interrupt-controller/irq.h>
83391ce40dSLaurent Pinchart    #include <dt-bindings/power/r8a7795-sysc.h>
84391ce40dSLaurent Pinchart
85391ce40dSLaurent Pinchart    hdmi@fead0000 {
86391ce40dSLaurent Pinchart        compatible = "renesas,r8a7795-hdmi", "renesas,rcar-gen3-hdmi";
87391ce40dSLaurent Pinchart        reg = <0xfead0000 0x10000>;
88391ce40dSLaurent Pinchart        interrupts = <0 389 IRQ_TYPE_LEVEL_HIGH>;
89391ce40dSLaurent Pinchart        clocks = <&cpg CPG_CORE R8A7795_CLK_S0D4>, <&cpg CPG_MOD 729>;
90391ce40dSLaurent Pinchart        clock-names = "iahb", "isfr";
91391ce40dSLaurent Pinchart        power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
92*cee3e583SLad Prabhakar        resets = <&cpg 729>;
93391ce40dSLaurent Pinchart
94391ce40dSLaurent Pinchart        ports {
95391ce40dSLaurent Pinchart            #address-cells = <1>;
96391ce40dSLaurent Pinchart            #size-cells = <0>;
97391ce40dSLaurent Pinchart            port@0 {
98391ce40dSLaurent Pinchart                reg = <0>;
99391ce40dSLaurent Pinchart                dw_hdmi0_in: endpoint {
100391ce40dSLaurent Pinchart                    remote-endpoint = <&du_out_hdmi0>;
101391ce40dSLaurent Pinchart                };
102391ce40dSLaurent Pinchart            };
103391ce40dSLaurent Pinchart            port@1 {
104391ce40dSLaurent Pinchart                reg = <1>;
105391ce40dSLaurent Pinchart                rcar_dw_hdmi0_out: endpoint {
106391ce40dSLaurent Pinchart                    remote-endpoint = <&hdmi0_con>;
107391ce40dSLaurent Pinchart                };
108391ce40dSLaurent Pinchart            };
109391ce40dSLaurent Pinchart            port@2 {
110391ce40dSLaurent Pinchart                reg = <2>;
111391ce40dSLaurent Pinchart                rcar_dw_hdmi0_sound_in: endpoint {
112391ce40dSLaurent Pinchart                    remote-endpoint = <&hdmi_sound_out>;
113391ce40dSLaurent Pinchart                };
114391ce40dSLaurent Pinchart            };
115391ce40dSLaurent Pinchart        };
116391ce40dSLaurent Pinchart    };
117391ce40dSLaurent Pinchart
118391ce40dSLaurent Pinchart    hdmi0-out {
119391ce40dSLaurent Pinchart        compatible = "hdmi-connector";
120391ce40dSLaurent Pinchart        label = "HDMI0 OUT";
121391ce40dSLaurent Pinchart        type = "a";
122391ce40dSLaurent Pinchart
123391ce40dSLaurent Pinchart        port {
124391ce40dSLaurent Pinchart            hdmi0_con: endpoint {
125391ce40dSLaurent Pinchart                remote-endpoint = <&rcar_dw_hdmi0_out>;
126391ce40dSLaurent Pinchart            };
127391ce40dSLaurent Pinchart        };
128391ce40dSLaurent Pinchart    };
129391ce40dSLaurent Pinchart
130391ce40dSLaurent Pinchart...
131