1f0d517b2a622e1cf973389eb6cb61a81a65a76d
[openwrt/staging/blocktrron.git] /
1 From bf7ce2d1c54900ac19fef0bf0e317732682820e5 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Tue, 1 Feb 2022 15:27:01 +0000
4 Subject: [PATCH] drm/panel/panel-sitronix-st7701: Support SPI config
5 and RGB data
6
7 The ST7701 supports numerous different interface mechanisms for
8 MIPI DSI, RGB, or SPI. The driver was only implementing DSI input,
9 so add RGB parallel input with SPI configuration.
10
11 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 ---
13 drivers/gpu/drm/panel/panel-sitronix-st7701.c | 374 ++++++++++++++++--
14 1 file changed, 351 insertions(+), 23 deletions(-)
15
16 --- a/drivers/gpu/drm/panel/panel-sitronix-st7701.c
17 +++ b/drivers/gpu/drm/panel/panel-sitronix-st7701.c
18 @@ -7,16 +7,21 @@
19 #include <drm/drm_mipi_dsi.h>
20 #include <drm/drm_modes.h>
21 #include <drm/drm_panel.h>
22 +#include <drm/drm_print.h>
23
24 #include <linux/bitfield.h>
25 #include <linux/gpio/consumer.h>
26 #include <linux/delay.h>
27 +#include <linux/media-bus-format.h>
28 #include <linux/module.h>
29 #include <linux/of_device.h>
30 #include <linux/regulator/consumer.h>
31 +#include <linux/spi/spi.h>
32
33 #include <video/mipi_display.h>
34
35 +#define SPI_DATA_FLAG 0x100
36 +
37 /* Command2 BKx selection command */
38 #define DSI_CMD2BKX_SEL 0xFF
39
40 @@ -53,6 +58,10 @@
41 #define DSI_CMD2BK1_SEL 0x11
42 #define DSI_CMD2BK3_SEL 0x13
43 #define DSI_CMD2BKX_SEL_NONE 0x00
44 +#define SPI_CMD2BK3_SEL (SPI_DATA_FLAG | DSI_CMD2BK3_SEL)
45 +#define SPI_CMD2BK1_SEL (SPI_DATA_FLAG | DSI_CMD2BK1_SEL)
46 +#define SPI_CMD2BK0_SEL (SPI_DATA_FLAG | DSI_CMD2BK0_SEL)
47 +#define SPI_CMD2BKX_SEL_NONE (SPI_DATA_FLAG | DSI_CMD2BKX_SEL_NONE)
48
49 /* Command2, BK0 bytes */
50 #define DSI_CMD2_BK0_GAMCTRL_AJ_MASK GENMASK(7, 6)
51 @@ -112,11 +121,23 @@ enum op_bias {
52
53 struct st7701;
54
55 +struct st7701;
56 +
57 +enum st7701_ctrl_if {
58 + ST7701_CTRL_DSI,
59 + ST7701_CTRL_SPI,
60 +};
61 +
62 struct st7701_panel_desc {
63 const struct drm_display_mode *mode;
64 unsigned int lanes;
65 enum mipi_dsi_pixel_format format;
66 + u32 mediabus_format;
67 unsigned int panel_sleep_delay;
68 + void (*init_sequence)(struct st7701 *st7701);
69 + unsigned int conn_type;
70 + enum st7701_ctrl_if interface;
71 + u32 bus_flags;
72
73 /* TFT matrix driver configuration, panel specific. */
74 const u8 pv_gamma[16]; /* Positive voltage gamma control */
75 @@ -142,6 +163,9 @@ struct st7701_panel_desc {
76 struct st7701 {
77 struct drm_panel panel;
78 struct mipi_dsi_device *dsi;
79 + struct spi_device *spi;
80 + const struct device *dev;
81 +
82 const struct st7701_panel_desc *desc;
83
84 struct regulator_bulk_data supplies[2];
85 @@ -191,7 +215,23 @@ static u8 st7701_vgls_map(struct st7701
86 return 0;
87 }
88
89 -static void st7701_init_sequence(struct st7701 *st7701)
90 +#define ST7701_SPI(st7701, seq...) \
91 + { \
92 + const u16 d[] = { seq }; \
93 + struct spi_transfer xfer = { }; \
94 + struct spi_message spi; \
95 + \
96 + spi_message_init(&spi); \
97 + \
98 + xfer.tx_buf = d; \
99 + xfer.bits_per_word = 9; \
100 + xfer.len = sizeof(u16) * ARRAY_SIZE(d); \
101 + \
102 + spi_message_add_tail(&xfer, &spi); \
103 + spi_sync((st7701)->spi, &spi); \
104 + }
105 +
106 +static void ts8550b_init_sequence(struct st7701 *st7701)
107 {
108 const struct st7701_panel_desc *desc = st7701->desc;
109 const struct drm_display_mode *mode = desc->mode;
110 @@ -404,6 +444,111 @@ static void dmt028vghmcmi_1a_gip_sequenc
111 ST7701_DSI(st7701, 0x3A, 0x70);
112 }
113
114 +static void txw210001b0_init_sequence(struct st7701 *st7701)
115 +{
116 + ST7701_SPI(st7701, MIPI_DCS_SOFT_RESET);
117 +
118 + usleep_range(5000, 7000);
119 +
120 + ST7701_SPI(st7701, DSI_CMD2BKX_SEL,
121 + 0x177, 0x101, 0x100, 0x100, SPI_CMD2BK0_SEL);
122 +
123 + ST7701_SPI(st7701, DSI_CMD2_BK0_LNESET, 0x13B, 0x100);
124 +
125 + ST7701_SPI(st7701, DSI_CMD2_BK0_PORCTRL, 0x10B, 0x102);
126 +
127 + ST7701_SPI(st7701, DSI_CMD2_BK0_INVSEL, 0x100, 0x102);
128 +
129 + ST7701_SPI(st7701, 0xCC, 0x110);
130 +
131 + /*
132 + * Gamma option B:
133 + * Positive Voltage Gamma Control
134 + */
135 + ST7701_SPI(st7701, DSI_CMD2_BK0_PVGAMCTRL,
136 + 0x102, 0x113, 0x11B, 0x10D, 0x110, 0x105, 0x108, 0x107,
137 + 0x107, 0x124, 0x104, 0x111, 0x10E, 0x12C, 0x133, 0x11D);
138 +
139 + /* Negative Voltage Gamma Control */
140 + ST7701_SPI(st7701, DSI_CMD2_BK0_NVGAMCTRL,
141 + 0x105, 0x113, 0x11B, 0x10D, 0x111, 0x105, 0x108, 0x107,
142 + 0x107, 0x124, 0x104, 0x111, 0x10E, 0x12C, 0x133, 0x11D);
143 +
144 + ST7701_SPI(st7701, DSI_CMD2BKX_SEL,
145 + 0x177, 0x101, 0x100, 0x100, SPI_CMD2BK1_SEL);
146 +
147 + ST7701_SPI(st7701, DSI_CMD2_BK1_VRHS, 0x15D);
148 +
149 + ST7701_SPI(st7701, DSI_CMD2_BK1_VCOM, 0x143);
150 +
151 + ST7701_SPI(st7701, DSI_CMD2_BK1_VGHSS, 0x181);
152 +
153 + ST7701_SPI(st7701, DSI_CMD2_BK1_TESTCMD, 0x180);
154 +
155 + ST7701_SPI(st7701, DSI_CMD2_BK1_VGLS, 0x143);
156 +
157 + ST7701_SPI(st7701, DSI_CMD2_BK1_PWCTLR1, 0x185);
158 +
159 + ST7701_SPI(st7701, DSI_CMD2_BK1_PWCTLR2, 0x120);
160 +
161 + ST7701_SPI(st7701, DSI_CMD2_BK1_SPD1, 0x178);
162 +
163 + ST7701_SPI(st7701, DSI_CMD2_BK1_SPD2, 0x178);
164 +
165 + ST7701_SPI(st7701, DSI_CMD2_BK1_MIPISET1, 0x188);
166 +
167 + ST7701_SPI(st7701, 0xE0, 0x100, 0x100, 0x102);
168 +
169 + ST7701_SPI(st7701, 0xE1,
170 + 0x103, 0x1A0, 0x100, 0x100, 0x104, 0x1A0, 0x100, 0x100,
171 + 0x100, 0x120, 0x120);
172 +
173 + ST7701_SPI(st7701, 0xE2,
174 + 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100,
175 + 0x100, 0x100, 0x100, 0x100, 0x100);
176 +
177 + ST7701_SPI(st7701, 0xE3, 0x100, 0x100, 0x111, 0x100);
178 +
179 + ST7701_SPI(st7701, 0xE4, 0x122, 0x100);
180 +
181 + ST7701_SPI(st7701, 0xE5,
182 + 0x105, 0x1EC, 0x1A0, 0x1A0, 0x107, 0x1EE, 0x1A0, 0x1A0,
183 + 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100);
184 +
185 + ST7701_SPI(st7701, 0xE6, 0x100, 0x100, 0x111, 0x100);
186 +
187 + ST7701_SPI(st7701, 0xE7, 0x122, 0x100);
188 +
189 + ST7701_SPI(st7701, 0xE8,
190 + 0x106, 0x1ED, 0x1A0, 0x1A0, 0x108, 0x1EF, 0x1A0, 0x1A0,
191 + 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100, 0x100);
192 +
193 + ST7701_SPI(st7701, 0xEB,
194 + 0x100, 0x100, 0x140, 0x140, 0x100, 0x100, 0x100);
195 +
196 + ST7701_SPI(st7701, 0xED,
197 + 0x1FF, 0x1FF, 0x1FF, 0x1BA, 0x10A, 0x1BF, 0x145, 0x1FF,
198 + 0x1FF, 0x154, 0x1FB, 0x1A0, 0x1AB, 0x1FF, 0x1FF, 0x1FF);
199 +
200 + ST7701_SPI(st7701, 0xEF, 0x110, 0x10D, 0x104, 0x108, 0x13F, 0x11F);
201 +
202 + ST7701_SPI(st7701, DSI_CMD2BKX_SEL,
203 + 0x177, 0x101, 0x100, 0x100, SPI_CMD2BK3_SEL);
204 +
205 + ST7701_SPI(st7701, 0xEF, 0x108);
206 +
207 + ST7701_SPI(st7701, DSI_CMD2BKX_SEL,
208 + 0x177, 0x101, 0x100, 0x100, SPI_CMD2BKX_SEL_NONE);
209 +
210 + ST7701_SPI(st7701, 0xCD, 0x108); /* RGB format COLCTRL */
211 +
212 + ST7701_SPI(st7701, 0x36, 0x108); /* MadCtl */
213 +
214 + ST7701_SPI(st7701, 0x3A, 0x166); /* Colmod */
215 +
216 + ST7701_SPI(st7701, MIPI_DCS_EXIT_SLEEP_MODE);
217 +}
218 +
219 static int st7701_prepare(struct drm_panel *panel)
220 {
221 struct st7701 *st7701 = panel_to_st7701(panel);
222 @@ -420,7 +565,7 @@ static int st7701_prepare(struct drm_pan
223 gpiod_set_value(st7701->reset, 1);
224 msleep(150);
225
226 - st7701_init_sequence(st7701);
227 + st7701->desc->init_sequence(st7701);
228
229 if (st7701->desc->gip_sequence)
230 st7701->desc->gip_sequence(st7701);
231 @@ -436,7 +581,15 @@ static int st7701_enable(struct drm_pane
232 {
233 struct st7701 *st7701 = panel_to_st7701(panel);
234
235 - ST7701_DSI(st7701, MIPI_DCS_SET_DISPLAY_ON, 0x00);
236 + switch (st7701->desc->interface) {
237 + case ST7701_CTRL_DSI:
238 + ST7701_DSI(st7701, MIPI_DCS_SET_DISPLAY_ON, 0x00);
239 + break;
240 + case ST7701_CTRL_SPI:
241 + ST7701_SPI(st7701, MIPI_DCS_SET_DISPLAY_ON);
242 + msleep(30);
243 + break;
244 + }
245
246 return 0;
247 }
248 @@ -445,7 +598,14 @@ static int st7701_disable(struct drm_pan
249 {
250 struct st7701 *st7701 = panel_to_st7701(panel);
251
252 - ST7701_DSI(st7701, MIPI_DCS_SET_DISPLAY_OFF, 0x00);
253 + switch (st7701->desc->interface) {
254 + case ST7701_CTRL_DSI:
255 + ST7701_DSI(st7701, MIPI_DCS_SET_DISPLAY_OFF, 0x00);
256 + break;
257 + case ST7701_CTRL_SPI:
258 + ST7701_SPI(st7701, MIPI_DCS_SET_DISPLAY_OFF);
259 + break;
260 + }
261
262 return 0;
263 }
264 @@ -454,7 +614,14 @@ static int st7701_unprepare(struct drm_p
265 {
266 struct st7701 *st7701 = panel_to_st7701(panel);
267
268 - ST7701_DSI(st7701, MIPI_DCS_ENTER_SLEEP_MODE, 0x00);
269 + switch (st7701->desc->interface) {
270 + case ST7701_CTRL_DSI:
271 + ST7701_DSI(st7701, MIPI_DCS_ENTER_SLEEP_MODE, 0x00);
272 + break;
273 + case ST7701_CTRL_SPI:
274 + ST7701_SPI(st7701, MIPI_DCS_ENTER_SLEEP_MODE);
275 + break;
276 + }
277
278 msleep(st7701->sleep_delay);
279
280 @@ -485,7 +652,7 @@ static int st7701_get_modes(struct drm_p
281
282 mode = drm_mode_duplicate(connector->dev, desc_mode);
283 if (!mode) {
284 - dev_err(&st7701->dsi->dev, "failed to add mode %ux%u@%u\n",
285 + dev_err(st7701->dev, "failed to add mode %ux%u@%u\n",
286 desc_mode->hdisplay, desc_mode->vdisplay,
287 drm_mode_vrefresh(desc_mode));
288 return -ENOMEM;
289 @@ -494,9 +661,18 @@ static int st7701_get_modes(struct drm_p
290 drm_mode_set_name(mode);
291 drm_mode_probed_add(connector, mode);
292
293 + if (st7701->desc->mediabus_format)
294 + drm_display_info_set_bus_formats(&connector->display_info,
295 + &st7701->desc->mediabus_format,
296 + 1);
297 + connector->display_info.bus_flags = 0;
298 +
299 connector->display_info.width_mm = desc_mode->width_mm;
300 connector->display_info.height_mm = desc_mode->height_mm;
301
302 + if (st7701->desc->bus_flags)
303 + connector->display_info.bus_flags = st7701->desc->bus_flags;
304 +
305 return 1;
306 }
307
308 @@ -532,6 +708,9 @@ static const struct st7701_panel_desc ts
309 .lanes = 2,
310 .format = MIPI_DSI_FMT_RGB888,
311 .panel_sleep_delay = 80, /* panel need extra 80ms for sleep out cmd */
312 + .init_sequence = ts8550b_init_sequence,
313 + .conn_type = DRM_MODE_CONNECTOR_DSI,
314 + .interface = ST7701_CTRL_DSI,
315
316 .pv_gamma = {
317 CFIELD_PREP(DSI_CMD2_BK0_GAMCTRL_AJ_MASK, 0) |
318 @@ -708,38 +887,74 @@ static const struct st7701_panel_desc dm
319 .gip_sequence = dmt028vghmcmi_1a_gip_sequence,
320 };
321
322 -static int st7701_dsi_probe(struct mipi_dsi_device *dsi)
323 +static const struct drm_display_mode txw210001b0_mode = {
324 + .clock = 19200,
325 +
326 + .hdisplay = 480,
327 + .hsync_start = 480 + 10,
328 + .hsync_end = 480 + 10 + 16,
329 + .htotal = 480 + 10 + 16 + 56,
330 +
331 + .vdisplay = 480,
332 + .vsync_start = 480 + 15,
333 + .vsync_end = 480 + 15 + 60,
334 + .vtotal = 480 + 15 + 60 + 15,
335 +
336 + .width_mm = 53,
337 + .height_mm = 53,
338 + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
339 +
340 + .type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED,
341 +};
342 +
343 +static const struct st7701_panel_desc txw210001b0_desc = {
344 + .mode = &txw210001b0_mode,
345 + .mediabus_format = MEDIA_BUS_FMT_RGB888_1X24,
346 + .init_sequence = txw210001b0_init_sequence,
347 + .conn_type = DRM_MODE_CONNECTOR_DPI,
348 + .interface = ST7701_CTRL_SPI,
349 + .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
350 +};
351 +
352 +static const struct st7701_panel_desc hyperpixel2r_desc = {
353 + .mode = &txw210001b0_mode,
354 + .mediabus_format = MEDIA_BUS_FMT_RGB666_1X24_CPADHI,
355 + .init_sequence = txw210001b0_init_sequence,
356 + .conn_type = DRM_MODE_CONNECTOR_DPI,
357 + .interface = ST7701_CTRL_SPI,
358 + .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
359 +};
360 +
361 +static int st7701_probe(struct device *dev, struct st7701 **ret_st7701)
362 {
363 const struct st7701_panel_desc *desc;
364 struct st7701 *st7701;
365 int ret;
366
367 - st7701 = devm_kzalloc(&dsi->dev, sizeof(*st7701), GFP_KERNEL);
368 + st7701 = devm_kzalloc(dev, sizeof(*st7701), GFP_KERNEL);
369 if (!st7701)
370 return -ENOMEM;
371
372 - desc = of_device_get_match_data(&dsi->dev);
373 - dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
374 - MIPI_DSI_MODE_LPM | MIPI_DSI_CLOCK_NON_CONTINUOUS;
375 - dsi->format = desc->format;
376 - dsi->lanes = desc->lanes;
377 + desc = of_device_get_match_data(dev);
378 + if (!desc)
379 + return -EINVAL;
380
381 st7701->supplies[0].supply = "VCC";
382 st7701->supplies[1].supply = "IOVCC";
383
384 - ret = devm_regulator_bulk_get(&dsi->dev, ARRAY_SIZE(st7701->supplies),
385 + ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(st7701->supplies),
386 st7701->supplies);
387 if (ret < 0)
388 return ret;
389
390 - st7701->reset = devm_gpiod_get(&dsi->dev, "reset", GPIOD_OUT_LOW);
391 + st7701->reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
392 if (IS_ERR(st7701->reset)) {
393 - dev_err(&dsi->dev, "Couldn't get our reset GPIO\n");
394 + dev_err(dev, "Couldn't get our reset GPIO\n");
395 return PTR_ERR(st7701->reset);
396 }
397
398 - drm_panel_init(&st7701->panel, &dsi->dev, &st7701_funcs,
399 - DRM_MODE_CONNECTOR_DSI);
400 + drm_panel_init(&st7701->panel, dev, &st7701_funcs,
401 + desc->conn_type);
402
403 /**
404 * Once sleep out has been issued, ST7701 IC required to wait 120ms
405 @@ -758,9 +973,30 @@ static int st7701_dsi_probe(struct mipi_
406
407 drm_panel_add(&st7701->panel);
408
409 + st7701->desc = desc;
410 + st7701->dev = dev;
411 +
412 + *ret_st7701 = st7701;
413 +
414 + return 0;
415 +}
416 +
417 +static int st7701_dsi_probe(struct mipi_dsi_device *dsi)
418 +{
419 + struct st7701 *st7701;
420 + int ret;
421 +
422 + ret = st7701_probe(&dsi->dev, &st7701);
423 +
424 + if (ret)
425 + return ret;
426 +
427 + dsi->mode_flags = MIPI_DSI_MODE_VIDEO;
428 + dsi->format = st7701->desc->format;
429 + dsi->lanes = st7701->desc->lanes;
430 +
431 mipi_dsi_set_drvdata(dsi, st7701);
432 st7701->dsi = dsi;
433 - st7701->desc = desc;
434
435 ret = mipi_dsi_attach(dsi);
436 if (ret)
437 @@ -781,22 +1017,114 @@ static void st7701_dsi_remove(struct mip
438 drm_panel_remove(&st7701->panel);
439 }
440
441 -static const struct of_device_id st7701_of_match[] = {
442 +static const struct of_device_id st7701_dsi_of_match[] = {
443 { .compatible = "densitron,dmt028vghmcmi-1a", .data = &dmt028vghmcmi_1a_desc },
444 { .compatible = "techstar,ts8550b", .data = &ts8550b_desc },
445 { }
446 };
447 -MODULE_DEVICE_TABLE(of, st7701_of_match);
448 +MODULE_DEVICE_TABLE(of, st7701_dsi_of_match);
449
450 static struct mipi_dsi_driver st7701_dsi_driver = {
451 .probe = st7701_dsi_probe,
452 .remove = st7701_dsi_remove,
453 .driver = {
454 .name = "st7701",
455 - .of_match_table = st7701_of_match,
456 + .of_match_table = st7701_dsi_of_match,
457 },
458 };
459 -module_mipi_dsi_driver(st7701_dsi_driver);
460 +
461 +/* SPI display probe */
462 +static const struct of_device_id st7701_spi_of_match[] = {
463 + { .compatible = "txw,txw210001b0",
464 + .data = &txw210001b0_desc,
465 + }, {
466 + .compatible = "pimoroni,hyperpixel2round",
467 + .data = &hyperpixel2r_desc,
468 + }, {
469 + /* sentinel */
470 + }
471 +};
472 +MODULE_DEVICE_TABLE(of, st7701_spi_of_match);
473 +
474 +static int st7701_spi_probe(struct spi_device *spi)
475 +{
476 + struct st7701 *st7701;
477 + int ret;
478 +
479 + spi->mode = SPI_MODE_3;
480 + spi->bits_per_word = 9;
481 + ret = spi_setup(spi);
482 + if (ret < 0) {
483 + dev_err(&spi->dev, "failed to setup SPI: %d\n", ret);
484 + return ret;
485 + }
486 +
487 + ret = st7701_probe(&spi->dev, &st7701);
488 +
489 + if (ret)
490 + return ret;
491 +
492 + spi_set_drvdata(spi, st7701);
493 + st7701->spi = spi;
494 +
495 + return 0;
496 +}
497 +
498 +static void st7701_spi_remove(struct spi_device *spi)
499 +{
500 + struct st7701 *ctx = spi_get_drvdata(spi);
501 +
502 + drm_panel_remove(&ctx->panel);
503 +}
504 +
505 +static const struct spi_device_id st7701_spi_ids[] = {
506 + { "txw210001b0", 0 },
507 + { "hyperpixel2round", 0 },
508 + { /* sentinel */ }
509 +};
510 +MODULE_DEVICE_TABLE(spi, st7701_spi_ids);
511 +
512 +static struct spi_driver st7701_spi_driver = {
513 + .probe = st7701_spi_probe,
514 + .remove = st7701_spi_remove,
515 + .driver = {
516 + .name = "st7701",
517 + .of_match_table = st7701_spi_of_match,
518 + },
519 + .id_table = st7701_spi_ids,
520 +};
521 +
522 +static int __init panel_st7701_init(void)
523 +{
524 + int err;
525 +
526 + err = spi_register_driver(&st7701_spi_driver);
527 + if (err < 0)
528 + return err;
529 +
530 + if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
531 + err = mipi_dsi_driver_register(&st7701_dsi_driver);
532 + if (err < 0)
533 + goto err_did_spi_register;
534 + }
535 +
536 + return 0;
537 +
538 +err_did_spi_register:
539 + spi_unregister_driver(&st7701_spi_driver);
540 +
541 + return err;
542 +}
543 +module_init(panel_st7701_init);
544 +
545 +static void __exit panel_st7701_exit(void)
546 +{
547 + if (IS_ENABLED(CONFIG_DRM_MIPI_DSI))
548 + mipi_dsi_driver_unregister(&st7701_dsi_driver);
549 +
550 + spi_unregister_driver(&st7701_spi_driver);
551 +}
552 +module_exit(panel_st7701_exit);
553
554 MODULE_AUTHOR("Jagan Teki <jagan@amarulasolutions.com>");
555 MODULE_DESCRIPTION("Sitronix ST7701 LCD Panel Driver");