panel-orisetech-otm8009a.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491
  1. /*
  2. * Copyright (C) STMicroelectronics SA 2017
  3. *
  4. * Authors: Philippe Cornu <philippe.cornu@st.com>
  5. * Yannick Fertre <yannick.fertre@st.com>
  6. *
  7. * License terms: GNU General Public License (GPL), version 2
  8. */
  9. #include <drm/drmP.h>
  10. #include <drm/drm_mipi_dsi.h>
  11. #include <drm/drm_panel.h>
  12. #include <linux/backlight.h>
  13. #include <linux/gpio/consumer.h>
  14. #include <video/mipi_display.h>
  15. #define DRV_NAME "orisetech_otm8009a"
  16. #define OTM8009A_BACKLIGHT_DEFAULT 240
  17. #define OTM8009A_BACKLIGHT_MAX 255
  18. /* Manufacturer Command Set */
  19. #define MCS_ADRSFT 0x0000 /* Address Shift Function */
  20. #define MCS_PANSET 0xB3A6 /* Panel Type Setting */
  21. #define MCS_SD_CTRL 0xC0A2 /* Source Driver Timing Setting */
  22. #define MCS_P_DRV_M 0xC0B4 /* Panel Driving Mode */
  23. #define MCS_OSC_ADJ 0xC181 /* Oscillator Adjustment for Idle/Normal mode */
  24. #define MCS_RGB_VID_SET 0xC1A1 /* RGB Video Mode Setting */
  25. #define MCS_SD_PCH_CTRL 0xC480 /* Source Driver Precharge Control */
  26. #define MCS_NO_DOC1 0xC48A /* Command not documented */
  27. #define MCS_PWR_CTRL1 0xC580 /* Power Control Setting 1 */
  28. #define MCS_PWR_CTRL2 0xC590 /* Power Control Setting 2 for Normal Mode */
  29. #define MCS_PWR_CTRL4 0xC5B0 /* Power Control Setting 4 for DC Voltage */
  30. #define MCS_PANCTRLSET1 0xCB80 /* Panel Control Setting 1 */
  31. #define MCS_PANCTRLSET2 0xCB90 /* Panel Control Setting 2 */
  32. #define MCS_PANCTRLSET3 0xCBA0 /* Panel Control Setting 3 */
  33. #define MCS_PANCTRLSET4 0xCBB0 /* Panel Control Setting 4 */
  34. #define MCS_PANCTRLSET5 0xCBC0 /* Panel Control Setting 5 */
  35. #define MCS_PANCTRLSET6 0xCBD0 /* Panel Control Setting 6 */
  36. #define MCS_PANCTRLSET7 0xCBE0 /* Panel Control Setting 7 */
  37. #define MCS_PANCTRLSET8 0xCBF0 /* Panel Control Setting 8 */
  38. #define MCS_PANU2D1 0xCC80 /* Panel U2D Setting 1 */
  39. #define MCS_PANU2D2 0xCC90 /* Panel U2D Setting 2 */
  40. #define MCS_PANU2D3 0xCCA0 /* Panel U2D Setting 3 */
  41. #define MCS_PAND2U1 0xCCB0 /* Panel D2U Setting 1 */
  42. #define MCS_PAND2U2 0xCCC0 /* Panel D2U Setting 2 */
  43. #define MCS_PAND2U3 0xCCD0 /* Panel D2U Setting 3 */
  44. #define MCS_GOAVST 0xCE80 /* GOA VST Setting */
  45. #define MCS_GOACLKA1 0xCEA0 /* GOA CLKA1 Setting */
  46. #define MCS_GOACLKA3 0xCEB0 /* GOA CLKA3 Setting */
  47. #define MCS_GOAECLK 0xCFC0 /* GOA ECLK Setting */
  48. #define MCS_NO_DOC2 0xCFD0 /* Command not documented */
  49. #define MCS_GVDDSET 0xD800 /* GVDD/NGVDD */
  50. #define MCS_VCOMDC 0xD900 /* VCOM Voltage Setting */
  51. #define MCS_GMCT2_2P 0xE100 /* Gamma Correction 2.2+ Setting */
  52. #define MCS_GMCT2_2N 0xE200 /* Gamma Correction 2.2- Setting */
  53. #define MCS_NO_DOC3 0xF5B6 /* Command not documented */
  54. #define MCS_CMD2_ENA1 0xFF00 /* Enable Access Command2 "CMD2" */
  55. #define MCS_CMD2_ENA2 0xFF80 /* Enable Access Orise Command2 */
  56. struct otm8009a {
  57. struct device *dev;
  58. struct drm_panel panel;
  59. struct backlight_device *bl_dev;
  60. struct gpio_desc *reset_gpio;
  61. bool prepared;
  62. bool enabled;
  63. };
  64. static const struct drm_display_mode default_mode = {
  65. .clock = 32729,
  66. .hdisplay = 480,
  67. .hsync_start = 480 + 120,
  68. .hsync_end = 480 + 120 + 63,
  69. .htotal = 480 + 120 + 63 + 120,
  70. .vdisplay = 800,
  71. .vsync_start = 800 + 12,
  72. .vsync_end = 800 + 12 + 12,
  73. .vtotal = 800 + 12 + 12 + 12,
  74. .vrefresh = 50,
  75. .flags = 0,
  76. .width_mm = 52,
  77. .height_mm = 86,
  78. };
  79. static inline struct otm8009a *panel_to_otm8009a(struct drm_panel *panel)
  80. {
  81. return container_of(panel, struct otm8009a, panel);
  82. }
  83. static void otm8009a_dcs_write_buf(struct otm8009a *ctx, const void *data,
  84. size_t len)
  85. {
  86. struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
  87. if (mipi_dsi_dcs_write_buffer(dsi, data, len) < 0)
  88. DRM_WARN("mipi dsi dcs write buffer failed\n");
  89. }
  90. #define dcs_write_seq(ctx, seq...) \
  91. ({ \
  92. static const u8 d[] = { seq }; \
  93. otm8009a_dcs_write_buf(ctx, d, ARRAY_SIZE(d)); \
  94. })
  95. #define dcs_write_cmd_at(ctx, cmd, seq...) \
  96. ({ \
  97. dcs_write_seq(ctx, MCS_ADRSFT, (cmd) & 0xFF); \
  98. dcs_write_seq(ctx, (cmd) >> 8, seq); \
  99. })
  100. static int otm8009a_init_sequence(struct otm8009a *ctx)
  101. {
  102. struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
  103. int ret;
  104. /* Enter CMD2 */
  105. dcs_write_cmd_at(ctx, MCS_CMD2_ENA1, 0x80, 0x09, 0x01);
  106. /* Enter Orise Command2 */
  107. dcs_write_cmd_at(ctx, MCS_CMD2_ENA2, 0x80, 0x09);
  108. dcs_write_cmd_at(ctx, MCS_SD_PCH_CTRL, 0x30);
  109. mdelay(10);
  110. dcs_write_cmd_at(ctx, MCS_NO_DOC1, 0x40);
  111. mdelay(10);
  112. dcs_write_cmd_at(ctx, MCS_PWR_CTRL4 + 1, 0xA9);
  113. dcs_write_cmd_at(ctx, MCS_PWR_CTRL2 + 1, 0x34);
  114. dcs_write_cmd_at(ctx, MCS_P_DRV_M, 0x50);
  115. dcs_write_cmd_at(ctx, MCS_VCOMDC, 0x4E);
  116. dcs_write_cmd_at(ctx, MCS_OSC_ADJ, 0x66); /* 65Hz */
  117. dcs_write_cmd_at(ctx, MCS_PWR_CTRL2 + 2, 0x01);
  118. dcs_write_cmd_at(ctx, MCS_PWR_CTRL2 + 5, 0x34);
  119. dcs_write_cmd_at(ctx, MCS_PWR_CTRL2 + 4, 0x33);
  120. dcs_write_cmd_at(ctx, MCS_GVDDSET, 0x79, 0x79);
  121. dcs_write_cmd_at(ctx, MCS_SD_CTRL + 1, 0x1B);
  122. dcs_write_cmd_at(ctx, MCS_PWR_CTRL1 + 2, 0x83);
  123. dcs_write_cmd_at(ctx, MCS_SD_PCH_CTRL + 1, 0x83);
  124. dcs_write_cmd_at(ctx, MCS_RGB_VID_SET, 0x0E);
  125. dcs_write_cmd_at(ctx, MCS_PANSET, 0x00, 0x01);
  126. dcs_write_cmd_at(ctx, MCS_GOAVST, 0x85, 0x01, 0x00, 0x84, 0x01, 0x00);
  127. dcs_write_cmd_at(ctx, MCS_GOACLKA1, 0x18, 0x04, 0x03, 0x39, 0x00, 0x00,
  128. 0x00, 0x18, 0x03, 0x03, 0x3A, 0x00, 0x00, 0x00);
  129. dcs_write_cmd_at(ctx, MCS_GOACLKA3, 0x18, 0x02, 0x03, 0x3B, 0x00, 0x00,
  130. 0x00, 0x18, 0x01, 0x03, 0x3C, 0x00, 0x00, 0x00);
  131. dcs_write_cmd_at(ctx, MCS_GOAECLK, 0x01, 0x01, 0x20, 0x20, 0x00, 0x00,
  132. 0x01, 0x02, 0x00, 0x00);
  133. dcs_write_cmd_at(ctx, MCS_NO_DOC2, 0x00);
  134. dcs_write_cmd_at(ctx, MCS_PANCTRLSET1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
  135. dcs_write_cmd_at(ctx, MCS_PANCTRLSET2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  136. 0, 0, 0, 0, 0);
  137. dcs_write_cmd_at(ctx, MCS_PANCTRLSET3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  138. 0, 0, 0, 0, 0);
  139. dcs_write_cmd_at(ctx, MCS_PANCTRLSET4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
  140. dcs_write_cmd_at(ctx, MCS_PANCTRLSET5, 0, 4, 4, 4, 4, 4, 0, 0, 0, 0,
  141. 0, 0, 0, 0, 0);
  142. dcs_write_cmd_at(ctx, MCS_PANCTRLSET6, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4,
  143. 4, 0, 0, 0, 0);
  144. dcs_write_cmd_at(ctx, MCS_PANCTRLSET7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
  145. dcs_write_cmd_at(ctx, MCS_PANCTRLSET8, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
  146. 0xFF, 0xFF, 0xFF, 0xFF, 0xFF);
  147. dcs_write_cmd_at(ctx, MCS_PANU2D1, 0x00, 0x26, 0x09, 0x0B, 0x01, 0x25,
  148. 0x00, 0x00, 0x00, 0x00);
  149. dcs_write_cmd_at(ctx, MCS_PANU2D2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  150. 0x00, 0x00, 0x00, 0x00, 0x00, 0x26, 0x0A, 0x0C, 0x02);
  151. dcs_write_cmd_at(ctx, MCS_PANU2D3, 0x25, 0x00, 0x00, 0x00, 0x00, 0x00,
  152. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
  153. dcs_write_cmd_at(ctx, MCS_PAND2U1, 0x00, 0x25, 0x0C, 0x0A, 0x02, 0x26,
  154. 0x00, 0x00, 0x00, 0x00);
  155. dcs_write_cmd_at(ctx, MCS_PAND2U2, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  156. 0x00, 0x00, 0x00, 0x00, 0x00, 0x25, 0x0B, 0x09, 0x01);
  157. dcs_write_cmd_at(ctx, MCS_PAND2U3, 0x26, 0x00, 0x00, 0x00, 0x00, 0x00,
  158. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);
  159. dcs_write_cmd_at(ctx, MCS_PWR_CTRL1 + 1, 0x66);
  160. dcs_write_cmd_at(ctx, MCS_NO_DOC3, 0x06);
  161. dcs_write_cmd_at(ctx, MCS_GMCT2_2P, 0x00, 0x09, 0x0F, 0x0E, 0x07, 0x10,
  162. 0x0B, 0x0A, 0x04, 0x07, 0x0B, 0x08, 0x0F, 0x10, 0x0A,
  163. 0x01);
  164. dcs_write_cmd_at(ctx, MCS_GMCT2_2N, 0x00, 0x09, 0x0F, 0x0E, 0x07, 0x10,
  165. 0x0B, 0x0A, 0x04, 0x07, 0x0B, 0x08, 0x0F, 0x10, 0x0A,
  166. 0x01);
  167. /* Exit CMD2 */
  168. dcs_write_cmd_at(ctx, MCS_CMD2_ENA1, 0xFF, 0xFF, 0xFF);
  169. ret = mipi_dsi_dcs_nop(dsi);
  170. if (ret)
  171. return ret;
  172. ret = mipi_dsi_dcs_exit_sleep_mode(dsi);
  173. if (ret)
  174. return ret;
  175. /* Wait for sleep out exit */
  176. mdelay(120);
  177. /* Default portrait 480x800 rgb24 */
  178. dcs_write_seq(ctx, MIPI_DCS_SET_ADDRESS_MODE, 0x00);
  179. ret = mipi_dsi_dcs_set_column_address(dsi, 0,
  180. default_mode.hdisplay - 1);
  181. if (ret)
  182. return ret;
  183. ret = mipi_dsi_dcs_set_page_address(dsi, 0, default_mode.vdisplay - 1);
  184. if (ret)
  185. return ret;
  186. /* See otm8009a driver documentation for pixel format descriptions */
  187. ret = mipi_dsi_dcs_set_pixel_format(dsi, MIPI_DCS_PIXEL_FMT_24BIT |
  188. MIPI_DCS_PIXEL_FMT_24BIT << 4);
  189. if (ret)
  190. return ret;
  191. /* Disable CABC feature */
  192. dcs_write_seq(ctx, MIPI_DCS_WRITE_POWER_SAVE, 0x00);
  193. ret = mipi_dsi_dcs_set_display_on(dsi);
  194. if (ret)
  195. return ret;
  196. ret = mipi_dsi_dcs_nop(dsi);
  197. if (ret)
  198. return ret;
  199. /* Send Command GRAM memory write (no parameters) */
  200. dcs_write_seq(ctx, MIPI_DCS_WRITE_MEMORY_START);
  201. return 0;
  202. }
  203. static int otm8009a_disable(struct drm_panel *panel)
  204. {
  205. struct otm8009a *ctx = panel_to_otm8009a(panel);
  206. struct mipi_dsi_device *dsi = to_mipi_dsi_device(ctx->dev);
  207. int ret;
  208. if (!ctx->enabled)
  209. return 0; /* This is not an issue so we return 0 here */
  210. /* Power off the backlight. Note: end-user still controls brightness */
  211. ctx->bl_dev->props.power = FB_BLANK_POWERDOWN;
  212. ret = backlight_update_status(ctx->bl_dev);
  213. if (ret)
  214. return ret;
  215. ret = mipi_dsi_dcs_set_display_off(dsi);
  216. if (ret)
  217. return ret;
  218. ret = mipi_dsi_dcs_enter_sleep_mode(dsi);
  219. if (ret)
  220. return ret;
  221. msleep(120);
  222. ctx->enabled = false;
  223. return 0;
  224. }
  225. static int otm8009a_unprepare(struct drm_panel *panel)
  226. {
  227. struct otm8009a *ctx = panel_to_otm8009a(panel);
  228. if (!ctx->prepared)
  229. return 0;
  230. if (ctx->reset_gpio) {
  231. gpiod_set_value_cansleep(ctx->reset_gpio, 1);
  232. msleep(20);
  233. }
  234. ctx->prepared = false;
  235. return 0;
  236. }
  237. static int otm8009a_prepare(struct drm_panel *panel)
  238. {
  239. struct otm8009a *ctx = panel_to_otm8009a(panel);
  240. int ret;
  241. if (ctx->prepared)
  242. return 0;
  243. if (ctx->reset_gpio) {
  244. gpiod_set_value_cansleep(ctx->reset_gpio, 0);
  245. gpiod_set_value_cansleep(ctx->reset_gpio, 1);
  246. msleep(20);
  247. gpiod_set_value_cansleep(ctx->reset_gpio, 0);
  248. msleep(100);
  249. }
  250. ret = otm8009a_init_sequence(ctx);
  251. if (ret)
  252. return ret;
  253. ctx->prepared = true;
  254. /*
  255. * Power on the backlight. Note: end-user still controls brightness
  256. * Note: ctx->prepared must be true before updating the backlight.
  257. */
  258. ctx->bl_dev->props.power = FB_BLANK_UNBLANK;
  259. backlight_update_status(ctx->bl_dev);
  260. return 0;
  261. }
  262. static int otm8009a_enable(struct drm_panel *panel)
  263. {
  264. struct otm8009a *ctx = panel_to_otm8009a(panel);
  265. ctx->enabled = true;
  266. return 0;
  267. }
  268. static int otm8009a_get_modes(struct drm_panel *panel)
  269. {
  270. struct drm_display_mode *mode;
  271. mode = drm_mode_duplicate(panel->drm, &default_mode);
  272. if (!mode) {
  273. DRM_ERROR("failed to add mode %ux%ux@%u\n",
  274. default_mode.hdisplay, default_mode.vdisplay,
  275. default_mode.vrefresh);
  276. return -ENOMEM;
  277. }
  278. drm_mode_set_name(mode);
  279. mode->type = DRM_MODE_TYPE_DRIVER | DRM_MODE_TYPE_PREFERRED;
  280. drm_mode_probed_add(panel->connector, mode);
  281. panel->connector->display_info.width_mm = mode->width_mm;
  282. panel->connector->display_info.height_mm = mode->height_mm;
  283. return 1;
  284. }
  285. static const struct drm_panel_funcs otm8009a_drm_funcs = {
  286. .disable = otm8009a_disable,
  287. .unprepare = otm8009a_unprepare,
  288. .prepare = otm8009a_prepare,
  289. .enable = otm8009a_enable,
  290. .get_modes = otm8009a_get_modes,
  291. };
  292. /*
  293. * DSI-BASED BACKLIGHT
  294. */
  295. static int otm8009a_backlight_update_status(struct backlight_device *bd)
  296. {
  297. struct otm8009a *ctx = bl_get_data(bd);
  298. u8 data[2];
  299. if (!ctx->prepared) {
  300. DRM_DEBUG("lcd not ready yet for setting its backlight!\n");
  301. return -ENXIO;
  302. }
  303. if (bd->props.power <= FB_BLANK_NORMAL) {
  304. /* Power on the backlight with the requested brightness
  305. * Note We can not use mipi_dsi_dcs_set_display_brightness()
  306. * as otm8009a driver support only 8-bit brightness (1 param).
  307. */
  308. data[0] = MIPI_DCS_SET_DISPLAY_BRIGHTNESS;
  309. data[1] = bd->props.brightness;
  310. otm8009a_dcs_write_buf(ctx, data, ARRAY_SIZE(data));
  311. /* set Brightness Control & Backlight on */
  312. data[1] = 0x24;
  313. } else {
  314. /* Power off the backlight: set Brightness Control & Bl off */
  315. data[1] = 0;
  316. }
  317. /* Update Brightness Control & Backlight */
  318. data[0] = MIPI_DCS_WRITE_CONTROL_DISPLAY;
  319. otm8009a_dcs_write_buf(ctx, data, ARRAY_SIZE(data));
  320. return 0;
  321. }
  322. static const struct backlight_ops otm8009a_backlight_ops = {
  323. .update_status = otm8009a_backlight_update_status,
  324. };
  325. static int otm8009a_probe(struct mipi_dsi_device *dsi)
  326. {
  327. struct device *dev = &dsi->dev;
  328. struct otm8009a *ctx;
  329. int ret;
  330. ctx = devm_kzalloc(dev, sizeof(*ctx), GFP_KERNEL);
  331. if (!ctx)
  332. return -ENOMEM;
  333. ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW);
  334. if (IS_ERR(ctx->reset_gpio)) {
  335. dev_err(dev, "cannot get reset-gpio\n");
  336. return PTR_ERR(ctx->reset_gpio);
  337. }
  338. mipi_dsi_set_drvdata(dsi, ctx);
  339. ctx->dev = dev;
  340. dsi->lanes = 2;
  341. dsi->format = MIPI_DSI_FMT_RGB888;
  342. dsi->mode_flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
  343. MIPI_DSI_MODE_LPM;
  344. drm_panel_init(&ctx->panel);
  345. ctx->panel.dev = dev;
  346. ctx->panel.funcs = &otm8009a_drm_funcs;
  347. ctx->bl_dev = backlight_device_register(DRV_NAME "_backlight", dev, ctx,
  348. &otm8009a_backlight_ops, NULL);
  349. if (IS_ERR(ctx->bl_dev)) {
  350. dev_err(dev, "failed to register backlight device\n");
  351. return PTR_ERR(ctx->bl_dev);
  352. }
  353. ctx->bl_dev->props.max_brightness = OTM8009A_BACKLIGHT_MAX;
  354. ctx->bl_dev->props.brightness = OTM8009A_BACKLIGHT_DEFAULT;
  355. ctx->bl_dev->props.power = FB_BLANK_POWERDOWN;
  356. ctx->bl_dev->props.type = BACKLIGHT_RAW;
  357. drm_panel_add(&ctx->panel);
  358. ret = mipi_dsi_attach(dsi);
  359. if (ret < 0) {
  360. dev_err(dev, "mipi_dsi_attach failed. Is host ready?\n");
  361. drm_panel_remove(&ctx->panel);
  362. backlight_device_unregister(ctx->bl_dev);
  363. return ret;
  364. }
  365. DRM_INFO(DRV_NAME "_panel %ux%u@%u %ubpp dsi %udl - ready\n",
  366. default_mode.hdisplay, default_mode.vdisplay,
  367. default_mode.vrefresh,
  368. mipi_dsi_pixel_format_to_bpp(dsi->format), dsi->lanes);
  369. return 0;
  370. }
  371. static int otm8009a_remove(struct mipi_dsi_device *dsi)
  372. {
  373. struct otm8009a *ctx = mipi_dsi_get_drvdata(dsi);
  374. mipi_dsi_detach(dsi);
  375. drm_panel_remove(&ctx->panel);
  376. backlight_device_unregister(ctx->bl_dev);
  377. return 0;
  378. }
  379. static const struct of_device_id orisetech_otm8009a_of_match[] = {
  380. { .compatible = "orisetech,otm8009a" },
  381. { }
  382. };
  383. MODULE_DEVICE_TABLE(of, orisetech_otm8009a_of_match);
  384. static struct mipi_dsi_driver orisetech_otm8009a_driver = {
  385. .probe = otm8009a_probe,
  386. .remove = otm8009a_remove,
  387. .driver = {
  388. .name = DRV_NAME "_panel",
  389. .of_match_table = orisetech_otm8009a_of_match,
  390. },
  391. };
  392. module_mipi_dsi_driver(orisetech_otm8009a_driver);
  393. MODULE_AUTHOR("Philippe Cornu <philippe.cornu@st.com>");
  394. MODULE_AUTHOR("Yannick Fertre <yannick.fertre@st.com>");
  395. MODULE_DESCRIPTION("DRM driver for Orise Tech OTM8009A MIPI DSI panel");
  396. MODULE_LICENSE("GPL v2");