panel-tpo-td043mtea1.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655
  1. /*
  2. * TPO TD043MTEA1 Panel driver
  3. *
  4. * Author: Gražvydas Ignotas <notasas@gmail.com>
  5. * Converted to new DSS device model: Tomi Valkeinen <tomi.valkeinen@ti.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. */
  12. #include <linux/module.h>
  13. #include <linux/delay.h>
  14. #include <linux/spi/spi.h>
  15. #include <linux/regulator/consumer.h>
  16. #include <linux/gpio/consumer.h>
  17. #include <linux/err.h>
  18. #include <linux/slab.h>
  19. #include <linux/of_gpio.h>
  20. #include "../dss/omapdss.h"
  21. #define TPO_R02_MODE(x) ((x) & 7)
  22. #define TPO_R02_MODE_800x480 7
  23. #define TPO_R02_NCLK_RISING BIT(3)
  24. #define TPO_R02_HSYNC_HIGH BIT(4)
  25. #define TPO_R02_VSYNC_HIGH BIT(5)
  26. #define TPO_R03_NSTANDBY BIT(0)
  27. #define TPO_R03_EN_CP_CLK BIT(1)
  28. #define TPO_R03_EN_VGL_PUMP BIT(2)
  29. #define TPO_R03_EN_PWM BIT(3)
  30. #define TPO_R03_DRIVING_CAP_100 BIT(4)
  31. #define TPO_R03_EN_PRE_CHARGE BIT(6)
  32. #define TPO_R03_SOFTWARE_CTL BIT(7)
  33. #define TPO_R04_NFLIP_H BIT(0)
  34. #define TPO_R04_NFLIP_V BIT(1)
  35. #define TPO_R04_CP_CLK_FREQ_1H BIT(2)
  36. #define TPO_R04_VGL_FREQ_1H BIT(4)
  37. #define TPO_R03_VAL_NORMAL (TPO_R03_NSTANDBY | TPO_R03_EN_CP_CLK | \
  38. TPO_R03_EN_VGL_PUMP | TPO_R03_EN_PWM | \
  39. TPO_R03_DRIVING_CAP_100 | TPO_R03_EN_PRE_CHARGE | \
  40. TPO_R03_SOFTWARE_CTL)
  41. #define TPO_R03_VAL_STANDBY (TPO_R03_DRIVING_CAP_100 | \
  42. TPO_R03_EN_PRE_CHARGE | TPO_R03_SOFTWARE_CTL)
  43. static const u16 tpo_td043_def_gamma[12] = {
  44. 105, 315, 381, 431, 490, 537, 579, 686, 780, 837, 880, 1023
  45. };
  46. struct panel_drv_data {
  47. struct omap_dss_device dssdev;
  48. struct omap_dss_device *in;
  49. struct videomode vm;
  50. int data_lines;
  51. struct spi_device *spi;
  52. struct regulator *vcc_reg;
  53. int nreset_gpio;
  54. u16 gamma[12];
  55. u32 mode;
  56. u32 hmirror:1;
  57. u32 vmirror:1;
  58. u32 powered_on:1;
  59. u32 spi_suspended:1;
  60. u32 power_on_resume:1;
  61. };
  62. static const struct videomode tpo_td043_vm = {
  63. .hactive = 800,
  64. .vactive = 480,
  65. .pixelclock = 36000000,
  66. .hsync_len = 1,
  67. .hfront_porch = 68,
  68. .hback_porch = 214,
  69. .vsync_len = 1,
  70. .vfront_porch = 39,
  71. .vback_porch = 34,
  72. .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
  73. DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_SYNC_POSEDGE |
  74. DISPLAY_FLAGS_PIXDATA_NEGEDGE,
  75. /*
  76. * Note: According to the panel documentation:
  77. * SYNC needs to be driven on the FALLING edge
  78. */
  79. };
  80. #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev)
  81. static int tpo_td043_write(struct spi_device *spi, u8 addr, u8 data)
  82. {
  83. struct spi_message m;
  84. struct spi_transfer xfer;
  85. u16 w;
  86. int r;
  87. spi_message_init(&m);
  88. memset(&xfer, 0, sizeof(xfer));
  89. w = ((u16)addr << 10) | (1 << 8) | data;
  90. xfer.tx_buf = &w;
  91. xfer.bits_per_word = 16;
  92. xfer.len = 2;
  93. spi_message_add_tail(&xfer, &m);
  94. r = spi_sync(spi, &m);
  95. if (r < 0)
  96. dev_warn(&spi->dev, "failed to write to LCD reg (%d)\n", r);
  97. return r;
  98. }
  99. static void tpo_td043_write_gamma(struct spi_device *spi, u16 gamma[12])
  100. {
  101. u8 i, val;
  102. /* gamma bits [9:8] */
  103. for (val = i = 0; i < 4; i++)
  104. val |= (gamma[i] & 0x300) >> ((i + 1) * 2);
  105. tpo_td043_write(spi, 0x11, val);
  106. for (val = i = 0; i < 4; i++)
  107. val |= (gamma[i+4] & 0x300) >> ((i + 1) * 2);
  108. tpo_td043_write(spi, 0x12, val);
  109. for (val = i = 0; i < 4; i++)
  110. val |= (gamma[i+8] & 0x300) >> ((i + 1) * 2);
  111. tpo_td043_write(spi, 0x13, val);
  112. /* gamma bits [7:0] */
  113. for (val = i = 0; i < 12; i++)
  114. tpo_td043_write(spi, 0x14 + i, gamma[i] & 0xff);
  115. }
  116. static int tpo_td043_write_mirror(struct spi_device *spi, bool h, bool v)
  117. {
  118. u8 reg4 = TPO_R04_NFLIP_H | TPO_R04_NFLIP_V |
  119. TPO_R04_CP_CLK_FREQ_1H | TPO_R04_VGL_FREQ_1H;
  120. if (h)
  121. reg4 &= ~TPO_R04_NFLIP_H;
  122. if (v)
  123. reg4 &= ~TPO_R04_NFLIP_V;
  124. return tpo_td043_write(spi, 4, reg4);
  125. }
  126. static int tpo_td043_set_hmirror(struct omap_dss_device *dssdev, bool enable)
  127. {
  128. struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev);
  129. ddata->hmirror = enable;
  130. return tpo_td043_write_mirror(ddata->spi, ddata->hmirror,
  131. ddata->vmirror);
  132. }
  133. static bool tpo_td043_get_hmirror(struct omap_dss_device *dssdev)
  134. {
  135. struct panel_drv_data *ddata = dev_get_drvdata(dssdev->dev);
  136. return ddata->hmirror;
  137. }
  138. static ssize_t tpo_td043_vmirror_show(struct device *dev,
  139. struct device_attribute *attr, char *buf)
  140. {
  141. struct panel_drv_data *ddata = dev_get_drvdata(dev);
  142. return snprintf(buf, PAGE_SIZE, "%d\n", ddata->vmirror);
  143. }
  144. static ssize_t tpo_td043_vmirror_store(struct device *dev,
  145. struct device_attribute *attr, const char *buf, size_t count)
  146. {
  147. struct panel_drv_data *ddata = dev_get_drvdata(dev);
  148. int val;
  149. int ret;
  150. ret = kstrtoint(buf, 0, &val);
  151. if (ret < 0)
  152. return ret;
  153. val = !!val;
  154. ret = tpo_td043_write_mirror(ddata->spi, ddata->hmirror, val);
  155. if (ret < 0)
  156. return ret;
  157. ddata->vmirror = val;
  158. return count;
  159. }
  160. static ssize_t tpo_td043_mode_show(struct device *dev,
  161. struct device_attribute *attr, char *buf)
  162. {
  163. struct panel_drv_data *ddata = dev_get_drvdata(dev);
  164. return snprintf(buf, PAGE_SIZE, "%d\n", ddata->mode);
  165. }
  166. static ssize_t tpo_td043_mode_store(struct device *dev,
  167. struct device_attribute *attr, const char *buf, size_t count)
  168. {
  169. struct panel_drv_data *ddata = dev_get_drvdata(dev);
  170. long val;
  171. int ret;
  172. ret = kstrtol(buf, 0, &val);
  173. if (ret != 0 || val & ~7)
  174. return -EINVAL;
  175. ddata->mode = val;
  176. val |= TPO_R02_NCLK_RISING;
  177. tpo_td043_write(ddata->spi, 2, val);
  178. return count;
  179. }
  180. static ssize_t tpo_td043_gamma_show(struct device *dev,
  181. struct device_attribute *attr, char *buf)
  182. {
  183. struct panel_drv_data *ddata = dev_get_drvdata(dev);
  184. ssize_t len = 0;
  185. int ret;
  186. int i;
  187. for (i = 0; i < ARRAY_SIZE(ddata->gamma); i++) {
  188. ret = snprintf(buf + len, PAGE_SIZE - len, "%u ",
  189. ddata->gamma[i]);
  190. if (ret < 0)
  191. return ret;
  192. len += ret;
  193. }
  194. buf[len - 1] = '\n';
  195. return len;
  196. }
  197. static ssize_t tpo_td043_gamma_store(struct device *dev,
  198. struct device_attribute *attr, const char *buf, size_t count)
  199. {
  200. struct panel_drv_data *ddata = dev_get_drvdata(dev);
  201. unsigned int g[12];
  202. int ret;
  203. int i;
  204. ret = sscanf(buf, "%u %u %u %u %u %u %u %u %u %u %u %u",
  205. &g[0], &g[1], &g[2], &g[3], &g[4], &g[5],
  206. &g[6], &g[7], &g[8], &g[9], &g[10], &g[11]);
  207. if (ret != 12)
  208. return -EINVAL;
  209. for (i = 0; i < 12; i++)
  210. ddata->gamma[i] = g[i];
  211. tpo_td043_write_gamma(ddata->spi, ddata->gamma);
  212. return count;
  213. }
  214. static DEVICE_ATTR(vmirror, S_IRUGO | S_IWUSR,
  215. tpo_td043_vmirror_show, tpo_td043_vmirror_store);
  216. static DEVICE_ATTR(mode, S_IRUGO | S_IWUSR,
  217. tpo_td043_mode_show, tpo_td043_mode_store);
  218. static DEVICE_ATTR(gamma, S_IRUGO | S_IWUSR,
  219. tpo_td043_gamma_show, tpo_td043_gamma_store);
  220. static struct attribute *tpo_td043_attrs[] = {
  221. &dev_attr_vmirror.attr,
  222. &dev_attr_mode.attr,
  223. &dev_attr_gamma.attr,
  224. NULL,
  225. };
  226. static struct attribute_group tpo_td043_attr_group = {
  227. .attrs = tpo_td043_attrs,
  228. };
  229. static int tpo_td043_power_on(struct panel_drv_data *ddata)
  230. {
  231. int r;
  232. if (ddata->powered_on)
  233. return 0;
  234. r = regulator_enable(ddata->vcc_reg);
  235. if (r != 0)
  236. return r;
  237. /* wait for panel to stabilize */
  238. msleep(160);
  239. if (gpio_is_valid(ddata->nreset_gpio))
  240. gpio_set_value(ddata->nreset_gpio, 1);
  241. tpo_td043_write(ddata->spi, 2,
  242. TPO_R02_MODE(ddata->mode) | TPO_R02_NCLK_RISING);
  243. tpo_td043_write(ddata->spi, 3, TPO_R03_VAL_NORMAL);
  244. tpo_td043_write(ddata->spi, 0x20, 0xf0);
  245. tpo_td043_write(ddata->spi, 0x21, 0xf0);
  246. tpo_td043_write_mirror(ddata->spi, ddata->hmirror,
  247. ddata->vmirror);
  248. tpo_td043_write_gamma(ddata->spi, ddata->gamma);
  249. ddata->powered_on = 1;
  250. return 0;
  251. }
  252. static void tpo_td043_power_off(struct panel_drv_data *ddata)
  253. {
  254. if (!ddata->powered_on)
  255. return;
  256. tpo_td043_write(ddata->spi, 3,
  257. TPO_R03_VAL_STANDBY | TPO_R03_EN_PWM);
  258. if (gpio_is_valid(ddata->nreset_gpio))
  259. gpio_set_value(ddata->nreset_gpio, 0);
  260. /* wait for at least 2 vsyncs before cutting off power */
  261. msleep(50);
  262. tpo_td043_write(ddata->spi, 3, TPO_R03_VAL_STANDBY);
  263. regulator_disable(ddata->vcc_reg);
  264. ddata->powered_on = 0;
  265. }
  266. static int tpo_td043_connect(struct omap_dss_device *dssdev)
  267. {
  268. struct panel_drv_data *ddata = to_panel_data(dssdev);
  269. struct omap_dss_device *in = ddata->in;
  270. int r;
  271. if (omapdss_device_is_connected(dssdev))
  272. return 0;
  273. r = in->ops.dpi->connect(in, dssdev);
  274. if (r)
  275. return r;
  276. return 0;
  277. }
  278. static void tpo_td043_disconnect(struct omap_dss_device *dssdev)
  279. {
  280. struct panel_drv_data *ddata = to_panel_data(dssdev);
  281. struct omap_dss_device *in = ddata->in;
  282. if (!omapdss_device_is_connected(dssdev))
  283. return;
  284. in->ops.dpi->disconnect(in, dssdev);
  285. }
  286. static int tpo_td043_enable(struct omap_dss_device *dssdev)
  287. {
  288. struct panel_drv_data *ddata = to_panel_data(dssdev);
  289. struct omap_dss_device *in = ddata->in;
  290. int r;
  291. if (!omapdss_device_is_connected(dssdev))
  292. return -ENODEV;
  293. if (omapdss_device_is_enabled(dssdev))
  294. return 0;
  295. if (ddata->data_lines)
  296. in->ops.dpi->set_data_lines(in, ddata->data_lines);
  297. in->ops.dpi->set_timings(in, &ddata->vm);
  298. r = in->ops.dpi->enable(in);
  299. if (r)
  300. return r;
  301. /*
  302. * If we are resuming from system suspend, SPI clocks might not be
  303. * enabled yet, so we'll program the LCD from SPI PM resume callback.
  304. */
  305. if (!ddata->spi_suspended) {
  306. r = tpo_td043_power_on(ddata);
  307. if (r) {
  308. in->ops.dpi->disable(in);
  309. return r;
  310. }
  311. }
  312. dssdev->state = OMAP_DSS_DISPLAY_ACTIVE;
  313. return 0;
  314. }
  315. static void tpo_td043_disable(struct omap_dss_device *dssdev)
  316. {
  317. struct panel_drv_data *ddata = to_panel_data(dssdev);
  318. struct omap_dss_device *in = ddata->in;
  319. if (!omapdss_device_is_enabled(dssdev))
  320. return;
  321. in->ops.dpi->disable(in);
  322. if (!ddata->spi_suspended)
  323. tpo_td043_power_off(ddata);
  324. dssdev->state = OMAP_DSS_DISPLAY_DISABLED;
  325. }
  326. static void tpo_td043_set_timings(struct omap_dss_device *dssdev,
  327. struct videomode *vm)
  328. {
  329. struct panel_drv_data *ddata = to_panel_data(dssdev);
  330. struct omap_dss_device *in = ddata->in;
  331. ddata->vm = *vm;
  332. dssdev->panel.vm = *vm;
  333. in->ops.dpi->set_timings(in, vm);
  334. }
  335. static void tpo_td043_get_timings(struct omap_dss_device *dssdev,
  336. struct videomode *vm)
  337. {
  338. struct panel_drv_data *ddata = to_panel_data(dssdev);
  339. *vm = ddata->vm;
  340. }
  341. static int tpo_td043_check_timings(struct omap_dss_device *dssdev,
  342. struct videomode *vm)
  343. {
  344. struct panel_drv_data *ddata = to_panel_data(dssdev);
  345. struct omap_dss_device *in = ddata->in;
  346. return in->ops.dpi->check_timings(in, vm);
  347. }
  348. static struct omap_dss_driver tpo_td043_ops = {
  349. .connect = tpo_td043_connect,
  350. .disconnect = tpo_td043_disconnect,
  351. .enable = tpo_td043_enable,
  352. .disable = tpo_td043_disable,
  353. .set_timings = tpo_td043_set_timings,
  354. .get_timings = tpo_td043_get_timings,
  355. .check_timings = tpo_td043_check_timings,
  356. .set_mirror = tpo_td043_set_hmirror,
  357. .get_mirror = tpo_td043_get_hmirror,
  358. .get_resolution = omapdss_default_get_resolution,
  359. };
  360. static int tpo_td043_probe_of(struct spi_device *spi)
  361. {
  362. struct device_node *node = spi->dev.of_node;
  363. struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev);
  364. struct omap_dss_device *in;
  365. int gpio;
  366. gpio = of_get_named_gpio(node, "reset-gpios", 0);
  367. if (!gpio_is_valid(gpio)) {
  368. dev_err(&spi->dev, "failed to parse enable gpio\n");
  369. return gpio;
  370. }
  371. ddata->nreset_gpio = gpio;
  372. in = omapdss_of_find_source_for_first_ep(node);
  373. if (IS_ERR(in)) {
  374. dev_err(&spi->dev, "failed to find video source\n");
  375. return PTR_ERR(in);
  376. }
  377. ddata->in = in;
  378. return 0;
  379. }
  380. static int tpo_td043_probe(struct spi_device *spi)
  381. {
  382. struct panel_drv_data *ddata;
  383. struct omap_dss_device *dssdev;
  384. int r;
  385. dev_dbg(&spi->dev, "%s\n", __func__);
  386. spi->bits_per_word = 16;
  387. spi->mode = SPI_MODE_0;
  388. r = spi_setup(spi);
  389. if (r < 0) {
  390. dev_err(&spi->dev, "spi_setup failed: %d\n", r);
  391. return r;
  392. }
  393. ddata = devm_kzalloc(&spi->dev, sizeof(*ddata), GFP_KERNEL);
  394. if (ddata == NULL)
  395. return -ENOMEM;
  396. dev_set_drvdata(&spi->dev, ddata);
  397. ddata->spi = spi;
  398. if (!spi->dev.of_node)
  399. return -ENODEV;
  400. r = tpo_td043_probe_of(spi);
  401. if (r)
  402. return r;
  403. ddata->mode = TPO_R02_MODE_800x480;
  404. memcpy(ddata->gamma, tpo_td043_def_gamma, sizeof(ddata->gamma));
  405. ddata->vcc_reg = devm_regulator_get(&spi->dev, "vcc");
  406. if (IS_ERR(ddata->vcc_reg)) {
  407. dev_err(&spi->dev, "failed to get LCD VCC regulator\n");
  408. r = PTR_ERR(ddata->vcc_reg);
  409. goto err_regulator;
  410. }
  411. if (gpio_is_valid(ddata->nreset_gpio)) {
  412. r = devm_gpio_request_one(&spi->dev,
  413. ddata->nreset_gpio, GPIOF_OUT_INIT_LOW,
  414. "lcd reset");
  415. if (r < 0) {
  416. dev_err(&spi->dev, "couldn't request reset GPIO\n");
  417. goto err_gpio_req;
  418. }
  419. }
  420. r = sysfs_create_group(&spi->dev.kobj, &tpo_td043_attr_group);
  421. if (r) {
  422. dev_err(&spi->dev, "failed to create sysfs files\n");
  423. goto err_sysfs;
  424. }
  425. ddata->vm = tpo_td043_vm;
  426. dssdev = &ddata->dssdev;
  427. dssdev->dev = &spi->dev;
  428. dssdev->driver = &tpo_td043_ops;
  429. dssdev->type = OMAP_DISPLAY_TYPE_DPI;
  430. dssdev->owner = THIS_MODULE;
  431. dssdev->panel.vm = ddata->vm;
  432. r = omapdss_register_display(dssdev);
  433. if (r) {
  434. dev_err(&spi->dev, "Failed to register panel\n");
  435. goto err_reg;
  436. }
  437. return 0;
  438. err_reg:
  439. sysfs_remove_group(&spi->dev.kobj, &tpo_td043_attr_group);
  440. err_sysfs:
  441. err_gpio_req:
  442. err_regulator:
  443. omap_dss_put_device(ddata->in);
  444. return r;
  445. }
  446. static int tpo_td043_remove(struct spi_device *spi)
  447. {
  448. struct panel_drv_data *ddata = dev_get_drvdata(&spi->dev);
  449. struct omap_dss_device *dssdev = &ddata->dssdev;
  450. struct omap_dss_device *in = ddata->in;
  451. dev_dbg(&ddata->spi->dev, "%s\n", __func__);
  452. omapdss_unregister_display(dssdev);
  453. tpo_td043_disable(dssdev);
  454. tpo_td043_disconnect(dssdev);
  455. omap_dss_put_device(in);
  456. sysfs_remove_group(&spi->dev.kobj, &tpo_td043_attr_group);
  457. return 0;
  458. }
  459. #ifdef CONFIG_PM_SLEEP
  460. static int tpo_td043_spi_suspend(struct device *dev)
  461. {
  462. struct panel_drv_data *ddata = dev_get_drvdata(dev);
  463. dev_dbg(dev, "tpo_td043_spi_suspend, tpo %p\n", ddata);
  464. ddata->power_on_resume = ddata->powered_on;
  465. tpo_td043_power_off(ddata);
  466. ddata->spi_suspended = 1;
  467. return 0;
  468. }
  469. static int tpo_td043_spi_resume(struct device *dev)
  470. {
  471. struct panel_drv_data *ddata = dev_get_drvdata(dev);
  472. int ret;
  473. dev_dbg(dev, "tpo_td043_spi_resume\n");
  474. if (ddata->power_on_resume) {
  475. ret = tpo_td043_power_on(ddata);
  476. if (ret)
  477. return ret;
  478. }
  479. ddata->spi_suspended = 0;
  480. return 0;
  481. }
  482. #endif
  483. static SIMPLE_DEV_PM_OPS(tpo_td043_spi_pm,
  484. tpo_td043_spi_suspend, tpo_td043_spi_resume);
  485. static const struct of_device_id tpo_td043_of_match[] = {
  486. { .compatible = "omapdss,tpo,td043mtea1", },
  487. {},
  488. };
  489. MODULE_DEVICE_TABLE(of, tpo_td043_of_match);
  490. static struct spi_driver tpo_td043_spi_driver = {
  491. .driver = {
  492. .name = "panel-tpo-td043mtea1",
  493. .pm = &tpo_td043_spi_pm,
  494. .of_match_table = tpo_td043_of_match,
  495. .suppress_bind_attrs = true,
  496. },
  497. .probe = tpo_td043_probe,
  498. .remove = tpo_td043_remove,
  499. };
  500. module_spi_driver(tpo_td043_spi_driver);
  501. MODULE_ALIAS("spi:tpo,td043mtea1");
  502. MODULE_AUTHOR("Gražvydas Ignotas <notasas@gmail.com>");
  503. MODULE_DESCRIPTION("TPO TD043MTEA1 LCD Driver");
  504. MODULE_LICENSE("GPL");