Ruihai Zhou | 3f5d817 | 2023-04-29 11:42:27 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <mipi/panel.h> |
| 4 | |
| 5 | struct panel_serializable_data STA_ILI9882T = { |
| 6 | .edid = { |
| 7 | .ascii_string = "ILI9882T", |
| 8 | .manufacturer_name = "STA", |
| 9 | .panel_bits_per_color = 8, |
| 10 | .panel_bits_per_pixel = 24, |
| 11 | .mode = { |
| 12 | .pixel_clock = 165280, |
| 13 | .lvds_dual_channel = 0, |
| 14 | .refresh = 60, |
Ruihai Zhou | 0bde182 | 2023-07-03 19:03:18 +0800 | [diff] [blame] | 15 | .ha = 1200, .hbl = 174, .hso = 72, .hspw = 30, |
Ruihai Zhou | 3f5d817 | 2023-04-29 11:42:27 +0800 | [diff] [blame] | 16 | .va = 1920, .vbl = 80, .vso = 68, .vspw = 2, |
| 17 | .phsync = '-', .pvsync = '-', |
| 18 | .x_mm = 141, .y_mm = 226, |
| 19 | }, |
| 20 | }, |
| 21 | .init = { |
Ruihai Zhou | d1b8589 | 2023-07-27 19:36:35 +0800 | [diff] [blame^] | 22 | PANEL_DELAY(20), |
Ruihai Zhou | 3f5d817 | 2023-04-29 11:42:27 +0800 | [diff] [blame] | 23 | PANEL_DCS(0xFF, 0x98, 0x82, 0x01), |
| 24 | PANEL_DCS(0x00, 0x42), |
| 25 | PANEL_DCS(0x01, 0x11), |
| 26 | PANEL_DCS(0x02, 0x00), |
| 27 | PANEL_DCS(0x03, 0x00), |
| 28 | PANEL_DCS(0x04, 0x01), |
| 29 | PANEL_DCS(0x05, 0x11), |
| 30 | PANEL_DCS(0x06, 0x00), |
| 31 | PANEL_DCS(0x07, 0x00), |
| 32 | PANEL_DCS(0x08, 0x80), |
| 33 | PANEL_DCS(0x09, 0x81), |
| 34 | PANEL_DCS(0x0A, 0x71), |
| 35 | PANEL_DCS(0x0B, 0x00), |
| 36 | PANEL_DCS(0x0C, 0x00), |
| 37 | PANEL_DCS(0x0E, 0x1A), |
| 38 | PANEL_DCS(0x24, 0x00), |
| 39 | PANEL_DCS(0x25, 0x00), |
| 40 | PANEL_DCS(0x26, 0x00), |
| 41 | PANEL_DCS(0x27, 0x00), |
| 42 | PANEL_DCS(0x2C, 0xD4), |
| 43 | PANEL_DCS(0xB9, 0x40), |
| 44 | PANEL_DCS(0xB0, 0x11), |
| 45 | PANEL_DCS(0xE6, 0x32), |
| 46 | PANEL_DCS(0xD1, 0x30), |
| 47 | PANEL_DCS(0xD6, 0x55), |
| 48 | PANEL_DCS(0xD0, 0x01), |
| 49 | PANEL_DCS(0xE3, 0x93), |
| 50 | PANEL_DCS(0xE4, 0x00), |
| 51 | PANEL_DCS(0xE5, 0x80), |
| 52 | PANEL_DCS(0x31, 0x07), |
| 53 | PANEL_DCS(0x32, 0x07), |
| 54 | PANEL_DCS(0x33, 0x07), |
| 55 | PANEL_DCS(0x34, 0x07), |
| 56 | PANEL_DCS(0x35, 0x07), |
| 57 | PANEL_DCS(0x36, 0x01), |
| 58 | PANEL_DCS(0x37, 0x00), |
| 59 | PANEL_DCS(0x38, 0x28), |
| 60 | PANEL_DCS(0x39, 0x29), |
| 61 | PANEL_DCS(0x3A, 0x11), |
| 62 | PANEL_DCS(0x3B, 0x13), |
| 63 | PANEL_DCS(0x3C, 0x15), |
| 64 | PANEL_DCS(0x3D, 0x17), |
| 65 | PANEL_DCS(0x3E, 0x09), |
| 66 | PANEL_DCS(0x3F, 0x0D), |
| 67 | PANEL_DCS(0x40, 0x02), |
| 68 | PANEL_DCS(0x41, 0x02), |
| 69 | PANEL_DCS(0x42, 0x02), |
| 70 | PANEL_DCS(0x43, 0x02), |
| 71 | PANEL_DCS(0x44, 0x02), |
| 72 | PANEL_DCS(0x45, 0x02), |
| 73 | PANEL_DCS(0x46, 0x02), |
| 74 | PANEL_DCS(0x47, 0x07), |
| 75 | PANEL_DCS(0x48, 0x07), |
| 76 | PANEL_DCS(0x49, 0x07), |
| 77 | PANEL_DCS(0x4A, 0x07), |
| 78 | PANEL_DCS(0x4B, 0x07), |
| 79 | PANEL_DCS(0x4C, 0x01), |
| 80 | PANEL_DCS(0x4D, 0x00), |
| 81 | PANEL_DCS(0x4E, 0x28), |
| 82 | PANEL_DCS(0x4F, 0x29), |
| 83 | PANEL_DCS(0x50, 0x10), |
| 84 | PANEL_DCS(0x51, 0x12), |
| 85 | PANEL_DCS(0x52, 0x14), |
| 86 | PANEL_DCS(0x53, 0x16), |
| 87 | PANEL_DCS(0x54, 0x08), |
| 88 | PANEL_DCS(0x55, 0x0C), |
| 89 | PANEL_DCS(0x56, 0x02), |
| 90 | PANEL_DCS(0x57, 0x02), |
| 91 | PANEL_DCS(0x58, 0x02), |
| 92 | PANEL_DCS(0x59, 0x02), |
| 93 | PANEL_DCS(0x5A, 0x02), |
| 94 | PANEL_DCS(0x5B, 0x02), |
| 95 | PANEL_DCS(0x5C, 0x02), |
| 96 | PANEL_DCS(0x61, 0x07), |
| 97 | PANEL_DCS(0x62, 0x07), |
| 98 | PANEL_DCS(0x63, 0x07), |
| 99 | PANEL_DCS(0x64, 0x07), |
| 100 | PANEL_DCS(0x65, 0x07), |
| 101 | PANEL_DCS(0x66, 0x01), |
| 102 | PANEL_DCS(0x67, 0x00), |
| 103 | PANEL_DCS(0x68, 0x28), |
| 104 | PANEL_DCS(0x69, 0x29), |
| 105 | PANEL_DCS(0x6A, 0x16), |
| 106 | PANEL_DCS(0x6B, 0x14), |
| 107 | PANEL_DCS(0x6C, 0x12), |
| 108 | PANEL_DCS(0x6D, 0x10), |
| 109 | PANEL_DCS(0x6E, 0x0C), |
| 110 | PANEL_DCS(0x6F, 0x08), |
| 111 | PANEL_DCS(0x70, 0x02), |
| 112 | PANEL_DCS(0x71, 0x02), |
| 113 | PANEL_DCS(0x72, 0x02), |
| 114 | PANEL_DCS(0x73, 0x02), |
| 115 | PANEL_DCS(0x74, 0x02), |
| 116 | PANEL_DCS(0x75, 0x02), |
| 117 | PANEL_DCS(0x76, 0x02), |
| 118 | PANEL_DCS(0x77, 0x07), |
| 119 | PANEL_DCS(0x78, 0x07), |
| 120 | PANEL_DCS(0x79, 0x07), |
| 121 | PANEL_DCS(0x7A, 0x07), |
| 122 | PANEL_DCS(0x7B, 0x07), |
| 123 | PANEL_DCS(0x7C, 0x01), |
| 124 | PANEL_DCS(0x7D, 0x00), |
| 125 | PANEL_DCS(0x7E, 0x28), |
| 126 | PANEL_DCS(0x7F, 0x29), |
| 127 | PANEL_DCS(0x80, 0x17), |
| 128 | PANEL_DCS(0x81, 0x15), |
| 129 | PANEL_DCS(0x82, 0x13), |
| 130 | PANEL_DCS(0x83, 0x11), |
| 131 | PANEL_DCS(0x84, 0x0D), |
| 132 | PANEL_DCS(0x85, 0x09), |
| 133 | PANEL_DCS(0x86, 0x02), |
| 134 | PANEL_DCS(0x87, 0x07), |
| 135 | PANEL_DCS(0x88, 0x07), |
| 136 | PANEL_DCS(0x89, 0x07), |
| 137 | PANEL_DCS(0x8A, 0x07), |
| 138 | PANEL_DCS(0x8B, 0x07), |
| 139 | PANEL_DCS(0x8C, 0x07), |
| 140 | PANEL_DCS(0xFF, 0x98, 0x82, 0x02), |
| 141 | PANEL_DCS(0x29, 0x3A), |
| 142 | PANEL_DCS(0x2A, 0x3B), |
| 143 | PANEL_DCS(0x06, 0x01), |
| 144 | PANEL_DCS(0x07, 0x01), |
| 145 | PANEL_DCS(0x08, 0x0C), |
| 146 | PANEL_DCS(0x09, 0x44), |
| 147 | PANEL_DCS(0x3C, 0x0A), |
| 148 | PANEL_DCS(0x39, 0x11), |
| 149 | PANEL_DCS(0x3D, 0x00), |
| 150 | PANEL_DCS(0x3A, 0x0C), |
| 151 | PANEL_DCS(0x3B, 0x44), |
| 152 | PANEL_DCS(0x53, 0x1F), |
| 153 | PANEL_DCS(0x5E, 0x40), |
| 154 | PANEL_DCS(0x84, 0x00), |
| 155 | PANEL_DCS(0xFF, 0x98, 0x82, 0x03), |
| 156 | PANEL_DCS(0x20, 0x01), |
| 157 | PANEL_DCS(0x21, 0x3C), |
| 158 | PANEL_DCS(0x22, 0xFA), |
| 159 | PANEL_DCS(0xFF, 0x98, 0x82, 0x0A), |
| 160 | PANEL_DCS(0xE0, 0x01), |
| 161 | PANEL_DCS(0xE2, 0x01), |
| 162 | PANEL_DCS(0xE5, 0x91), |
| 163 | PANEL_DCS(0xE6, 0x3C), |
| 164 | PANEL_DCS(0xE7, 0x00), |
| 165 | PANEL_DCS(0xE8, 0xFA), |
| 166 | PANEL_DCS(0xFF, 0x98, 0x82, 0x12), |
| 167 | PANEL_DCS(0x87, 0x2C), |
| 168 | PANEL_DCS(0xFF, 0x98, 0x82, 0x05), |
| 169 | PANEL_DCS(0x73, 0xE5), |
| 170 | PANEL_DCS(0x7F, 0x6B), |
| 171 | PANEL_DCS(0x6D, 0xA4), |
| 172 | PANEL_DCS(0x79, 0x54), |
| 173 | PANEL_DCS(0x69, 0x97), |
| 174 | PANEL_DCS(0x6A, 0x97), |
| 175 | PANEL_DCS(0xA5, 0x3F), |
| 176 | PANEL_DCS(0x61, 0xDA), |
| 177 | PANEL_DCS(0xA7, 0xF1), |
| 178 | PANEL_DCS(0x5F, 0x01), |
| 179 | PANEL_DCS(0x62, 0x3F), |
| 180 | PANEL_DCS(0x1D, 0x90), |
| 181 | PANEL_DCS(0x86, 0x87), |
| 182 | PANEL_DCS(0xFF, 0x98, 0x82, 0x06), |
| 183 | PANEL_DCS(0xC0, 0x80), |
| 184 | PANEL_DCS(0xC1, 0x07), |
| 185 | PANEL_DCS(0xCA, 0x58), |
| 186 | PANEL_DCS(0xCB, 0x02), |
| 187 | PANEL_DCS(0xCE, 0x58), |
| 188 | PANEL_DCS(0xCF, 0x02), |
| 189 | PANEL_DCS(0x67, 0x60), |
| 190 | PANEL_DCS(0x10, 0x00), |
| 191 | PANEL_DCS(0x92, 0x22), |
| 192 | PANEL_DCS(0xD3, 0x08), |
| 193 | PANEL_DCS(0xD6, 0x55), |
| 194 | PANEL_DCS(0xDC, 0x38), |
| 195 | PANEL_DCS(0xFF, 0x98, 0x82, 0x08), |
| 196 | PANEL_DCS(0xE0, 0x00, 0x10, 0x2A, 0x4D, 0x61, 0x56, 0x6A, 0x6E, |
| 197 | 0x79, 0x76, 0x8F, 0x95, 0x98, 0xAE, 0xAA, 0xB2, 0xBB, |
| 198 | 0xCE, 0xC6, 0xBD, 0xD5, 0xE2, 0xE8), |
| 199 | PANEL_DCS(0xE1, 0x00, 0x10, 0x2A, 0x4D, 0x61, 0x56, 0x6A, 0x6E, |
| 200 | 0x79, 0x76, 0x8F, 0x95, 0x98, 0xAE, 0xAA, 0xB2, 0xBB, |
| 201 | 0xCE, 0xC6, 0xBD, 0xD5, 0xE2, 0xE8), |
| 202 | PANEL_DCS(0xFF, 0x98, 0x82, 0x04), |
| 203 | PANEL_DCS(0xBA, 0x81), |
| 204 | PANEL_DCS(0xFF, 0x98, 0x82, 0x0C), |
| 205 | PANEL_DCS(0x00, 0x02), |
| 206 | PANEL_DCS(0x01, 0x00), |
| 207 | PANEL_DCS(0x02, 0x03), |
| 208 | PANEL_DCS(0x03, 0x01), |
| 209 | PANEL_DCS(0x04, 0x03), |
| 210 | PANEL_DCS(0x05, 0x02), |
| 211 | PANEL_DCS(0x06, 0x04), |
| 212 | PANEL_DCS(0x07, 0x03), |
| 213 | PANEL_DCS(0x08, 0x03), |
| 214 | PANEL_DCS(0x09, 0x04), |
| 215 | PANEL_DCS(0x0A, 0x04), |
| 216 | PANEL_DCS(0x0B, 0x05), |
| 217 | PANEL_DCS(0x0C, 0x04), |
| 218 | PANEL_DCS(0x0D, 0x06), |
| 219 | PANEL_DCS(0x0E, 0x05), |
| 220 | PANEL_DCS(0x0F, 0x07), |
| 221 | PANEL_DCS(0x10, 0x04), |
| 222 | PANEL_DCS(0x11, 0x08), |
| 223 | PANEL_DCS(0x12, 0x05), |
| 224 | PANEL_DCS(0x13, 0x09), |
| 225 | PANEL_DCS(0x14, 0x05), |
| 226 | PANEL_DCS(0x15, 0x0A), |
| 227 | PANEL_DCS(0x16, 0x06), |
| 228 | PANEL_DCS(0x17, 0x0B), |
| 229 | PANEL_DCS(0x18, 0x05), |
| 230 | PANEL_DCS(0x19, 0x0C), |
| 231 | PANEL_DCS(0x1A, 0x06), |
| 232 | PANEL_DCS(0x1B, 0x0D), |
| 233 | PANEL_DCS(0x1C, 0x06), |
| 234 | PANEL_DCS(0x1D, 0x0E), |
| 235 | PANEL_DCS(0x1E, 0x07), |
| 236 | PANEL_DCS(0x1F, 0x0F), |
| 237 | PANEL_DCS(0x20, 0x06), |
| 238 | PANEL_DCS(0x21, 0x10), |
| 239 | PANEL_DCS(0x22, 0x07), |
| 240 | PANEL_DCS(0x23, 0x11), |
| 241 | PANEL_DCS(0x24, 0x07), |
| 242 | PANEL_DCS(0x25, 0x12), |
| 243 | PANEL_DCS(0x26, 0x08), |
| 244 | PANEL_DCS(0x27, 0x13), |
| 245 | PANEL_DCS(0x28, 0x07), |
| 246 | PANEL_DCS(0x29, 0x14), |
| 247 | PANEL_DCS(0x2A, 0x08), |
| 248 | PANEL_DCS(0x2B, 0x15), |
| 249 | PANEL_DCS(0x2C, 0x08), |
| 250 | PANEL_DCS(0x2D, 0x16), |
| 251 | PANEL_DCS(0x2E, 0x09), |
| 252 | PANEL_DCS(0x2F, 0x17), |
| 253 | PANEL_DCS(0x30, 0x08), |
| 254 | PANEL_DCS(0x31, 0x18), |
| 255 | PANEL_DCS(0x32, 0x09), |
| 256 | PANEL_DCS(0x33, 0x19), |
| 257 | PANEL_DCS(0x34, 0x09), |
| 258 | PANEL_DCS(0x35, 0x1A), |
| 259 | PANEL_DCS(0x36, 0x0A), |
| 260 | PANEL_DCS(0x37, 0x1B), |
| 261 | PANEL_DCS(0x38, 0x0A), |
| 262 | PANEL_DCS(0x39, 0x1C), |
| 263 | PANEL_DCS(0x3A, 0x0A), |
| 264 | PANEL_DCS(0x3B, 0x1D), |
| 265 | PANEL_DCS(0x3C, 0x0A), |
| 266 | PANEL_DCS(0x3D, 0x1E), |
| 267 | PANEL_DCS(0x3E, 0x0A), |
| 268 | PANEL_DCS(0x3F, 0x1F), |
| 269 | PANEL_DCS(0xFF, 0x98, 0x82, 0x04), |
| 270 | PANEL_DCS(0xBA, 0x01), |
| 271 | PANEL_DCS(0xFF, 0x98, 0x82, 0x0E), |
| 272 | PANEL_DCS(0x02, 0x0C), |
| 273 | PANEL_DCS(0x20, 0x10), |
| 274 | PANEL_DCS(0x25, 0x16), |
| 275 | PANEL_DCS(0x26, 0xE0), |
| 276 | PANEL_DCS(0x27, 0x00), |
| 277 | PANEL_DCS(0x29, 0x71), |
| 278 | PANEL_DCS(0x2A, 0x46), |
| 279 | PANEL_DCS(0x2B, 0x1F), |
| 280 | PANEL_DCS(0x2D, 0xC7), |
| 281 | PANEL_DCS(0x31, 0x02), |
| 282 | PANEL_DCS(0x32, 0xDF), |
| 283 | PANEL_DCS(0x33, 0x5A), |
| 284 | PANEL_DCS(0x34, 0xC0), |
| 285 | PANEL_DCS(0x35, 0x5A), |
| 286 | PANEL_DCS(0x36, 0xC0), |
| 287 | PANEL_DCS(0x38, 0x65), |
| 288 | PANEL_DCS(0x80, 0x3E), |
| 289 | PANEL_DCS(0x81, 0xA0), |
| 290 | PANEL_DCS(0xB0, 0x01), |
| 291 | PANEL_DCS(0xB1, 0xCC), |
| 292 | PANEL_DCS(0xC0, 0x12), |
| 293 | PANEL_DCS(0xC2, 0xCC), |
| 294 | PANEL_DCS(0xC3, 0xCC), |
| 295 | PANEL_DCS(0xC4, 0xCC), |
| 296 | PANEL_DCS(0xC5, 0xCC), |
| 297 | PANEL_DCS(0xC6, 0xCC), |
| 298 | PANEL_DCS(0xC7, 0xCC), |
| 299 | PANEL_DCS(0xC8, 0xCC), |
| 300 | PANEL_DCS(0xC9, 0xCC), |
| 301 | PANEL_DCS(0x30, 0x00), |
| 302 | PANEL_DCS(0x00, 0x81), |
| 303 | PANEL_DCS(0x08, 0x02), |
| 304 | PANEL_DCS(0x09, 0x00), |
| 305 | PANEL_DCS(0x07, 0x21), |
| 306 | PANEL_DCS(0x04, 0x10), |
| 307 | PANEL_DCS(0xFF, 0x98, 0x82, 0x1E), |
| 308 | PANEL_DCS(0x60, 0x00), |
| 309 | PANEL_DCS(0x64, 0x00), |
| 310 | PANEL_DCS(0x6D, 0x00), |
| 311 | PANEL_DCS(0xFF, 0x98, 0x82, 0x0B), |
| 312 | PANEL_DCS(0xA6, 0x44), |
| 313 | PANEL_DCS(0xA7, 0xB6), |
| 314 | PANEL_DCS(0xA8, 0x03), |
| 315 | PANEL_DCS(0xA9, 0x03), |
| 316 | PANEL_DCS(0xAA, 0x51), |
| 317 | PANEL_DCS(0xAB, 0x51), |
| 318 | PANEL_DCS(0xAC, 0x04), |
| 319 | PANEL_DCS(0xBD, 0x92), |
| 320 | PANEL_DCS(0xBE, 0xA1), |
| 321 | PANEL_DCS(0xFF, 0x98, 0x82, 0x05), |
| 322 | PANEL_DCS(0x86, 0x87), |
| 323 | PANEL_DCS(0xFF, 0x98, 0x82, 0x06), |
| 324 | PANEL_DCS(0x92, 0x22), |
| 325 | PANEL_DCS(0xFF, 0x98, 0x82, 0x00), |
| 326 | PANEL_DCS(0x11), |
| 327 | PANEL_DELAY(120), |
| 328 | PANEL_DCS(0x29), |
Ruihai Zhou | d1b8589 | 2023-07-27 19:36:35 +0800 | [diff] [blame^] | 329 | PANEL_DELAY(20), |
Ruihai Zhou | 3f5d817 | 2023-04-29 11:42:27 +0800 | [diff] [blame] | 330 | }, |
| 331 | }; |