12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/display/bridge/renesas,dw-hdmi.yaml# 52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 72eb4d8dcSEmmanuel Vadottitle: Renesas R-Car DWC HDMI TX Encoder 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 102eb4d8dcSEmmanuel Vadot - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 112eb4d8dcSEmmanuel Vadot 122eb4d8dcSEmmanuel Vadotdescription: | 132eb4d8dcSEmmanuel Vadot The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP 142eb4d8dcSEmmanuel Vadot with a companion PHY IP. 152eb4d8dcSEmmanuel Vadot 162eb4d8dcSEmmanuel VadotallOf: 172eb4d8dcSEmmanuel Vadot - $ref: synopsys,dw-hdmi.yaml# 182eb4d8dcSEmmanuel Vadot 192eb4d8dcSEmmanuel Vadotproperties: 202eb4d8dcSEmmanuel Vadot compatible: 212eb4d8dcSEmmanuel Vadot items: 222eb4d8dcSEmmanuel Vadot - enum: 232eb4d8dcSEmmanuel Vadot - renesas,r8a774a1-hdmi # for RZ/G2M compatible HDMI TX 242eb4d8dcSEmmanuel Vadot - renesas,r8a774b1-hdmi # for RZ/G2N compatible HDMI TX 252eb4d8dcSEmmanuel Vadot - renesas,r8a774e1-hdmi # for RZ/G2H compatible HDMI TX 262eb4d8dcSEmmanuel Vadot - renesas,r8a7795-hdmi # for R-Car H3 compatible HDMI TX 272eb4d8dcSEmmanuel Vadot - renesas,r8a7796-hdmi # for R-Car M3-W compatible HDMI TX 282eb4d8dcSEmmanuel Vadot - renesas,r8a77961-hdmi # for R-Car M3-W+ compatible HDMI TX 292eb4d8dcSEmmanuel Vadot - renesas,r8a77965-hdmi # for R-Car M3-N compatible HDMI TX 302eb4d8dcSEmmanuel Vadot - const: renesas,rcar-gen3-hdmi 312eb4d8dcSEmmanuel Vadot 322eb4d8dcSEmmanuel Vadot reg-io-width: 332eb4d8dcSEmmanuel Vadot const: 1 342eb4d8dcSEmmanuel Vadot 352eb4d8dcSEmmanuel Vadot clocks: 362eb4d8dcSEmmanuel Vadot maxItems: 2 372eb4d8dcSEmmanuel Vadot 382eb4d8dcSEmmanuel Vadot clock-names: 392eb4d8dcSEmmanuel Vadot maxItems: 2 402eb4d8dcSEmmanuel Vadot 41*7ef62cebSEmmanuel Vadot resets: 42*7ef62cebSEmmanuel Vadot maxItems: 1 43*7ef62cebSEmmanuel Vadot 442eb4d8dcSEmmanuel Vadot ports: 452eb4d8dcSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/ports 462eb4d8dcSEmmanuel Vadot 472eb4d8dcSEmmanuel Vadot properties: 482eb4d8dcSEmmanuel Vadot port@0: 492eb4d8dcSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 502eb4d8dcSEmmanuel Vadot description: Parallel RGB input port 512eb4d8dcSEmmanuel Vadot 522eb4d8dcSEmmanuel Vadot port@1: 532eb4d8dcSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 542eb4d8dcSEmmanuel Vadot description: HDMI output port 552eb4d8dcSEmmanuel Vadot 562eb4d8dcSEmmanuel Vadot port@2: 572eb4d8dcSEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 582eb4d8dcSEmmanuel Vadot description: Sound input port 592eb4d8dcSEmmanuel Vadot 602eb4d8dcSEmmanuel Vadot required: 612eb4d8dcSEmmanuel Vadot - port@0 622eb4d8dcSEmmanuel Vadot - port@1 632eb4d8dcSEmmanuel Vadot - port@2 642eb4d8dcSEmmanuel Vadot 652eb4d8dcSEmmanuel Vadot power-domains: 662eb4d8dcSEmmanuel Vadot maxItems: 1 672eb4d8dcSEmmanuel Vadot 682eb4d8dcSEmmanuel Vadotrequired: 692eb4d8dcSEmmanuel Vadot - compatible 702eb4d8dcSEmmanuel Vadot - reg 712eb4d8dcSEmmanuel Vadot - clocks 722eb4d8dcSEmmanuel Vadot - clock-names 73*7ef62cebSEmmanuel Vadot - resets 742eb4d8dcSEmmanuel Vadot - interrupts 752eb4d8dcSEmmanuel Vadot - ports 762eb4d8dcSEmmanuel Vadot 772eb4d8dcSEmmanuel VadotunevaluatedProperties: false 782eb4d8dcSEmmanuel Vadot 792eb4d8dcSEmmanuel Vadotexamples: 802eb4d8dcSEmmanuel Vadot - | 812eb4d8dcSEmmanuel Vadot #include <dt-bindings/clock/r8a7795-cpg-mssr.h> 822eb4d8dcSEmmanuel Vadot #include <dt-bindings/interrupt-controller/irq.h> 832eb4d8dcSEmmanuel Vadot #include <dt-bindings/power/r8a7795-sysc.h> 842eb4d8dcSEmmanuel Vadot 852eb4d8dcSEmmanuel Vadot hdmi@fead0000 { 862eb4d8dcSEmmanuel Vadot compatible = "renesas,r8a7795-hdmi", "renesas,rcar-gen3-hdmi"; 872eb4d8dcSEmmanuel Vadot reg = <0xfead0000 0x10000>; 882eb4d8dcSEmmanuel Vadot interrupts = <0 389 IRQ_TYPE_LEVEL_HIGH>; 892eb4d8dcSEmmanuel Vadot clocks = <&cpg CPG_CORE R8A7795_CLK_S0D4>, <&cpg CPG_MOD 729>; 902eb4d8dcSEmmanuel Vadot clock-names = "iahb", "isfr"; 912eb4d8dcSEmmanuel Vadot power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; 92*7ef62cebSEmmanuel Vadot resets = <&cpg 729>; 932eb4d8dcSEmmanuel Vadot 942eb4d8dcSEmmanuel Vadot ports { 952eb4d8dcSEmmanuel Vadot #address-cells = <1>; 962eb4d8dcSEmmanuel Vadot #size-cells = <0>; 972eb4d8dcSEmmanuel Vadot port@0 { 982eb4d8dcSEmmanuel Vadot reg = <0>; 992eb4d8dcSEmmanuel Vadot dw_hdmi0_in: endpoint { 1002eb4d8dcSEmmanuel Vadot remote-endpoint = <&du_out_hdmi0>; 1012eb4d8dcSEmmanuel Vadot }; 1022eb4d8dcSEmmanuel Vadot }; 1032eb4d8dcSEmmanuel Vadot port@1 { 1042eb4d8dcSEmmanuel Vadot reg = <1>; 1052eb4d8dcSEmmanuel Vadot rcar_dw_hdmi0_out: endpoint { 1062eb4d8dcSEmmanuel Vadot remote-endpoint = <&hdmi0_con>; 1072eb4d8dcSEmmanuel Vadot }; 1082eb4d8dcSEmmanuel Vadot }; 1092eb4d8dcSEmmanuel Vadot port@2 { 1102eb4d8dcSEmmanuel Vadot reg = <2>; 1112eb4d8dcSEmmanuel Vadot rcar_dw_hdmi0_sound_in: endpoint { 1122eb4d8dcSEmmanuel Vadot remote-endpoint = <&hdmi_sound_out>; 1132eb4d8dcSEmmanuel Vadot }; 1142eb4d8dcSEmmanuel Vadot }; 1152eb4d8dcSEmmanuel Vadot }; 1162eb4d8dcSEmmanuel Vadot }; 1172eb4d8dcSEmmanuel Vadot 1182eb4d8dcSEmmanuel Vadot hdmi0-out { 1192eb4d8dcSEmmanuel Vadot compatible = "hdmi-connector"; 1202eb4d8dcSEmmanuel Vadot label = "HDMI0 OUT"; 1212eb4d8dcSEmmanuel Vadot type = "a"; 1222eb4d8dcSEmmanuel Vadot 1232eb4d8dcSEmmanuel Vadot port { 1242eb4d8dcSEmmanuel Vadot hdmi0_con: endpoint { 1252eb4d8dcSEmmanuel Vadot remote-endpoint = <&rcar_dw_hdmi0_out>; 1262eb4d8dcSEmmanuel Vadot }; 1272eb4d8dcSEmmanuel Vadot }; 1282eb4d8dcSEmmanuel Vadot }; 1292eb4d8dcSEmmanuel Vadot 1302eb4d8dcSEmmanuel Vadot... 131