blob: 4fa8aca6a545a772010bbbe953cbdcf5a649e9de [file] [log] [blame]
Ajay Kumar825e90d2012-10-13 05:48:00 +09001The Exynos display port interface should be configured based on
2the type of panel connected to it.
3
4We use two nodes:
5 -dp-controller node
6 -dptx-phy node(defined inside dp-controller node)
7
8For the DP-PHY initialization, we use the dptx-phy node.
Jingoo Han8114fab2013-10-16 21:58:16 +05309Required properties for dptx-phy: deprecated, use phys and phy-names
10 -reg: deprecated
Ajay Kumar825e90d2012-10-13 05:48:00 +090011 Base address of DP PHY register.
Jingoo Han8114fab2013-10-16 21:58:16 +053012 -samsung,enable-mask: deprecated
Ajay Kumar825e90d2012-10-13 05:48:00 +090013 The bit-mask used to enable/disable DP PHY.
14
15For the Panel initialization, we read data from dp-controller node.
16Required properties for dp-controller:
17 -compatible:
18 should be "samsung,exynos5-dp".
19 -reg:
20 physical base address of the controller and length
21 of memory mapped region.
22 -interrupts:
23 interrupt combiner values.
Jingoo Han60e69852013-06-10 17:38:32 +090024 -clocks:
25 from common clock binding: handle to dp clock.
26 -clock-names:
27 from common clock binding: Shall be "dp".
Ajay Kumar825e90d2012-10-13 05:48:00 +090028 -interrupt-parent:
29 phandle to Interrupt combiner node.
Jingoo Han8114fab2013-10-16 21:58:16 +053030 -phys:
31 from general PHY binding: the phandle for the PHY device.
32 -phy-names:
33 from general PHY binding: Should be "dp".
Ajay Kumar825e90d2012-10-13 05:48:00 +090034
35Optional properties for dp-controller:
36 -interlaced:
37 interlace scan mode.
38 Progressive if defined, Interlaced if not defined
39 -vsync-active-high:
40 VSYNC polarity configuration.
41 High if defined, Low if not defined
42 -hsync-active-high:
43 HSYNC polarity configuration.
44 High if defined, Low if not defined
Andrew Brestickerb8b52472014-04-22 04:09:10 +053045 -samsung,hpd-gpio:
46 Hotplug detect GPIO.
47 Indicates which GPIO should be used for hotplug
48 detection
Yakir Yang70433062016-02-15 19:10:26 +080049 -video interfaces: Device node can contain video interface port
50 nodes according to [1].
51 - display-timings: timings for the connected panel as described by
52 Documentation/devicetree/bindings/display/panel/display-timing.txt
Inki Dae2400fc12015-12-03 16:54:45 +090053
Yakir Yang70433062016-02-15 19:10:26 +080054For the below properties, please refer to Analogix DP binding document:
55 * Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
56 -phys (required)
57 -phy-names (required)
58 -hpd-gpios (optional)
Ajay Kumar80185562015-01-20 22:08:46 +053059
Yakir Yang70433062016-02-15 19:10:26 +080060Deprecated properties for DisplayPort:
61-interlaced: deprecated prop that can parsed from drm_display_mode.
62-vsync-active-high: deprecated prop that can parsed from drm_display_mode.
63-hsync-active-high: deprecated prop that can parsed from drm_display_mode.
64-samsung,ycbcr-coeff: deprecated prop that can parsed from drm_display_mode.
65-samsung,dynamic-range: deprecated prop that can parsed from drm_display_mode.
66-samsung,color-space: deprecated prop that can parsed from drm_display_info.
67-samsung,color-depth: deprecated prop that can parsed from drm_display_info.
68-samsung,link-rate: deprecated prop that can reading from monitor by dpcd method.
69-samsung,lane-count: deprecated prop that can reading from monitor by dpcd method.
70-samsung,hpd-gpio: deprecated name for hpd-gpios.
71
72-------------------------------------------------------------------------------
Ajay Kumar825e90d2012-10-13 05:48:00 +090073
74Example:
75
76SOC specific portion:
77 dp-controller {
78 compatible = "samsung,exynos5-dp";
79 reg = <0x145b0000 0x10000>;
80 interrupts = <10 3>;
81 interrupt-parent = <&combiner>;
Jingoo Han60e69852013-06-10 17:38:32 +090082 clocks = <&clock 342>;
83 clock-names = "dp";
Ajay Kumar825e90d2012-10-13 05:48:00 +090084
Jingoo Han8114fab2013-10-16 21:58:16 +053085 phys = <&dp_phy>;
86 phy-names = "dp";
Ajay Kumar825e90d2012-10-13 05:48:00 +090087 };
88
89Board Specific portion:
90 dp-controller {
Sean Paul1417f102014-01-30 16:19:23 -050091 display-timings {
92 native-mode = <&lcd_timing>;
93 lcd_timing: 1366x768 {
94 clock-frequency = <70589280>;
95 hactive = <1366>;
96 vactive = <768>;
97 hfront-porch = <40>;
98 hback-porch = <40>;
99 hsync-len = <32>;
100 vback-porch = <10>;
101 vfront-porch = <12>;
102 vsync-len = <6>;
103 };
104 };
Ajay Kumar80185562015-01-20 22:08:46 +0530105
106 ports {
Yakir Yang70433062016-02-15 19:10:26 +0800107 port@0 {
Ajay Kumar80185562015-01-20 22:08:46 +0530108 dp_out: endpoint {
Yakir Yang70433062016-02-15 19:10:26 +0800109 remote-endpoint = <&bridge_in>;
Ajay Kumar80185562015-01-20 22:08:46 +0530110 };
111 };
112 };
Ajay Kumar825e90d2012-10-13 05:48:00 +0900113 };