parade-ps8622.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653
  1. /*
  2. * Parade PS8622 eDP/LVDS bridge driver
  3. *
  4. * Copyright (C) 2014 Google, Inc.
  5. *
  6. * This software is licensed under the terms of the GNU General Public
  7. * License version 2, as published by the Free Software Foundation, and
  8. * may be copied, distributed, and modified under those terms.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. */
  15. #include <linux/backlight.h>
  16. #include <linux/delay.h>
  17. #include <linux/err.h>
  18. #include <linux/gpio.h>
  19. #include <linux/gpio/consumer.h>
  20. #include <linux/i2c.h>
  21. #include <linux/module.h>
  22. #include <linux/of.h>
  23. #include <linux/of_device.h>
  24. #include <linux/of_graph.h>
  25. #include <linux/pm.h>
  26. #include <linux/regulator/consumer.h>
  27. #include <drm/drm_panel.h>
  28. #include "drmP.h"
  29. #include "drm_crtc.h"
  30. #include "drm_crtc_helper.h"
  31. #include "drm_atomic_helper.h"
  32. /* Brightness scale on the Parade chip */
  33. #define PS8622_MAX_BRIGHTNESS 0xff
  34. /* Timings taken from the version 1.7 datasheet for the PS8622/PS8625 */
  35. #define PS8622_POWER_RISE_T1_MIN_US 10
  36. #define PS8622_POWER_RISE_T1_MAX_US 10000
  37. #define PS8622_RST_HIGH_T2_MIN_US 3000
  38. #define PS8622_RST_HIGH_T2_MAX_US 30000
  39. #define PS8622_PWMO_END_T12_MS 200
  40. #define PS8622_POWER_FALL_T16_MAX_US 10000
  41. #define PS8622_POWER_OFF_T17_MS 500
  42. #if ((PS8622_RST_HIGH_T2_MIN_US + PS8622_POWER_RISE_T1_MAX_US) > \
  43. (PS8622_RST_HIGH_T2_MAX_US + PS8622_POWER_RISE_T1_MIN_US))
  44. #error "T2.min + T1.max must be less than T2.max + T1.min"
  45. #endif
  46. struct ps8622_bridge {
  47. struct drm_connector connector;
  48. struct i2c_client *client;
  49. struct drm_bridge bridge;
  50. struct drm_panel *panel;
  51. struct regulator *v12;
  52. struct backlight_device *bl;
  53. struct gpio_desc *gpio_slp;
  54. struct gpio_desc *gpio_rst;
  55. u32 max_lane_count;
  56. u32 lane_count;
  57. bool enabled;
  58. };
  59. static inline struct ps8622_bridge *
  60. bridge_to_ps8622(struct drm_bridge *bridge)
  61. {
  62. return container_of(bridge, struct ps8622_bridge, bridge);
  63. }
  64. static inline struct ps8622_bridge *
  65. connector_to_ps8622(struct drm_connector *connector)
  66. {
  67. return container_of(connector, struct ps8622_bridge, connector);
  68. }
  69. static int ps8622_set(struct i2c_client *client, u8 page, u8 reg, u8 val)
  70. {
  71. int ret;
  72. struct i2c_adapter *adap = client->adapter;
  73. struct i2c_msg msg;
  74. u8 data[] = {reg, val};
  75. msg.addr = client->addr + page;
  76. msg.flags = 0;
  77. msg.len = sizeof(data);
  78. msg.buf = data;
  79. ret = i2c_transfer(adap, &msg, 1);
  80. if (ret != 1)
  81. pr_warn("PS8622 I2C write (0x%02x,0x%02x,0x%02x) failed: %d\n",
  82. client->addr + page, reg, val, ret);
  83. return !(ret == 1);
  84. }
  85. static int ps8622_send_config(struct ps8622_bridge *ps8622)
  86. {
  87. struct i2c_client *cl = ps8622->client;
  88. int err = 0;
  89. /* HPD low */
  90. err = ps8622_set(cl, 0x02, 0xa1, 0x01);
  91. if (err)
  92. goto error;
  93. /* SW setting: [1:0] SW output 1.2V voltage is lower to 96% */
  94. err = ps8622_set(cl, 0x04, 0x14, 0x01);
  95. if (err)
  96. goto error;
  97. /* RCO SS setting: [5:4] = b01 0.5%, b10 1%, b11 1.5% */
  98. err = ps8622_set(cl, 0x04, 0xe3, 0x20);
  99. if (err)
  100. goto error;
  101. /* [7] RCO SS enable */
  102. err = ps8622_set(cl, 0x04, 0xe2, 0x80);
  103. if (err)
  104. goto error;
  105. /* RPHY Setting
  106. * [3:2] CDR tune wait cycle before measure for fine tune
  107. * b00: 1us b01: 0.5us b10:2us, b11: 4us
  108. */
  109. err = ps8622_set(cl, 0x04, 0x8a, 0x0c);
  110. if (err)
  111. goto error;
  112. /* [3] RFD always on */
  113. err = ps8622_set(cl, 0x04, 0x89, 0x08);
  114. if (err)
  115. goto error;
  116. /* CTN lock in/out: 20000ppm/80000ppm. Lock out 2 times. */
  117. err = ps8622_set(cl, 0x04, 0x71, 0x2d);
  118. if (err)
  119. goto error;
  120. /* 2.7G CDR settings: NOF=40LSB for HBR CDR setting */
  121. err = ps8622_set(cl, 0x04, 0x7d, 0x07);
  122. if (err)
  123. goto error;
  124. /* [1:0] Fmin=+4bands */
  125. err = ps8622_set(cl, 0x04, 0x7b, 0x00);
  126. if (err)
  127. goto error;
  128. /* [7:5] DCO_FTRNG=+-40% */
  129. err = ps8622_set(cl, 0x04, 0x7a, 0xfd);
  130. if (err)
  131. goto error;
  132. /* 1.62G CDR settings: [5:2]NOF=64LSB [1:0]DCO scale is 2/5 */
  133. err = ps8622_set(cl, 0x04, 0xc0, 0x12);
  134. if (err)
  135. goto error;
  136. /* Gitune=-37% */
  137. err = ps8622_set(cl, 0x04, 0xc1, 0x92);
  138. if (err)
  139. goto error;
  140. /* Fbstep=100% */
  141. err = ps8622_set(cl, 0x04, 0xc2, 0x1c);
  142. if (err)
  143. goto error;
  144. /* [7] LOS signal disable */
  145. err = ps8622_set(cl, 0x04, 0x32, 0x80);
  146. if (err)
  147. goto error;
  148. /* RPIO Setting: [7:4] LVDS driver bias current : 75% (250mV swing) */
  149. err = ps8622_set(cl, 0x04, 0x00, 0xb0);
  150. if (err)
  151. goto error;
  152. /* [7:6] Right-bar GPIO output strength is 8mA */
  153. err = ps8622_set(cl, 0x04, 0x15, 0x40);
  154. if (err)
  155. goto error;
  156. /* EQ Training State Machine Setting, RCO calibration start */
  157. err = ps8622_set(cl, 0x04, 0x54, 0x10);
  158. if (err)
  159. goto error;
  160. /* Logic, needs more than 10 I2C command */
  161. /* [4:0] MAX_LANE_COUNT set to max supported lanes */
  162. err = ps8622_set(cl, 0x01, 0x02, 0x80 | ps8622->max_lane_count);
  163. if (err)
  164. goto error;
  165. /* [4:0] LANE_COUNT_SET set to chosen lane count */
  166. err = ps8622_set(cl, 0x01, 0x21, 0x80 | ps8622->lane_count);
  167. if (err)
  168. goto error;
  169. err = ps8622_set(cl, 0x00, 0x52, 0x20);
  170. if (err)
  171. goto error;
  172. /* HPD CP toggle enable */
  173. err = ps8622_set(cl, 0x00, 0xf1, 0x03);
  174. if (err)
  175. goto error;
  176. err = ps8622_set(cl, 0x00, 0x62, 0x41);
  177. if (err)
  178. goto error;
  179. /* Counter number, add 1ms counter delay */
  180. err = ps8622_set(cl, 0x00, 0xf6, 0x01);
  181. if (err)
  182. goto error;
  183. /* [6]PWM function control by DPCD0040f[7], default is PWM block */
  184. err = ps8622_set(cl, 0x00, 0x77, 0x06);
  185. if (err)
  186. goto error;
  187. /* 04h Adjust VTotal toleranceto fix the 30Hz no display issue */
  188. err = ps8622_set(cl, 0x00, 0x4c, 0x04);
  189. if (err)
  190. goto error;
  191. /* DPCD00400='h00, Parade OUI ='h001cf8 */
  192. err = ps8622_set(cl, 0x01, 0xc0, 0x00);
  193. if (err)
  194. goto error;
  195. /* DPCD00401='h1c */
  196. err = ps8622_set(cl, 0x01, 0xc1, 0x1c);
  197. if (err)
  198. goto error;
  199. /* DPCD00402='hf8 */
  200. err = ps8622_set(cl, 0x01, 0xc2, 0xf8);
  201. if (err)
  202. goto error;
  203. /* DPCD403~408 = ASCII code, D2SLV5='h4432534c5635 */
  204. err = ps8622_set(cl, 0x01, 0xc3, 0x44);
  205. if (err)
  206. goto error;
  207. /* DPCD404 */
  208. err = ps8622_set(cl, 0x01, 0xc4, 0x32);
  209. if (err)
  210. goto error;
  211. /* DPCD405 */
  212. err = ps8622_set(cl, 0x01, 0xc5, 0x53);
  213. if (err)
  214. goto error;
  215. /* DPCD406 */
  216. err = ps8622_set(cl, 0x01, 0xc6, 0x4c);
  217. if (err)
  218. goto error;
  219. /* DPCD407 */
  220. err = ps8622_set(cl, 0x01, 0xc7, 0x56);
  221. if (err)
  222. goto error;
  223. /* DPCD408 */
  224. err = ps8622_set(cl, 0x01, 0xc8, 0x35);
  225. if (err)
  226. goto error;
  227. /* DPCD40A, Initial Code major revision '01' */
  228. err = ps8622_set(cl, 0x01, 0xca, 0x01);
  229. if (err)
  230. goto error;
  231. /* DPCD40B, Initial Code minor revision '05' */
  232. err = ps8622_set(cl, 0x01, 0xcb, 0x05);
  233. if (err)
  234. goto error;
  235. if (ps8622->bl) {
  236. /* DPCD720, internal PWM */
  237. err = ps8622_set(cl, 0x01, 0xa5, 0xa0);
  238. if (err)
  239. goto error;
  240. /* FFh for 100% brightness, 0h for 0% brightness */
  241. err = ps8622_set(cl, 0x01, 0xa7,
  242. ps8622->bl->props.brightness);
  243. if (err)
  244. goto error;
  245. } else {
  246. /* DPCD720, external PWM */
  247. err = ps8622_set(cl, 0x01, 0xa5, 0x80);
  248. if (err)
  249. goto error;
  250. }
  251. /* Set LVDS output as 6bit-VESA mapping, single LVDS channel */
  252. err = ps8622_set(cl, 0x01, 0xcc, 0x13);
  253. if (err)
  254. goto error;
  255. /* Enable SSC set by register */
  256. err = ps8622_set(cl, 0x02, 0xb1, 0x20);
  257. if (err)
  258. goto error;
  259. /* Set SSC enabled and +/-1% central spreading */
  260. err = ps8622_set(cl, 0x04, 0x10, 0x16);
  261. if (err)
  262. goto error;
  263. /* Logic end */
  264. /* MPU Clock source: LC => RCO */
  265. err = ps8622_set(cl, 0x04, 0x59, 0x60);
  266. if (err)
  267. goto error;
  268. /* LC -> RCO */
  269. err = ps8622_set(cl, 0x04, 0x54, 0x14);
  270. if (err)
  271. goto error;
  272. /* HPD high */
  273. err = ps8622_set(cl, 0x02, 0xa1, 0x91);
  274. error:
  275. return err ? -EIO : 0;
  276. }
  277. static int ps8622_backlight_update(struct backlight_device *bl)
  278. {
  279. struct ps8622_bridge *ps8622 = dev_get_drvdata(&bl->dev);
  280. int ret, brightness = bl->props.brightness;
  281. if (bl->props.power != FB_BLANK_UNBLANK ||
  282. bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK))
  283. brightness = 0;
  284. if (!ps8622->enabled)
  285. return -EINVAL;
  286. ret = ps8622_set(ps8622->client, 0x01, 0xa7, brightness);
  287. return ret;
  288. }
  289. static const struct backlight_ops ps8622_backlight_ops = {
  290. .update_status = ps8622_backlight_update,
  291. };
  292. static void ps8622_pre_enable(struct drm_bridge *bridge)
  293. {
  294. struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge);
  295. int ret;
  296. if (ps8622->enabled)
  297. return;
  298. gpiod_set_value(ps8622->gpio_rst, 0);
  299. if (ps8622->v12) {
  300. ret = regulator_enable(ps8622->v12);
  301. if (ret)
  302. DRM_ERROR("fails to enable ps8622->v12");
  303. }
  304. if (drm_panel_prepare(ps8622->panel)) {
  305. DRM_ERROR("failed to prepare panel\n");
  306. return;
  307. }
  308. gpiod_set_value(ps8622->gpio_slp, 1);
  309. /*
  310. * T1 is the range of time that it takes for the power to rise after we
  311. * enable the lcd/ps8622 fet. T2 is the range of time in which the
  312. * data sheet specifies we should deassert the reset pin.
  313. *
  314. * If it takes T1.max for the power to rise, we need to wait atleast
  315. * T2.min before deasserting the reset pin. If it takes T1.min for the
  316. * power to rise, we need to wait at most T2.max before deasserting the
  317. * reset pin.
  318. */
  319. usleep_range(PS8622_RST_HIGH_T2_MIN_US + PS8622_POWER_RISE_T1_MAX_US,
  320. PS8622_RST_HIGH_T2_MAX_US + PS8622_POWER_RISE_T1_MIN_US);
  321. gpiod_set_value(ps8622->gpio_rst, 1);
  322. /* wait 20ms after RST high */
  323. usleep_range(20000, 30000);
  324. ret = ps8622_send_config(ps8622);
  325. if (ret) {
  326. DRM_ERROR("Failed to send config to bridge (%d)\n", ret);
  327. return;
  328. }
  329. ps8622->enabled = true;
  330. }
  331. static void ps8622_enable(struct drm_bridge *bridge)
  332. {
  333. struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge);
  334. if (drm_panel_enable(ps8622->panel)) {
  335. DRM_ERROR("failed to enable panel\n");
  336. return;
  337. }
  338. }
  339. static void ps8622_disable(struct drm_bridge *bridge)
  340. {
  341. struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge);
  342. if (drm_panel_disable(ps8622->panel)) {
  343. DRM_ERROR("failed to disable panel\n");
  344. return;
  345. }
  346. msleep(PS8622_PWMO_END_T12_MS);
  347. }
  348. static void ps8622_post_disable(struct drm_bridge *bridge)
  349. {
  350. struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge);
  351. if (!ps8622->enabled)
  352. return;
  353. ps8622->enabled = false;
  354. /*
  355. * This doesn't matter if the regulators are turned off, but something
  356. * else might keep them on. In that case, we want to assert the slp gpio
  357. * to lower power.
  358. */
  359. gpiod_set_value(ps8622->gpio_slp, 0);
  360. if (drm_panel_unprepare(ps8622->panel)) {
  361. DRM_ERROR("failed to unprepare panel\n");
  362. return;
  363. }
  364. if (ps8622->v12)
  365. regulator_disable(ps8622->v12);
  366. /*
  367. * Sleep for at least the amount of time that it takes the power rail to
  368. * fall to prevent asserting the rst gpio from doing anything.
  369. */
  370. usleep_range(PS8622_POWER_FALL_T16_MAX_US,
  371. 2 * PS8622_POWER_FALL_T16_MAX_US);
  372. gpiod_set_value(ps8622->gpio_rst, 0);
  373. msleep(PS8622_POWER_OFF_T17_MS);
  374. }
  375. static int ps8622_get_modes(struct drm_connector *connector)
  376. {
  377. struct ps8622_bridge *ps8622;
  378. ps8622 = connector_to_ps8622(connector);
  379. return drm_panel_get_modes(ps8622->panel);
  380. }
  381. static const struct drm_connector_helper_funcs ps8622_connector_helper_funcs = {
  382. .get_modes = ps8622_get_modes,
  383. };
  384. static const struct drm_connector_funcs ps8622_connector_funcs = {
  385. .dpms = drm_atomic_helper_connector_dpms,
  386. .fill_modes = drm_helper_probe_single_connector_modes,
  387. .destroy = drm_connector_cleanup,
  388. .reset = drm_atomic_helper_connector_reset,
  389. .atomic_duplicate_state = drm_atomic_helper_connector_duplicate_state,
  390. .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
  391. };
  392. static int ps8622_attach(struct drm_bridge *bridge)
  393. {
  394. struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge);
  395. int ret;
  396. if (!bridge->encoder) {
  397. DRM_ERROR("Parent encoder object not found");
  398. return -ENODEV;
  399. }
  400. ps8622->connector.polled = DRM_CONNECTOR_POLL_HPD;
  401. ret = drm_connector_init(bridge->dev, &ps8622->connector,
  402. &ps8622_connector_funcs, DRM_MODE_CONNECTOR_LVDS);
  403. if (ret) {
  404. DRM_ERROR("Failed to initialize connector with drm\n");
  405. return ret;
  406. }
  407. drm_connector_helper_add(&ps8622->connector,
  408. &ps8622_connector_helper_funcs);
  409. drm_connector_register(&ps8622->connector);
  410. drm_mode_connector_attach_encoder(&ps8622->connector,
  411. bridge->encoder);
  412. if (ps8622->panel)
  413. drm_panel_attach(ps8622->panel, &ps8622->connector);
  414. drm_helper_hpd_irq_event(ps8622->connector.dev);
  415. return ret;
  416. }
  417. static const struct drm_bridge_funcs ps8622_bridge_funcs = {
  418. .pre_enable = ps8622_pre_enable,
  419. .enable = ps8622_enable,
  420. .disable = ps8622_disable,
  421. .post_disable = ps8622_post_disable,
  422. .attach = ps8622_attach,
  423. };
  424. static const struct of_device_id ps8622_devices[] = {
  425. {.compatible = "parade,ps8622",},
  426. {.compatible = "parade,ps8625",},
  427. {}
  428. };
  429. MODULE_DEVICE_TABLE(of, ps8622_devices);
  430. static int ps8622_probe(struct i2c_client *client,
  431. const struct i2c_device_id *id)
  432. {
  433. struct device *dev = &client->dev;
  434. struct device_node *endpoint, *panel_node;
  435. struct ps8622_bridge *ps8622;
  436. int ret;
  437. ps8622 = devm_kzalloc(dev, sizeof(*ps8622), GFP_KERNEL);
  438. if (!ps8622)
  439. return -ENOMEM;
  440. endpoint = of_graph_get_next_endpoint(dev->of_node, NULL);
  441. if (endpoint) {
  442. panel_node = of_graph_get_remote_port_parent(endpoint);
  443. if (panel_node) {
  444. ps8622->panel = of_drm_find_panel(panel_node);
  445. of_node_put(panel_node);
  446. if (!ps8622->panel)
  447. return -EPROBE_DEFER;
  448. }
  449. }
  450. ps8622->client = client;
  451. ps8622->v12 = devm_regulator_get(dev, "vdd12");
  452. if (IS_ERR(ps8622->v12)) {
  453. dev_info(dev, "no 1.2v regulator found for PS8622\n");
  454. ps8622->v12 = NULL;
  455. }
  456. ps8622->gpio_slp = devm_gpiod_get(dev, "sleep", GPIOD_OUT_HIGH);
  457. if (IS_ERR(ps8622->gpio_slp)) {
  458. ret = PTR_ERR(ps8622->gpio_slp);
  459. dev_err(dev, "cannot get gpio_slp %d\n", ret);
  460. return ret;
  461. }
  462. /*
  463. * Assert the reset pin high to avoid the bridge being
  464. * initialized prematurely
  465. */
  466. ps8622->gpio_rst = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
  467. if (IS_ERR(ps8622->gpio_rst)) {
  468. ret = PTR_ERR(ps8622->gpio_rst);
  469. dev_err(dev, "cannot get gpio_rst %d\n", ret);
  470. return ret;
  471. }
  472. ps8622->max_lane_count = id->driver_data;
  473. if (of_property_read_u32(dev->of_node, "lane-count",
  474. &ps8622->lane_count)) {
  475. ps8622->lane_count = ps8622->max_lane_count;
  476. } else if (ps8622->lane_count > ps8622->max_lane_count) {
  477. dev_info(dev, "lane-count property is too high,"
  478. "using max_lane_count\n");
  479. ps8622->lane_count = ps8622->max_lane_count;
  480. }
  481. if (!of_find_property(dev->of_node, "use-external-pwm", NULL)) {
  482. ps8622->bl = backlight_device_register("ps8622-backlight",
  483. dev, ps8622, &ps8622_backlight_ops,
  484. NULL);
  485. if (IS_ERR(ps8622->bl)) {
  486. DRM_ERROR("failed to register backlight\n");
  487. ret = PTR_ERR(ps8622->bl);
  488. ps8622->bl = NULL;
  489. return ret;
  490. }
  491. ps8622->bl->props.max_brightness = PS8622_MAX_BRIGHTNESS;
  492. ps8622->bl->props.brightness = PS8622_MAX_BRIGHTNESS;
  493. }
  494. ps8622->bridge.funcs = &ps8622_bridge_funcs;
  495. ps8622->bridge.of_node = dev->of_node;
  496. ret = drm_bridge_add(&ps8622->bridge);
  497. if (ret) {
  498. DRM_ERROR("Failed to add bridge\n");
  499. return ret;
  500. }
  501. i2c_set_clientdata(client, ps8622);
  502. return 0;
  503. }
  504. static int ps8622_remove(struct i2c_client *client)
  505. {
  506. struct ps8622_bridge *ps8622 = i2c_get_clientdata(client);
  507. backlight_device_unregister(ps8622->bl);
  508. drm_bridge_remove(&ps8622->bridge);
  509. return 0;
  510. }
  511. static const struct i2c_device_id ps8622_i2c_table[] = {
  512. /* Device type, max_lane_count */
  513. {"ps8622", 1},
  514. {"ps8625", 2},
  515. {},
  516. };
  517. MODULE_DEVICE_TABLE(i2c, ps8622_i2c_table);
  518. static struct i2c_driver ps8622_driver = {
  519. .id_table = ps8622_i2c_table,
  520. .probe = ps8622_probe,
  521. .remove = ps8622_remove,
  522. .driver = {
  523. .name = "ps8622",
  524. .of_match_table = ps8622_devices,
  525. },
  526. };
  527. module_i2c_driver(ps8622_driver);
  528. MODULE_AUTHOR("Vincent Palatin <vpalatin@chromium.org>");
  529. MODULE_DESCRIPTION("Parade ps8622/ps8625 eDP-LVDS converter driver");
  530. MODULE_LICENSE("GPL v2");