Skip to content

Commit 391ce40

Browse files
author
Laurent Pinchart
committed
dt-bindings: display: bridge: renesas,dw-hdmi: Convert binding to YAML
Convert the Renesas R-Car DWC HDMI TX text binding to YAML. Signed-off-by: Laurent Pinchart <[email protected]> Reviewed-by: Rob Herring <[email protected]>
1 parent 7f9321f commit 391ce40

File tree

3 files changed

+126
-89
lines changed

3 files changed

+126
-89
lines changed

Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.txt

Lines changed: 0 additions & 88 deletions
This file was deleted.
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/display/bridge/renesas,dw-hdmi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Renesas R-Car DWC HDMI TX Encoder
8+
9+
maintainers:
10+
- Laurent Pinchart <[email protected]>
11+
12+
description: |
13+
The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP
14+
with a companion PHY IP.
15+
16+
allOf:
17+
- $ref: synopsys,dw-hdmi.yaml#
18+
19+
properties:
20+
compatible:
21+
items:
22+
- enum:
23+
- renesas,r8a774a1-hdmi # for RZ/G2M compatible HDMI TX
24+
- renesas,r8a774b1-hdmi # for RZ/G2N compatible HDMI TX
25+
- renesas,r8a774e1-hdmi # for RZ/G2H compatible HDMI TX
26+
- renesas,r8a7795-hdmi # for R-Car H3 compatible HDMI TX
27+
- renesas,r8a7796-hdmi # for R-Car M3-W compatible HDMI TX
28+
- renesas,r8a77961-hdmi # for R-Car M3-W+ compatible HDMI TX
29+
- renesas,r8a77965-hdmi # for R-Car M3-N compatible HDMI TX
30+
- const: renesas,rcar-gen3-hdmi
31+
32+
reg-io-width:
33+
const: 1
34+
35+
clocks:
36+
maxItems: 2
37+
38+
clock-names:
39+
maxItems: 2
40+
41+
ports:
42+
$ref: /schemas/graph.yaml#/properties/ports
43+
44+
properties:
45+
port@0:
46+
$ref: /schemas/graph.yaml#/properties/port
47+
description: Parallel RGB input port
48+
49+
port@1:
50+
$ref: /schemas/graph.yaml#/properties/port
51+
description: HDMI output port
52+
53+
port@2:
54+
$ref: /schemas/graph.yaml#/properties/port
55+
description: Sound input port
56+
57+
required:
58+
- port@0
59+
- port@1
60+
- port@2
61+
62+
power-domains:
63+
maxItems: 1
64+
65+
required:
66+
- compatible
67+
- reg
68+
- clocks
69+
- clock-names
70+
- interrupts
71+
- ports
72+
73+
unevaluatedProperties: false
74+
75+
examples:
76+
- |
77+
#include <dt-bindings/clock/r8a7795-cpg-mssr.h>
78+
#include <dt-bindings/interrupt-controller/irq.h>
79+
#include <dt-bindings/power/r8a7795-sysc.h>
80+
81+
hdmi@fead0000 {
82+
compatible = "renesas,r8a7795-hdmi", "renesas,rcar-gen3-hdmi";
83+
reg = <0xfead0000 0x10000>;
84+
interrupts = <0 389 IRQ_TYPE_LEVEL_HIGH>;
85+
clocks = <&cpg CPG_CORE R8A7795_CLK_S0D4>, <&cpg CPG_MOD 729>;
86+
clock-names = "iahb", "isfr";
87+
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
88+
89+
ports {
90+
#address-cells = <1>;
91+
#size-cells = <0>;
92+
port@0 {
93+
reg = <0>;
94+
dw_hdmi0_in: endpoint {
95+
remote-endpoint = <&du_out_hdmi0>;
96+
};
97+
};
98+
port@1 {
99+
reg = <1>;
100+
rcar_dw_hdmi0_out: endpoint {
101+
remote-endpoint = <&hdmi0_con>;
102+
};
103+
};
104+
port@2 {
105+
reg = <2>;
106+
rcar_dw_hdmi0_sound_in: endpoint {
107+
remote-endpoint = <&hdmi_sound_out>;
108+
};
109+
};
110+
};
111+
};
112+
113+
hdmi0-out {
114+
compatible = "hdmi-connector";
115+
label = "HDMI0 OUT";
116+
type = "a";
117+
118+
port {
119+
hdmi0_con: endpoint {
120+
remote-endpoint = <&rcar_dw_hdmi0_out>;
121+
};
122+
};
123+
};
124+
125+
...

MAINTAINERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5988,7 +5988,7 @@ L: [email protected]
59885988
59895989
S: Supported
59905990
T: git git://linuxtv.org/pinchartl/media drm/du/next
5991-
F: Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.txt
5991+
F: Documentation/devicetree/bindings/display/bridge/renesas,dw-hdmi.yaml
59925992
F: Documentation/devicetree/bindings/display/bridge/renesas,lvds.yaml
59935993
F: Documentation/devicetree/bindings/display/renesas,du.yaml
59945994
F: drivers/gpu/drm/rcar-du/

0 commit comments

Comments
 (0)