Skip to content

Commit ad6d17e

Browse files
krzkrobherring
authored andcommitted
dt-bindings: display: samsung,exynos5-dp: convert to DT Schema
Convert Samsung Exynos5250/5420 SoC Display Port Controller bindings to DT schema with a change: add power-domains, already used in DTS. This Display Port controller is actually variant of Analogix Display Port bridge, however new DT Schema does not reference analogix,dp.yaml, because of incompatibilities in the driver. The analogix,dp.yaml expects two ports, input and output, but Linux Exynos DP DRM driver and DTS use only one port: output. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 4cece76 commit ad6d17e

File tree

2 files changed

+163
-112
lines changed

2 files changed

+163
-112
lines changed

Documentation/devicetree/bindings/display/exynos/exynos_dp.txt

Lines changed: 0 additions & 112 deletions
This file was deleted.
Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/display/samsung/samsung,exynos5-dp.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Samsung Exynos5250/Exynos5420 SoC Display Port
8+
9+
maintainers:
10+
- Inki Dae <[email protected]>
11+
- Seung-Woo Kim <[email protected]>
12+
- Kyungmin Park <[email protected]>
13+
- Krzysztof Kozlowski <[email protected]>
14+
15+
properties:
16+
compatible:
17+
const: samsung,exynos5-dp
18+
19+
reg:
20+
maxItems: 1
21+
22+
clocks:
23+
maxItems: 1
24+
25+
clock-names:
26+
items:
27+
- const: dp
28+
29+
display-timings:
30+
$ref: /schemas/display/panel/display-timings.yaml#
31+
32+
interrupts:
33+
maxItems: 1
34+
35+
hpd-gpios:
36+
description:
37+
Hotplug detect GPIO.
38+
Indicates which GPIO should be used for hotplug detection
39+
40+
phys:
41+
maxItems: 1
42+
43+
phy-names:
44+
items:
45+
- const: dp
46+
47+
power-domains:
48+
maxItems: 1
49+
50+
interlaced:
51+
type: boolean
52+
deprecated: true
53+
description:
54+
Interlace scan mode. Progressive if defined, interlaced if not defined.
55+
56+
vsync-active-high:
57+
type: boolean
58+
deprecated: true
59+
description:
60+
VSYNC polarity configuration. High if defined, low if not defined
61+
62+
hsync-active-high:
63+
type: boolean
64+
deprecated: true
65+
description:
66+
HSYNC polarity configuration. High if defined, low if not defined
67+
68+
ports:
69+
$ref: /schemas/graph.yaml#/properties/ports
70+
71+
properties:
72+
port:
73+
$ref: /schemas/graph.yaml#/properties/port
74+
description:
75+
Port node with one endpoint connected to a dp-connector node.
76+
77+
required:
78+
- port
79+
80+
samsung,hpd-gpios:
81+
maxItems: 1
82+
deprecated: true
83+
84+
samsung,ycbcr-coeff:
85+
$ref: /schemas/types.yaml#/definitions/uint32
86+
deprecated: true
87+
description:
88+
Deprecated prop that can parsed from drm_display_mode.
89+
90+
samsung,dynamic-range:
91+
$ref: /schemas/types.yaml#/definitions/uint32
92+
deprecated: true
93+
description:
94+
Deprecated prop that can parsed from drm_display_mode.
95+
96+
samsung,color-space:
97+
$ref: /schemas/types.yaml#/definitions/uint32
98+
deprecated: true
99+
description:
100+
Deprecated prop that can parsed from drm_display_info.
101+
102+
samsung,color-depth:
103+
$ref: /schemas/types.yaml#/definitions/uint32
104+
deprecated: true
105+
description:
106+
Deprecated prop that can parsed from drm_display_info.
107+
108+
samsung,link-rate:
109+
$ref: /schemas/types.yaml#/definitions/uint32
110+
deprecated: true
111+
description:
112+
Deprecated prop that can reading from monitor by dpcd method.
113+
114+
samsung,lane-count:
115+
$ref: /schemas/types.yaml#/definitions/uint32
116+
deprecated: true
117+
description:
118+
Deprecated prop that can reading from monitor by dpcd method.
119+
120+
required:
121+
- compatible
122+
- reg
123+
- clocks
124+
- clock-names
125+
- interrupts
126+
- phys
127+
- phy-names
128+
129+
additionalProperties: false
130+
131+
examples:
132+
- |
133+
#include <dt-bindings/clock/exynos5250.h>
134+
#include <dt-bindings/gpio/gpio.h>
135+
#include <dt-bindings/interrupt-controller/arm-gic.h>
136+
137+
dp-controller@145b0000 {
138+
compatible = "samsung,exynos5-dp";
139+
reg = <0x145b0000 0x1000>;
140+
clocks = <&clock CLK_DP>;
141+
clock-names = "dp";
142+
interrupts = <10 3>;
143+
interrupt-parent = <&combiner>;
144+
phys = <&dp_phy>;
145+
phy-names = "dp";
146+
pinctrl-0 = <&dp_hpd>;
147+
pinctrl-names = "default";
148+
power-domains = <&pd_disp1>;
149+
150+
samsung,color-space = <0>;
151+
samsung,color-depth = <1>;
152+
samsung,link-rate = <0x0a>;
153+
samsung,lane-count = <2>;
154+
hpd-gpios = <&gpx0 7 GPIO_ACTIVE_HIGH>;
155+
156+
ports {
157+
port {
158+
dp_out: endpoint {
159+
remote-endpoint = <&bridge_in>;
160+
};
161+
};
162+
};
163+
};

0 commit comments

Comments
 (0)