blob: 7a3a9cdb86ab2877c3f5df402fc1ea0a5d64f01c [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 -samsung,color-space:
35 input video data format.
36 COLOR_RGB = 0, COLOR_YCBCR422 = 1, COLOR_YCBCR444 = 2
37 -samsung,dynamic-range:
38 dynamic range for input video data.
39 VESA = 0, CEA = 1
40 -samsung,ycbcr-coeff:
41 YCbCr co-efficients for input video.
42 COLOR_YCBCR601 = 0, COLOR_YCBCR709 = 1
43 -samsung,color-depth:
44 number of bits per colour component.
45 COLOR_6 = 0, COLOR_8 = 1, COLOR_10 = 2, COLOR_12 = 3
46 -samsung,link-rate:
47 link rate supported by the panel.
48 LINK_RATE_1_62GBPS = 0x6, LINK_RATE_2_70GBPS = 0x0A
49 -samsung,lane-count:
50 number of lanes supported by the panel.
51 LANE_COUNT1 = 1, LANE_COUNT2 = 2, LANE_COUNT4 = 4
Sean Paul1417f102014-01-30 16:19:23 -050052 - display-timings: timings for the connected panel as described by
53 Documentation/devicetree/bindings/video/display-timing.txt
Ajay Kumar825e90d2012-10-13 05:48:00 +090054
55Optional properties for dp-controller:
56 -interlaced:
57 interlace scan mode.
58 Progressive if defined, Interlaced if not defined
59 -vsync-active-high:
60 VSYNC polarity configuration.
61 High if defined, Low if not defined
62 -hsync-active-high:
63 HSYNC polarity configuration.
64 High if defined, Low if not defined
Andrew Brestickerb8b52472014-04-22 04:09:10 +053065 -samsung,hpd-gpio:
66 Hotplug detect GPIO.
67 Indicates which GPIO should be used for hotplug
68 detection
Ajay Kumar80185562015-01-20 22:08:46 +053069 -video interfaces: Device node can contain video interface port
70 nodes according to [1].
71
72[1]: Documentation/devicetree/bindings/media/video-interfaces.txt
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 {
91 samsung,color-space = <0>;
92 samsung,dynamic-range = <0>;
93 samsung,ycbcr-coeff = <0>;
94 samsung,color-depth = <1>;
95 samsung,link-rate = <0x0a>;
96 samsung,lane-count = <4>;
Sean Paul1417f102014-01-30 16:19:23 -050097
98 display-timings {
99 native-mode = <&lcd_timing>;
100 lcd_timing: 1366x768 {
101 clock-frequency = <70589280>;
102 hactive = <1366>;
103 vactive = <768>;
104 hfront-porch = <40>;
105 hback-porch = <40>;
106 hsync-len = <32>;
107 vback-porch = <10>;
108 vfront-porch = <12>;
109 vsync-len = <6>;
110 };
111 };
Ajay Kumar80185562015-01-20 22:08:46 +0530112
113 ports {
114 port@0 {
115 dp_out: endpoint {
116 remote-endpoint = <&bridge_in>;
117 };
118 };
119 };
Ajay Kumar825e90d2012-10-13 05:48:00 +0900120 };