blob: ade5d8eebf85e509132dad456dc2be838903a12c [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)
Yakir Yang5cff0072016-02-15 19:11:15 +080059 force-hpd (optional)
Ajay Kumar80185562015-01-20 22:08:46 +053060
Yakir Yang70433062016-02-15 19:10:26 +080061Deprecated properties for DisplayPort:
62-interlaced: deprecated prop that can parsed from drm_display_mode.
63-vsync-active-high: deprecated prop that can parsed from drm_display_mode.
64-hsync-active-high: deprecated prop that can parsed from drm_display_mode.
65-samsung,ycbcr-coeff: deprecated prop that can parsed from drm_display_mode.
66-samsung,dynamic-range: deprecated prop that can parsed from drm_display_mode.
67-samsung,color-space: deprecated prop that can parsed from drm_display_info.
68-samsung,color-depth: deprecated prop that can parsed from drm_display_info.
69-samsung,link-rate: deprecated prop that can reading from monitor by dpcd method.
70-samsung,lane-count: deprecated prop that can reading from monitor by dpcd method.
71-samsung,hpd-gpio: deprecated name for hpd-gpios.
72
73-------------------------------------------------------------------------------
Ajay Kumar825e90d2012-10-13 05:48:00 +090074
75Example:
76
77SOC specific portion:
78 dp-controller {
79 compatible = "samsung,exynos5-dp";
80 reg = <0x145b0000 0x10000>;
81 interrupts = <10 3>;
82 interrupt-parent = <&combiner>;
Jingoo Han60e69852013-06-10 17:38:32 +090083 clocks = <&clock 342>;
84 clock-names = "dp";
Ajay Kumar825e90d2012-10-13 05:48:00 +090085
Jingoo Han8114fab2013-10-16 21:58:16 +053086 phys = <&dp_phy>;
87 phy-names = "dp";
Ajay Kumar825e90d2012-10-13 05:48:00 +090088 };
89
90Board Specific portion:
91 dp-controller {
Sean Paul1417f102014-01-30 16:19:23 -050092 display-timings {
93 native-mode = <&lcd_timing>;
94 lcd_timing: 1366x768 {
95 clock-frequency = <70589280>;
96 hactive = <1366>;
97 vactive = <768>;
98 hfront-porch = <40>;
99 hback-porch = <40>;
100 hsync-len = <32>;
101 vback-porch = <10>;
102 vfront-porch = <12>;
103 vsync-len = <6>;
104 };
105 };
Ajay Kumar80185562015-01-20 22:08:46 +0530106
107 ports {
Yakir Yang70433062016-02-15 19:10:26 +0800108 port@0 {
Ajay Kumar80185562015-01-20 22:08:46 +0530109 dp_out: endpoint {
Yakir Yang70433062016-02-15 19:10:26 +0800110 remote-endpoint = <&bridge_in>;
Ajay Kumar80185562015-01-20 22:08:46 +0530111 };
112 };
113 };
Ajay Kumar825e90d2012-10-13 05:48:00 +0900114 };