xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunRenesas Gen3 DWC HDMI TX Encoder
2*4882a593Smuzhiyun================================
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunThe HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP
5*4882a593Smuzhiyunwith a companion PHY IP.
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunThese DT bindings follow the Synopsys DWC HDMI TX bindings defined in
8*4882a593SmuzhiyunDocumentation/devicetree/bindings/display/bridge/dw_hdmi.txt with the
9*4882a593Smuzhiyunfollowing device-specific properties.
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunRequired properties:
13*4882a593Smuzhiyun
14*4882a593Smuzhiyun- compatible : Shall contain one or more of
15*4882a593Smuzhiyun  - "renesas,r8a774a1-hdmi" for R8A774A1 (RZ/G2M) compatible HDMI TX
16*4882a593Smuzhiyun  - "renesas,r8a774b1-hdmi" for R8A774B1 (RZ/G2N) compatible HDMI TX
17*4882a593Smuzhiyun  - "renesas,r8a774e1-hdmi" for R8A774E1 (RZ/G2H) compatible HDMI TX
18*4882a593Smuzhiyun  - "renesas,r8a7795-hdmi" for R8A7795 (R-Car H3) compatible HDMI TX
19*4882a593Smuzhiyun  - "renesas,r8a7796-hdmi" for R8A7796 (R-Car M3-W) compatible HDMI TX
20*4882a593Smuzhiyun  - "renesas,r8a77961-hdmi" for R8A77961 (R-Car M3-W+) compatible HDMI TX
21*4882a593Smuzhiyun  - "renesas,r8a77965-hdmi" for R8A77965 (R-Car M3-N) compatible HDMI TX
22*4882a593Smuzhiyun  - "renesas,rcar-gen3-hdmi" for the generic R-Car Gen3 and RZ/G2 compatible
23*4882a593Smuzhiyun			     HDMI TX
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun    When compatible with generic versions, nodes must list the SoC-specific
26*4882a593Smuzhiyun    version corresponding to the platform first, followed by the
27*4882a593Smuzhiyun    family-specific version.
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun- reg: See dw_hdmi.txt.
30*4882a593Smuzhiyun- interrupts: HDMI interrupt number
31*4882a593Smuzhiyun- clocks: See dw_hdmi.txt.
32*4882a593Smuzhiyun- clock-names: Shall contain "iahb" and "isfr" as defined in dw_hdmi.txt.
33*4882a593Smuzhiyun- ports: See dw_hdmi.txt. The DWC HDMI shall have one port numbered 0
34*4882a593Smuzhiyun  corresponding to the video input of the controller and one port numbered 1
35*4882a593Smuzhiyun  corresponding to its HDMI output, and one port numbered 2 corresponding to
36*4882a593Smuzhiyun  sound input of the controller. Each port shall have a single endpoint.
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunOptional properties:
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun- power-domains: Shall reference the power domain that contains the DWC HDMI,
41*4882a593Smuzhiyun  if any.
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun
44*4882a593SmuzhiyunExample:
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun	hdmi0: hdmi@fead0000 {
47*4882a593Smuzhiyun		compatible = "renesas,r8a7795-hdmi", "renesas,rcar-gen3-hdmi";
48*4882a593Smuzhiyun		reg = <0 0xfead0000 0 0x10000>;
49*4882a593Smuzhiyun		interrupts = <0 389 IRQ_TYPE_LEVEL_HIGH>;
50*4882a593Smuzhiyun		clocks = <&cpg CPG_CORE R8A7795_CLK_S0D4>, <&cpg CPG_MOD 729>;
51*4882a593Smuzhiyun		clock-names = "iahb", "isfr";
52*4882a593Smuzhiyun		power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
53*4882a593Smuzhiyun
54*4882a593Smuzhiyun		ports {
55*4882a593Smuzhiyun			#address-cells = <1>;
56*4882a593Smuzhiyun			#size-cells = <0>;
57*4882a593Smuzhiyun			port@0 {
58*4882a593Smuzhiyun				reg = <0>;
59*4882a593Smuzhiyun				dw_hdmi0_in: endpoint {
60*4882a593Smuzhiyun					remote-endpoint = <&du_out_hdmi0>;
61*4882a593Smuzhiyun				};
62*4882a593Smuzhiyun			};
63*4882a593Smuzhiyun			port@1 {
64*4882a593Smuzhiyun				reg = <1>;
65*4882a593Smuzhiyun				rcar_dw_hdmi0_out: endpoint {
66*4882a593Smuzhiyun					remote-endpoint = <&hdmi0_con>;
67*4882a593Smuzhiyun				};
68*4882a593Smuzhiyun			};
69*4882a593Smuzhiyun			port@2 {
70*4882a593Smuzhiyun				reg = <2>;
71*4882a593Smuzhiyun				rcar_dw_hdmi0_sound_in: endpoint {
72*4882a593Smuzhiyun					remote-endpoint = <&hdmi_sound_out>;
73*4882a593Smuzhiyun				};
74*4882a593Smuzhiyun			};
75*4882a593Smuzhiyun		};
76*4882a593Smuzhiyun	};
77*4882a593Smuzhiyun
78*4882a593Smuzhiyun	hdmi0-out {
79*4882a593Smuzhiyun		compatible = "hdmi-connector";
80*4882a593Smuzhiyun		label = "HDMI0 OUT";
81*4882a593Smuzhiyun		type = "a";
82*4882a593Smuzhiyun
83*4882a593Smuzhiyun		port {
84*4882a593Smuzhiyun			hdmi0_con: endpoint {
85*4882a593Smuzhiyun				remote-endpoint = <&rcar_dw_hdmi0_out>;
86*4882a593Smuzhiyun			};
87*4882a593Smuzhiyun		};
88*4882a593Smuzhiyun	};
89