panel-innolux-p079zca.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * Copyright (c) 2017, Fuzhou Rockchip Electronics Co., Ltd
  4. */
  5. #include <linux/delay.h>
  6. #include <linux/gpio/consumer.h>
  7. #include <linux/module.h>
  8. #include <linux/of.h>
  9. #include <linux/of_device.h>
  10. #include <linux/regulator/consumer.h>
  11. #include <video/mipi_display.h>
  12. #include <drm/drm_crtc.h>
  13. #include <drm/drm_device.h>
  14. #include <drm/drm_mipi_dsi.h>
  15. #include <drm/drm_modes.h>
  16. #include <drm/drm_panel.h>
  17. struct panel_init_cmd {
  18. size_t len;
  19. const char *data;
  20. };
  21. #define _INIT_CMD(...) { \
  22. .len = sizeof((char[]){__VA_ARGS__}), \
  23. .data = (char[]){__VA_ARGS__} }
  24. struct panel_desc {
  25. const struct drm_display_mode *mode;
  26. unsigned int bpc;
  27. struct {
  28. unsigned int width;
  29. unsigned int height;
  30. } size;
  31. unsigned long flags;
  32. enum mipi_dsi_pixel_format format;
  33. const struct panel_init_cmd *init_cmds;
  34. unsigned int lanes;
  35. const char * const *supply_names;
  36. unsigned int num_supplies;
  37. unsigned int sleep_mode_delay;
  38. unsigned int power_down_delay;
  39. };
  40. struct innolux_panel {
  41. struct drm_panel base;
  42. struct mipi_dsi_device *link;
  43. const struct panel_desc *desc;
  44. struct regulator_bulk_data *supplies;
  45. struct gpio_desc *enable_gpio;
  46. bool prepared;
  47. bool enabled;
  48. };
  49. static inline struct innolux_panel *to_innolux_panel(struct drm_panel *panel)
  50. {
  51. return container_of(panel, struct innolux_panel, base);
  52. }
  53. static int innolux_panel_disable(struct drm_panel *panel)
  54. {
  55. struct innolux_panel *innolux = to_innolux_panel(panel);
  56. if (!innolux->enabled)
  57. return 0;
  58. innolux->enabled = false;
  59. return 0;
  60. }
  61. static int innolux_panel_unprepare(struct drm_panel *panel)
  62. {
  63. struct innolux_panel *innolux = to_innolux_panel(panel);
  64. int err;
  65. if (!innolux->prepared)
  66. return 0;
  67. err = mipi_dsi_dcs_set_display_off(innolux->link);
  68. if (err < 0)
  69. dev_err(panel->dev, "failed to set display off: %d\n", err);
  70. err = mipi_dsi_dcs_enter_sleep_mode(innolux->link);
  71. if (err < 0) {
  72. dev_err(panel->dev, "failed to enter sleep mode: %d\n", err);
  73. return err;
  74. }
  75. if (innolux->desc->sleep_mode_delay)
  76. msleep(innolux->desc->sleep_mode_delay);
  77. gpiod_set_value_cansleep(innolux->enable_gpio, 0);
  78. if (innolux->desc->power_down_delay)
  79. msleep(innolux->desc->power_down_delay);
  80. err = regulator_bulk_disable(innolux->desc->num_supplies,
  81. innolux->supplies);
  82. if (err < 0)
  83. return err;
  84. innolux->prepared = false;
  85. return 0;
  86. }
  87. static int innolux_panel_prepare(struct drm_panel *panel)
  88. {
  89. struct innolux_panel *innolux = to_innolux_panel(panel);
  90. int err;
  91. if (innolux->prepared)
  92. return 0;
  93. gpiod_set_value_cansleep(innolux->enable_gpio, 0);
  94. err = regulator_bulk_enable(innolux->desc->num_supplies,
  95. innolux->supplies);
  96. if (err < 0)
  97. return err;
  98. /* p079zca: t2 (20ms), p097pfg: t4 (15ms) */
  99. usleep_range(20000, 21000);
  100. gpiod_set_value_cansleep(innolux->enable_gpio, 1);
  101. /* p079zca: t4, p097pfg: t5 */
  102. usleep_range(20000, 21000);
  103. if (innolux->desc->init_cmds) {
  104. const struct panel_init_cmd *cmds =
  105. innolux->desc->init_cmds;
  106. unsigned int i;
  107. for (i = 0; cmds[i].len != 0; i++) {
  108. const struct panel_init_cmd *cmd = &cmds[i];
  109. err = mipi_dsi_generic_write(innolux->link, cmd->data,
  110. cmd->len);
  111. if (err < 0) {
  112. dev_err(panel->dev, "failed to write command %u\n", i);
  113. goto poweroff;
  114. }
  115. /*
  116. * Included by random guessing, because without this
  117. * (or at least, some delay), the panel sometimes
  118. * didn't appear to pick up the command sequence.
  119. */
  120. err = mipi_dsi_dcs_nop(innolux->link);
  121. if (err < 0) {
  122. dev_err(panel->dev, "failed to send DCS nop: %d\n", err);
  123. goto poweroff;
  124. }
  125. }
  126. }
  127. err = mipi_dsi_dcs_exit_sleep_mode(innolux->link);
  128. if (err < 0) {
  129. dev_err(panel->dev, "failed to exit sleep mode: %d\n", err);
  130. goto poweroff;
  131. }
  132. /* T6: 120ms - 1000ms*/
  133. msleep(120);
  134. err = mipi_dsi_dcs_set_display_on(innolux->link);
  135. if (err < 0) {
  136. dev_err(panel->dev, "failed to set display on: %d\n", err);
  137. goto poweroff;
  138. }
  139. /* T7: 5ms */
  140. usleep_range(5000, 6000);
  141. innolux->prepared = true;
  142. return 0;
  143. poweroff:
  144. gpiod_set_value_cansleep(innolux->enable_gpio, 0);
  145. regulator_bulk_disable(innolux->desc->num_supplies, innolux->supplies);
  146. return err;
  147. }
  148. static int innolux_panel_enable(struct drm_panel *panel)
  149. {
  150. struct innolux_panel *innolux = to_innolux_panel(panel);
  151. if (innolux->enabled)
  152. return 0;
  153. innolux->enabled = true;
  154. return 0;
  155. }
  156. static const char * const innolux_p079zca_supply_names[] = {
  157. "power",
  158. };
  159. static const struct drm_display_mode innolux_p079zca_mode = {
  160. .clock = 56900,
  161. .hdisplay = 768,
  162. .hsync_start = 768 + 40,
  163. .hsync_end = 768 + 40 + 40,
  164. .htotal = 768 + 40 + 40 + 40,
  165. .vdisplay = 1024,
  166. .vsync_start = 1024 + 20,
  167. .vsync_end = 1024 + 20 + 4,
  168. .vtotal = 1024 + 20 + 4 + 20,
  169. };
  170. static const struct panel_desc innolux_p079zca_panel_desc = {
  171. .mode = &innolux_p079zca_mode,
  172. .bpc = 8,
  173. .size = {
  174. .width = 120,
  175. .height = 160,
  176. },
  177. .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
  178. MIPI_DSI_MODE_LPM,
  179. .format = MIPI_DSI_FMT_RGB888,
  180. .lanes = 4,
  181. .supply_names = innolux_p079zca_supply_names,
  182. .num_supplies = ARRAY_SIZE(innolux_p079zca_supply_names),
  183. .power_down_delay = 80, /* T8: 80ms - 1000ms */
  184. };
  185. static const char * const innolux_p097pfg_supply_names[] = {
  186. "avdd",
  187. "avee",
  188. };
  189. static const struct drm_display_mode innolux_p097pfg_mode = {
  190. .clock = 229000,
  191. .hdisplay = 1536,
  192. .hsync_start = 1536 + 100,
  193. .hsync_end = 1536 + 100 + 24,
  194. .htotal = 1536 + 100 + 24 + 100,
  195. .vdisplay = 2048,
  196. .vsync_start = 2048 + 100,
  197. .vsync_end = 2048 + 100 + 2,
  198. .vtotal = 2048 + 100 + 2 + 18,
  199. };
  200. /*
  201. * Display manufacturer failed to provide init sequencing according to
  202. * https://chromium-review.googlesource.com/c/chromiumos/third_party/coreboot/+/892065/
  203. * so the init sequence stems from a register dump of a working panel.
  204. */
  205. static const struct panel_init_cmd innolux_p097pfg_init_cmds[] = {
  206. /* page 0 */
  207. _INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x00),
  208. _INIT_CMD(0xB1, 0xE8, 0x11),
  209. _INIT_CMD(0xB2, 0x25, 0x02),
  210. _INIT_CMD(0xB5, 0x08, 0x00),
  211. _INIT_CMD(0xBC, 0x0F, 0x00),
  212. _INIT_CMD(0xB8, 0x03, 0x06, 0x00, 0x00),
  213. _INIT_CMD(0xBD, 0x01, 0x90, 0x14, 0x14),
  214. _INIT_CMD(0x6F, 0x01),
  215. _INIT_CMD(0xC0, 0x03),
  216. _INIT_CMD(0x6F, 0x02),
  217. _INIT_CMD(0xC1, 0x0D),
  218. _INIT_CMD(0xD9, 0x01, 0x09, 0x70),
  219. _INIT_CMD(0xC5, 0x12, 0x21, 0x00),
  220. _INIT_CMD(0xBB, 0x93, 0x93),
  221. /* page 1 */
  222. _INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x01),
  223. _INIT_CMD(0xB3, 0x3C, 0x3C),
  224. _INIT_CMD(0xB4, 0x0F, 0x0F),
  225. _INIT_CMD(0xB9, 0x45, 0x45),
  226. _INIT_CMD(0xBA, 0x14, 0x14),
  227. _INIT_CMD(0xCA, 0x02),
  228. _INIT_CMD(0xCE, 0x04),
  229. _INIT_CMD(0xC3, 0x9B, 0x9B),
  230. _INIT_CMD(0xD8, 0xC0, 0x03),
  231. _INIT_CMD(0xBC, 0x82, 0x01),
  232. _INIT_CMD(0xBD, 0x9E, 0x01),
  233. /* page 2 */
  234. _INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x02),
  235. _INIT_CMD(0xB0, 0x82),
  236. _INIT_CMD(0xD1, 0x00, 0x00, 0x00, 0x3E, 0x00, 0x82, 0x00, 0xA5,
  237. 0x00, 0xC1, 0x00, 0xEA, 0x01, 0x0D, 0x01, 0x40),
  238. _INIT_CMD(0xD2, 0x01, 0x6A, 0x01, 0xA8, 0x01, 0xDC, 0x02, 0x29,
  239. 0x02, 0x67, 0x02, 0x68, 0x02, 0xA8, 0x02, 0xF0),
  240. _INIT_CMD(0xD3, 0x03, 0x19, 0x03, 0x49, 0x03, 0x67, 0x03, 0x8C,
  241. 0x03, 0xA6, 0x03, 0xC7, 0x03, 0xDE, 0x03, 0xEC),
  242. _INIT_CMD(0xD4, 0x03, 0xFF, 0x03, 0xFF),
  243. _INIT_CMD(0xE0, 0x00, 0x00, 0x00, 0x86, 0x00, 0xC5, 0x00, 0xE5,
  244. 0x00, 0xFF, 0x01, 0x26, 0x01, 0x45, 0x01, 0x75),
  245. _INIT_CMD(0xE1, 0x01, 0x9C, 0x01, 0xD5, 0x02, 0x05, 0x02, 0x4D,
  246. 0x02, 0x86, 0x02, 0x87, 0x02, 0xC3, 0x03, 0x03),
  247. _INIT_CMD(0xE2, 0x03, 0x2A, 0x03, 0x56, 0x03, 0x72, 0x03, 0x94,
  248. 0x03, 0xAC, 0x03, 0xCB, 0x03, 0xE0, 0x03, 0xED),
  249. _INIT_CMD(0xE3, 0x03, 0xFF, 0x03, 0xFF),
  250. /* page 3 */
  251. _INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x03),
  252. _INIT_CMD(0xB0, 0x00, 0x00, 0x00, 0x00),
  253. _INIT_CMD(0xB1, 0x00, 0x00, 0x00, 0x00),
  254. _INIT_CMD(0xB2, 0x00, 0x00, 0x06, 0x04, 0x01, 0x40, 0x85),
  255. _INIT_CMD(0xB3, 0x10, 0x07, 0xFC, 0x04, 0x01, 0x40, 0x80),
  256. _INIT_CMD(0xB6, 0xF0, 0x08, 0x00, 0x04, 0x00, 0x00, 0x00, 0x01,
  257. 0x40, 0x80),
  258. _INIT_CMD(0xBA, 0xC5, 0x07, 0x00, 0x04, 0x11, 0x25, 0x8C),
  259. _INIT_CMD(0xBB, 0xC5, 0x07, 0x00, 0x03, 0x11, 0x25, 0x8C),
  260. _INIT_CMD(0xC0, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x80, 0x80),
  261. _INIT_CMD(0xC1, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x80, 0x80),
  262. _INIT_CMD(0xC4, 0x00, 0x00),
  263. _INIT_CMD(0xEF, 0x41),
  264. /* page 4 */
  265. _INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x04),
  266. _INIT_CMD(0xEC, 0x4C),
  267. /* page 5 */
  268. _INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x05),
  269. _INIT_CMD(0xB0, 0x13, 0x03, 0x03, 0x01),
  270. _INIT_CMD(0xB1, 0x30, 0x00),
  271. _INIT_CMD(0xB2, 0x02, 0x02, 0x00),
  272. _INIT_CMD(0xB3, 0x82, 0x23, 0x82, 0x9D),
  273. _INIT_CMD(0xB4, 0xC5, 0x75, 0x24, 0x57),
  274. _INIT_CMD(0xB5, 0x00, 0xD4, 0x72, 0x11, 0x11, 0xAB, 0x0A),
  275. _INIT_CMD(0xB6, 0x00, 0x00, 0xD5, 0x72, 0x24, 0x56),
  276. _INIT_CMD(0xB7, 0x5C, 0xDC, 0x5C, 0x5C),
  277. _INIT_CMD(0xB9, 0x0C, 0x00, 0x00, 0x01, 0x00),
  278. _INIT_CMD(0xC0, 0x75, 0x11, 0x11, 0x54, 0x05),
  279. _INIT_CMD(0xC6, 0x00, 0x00, 0x00, 0x00),
  280. _INIT_CMD(0xD0, 0x00, 0x48, 0x08, 0x00, 0x00),
  281. _INIT_CMD(0xD1, 0x00, 0x48, 0x09, 0x00, 0x00),
  282. /* page 6 */
  283. _INIT_CMD(0xF0, 0x55, 0xAA, 0x52, 0x08, 0x06),
  284. _INIT_CMD(0xB0, 0x02, 0x32, 0x32, 0x08, 0x2F),
  285. _INIT_CMD(0xB1, 0x2E, 0x15, 0x14, 0x13, 0x12),
  286. _INIT_CMD(0xB2, 0x11, 0x10, 0x00, 0x3D, 0x3D),
  287. _INIT_CMD(0xB3, 0x3D, 0x3D, 0x3D, 0x3D, 0x3D),
  288. _INIT_CMD(0xB4, 0x3D, 0x32),
  289. _INIT_CMD(0xB5, 0x03, 0x32, 0x32, 0x09, 0x2F),
  290. _INIT_CMD(0xB6, 0x2E, 0x1B, 0x1A, 0x19, 0x18),
  291. _INIT_CMD(0xB7, 0x17, 0x16, 0x01, 0x3D, 0x3D),
  292. _INIT_CMD(0xB8, 0x3D, 0x3D, 0x3D, 0x3D, 0x3D),
  293. _INIT_CMD(0xB9, 0x3D, 0x32),
  294. _INIT_CMD(0xC0, 0x01, 0x32, 0x32, 0x09, 0x2F),
  295. _INIT_CMD(0xC1, 0x2E, 0x1A, 0x1B, 0x16, 0x17),
  296. _INIT_CMD(0xC2, 0x18, 0x19, 0x03, 0x3D, 0x3D),
  297. _INIT_CMD(0xC3, 0x3D, 0x3D, 0x3D, 0x3D, 0x3D),
  298. _INIT_CMD(0xC4, 0x3D, 0x32),
  299. _INIT_CMD(0xC5, 0x00, 0x32, 0x32, 0x08, 0x2F),
  300. _INIT_CMD(0xC6, 0x2E, 0x14, 0x15, 0x10, 0x11),
  301. _INIT_CMD(0xC7, 0x12, 0x13, 0x02, 0x3D, 0x3D),
  302. _INIT_CMD(0xC8, 0x3D, 0x3D, 0x3D, 0x3D, 0x3D),
  303. _INIT_CMD(0xC9, 0x3D, 0x32),
  304. {},
  305. };
  306. static const struct panel_desc innolux_p097pfg_panel_desc = {
  307. .mode = &innolux_p097pfg_mode,
  308. .bpc = 8,
  309. .size = {
  310. .width = 147,
  311. .height = 196,
  312. },
  313. .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
  314. MIPI_DSI_MODE_LPM,
  315. .format = MIPI_DSI_FMT_RGB888,
  316. .init_cmds = innolux_p097pfg_init_cmds,
  317. .lanes = 4,
  318. .supply_names = innolux_p097pfg_supply_names,
  319. .num_supplies = ARRAY_SIZE(innolux_p097pfg_supply_names),
  320. .sleep_mode_delay = 100, /* T15 */
  321. };
  322. static int innolux_panel_get_modes(struct drm_panel *panel,
  323. struct drm_connector *connector)
  324. {
  325. struct innolux_panel *innolux = to_innolux_panel(panel);
  326. const struct drm_display_mode *m = innolux->desc->mode;
  327. struct drm_display_mode *mode;
  328. mode = drm_mode_duplicate(connector->dev, m);
  329. if (!mode) {
  330. dev_err(panel->dev, "failed to add mode %ux%u@%u\n",
  331. m->hdisplay, m->vdisplay, drm_mode_vrefresh(m));
  332. return -ENOMEM;
  333. }
  334. drm_mode_set_name(mode);
  335. drm_mode_probed_add(connector, mode);
  336. connector->display_info.width_mm = innolux->desc->size.width;
  337. connector->display_info.height_mm = innolux->desc->size.height;
  338. connector->display_info.bpc = innolux->desc->bpc;
  339. return 1;
  340. }
  341. static const struct drm_panel_funcs innolux_panel_funcs = {
  342. .disable = innolux_panel_disable,
  343. .unprepare = innolux_panel_unprepare,
  344. .prepare = innolux_panel_prepare,
  345. .enable = innolux_panel_enable,
  346. .get_modes = innolux_panel_get_modes,
  347. };
  348. static const struct of_device_id innolux_of_match[] = {
  349. { .compatible = "innolux,p079zca",
  350. .data = &innolux_p079zca_panel_desc
  351. },
  352. { .compatible = "innolux,p097pfg",
  353. .data = &innolux_p097pfg_panel_desc
  354. },
  355. { }
  356. };
  357. MODULE_DEVICE_TABLE(of, innolux_of_match);
  358. static int innolux_panel_add(struct mipi_dsi_device *dsi,
  359. const struct panel_desc *desc)
  360. {
  361. struct innolux_panel *innolux;
  362. struct device *dev = &dsi->dev;
  363. int err, i;
  364. innolux = devm_kzalloc(dev, sizeof(*innolux), GFP_KERNEL);
  365. if (!innolux)
  366. return -ENOMEM;
  367. innolux->desc = desc;
  368. innolux->supplies = devm_kcalloc(dev, desc->num_supplies,
  369. sizeof(*innolux->supplies),
  370. GFP_KERNEL);
  371. if (!innolux->supplies)
  372. return -ENOMEM;
  373. for (i = 0; i < desc->num_supplies; i++)
  374. innolux->supplies[i].supply = desc->supply_names[i];
  375. err = devm_regulator_bulk_get(dev, desc->num_supplies,
  376. innolux->supplies);
  377. if (err < 0)
  378. return err;
  379. innolux->enable_gpio = devm_gpiod_get_optional(dev, "enable",
  380. GPIOD_OUT_HIGH);
  381. if (IS_ERR(innolux->enable_gpio)) {
  382. err = PTR_ERR(innolux->enable_gpio);
  383. dev_dbg(dev, "failed to get enable gpio: %d\n", err);
  384. innolux->enable_gpio = NULL;
  385. }
  386. drm_panel_init(&innolux->base, dev, &innolux_panel_funcs,
  387. DRM_MODE_CONNECTOR_DSI);
  388. err = drm_panel_of_backlight(&innolux->base);
  389. if (err)
  390. return err;
  391. drm_panel_add(&innolux->base);
  392. mipi_dsi_set_drvdata(dsi, innolux);
  393. innolux->link = dsi;
  394. return 0;
  395. }
  396. static void innolux_panel_del(struct innolux_panel *innolux)
  397. {
  398. drm_panel_remove(&innolux->base);
  399. }
  400. static int innolux_panel_probe(struct mipi_dsi_device *dsi)
  401. {
  402. const struct panel_desc *desc;
  403. struct innolux_panel *innolux;
  404. int err;
  405. desc = of_device_get_match_data(&dsi->dev);
  406. dsi->mode_flags = desc->flags;
  407. dsi->format = desc->format;
  408. dsi->lanes = desc->lanes;
  409. err = innolux_panel_add(dsi, desc);
  410. if (err < 0)
  411. return err;
  412. err = mipi_dsi_attach(dsi);
  413. if (err < 0) {
  414. innolux = mipi_dsi_get_drvdata(dsi);
  415. innolux_panel_del(innolux);
  416. return err;
  417. }
  418. return 0;
  419. }
  420. static int innolux_panel_remove(struct mipi_dsi_device *dsi)
  421. {
  422. struct innolux_panel *innolux = mipi_dsi_get_drvdata(dsi);
  423. int err;
  424. err = drm_panel_unprepare(&innolux->base);
  425. if (err < 0)
  426. dev_err(&dsi->dev, "failed to unprepare panel: %d\n", err);
  427. err = drm_panel_disable(&innolux->base);
  428. if (err < 0)
  429. dev_err(&dsi->dev, "failed to disable panel: %d\n", err);
  430. err = mipi_dsi_detach(dsi);
  431. if (err < 0)
  432. dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err);
  433. innolux_panel_del(innolux);
  434. return 0;
  435. }
  436. static void innolux_panel_shutdown(struct mipi_dsi_device *dsi)
  437. {
  438. struct innolux_panel *innolux = mipi_dsi_get_drvdata(dsi);
  439. drm_panel_unprepare(&innolux->base);
  440. drm_panel_disable(&innolux->base);
  441. }
  442. static struct mipi_dsi_driver innolux_panel_driver = {
  443. .driver = {
  444. .name = "panel-innolux-p079zca",
  445. .of_match_table = innolux_of_match,
  446. },
  447. .probe = innolux_panel_probe,
  448. .remove = innolux_panel_remove,
  449. .shutdown = innolux_panel_shutdown,
  450. };
  451. module_mipi_dsi_driver(innolux_panel_driver);
  452. MODULE_AUTHOR("Chris Zhong <zyw@rock-chips.com>");
  453. MODULE_AUTHOR("Lin Huang <hl@rock-chips.com>");
  454. MODULE_DESCRIPTION("Innolux P079ZCA panel driver");
  455. MODULE_LICENSE("GPL v2");