blob: 44b817e43ad5e0453c8da597a3bf6cfd5764c0f6 [file] [log] [blame]
Shashank Babu Chinta Venkata24bdd052017-02-24 14:29:09 -08001/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
2 *
3 * This program is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License version 2 and
5 * only version 2 as published by the Free Software Foundation.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 */
12
13&mdss_mdp {
14 dsi_nt35597_truly_dsc_cmd: qcom,mdss_dsi_nt35597_dsc_cmd_truly {
15 qcom,mdss-dsi-panel-name =
16 "nt35597 cmd mode dsi truly panel with DSC";
17 qcom,mdss-dsi-panel-type = "dsi_cmd_mode";
18 qcom,mdss-dsi-panel-framerate = <60>;
19 qcom,mdss-dsi-virtual-channel-id = <0>;
20 qcom,mdss-dsi-stream = <0>;
21 qcom,mdss-dsi-panel-width = <1440>;
22 qcom,mdss-dsi-panel-height = <2560>;
23 qcom,mdss-dsi-h-front-porch = <100>;
24 qcom,mdss-dsi-h-back-porch = <32>;
25 qcom,mdss-dsi-h-pulse-width = <16>;
26 qcom,mdss-dsi-h-sync-skew = <0>;
27 qcom,mdss-dsi-v-back-porch = <8>;
28 qcom,mdss-dsi-v-front-porch = <10>;
29 qcom,mdss-dsi-v-pulse-width = <2>;
30 qcom,mdss-dsi-h-left-border = <0>;
31 qcom,mdss-dsi-h-right-border = <0>;
32 qcom,mdss-dsi-v-top-border = <0>;
33 qcom,mdss-dsi-v-bottom-border = <0>;
34 qcom,mdss-dsi-bpp = <24>;
35 qcom,mdss-dsi-color-order = "rgb_swap_rgb";
36 qcom,mdss-dsi-underflow-color = <0xff>;
37 qcom,mdss-dsi-border-color = <0>;
Ping Li15f1ec52017-07-07 15:11:02 -070038 qcom,mdss-dsi-panel-hdr-enabled;
39 qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000
40 17000 15500 30000 8000 3000>;
41 qcom,mdss-dsi-panel-peak-brightness = <4200000>;
42 qcom,mdss-dsi-panel-blackness-level = <3230>;
Shashank Babu Chinta Venkata24bdd052017-02-24 14:29:09 -080043 qcom,mdss-dsi-on-command = [
44 /* CMD2_P0 */
45 15 01 00 00 00 00 02 ff 20
46 15 01 00 00 00 00 02 fb 01
47 15 01 00 00 00 00 02 00 01
48 15 01 00 00 00 00 02 01 55
49 15 01 00 00 00 00 02 02 45
50 15 01 00 00 00 00 02 05 40
51 15 01 00 00 00 00 02 06 19
52 15 01 00 00 00 00 02 07 1e
53 15 01 00 00 00 00 02 0b 73
54 15 01 00 00 00 00 02 0c 73
55 15 01 00 00 00 00 02 0e b0
56 15 01 00 00 00 00 02 0f ae
57 15 01 00 00 00 00 02 11 b8
58 15 01 00 00 00 00 02 13 00
59 15 01 00 00 00 00 02 58 80
60 15 01 00 00 00 00 02 59 01
61 15 01 00 00 00 00 02 5a 00
62 15 01 00 00 00 00 02 5b 01
63 15 01 00 00 00 00 02 5c 80
64 15 01 00 00 00 00 02 5d 81
65 15 01 00 00 00 00 02 5e 00
66 15 01 00 00 00 00 02 5f 01
67 15 01 00 00 00 00 02 72 31
68 15 01 00 00 00 00 02 68 03
69 /* CMD2_P4 */
70 15 01 00 00 00 00 02 ff 24
71 15 01 00 00 00 00 02 fb 01
72 15 01 00 00 00 00 02 00 1c
73 15 01 00 00 00 00 02 01 0b
74 15 01 00 00 00 00 02 02 0c
75 15 01 00 00 00 00 02 03 01
76 15 01 00 00 00 00 02 04 0f
77 15 01 00 00 00 00 02 05 10
78 15 01 00 00 00 00 02 06 10
79 15 01 00 00 00 00 02 07 10
80 15 01 00 00 00 00 02 08 89
81 15 01 00 00 00 00 02 09 8a
82 15 01 00 00 00 00 02 0a 13
83 15 01 00 00 00 00 02 0b 13
84 15 01 00 00 00 00 02 0c 15
85 15 01 00 00 00 00 02 0d 15
86 15 01 00 00 00 00 02 0e 17
87 15 01 00 00 00 00 02 0f 17
88 15 01 00 00 00 00 02 10 1c
89 15 01 00 00 00 00 02 11 0b
90 15 01 00 00 00 00 02 12 0c
91 15 01 00 00 00 00 02 13 01
92 15 01 00 00 00 00 02 14 0f
93 15 01 00 00 00 00 02 15 10
94 15 01 00 00 00 00 02 16 10
95 15 01 00 00 00 00 02 17 10
96 15 01 00 00 00 00 02 18 89
97 15 01 00 00 00 00 02 19 8a
98 15 01 00 00 00 00 02 1a 13
99 15 01 00 00 00 00 02 1b 13
100 15 01 00 00 00 00 02 1c 15
101 15 01 00 00 00 00 02 1d 15
102 15 01 00 00 00 00 02 1e 17
103 15 01 00 00 00 00 02 1f 17
104 /* STV */
105 15 01 00 00 00 00 02 20 40
106 15 01 00 00 00 00 02 21 01
107 15 01 00 00 00 00 02 22 00
108 15 01 00 00 00 00 02 23 40
109 15 01 00 00 00 00 02 24 40
110 15 01 00 00 00 00 02 25 6d
111 15 01 00 00 00 00 02 26 40
112 15 01 00 00 00 00 02 27 40
113 /* Vend */
114 15 01 00 00 00 00 02 e0 00
115 15 01 00 00 00 00 02 dc 21
116 15 01 00 00 00 00 02 dd 22
117 15 01 00 00 00 00 02 de 07
118 15 01 00 00 00 00 02 df 07
119 15 01 00 00 00 00 02 e3 6D
120 15 01 00 00 00 00 02 e1 07
121 15 01 00 00 00 00 02 e2 07
122 /* UD */
123 15 01 00 00 00 00 02 29 d8
124 15 01 00 00 00 00 02 2a 2a
125 /* CLK */
126 15 01 00 00 00 00 02 4b 03
127 15 01 00 00 00 00 02 4c 11
128 15 01 00 00 00 00 02 4d 10
129 15 01 00 00 00 00 02 4e 01
130 15 01 00 00 00 00 02 4f 01
131 15 01 00 00 00 00 02 50 10
132 15 01 00 00 00 00 02 51 00
133 15 01 00 00 00 00 02 52 80
134 15 01 00 00 00 00 02 53 00
135 15 01 00 00 00 00 02 56 00
136 15 01 00 00 00 00 02 54 07
137 15 01 00 00 00 00 02 58 07
138 15 01 00 00 00 00 02 55 25
139 /* Reset XDONB */
140 15 01 00 00 00 00 02 5b 43
141 15 01 00 00 00 00 02 5c 00
142 15 01 00 00 00 00 02 5f 73
143 15 01 00 00 00 00 02 60 73
144 15 01 00 00 00 00 02 63 22
145 15 01 00 00 00 00 02 64 00
146 15 01 00 00 00 00 02 67 08
147 15 01 00 00 00 00 02 68 04
148 /* Resolution:1440x2560*/
149 15 01 00 00 00 00 02 72 02
150 /* mux */
151 15 01 00 00 00 00 02 7a 80
152 15 01 00 00 00 00 02 7b 91
153 15 01 00 00 00 00 02 7c D8
154 15 01 00 00 00 00 02 7d 60
155 15 01 00 00 00 00 02 7f 15
156 15 01 00 00 00 00 02 75 15
157 /* ABOFF */
158 15 01 00 00 00 00 02 b3 C0
159 15 01 00 00 00 00 02 b4 00
160 15 01 00 00 00 00 02 b5 00
161 /* Source EQ */
162 15 01 00 00 00 00 02 78 00
163 15 01 00 00 00 00 02 79 00
164 15 01 00 00 00 00 02 80 00
165 15 01 00 00 00 00 02 83 00
166 /* FP BP */
167 15 01 00 00 00 00 02 93 0a
168 15 01 00 00 00 00 02 94 0a
169 /* Inversion Type */
170 15 01 00 00 00 00 02 8a 00
171 15 01 00 00 00 00 02 9b ff
172 /* IMGSWAP =1 @PortSwap=1 */
173 15 01 00 00 00 00 02 9d b0
174 15 01 00 00 00 00 02 9f 63
175 15 01 00 00 00 00 02 98 10
176 /* FRM */
177 15 01 00 00 00 00 02 ec 00
178 /* CMD1 */
179 15 01 00 00 00 00 02 ff 10
180 /* VESA DSC PPS settings(1440x2560 slide 16H) */
181 39 01 00 00 00 00 11 c1 09 20 00 10 02 00 02 68
182 01 bb 00 0a 06 67 04 c5
183 39 01 00 00 00 00 03 c2 10 f0
184 /* C0h = 0x0(2 Port SDC)0x01(1 PortA FBC)
185 * 0x02(MTK) 0x03(1 PortA VESA)
186 */
187 15 01 00 00 00 00 02 c0 03
188 /* VBP+VSA=,VFP = 10H */
189 15 01 00 00 00 00 04 3b 03 0a 0a
190 /* FTE on */
191 15 01 00 00 00 00 02 35 00
192 /* EN_BK =1(auto black) */
193 15 01 00 00 00 00 02 e5 01
194 /* CMD mode(10) VDO mode(03) */
195 15 01 00 00 00 00 02 bb 10
196 /* Non Reload MTP */
197 15 01 00 00 00 00 02 fb 01
198 /* SlpOut + DispOn */
199 05 01 00 00 78 00 02 11 00
200 05 01 00 00 78 00 02 29 00
201 ];
202 qcom,mdss-dsi-off-command = [05 01 00 00 78 00 02 28 00
203 05 01 00 00 78 00 02 10 00];
204
205 qcom,mdss-dsi-on-command-state = "dsi_hs_mode";
206 qcom,mdss-dsi-off-command-state = "dsi_hs_mode";
207 qcom,mdss-dsi-h-sync-pulse = <0>;
208 qcom,mdss-dsi-traffic-mode = "non_burst_sync_event";
209 qcom,mdss-dsi-bllp-eof-power-mode;
210 qcom,mdss-dsi-bllp-power-mode;
211 qcom,mdss-dsi-lane-0-state;
212 qcom,mdss-dsi-lane-1-state;
213 qcom,mdss-dsi-lane-2-state;
214 qcom,mdss-dsi-lane-3-state;
215 qcom,mdss-dsi-dma-trigger = "trigger_sw";
216 qcom,mdss-dsi-mdp-trigger = "none";
217 qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>;
218
219 qcom,mdss-dsi-bl-max-level = <4095>;
220 qcom,adjust-timer-wakeup-ms = <1>;
221 qcom,mdss-dsi-te-pin-select = <1>;
222 qcom,mdss-dsi-wr-mem-start = <0x2c>;
223 qcom,mdss-dsi-wr-mem-continue = <0x3c>;
224 qcom,mdss-dsi-te-dcs-command = <1>;
225 qcom,mdss-dsi-te-check-enable;
226 qcom,mdss-dsi-te-using-te-pin;
227
228 qcom,compression-mode = "dsc";
Jeykumar Sankaranbfe3ed12017-04-24 18:53:54 -0700229 qcom,mdss-dsc-slice-height = <16>;
230 qcom,mdss-dsc-slice-width = <720>;
231 qcom,mdss-dsc-slice-per-pkt = <2>;
232 qcom,mdss-dsc-bit-per-component = <8>;
233 qcom,mdss-dsc-bit-per-pixel = <8>;
234 qcom,mdss-dsc-block-prediction-enable;
Shashank Babu Chinta Venkata24bdd052017-02-24 14:29:09 -0800235
Shashank Babu Chinta Venkata24bdd052017-02-24 14:29:09 -0800236 };
237};