Shashank Babu Chinta Venkata | 24bdd05 | 2017-02-24 14:29:09 -0800 | [diff] [blame] | 1 | /* 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"; |
Shashank Babu Chinta Venkata | 24bdd05 | 2017-02-24 14:29:09 -0800 | [diff] [blame] | 18 | qcom,mdss-dsi-virtual-channel-id = <0>; |
| 19 | qcom,mdss-dsi-stream = <0>; |
Vara Reddy | eb2f016 | 2017-07-17 13:02:42 -0700 | [diff] [blame] | 20 | qcom,mdss-pan-physical-width-dimension = <74>; |
| 21 | qcom,mdss-pan-physical-height-dimension = <131>; |
Shashank Babu Chinta Venkata | 24bdd05 | 2017-02-24 14:29:09 -0800 | [diff] [blame] | 22 | qcom,mdss-dsi-bpp = <24>; |
| 23 | qcom,mdss-dsi-color-order = "rgb_swap_rgb"; |
| 24 | qcom,mdss-dsi-underflow-color = <0xff>; |
| 25 | qcom,mdss-dsi-border-color = <0>; |
Ping Li | 15f1ec5 | 2017-07-07 15:11:02 -0700 | [diff] [blame] | 26 | qcom,mdss-dsi-panel-hdr-enabled; |
| 27 | qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 |
| 28 | 17000 15500 30000 8000 3000>; |
| 29 | qcom,mdss-dsi-panel-peak-brightness = <4200000>; |
| 30 | qcom,mdss-dsi-panel-blackness-level = <3230>; |
Shashank Babu Chinta Venkata | 24bdd05 | 2017-02-24 14:29:09 -0800 | [diff] [blame] | 31 | qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; |
| 32 | qcom,mdss-dsi-bllp-eof-power-mode; |
| 33 | qcom,mdss-dsi-bllp-power-mode; |
| 34 | qcom,mdss-dsi-lane-0-state; |
| 35 | qcom,mdss-dsi-lane-1-state; |
| 36 | qcom,mdss-dsi-lane-2-state; |
| 37 | qcom,mdss-dsi-lane-3-state; |
| 38 | qcom,mdss-dsi-dma-trigger = "trigger_sw"; |
| 39 | qcom,mdss-dsi-mdp-trigger = "none"; |
| 40 | qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; |
Shashank Babu Chinta Venkata | 24bdd05 | 2017-02-24 14:29:09 -0800 | [diff] [blame] | 41 | qcom,mdss-dsi-bl-max-level = <4095>; |
| 42 | qcom,adjust-timer-wakeup-ms = <1>; |
| 43 | qcom,mdss-dsi-te-pin-select = <1>; |
| 44 | qcom,mdss-dsi-wr-mem-start = <0x2c>; |
| 45 | qcom,mdss-dsi-wr-mem-continue = <0x3c>; |
| 46 | qcom,mdss-dsi-te-dcs-command = <1>; |
| 47 | qcom,mdss-dsi-te-check-enable; |
| 48 | qcom,mdss-dsi-te-using-te-pin; |
| 49 | |
Jeykumar Sankaran | 446a5f1 | 2017-05-09 20:30:39 -0700 | [diff] [blame] | 50 | qcom,mdss-dsi-display-timings { |
| 51 | timing@0{ |
| 52 | qcom,mdss-dsi-panel-framerate = <60>; |
| 53 | qcom,mdss-dsi-panel-width = <1440>; |
| 54 | qcom,mdss-dsi-panel-height = <2560>; |
| 55 | qcom,mdss-dsi-h-front-porch = <100>; |
| 56 | qcom,mdss-dsi-h-back-porch = <32>; |
| 57 | qcom,mdss-dsi-h-pulse-width = <16>; |
| 58 | qcom,mdss-dsi-h-sync-skew = <0>; |
| 59 | qcom,mdss-dsi-v-back-porch = <8>; |
| 60 | qcom,mdss-dsi-v-front-porch = <10>; |
| 61 | qcom,mdss-dsi-v-pulse-width = <2>; |
| 62 | qcom,mdss-dsi-h-left-border = <0>; |
| 63 | qcom,mdss-dsi-h-right-border = <0>; |
| 64 | qcom,mdss-dsi-v-top-border = <0>; |
| 65 | qcom,mdss-dsi-v-bottom-border = <0>; |
| 66 | qcom,mdss-dsi-panel-jitter = <0x1 0x1>; |
| 67 | qcom,mdss-dsi-on-command = [ |
| 68 | /* CMD2_P0 */ |
| 69 | 15 01 00 00 00 00 02 ff 20 |
| 70 | 15 01 00 00 00 00 02 fb 01 |
| 71 | 15 01 00 00 00 00 02 00 01 |
| 72 | 15 01 00 00 00 00 02 01 55 |
| 73 | 15 01 00 00 00 00 02 02 45 |
| 74 | 15 01 00 00 00 00 02 05 40 |
| 75 | 15 01 00 00 00 00 02 06 19 |
| 76 | 15 01 00 00 00 00 02 07 1e |
| 77 | 15 01 00 00 00 00 02 0b 73 |
| 78 | 15 01 00 00 00 00 02 0c 73 |
| 79 | 15 01 00 00 00 00 02 0e b0 |
| 80 | 15 01 00 00 00 00 02 0f ae |
| 81 | 15 01 00 00 00 00 02 11 b8 |
| 82 | 15 01 00 00 00 00 02 13 00 |
| 83 | 15 01 00 00 00 00 02 58 80 |
| 84 | 15 01 00 00 00 00 02 59 01 |
| 85 | 15 01 00 00 00 00 02 5a 00 |
| 86 | 15 01 00 00 00 00 02 5b 01 |
| 87 | 15 01 00 00 00 00 02 5c 80 |
| 88 | 15 01 00 00 00 00 02 5d 81 |
| 89 | 15 01 00 00 00 00 02 5e 00 |
| 90 | 15 01 00 00 00 00 02 5f 01 |
Sandeep Panda | a48575e | 2017-08-03 15:31:20 +0530 | [diff] [blame] | 91 | 15 01 00 00 00 00 02 72 11 |
Jeykumar Sankaran | 446a5f1 | 2017-05-09 20:30:39 -0700 | [diff] [blame] | 92 | 15 01 00 00 00 00 02 68 03 |
| 93 | /* CMD2_P4 */ |
| 94 | 15 01 00 00 00 00 02 ff 24 |
| 95 | 15 01 00 00 00 00 02 fb 01 |
| 96 | 15 01 00 00 00 00 02 00 1c |
| 97 | 15 01 00 00 00 00 02 01 0b |
| 98 | 15 01 00 00 00 00 02 02 0c |
| 99 | 15 01 00 00 00 00 02 03 01 |
| 100 | 15 01 00 00 00 00 02 04 0f |
| 101 | 15 01 00 00 00 00 02 05 10 |
| 102 | 15 01 00 00 00 00 02 06 10 |
| 103 | 15 01 00 00 00 00 02 07 10 |
| 104 | 15 01 00 00 00 00 02 08 89 |
| 105 | 15 01 00 00 00 00 02 09 8a |
| 106 | 15 01 00 00 00 00 02 0a 13 |
| 107 | 15 01 00 00 00 00 02 0b 13 |
| 108 | 15 01 00 00 00 00 02 0c 15 |
| 109 | 15 01 00 00 00 00 02 0d 15 |
| 110 | 15 01 00 00 00 00 02 0e 17 |
| 111 | 15 01 00 00 00 00 02 0f 17 |
| 112 | 15 01 00 00 00 00 02 10 1c |
| 113 | 15 01 00 00 00 00 02 11 0b |
| 114 | 15 01 00 00 00 00 02 12 0c |
| 115 | 15 01 00 00 00 00 02 13 01 |
| 116 | 15 01 00 00 00 00 02 14 0f |
| 117 | 15 01 00 00 00 00 02 15 10 |
| 118 | 15 01 00 00 00 00 02 16 10 |
| 119 | 15 01 00 00 00 00 02 17 10 |
| 120 | 15 01 00 00 00 00 02 18 89 |
| 121 | 15 01 00 00 00 00 02 19 8a |
| 122 | 15 01 00 00 00 00 02 1a 13 |
| 123 | 15 01 00 00 00 00 02 1b 13 |
| 124 | 15 01 00 00 00 00 02 1c 15 |
| 125 | 15 01 00 00 00 00 02 1d 15 |
| 126 | 15 01 00 00 00 00 02 1e 17 |
| 127 | 15 01 00 00 00 00 02 1f 17 |
| 128 | /* STV */ |
| 129 | 15 01 00 00 00 00 02 20 40 |
| 130 | 15 01 00 00 00 00 02 21 01 |
| 131 | 15 01 00 00 00 00 02 22 00 |
| 132 | 15 01 00 00 00 00 02 23 40 |
| 133 | 15 01 00 00 00 00 02 24 40 |
| 134 | 15 01 00 00 00 00 02 25 6d |
| 135 | 15 01 00 00 00 00 02 26 40 |
| 136 | 15 01 00 00 00 00 02 27 40 |
| 137 | /* Vend */ |
| 138 | 15 01 00 00 00 00 02 e0 00 |
| 139 | 15 01 00 00 00 00 02 dc 21 |
| 140 | 15 01 00 00 00 00 02 dd 22 |
| 141 | 15 01 00 00 00 00 02 de 07 |
| 142 | 15 01 00 00 00 00 02 df 07 |
| 143 | 15 01 00 00 00 00 02 e3 6D |
| 144 | 15 01 00 00 00 00 02 e1 07 |
| 145 | 15 01 00 00 00 00 02 e2 07 |
| 146 | /* UD */ |
| 147 | 15 01 00 00 00 00 02 29 d8 |
| 148 | 15 01 00 00 00 00 02 2a 2a |
| 149 | /* CLK */ |
| 150 | 15 01 00 00 00 00 02 4b 03 |
| 151 | 15 01 00 00 00 00 02 4c 11 |
| 152 | 15 01 00 00 00 00 02 4d 10 |
| 153 | 15 01 00 00 00 00 02 4e 01 |
| 154 | 15 01 00 00 00 00 02 4f 01 |
| 155 | 15 01 00 00 00 00 02 50 10 |
| 156 | 15 01 00 00 00 00 02 51 00 |
| 157 | 15 01 00 00 00 00 02 52 80 |
| 158 | 15 01 00 00 00 00 02 53 00 |
| 159 | 15 01 00 00 00 00 02 56 00 |
| 160 | 15 01 00 00 00 00 02 54 07 |
| 161 | 15 01 00 00 00 00 02 58 07 |
| 162 | 15 01 00 00 00 00 02 55 25 |
| 163 | /* Reset XDONB */ |
| 164 | 15 01 00 00 00 00 02 5b 43 |
| 165 | 15 01 00 00 00 00 02 5c 00 |
| 166 | 15 01 00 00 00 00 02 5f 73 |
| 167 | 15 01 00 00 00 00 02 60 73 |
| 168 | 15 01 00 00 00 00 02 63 22 |
| 169 | 15 01 00 00 00 00 02 64 00 |
| 170 | 15 01 00 00 00 00 02 67 08 |
| 171 | 15 01 00 00 00 00 02 68 04 |
| 172 | /* Resolution:1440x2560*/ |
| 173 | 15 01 00 00 00 00 02 72 02 |
| 174 | /* mux */ |
| 175 | 15 01 00 00 00 00 02 7a 80 |
| 176 | 15 01 00 00 00 00 02 7b 91 |
| 177 | 15 01 00 00 00 00 02 7c D8 |
| 178 | 15 01 00 00 00 00 02 7d 60 |
| 179 | 15 01 00 00 00 00 02 7f 15 |
| 180 | 15 01 00 00 00 00 02 75 15 |
| 181 | /* ABOFF */ |
| 182 | 15 01 00 00 00 00 02 b3 C0 |
| 183 | 15 01 00 00 00 00 02 b4 00 |
| 184 | 15 01 00 00 00 00 02 b5 00 |
| 185 | /* Source EQ */ |
| 186 | 15 01 00 00 00 00 02 78 00 |
| 187 | 15 01 00 00 00 00 02 79 00 |
| 188 | 15 01 00 00 00 00 02 80 00 |
| 189 | 15 01 00 00 00 00 02 83 00 |
| 190 | /* FP BP */ |
| 191 | 15 01 00 00 00 00 02 93 0a |
| 192 | 15 01 00 00 00 00 02 94 0a |
| 193 | /* Inversion Type */ |
| 194 | 15 01 00 00 00 00 02 8a 00 |
| 195 | 15 01 00 00 00 00 02 9b ff |
| 196 | /* IMGSWAP =1 @PortSwap=1 */ |
| 197 | 15 01 00 00 00 00 02 9d b0 |
| 198 | 15 01 00 00 00 00 02 9f 63 |
| 199 | 15 01 00 00 00 00 02 98 10 |
| 200 | /* FRM */ |
| 201 | 15 01 00 00 00 00 02 ec 00 |
| 202 | /* CMD1 */ |
| 203 | 15 01 00 00 00 00 02 ff 10 |
| 204 | /* VESA DSC PPS settings |
| 205 | * (1440x2560 slide 16H) |
| 206 | */ |
| 207 | 39 01 00 00 00 00 11 c1 09 |
| 208 | 20 00 10 02 00 02 68 01 bb |
| 209 | 00 0a 06 67 04 c5 |
Shashank Babu Chinta Venkata | 24bdd05 | 2017-02-24 14:29:09 -0800 | [diff] [blame] | 210 | |
Jeykumar Sankaran | 446a5f1 | 2017-05-09 20:30:39 -0700 | [diff] [blame] | 211 | 39 01 00 00 00 00 03 c2 10 f0 |
| 212 | /* C0h = 0x0(2 Port SDC) |
| 213 | * 0x01(1 PortA FBC) |
| 214 | * 0x02(MTK) 0x03(1 PortA VESA) |
| 215 | */ |
| 216 | 15 01 00 00 00 00 02 c0 03 |
| 217 | /* VBP+VSA=,VFP = 10H */ |
| 218 | 15 01 00 00 00 00 04 3b 03 0a 0a |
| 219 | /* FTE on */ |
| 220 | 15 01 00 00 00 00 02 35 00 |
| 221 | /* EN_BK =1(auto black) */ |
| 222 | 15 01 00 00 00 00 02 e5 01 |
| 223 | /* CMD mode(10) VDO mode(03) */ |
| 224 | 15 01 00 00 00 00 02 bb 10 |
| 225 | /* Non Reload MTP */ |
| 226 | 15 01 00 00 00 00 02 fb 01 |
| 227 | /* SlpOut + DispOn */ |
| 228 | 05 01 00 00 78 00 02 11 00 |
| 229 | 05 01 00 00 78 00 02 29 00 |
| 230 | ]; |
| 231 | qcom,mdss-dsi-off-command = [05 01 00 00 78 00 |
| 232 | 02 28 00 05 01 00 00 78 00 02 10 00]; |
| 233 | |
| 234 | qcom,mdss-dsi-on-command-state = "dsi_hs_mode"; |
| 235 | qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; |
| 236 | qcom,mdss-dsi-h-sync-pulse = <0>; |
| 237 | qcom,compression-mode = "dsc"; |
| 238 | qcom,mdss-dsc-slice-height = <16>; |
| 239 | qcom,mdss-dsc-slice-width = <720>; |
| 240 | qcom,mdss-dsc-slice-per-pkt = <2>; |
| 241 | qcom,mdss-dsc-bit-per-component = <8>; |
| 242 | qcom,mdss-dsc-bit-per-pixel = <8>; |
| 243 | qcom,mdss-dsc-block-prediction-enable; |
| 244 | }; |
| 245 | }; |
Shashank Babu Chinta Venkata | 24bdd05 | 2017-02-24 14:29:09 -0800 | [diff] [blame] | 246 | }; |
| 247 | }; |