1 // SPDX-License-Identifier: GPL-2.0-only
3 * Sony ACX565AKM LCD Panel driver
5 * Copyright (C) 2010 Nokia Corporation
7 * Original Driver Author: Imre Deak <imre.deak@nokia.com>
8 * Based on panel-generic.c by Tomi Valkeinen <tomi.valkeinen@nokia.com>
9 * Adapted to new DSS2 framework: Roger Quadros <roger.quadros@nokia.com>
12 #include <linux/kernel.h>
13 #include <linux/module.h>
14 #include <linux/platform_device.h>
15 #include <linux/delay.h>
16 #include <linux/spi/spi.h>
17 #include <linux/jiffies.h>
18 #include <linux/sched.h>
19 #include <linux/backlight.h>
21 #include <linux/gpio/consumer.h>
24 #include <video/omapfb_dss.h>
26 #define MIPID_CMD_READ_DISP_ID 0x04
27 #define MIPID_CMD_READ_RED 0x06
28 #define MIPID_CMD_READ_GREEN 0x07
29 #define MIPID_CMD_READ_BLUE 0x08
30 #define MIPID_CMD_READ_DISP_STATUS 0x09
31 #define MIPID_CMD_RDDSDR 0x0F
32 #define MIPID_CMD_SLEEP_IN 0x10
33 #define MIPID_CMD_SLEEP_OUT 0x11
34 #define MIPID_CMD_DISP_OFF 0x28
35 #define MIPID_CMD_DISP_ON 0x29
36 #define MIPID_CMD_WRITE_DISP_BRIGHTNESS 0x51
37 #define MIPID_CMD_READ_DISP_BRIGHTNESS 0x52
38 #define MIPID_CMD_WRITE_CTRL_DISP 0x53
40 #define CTRL_DISP_BRIGHTNESS_CTRL_ON (1 << 5)
41 #define CTRL_DISP_AMBIENT_LIGHT_CTRL_ON (1 << 4)
42 #define CTRL_DISP_BACKLIGHT_ON (1 << 2)
43 #define CTRL_DISP_AUTO_BRIGHTNESS_ON (1 << 1)
45 #define MIPID_CMD_READ_CTRL_DISP 0x54
46 #define MIPID_CMD_WRITE_CABC 0x55
47 #define MIPID_CMD_READ_CABC 0x56
49 #define MIPID_VER_LPH8923 3
50 #define MIPID_VER_LS041Y3 4
51 #define MIPID_VER_L4F00311 8
52 #define MIPID_VER_ACX565AKM 9
54 struct panel_drv_data
{
55 struct omap_dss_device dssdev
;
56 struct omap_dss_device
*in
;
58 struct gpio_desc
*reset_gpio
;
62 struct omap_video_timings videomode
;
72 unsigned long hw_guard_end
; /* next value of jiffies
74 next sleep in/out command */
75 unsigned long hw_guard_wait
; /* max guard time in jiffies */
77 struct spi_device
*spi
;
80 struct backlight_device
*bl_dev
;
83 static const struct omap_video_timings acx565akm_panel_timings
= {
86 .pixelclock
= 24000000,
94 .vsync_level
= OMAPDSS_SIG_ACTIVE_LOW
,
95 .hsync_level
= OMAPDSS_SIG_ACTIVE_LOW
,
97 .data_pclk_edge
= OMAPDSS_DRIVE_SIG_RISING_EDGE
,
98 .de_level
= OMAPDSS_SIG_ACTIVE_HIGH
,
99 .sync_pclk_edge
= OMAPDSS_DRIVE_SIG_FALLING_EDGE
,
102 #define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev)
104 static void acx565akm_transfer(struct panel_drv_data
*ddata
, int cmd
,
105 const u8
*wbuf
, int wlen
, u8
*rbuf
, int rlen
)
107 struct spi_message m
;
108 struct spi_transfer
*x
, xfer
[5];
111 BUG_ON(ddata
->spi
== NULL
);
113 spi_message_init(&m
);
115 memset(xfer
, 0, sizeof(xfer
));
120 x
->bits_per_word
= 9;
123 if (rlen
> 1 && wlen
== 0) {
125 * Between the command and the response data there is a
126 * dummy clock cycle. Add an extra bit after the command
127 * word to account for this.
129 x
->bits_per_word
= 10;
132 spi_message_add_tail(x
, &m
);
138 x
->bits_per_word
= 9;
139 spi_message_add_tail(x
, &m
);
146 spi_message_add_tail(x
, &m
);
149 r
= spi_sync(ddata
->spi
, &m
);
151 dev_dbg(&ddata
->spi
->dev
, "spi_sync %d\n", r
);
154 static inline void acx565akm_cmd(struct panel_drv_data
*ddata
, int cmd
)
156 acx565akm_transfer(ddata
, cmd
, NULL
, 0, NULL
, 0);
159 static inline void acx565akm_write(struct panel_drv_data
*ddata
,
160 int reg
, const u8
*buf
, int len
)
162 acx565akm_transfer(ddata
, reg
, buf
, len
, NULL
, 0);
165 static inline void acx565akm_read(struct panel_drv_data
*ddata
,
166 int reg
, u8
*buf
, int len
)
168 acx565akm_transfer(ddata
, reg
, NULL
, 0, buf
, len
);
171 static void hw_guard_start(struct panel_drv_data
*ddata
, int guard_msec
)
173 ddata
->hw_guard_wait
= msecs_to_jiffies(guard_msec
);
174 ddata
->hw_guard_end
= jiffies
+ ddata
->hw_guard_wait
;
177 static void hw_guard_wait(struct panel_drv_data
*ddata
)
179 unsigned long wait
= ddata
->hw_guard_end
- jiffies
;
181 if ((long)wait
> 0 && wait
<= ddata
->hw_guard_wait
) {
182 set_current_state(TASK_UNINTERRUPTIBLE
);
183 schedule_timeout(wait
);
187 static void set_sleep_mode(struct panel_drv_data
*ddata
, int on
)
192 cmd
= MIPID_CMD_SLEEP_IN
;
194 cmd
= MIPID_CMD_SLEEP_OUT
;
196 * We have to keep 120msec between sleep in/out commands.
199 hw_guard_wait(ddata
);
200 acx565akm_cmd(ddata
, cmd
);
201 hw_guard_start(ddata
, 120);
204 static void set_display_state(struct panel_drv_data
*ddata
, int enabled
)
206 int cmd
= enabled
? MIPID_CMD_DISP_ON
: MIPID_CMD_DISP_OFF
;
208 acx565akm_cmd(ddata
, cmd
);
211 static int panel_enabled(struct panel_drv_data
*ddata
)
216 acx565akm_read(ddata
, MIPID_CMD_READ_DISP_STATUS
,
217 (u8
*)&disp_status
, 4);
218 disp_status
= __be32_to_cpu(disp_status
);
219 enabled
= (disp_status
& (1 << 17)) && (disp_status
& (1 << 10));
220 dev_dbg(&ddata
->spi
->dev
,
221 "LCD panel %senabled by bootloader (status 0x%04x)\n",
222 enabled
? "" : "not ", disp_status
);
226 static int panel_detect(struct panel_drv_data
*ddata
)
228 acx565akm_read(ddata
, MIPID_CMD_READ_DISP_ID
, ddata
->display_id
, 3);
229 dev_dbg(&ddata
->spi
->dev
, "MIPI display ID: %02x%02x%02x\n",
230 ddata
->display_id
[0],
231 ddata
->display_id
[1],
232 ddata
->display_id
[2]);
234 switch (ddata
->display_id
[0]) {
236 ddata
->model
= MIPID_VER_ACX565AKM
;
237 ddata
->name
= "acx565akm";
242 ddata
->model
= MIPID_VER_L4F00311
;
243 ddata
->name
= "l4f00311";
246 ddata
->model
= MIPID_VER_LPH8923
;
247 ddata
->name
= "lph8923";
250 ddata
->model
= MIPID_VER_LS041Y3
;
251 ddata
->name
= "ls041y3";
254 ddata
->name
= "unknown";
255 dev_err(&ddata
->spi
->dev
, "invalid display ID\n");
259 ddata
->revision
= ddata
->display_id
[1];
261 dev_info(&ddata
->spi
->dev
, "omapfb: %s rev %02x LCD detected\n",
262 ddata
->name
, ddata
->revision
);
267 /*----------------------Backlight Control-------------------------*/
269 static void enable_backlight_ctrl(struct panel_drv_data
*ddata
, int enable
)
273 acx565akm_read(ddata
, MIPID_CMD_READ_CTRL_DISP
, (u8
*)&ctrl
, 1);
275 ctrl
|= CTRL_DISP_BRIGHTNESS_CTRL_ON
|
276 CTRL_DISP_BACKLIGHT_ON
;
278 ctrl
&= ~(CTRL_DISP_BRIGHTNESS_CTRL_ON
|
279 CTRL_DISP_BACKLIGHT_ON
);
283 acx565akm_write(ddata
, MIPID_CMD_WRITE_CTRL_DISP
, (u8
*)&ctrl
, 2);
286 static void set_cabc_mode(struct panel_drv_data
*ddata
, unsigned mode
)
290 ddata
->cabc_mode
= mode
;
294 acx565akm_read(ddata
, MIPID_CMD_READ_CABC
, (u8
*)&cabc_ctrl
, 1);
296 cabc_ctrl
|= (1 << 8) | (mode
& 3);
297 acx565akm_write(ddata
, MIPID_CMD_WRITE_CABC
, (u8
*)&cabc_ctrl
, 2);
300 static unsigned get_cabc_mode(struct panel_drv_data
*ddata
)
302 return ddata
->cabc_mode
;
305 static unsigned get_hw_cabc_mode(struct panel_drv_data
*ddata
)
309 acx565akm_read(ddata
, MIPID_CMD_READ_CABC
, &cabc_ctrl
, 1);
310 return cabc_ctrl
& 3;
313 static void acx565akm_set_brightness(struct panel_drv_data
*ddata
, int level
)
317 bv
= level
| (1 << 8);
318 acx565akm_write(ddata
, MIPID_CMD_WRITE_DISP_BRIGHTNESS
, (u8
*)&bv
, 2);
321 enable_backlight_ctrl(ddata
, 1);
323 enable_backlight_ctrl(ddata
, 0);
326 static int acx565akm_get_actual_brightness(struct panel_drv_data
*ddata
)
330 acx565akm_read(ddata
, MIPID_CMD_READ_DISP_BRIGHTNESS
, &bv
, 1);
336 static int acx565akm_bl_update_status(struct backlight_device
*dev
)
338 struct panel_drv_data
*ddata
= dev_get_drvdata(&dev
->dev
);
341 dev_dbg(&ddata
->spi
->dev
, "%s\n", __func__
);
343 level
= backlight_get_brightness(dev
);
346 acx565akm_set_brightness(ddata
, level
);
353 static int acx565akm_bl_get_intensity(struct backlight_device
*dev
)
355 struct panel_drv_data
*ddata
= dev_get_drvdata(&dev
->dev
);
357 dev_dbg(&dev
->dev
, "%s\n", __func__
);
362 if (!backlight_is_blank(dev
)) {
364 return acx565akm_get_actual_brightness(ddata
);
366 return dev
->props
.brightness
;
372 static int acx565akm_bl_update_status_locked(struct backlight_device
*dev
)
374 struct panel_drv_data
*ddata
= dev_get_drvdata(&dev
->dev
);
377 mutex_lock(&ddata
->mutex
);
378 r
= acx565akm_bl_update_status(dev
);
379 mutex_unlock(&ddata
->mutex
);
384 static int acx565akm_bl_get_intensity_locked(struct backlight_device
*dev
)
386 struct panel_drv_data
*ddata
= dev_get_drvdata(&dev
->dev
);
389 mutex_lock(&ddata
->mutex
);
390 r
= acx565akm_bl_get_intensity(dev
);
391 mutex_unlock(&ddata
->mutex
);
396 static const struct backlight_ops acx565akm_bl_ops
= {
397 .get_brightness
= acx565akm_bl_get_intensity_locked
,
398 .update_status
= acx565akm_bl_update_status_locked
,
401 /*--------------------Auto Brightness control via Sysfs---------------------*/
403 static const char * const cabc_modes
[] = {
404 "off", /* always used when CABC is not supported */
410 static ssize_t
show_cabc_mode(struct device
*dev
,
411 struct device_attribute
*attr
,
414 struct panel_drv_data
*ddata
= dev_get_drvdata(dev
);
415 const char *mode_str
;
419 if (!ddata
->has_cabc
)
422 mode
= get_cabc_mode(ddata
);
423 mode_str
= "unknown";
424 if (mode
>= 0 && mode
< ARRAY_SIZE(cabc_modes
))
425 mode_str
= cabc_modes
[mode
];
426 len
= snprintf(buf
, PAGE_SIZE
, "%s\n", mode_str
);
428 return len
< PAGE_SIZE
- 1 ? len
: PAGE_SIZE
- 1;
431 static ssize_t
store_cabc_mode(struct device
*dev
,
432 struct device_attribute
*attr
,
433 const char *buf
, size_t count
)
435 struct panel_drv_data
*ddata
= dev_get_drvdata(dev
);
438 for (i
= 0; i
< ARRAY_SIZE(cabc_modes
); i
++) {
439 const char *mode_str
= cabc_modes
[i
];
440 int cmp_len
= strlen(mode_str
);
442 if (count
> 0 && buf
[count
- 1] == '\n')
444 if (count
!= cmp_len
)
447 if (strncmp(buf
, mode_str
, cmp_len
) == 0)
451 if (i
== ARRAY_SIZE(cabc_modes
))
454 if (!ddata
->has_cabc
&& i
!= 0)
457 mutex_lock(&ddata
->mutex
);
458 set_cabc_mode(ddata
, i
);
459 mutex_unlock(&ddata
->mutex
);
464 static ssize_t
show_cabc_available_modes(struct device
*dev
,
465 struct device_attribute
*attr
,
468 struct panel_drv_data
*ddata
= dev_get_drvdata(dev
);
472 if (!ddata
->has_cabc
)
473 return sysfs_emit(buf
, "%s\n", cabc_modes
[0]);
475 for (i
= 0; i
< ARRAY_SIZE(cabc_modes
); i
++)
476 len
+= sysfs_emit_at(buf
, len
, "%s ", cabc_modes
[i
]);
478 /* Remove the trailing space */
485 static DEVICE_ATTR(cabc_mode
, S_IRUGO
| S_IWUSR
,
486 show_cabc_mode
, store_cabc_mode
);
487 static DEVICE_ATTR(cabc_available_modes
, S_IRUGO
,
488 show_cabc_available_modes
, NULL
);
490 static struct attribute
*bldev_attrs
[] = {
491 &dev_attr_cabc_mode
.attr
,
492 &dev_attr_cabc_available_modes
.attr
,
496 static const struct attribute_group bldev_attr_group
= {
497 .attrs
= bldev_attrs
,
500 static int acx565akm_connect(struct omap_dss_device
*dssdev
)
502 struct panel_drv_data
*ddata
= to_panel_data(dssdev
);
503 struct omap_dss_device
*in
= ddata
->in
;
505 if (omapdss_device_is_connected(dssdev
))
508 return in
->ops
.sdi
->connect(in
, dssdev
);
511 static void acx565akm_disconnect(struct omap_dss_device
*dssdev
)
513 struct panel_drv_data
*ddata
= to_panel_data(dssdev
);
514 struct omap_dss_device
*in
= ddata
->in
;
516 if (!omapdss_device_is_connected(dssdev
))
519 in
->ops
.sdi
->disconnect(in
, dssdev
);
522 static int acx565akm_panel_power_on(struct omap_dss_device
*dssdev
)
524 struct panel_drv_data
*ddata
= to_panel_data(dssdev
);
525 struct omap_dss_device
*in
= ddata
->in
;
528 dev_dbg(&ddata
->spi
->dev
, "%s\n", __func__
);
530 in
->ops
.sdi
->set_timings(in
, &ddata
->videomode
);
532 if (ddata
->datapairs
> 0)
533 in
->ops
.sdi
->set_datapairs(in
, ddata
->datapairs
);
535 r
= in
->ops
.sdi
->enable(in
);
537 pr_err("%s sdi enable failed\n", __func__
);
545 * Note that we appear to activate the reset line here. However
546 * existing DTSes specified incorrect polarity for it (active high),
547 * so in fact this deasserts the reset line.
549 if (ddata
->reset_gpio
)
550 gpiod_set_value_cansleep(ddata
->reset_gpio
, 1);
552 if (ddata
->enabled
) {
553 dev_dbg(&ddata
->spi
->dev
, "panel already enabled\n");
558 * We have to meet all the following delay requirements:
559 * 1. tRW: reset pulse width 10usec (7.12.1)
560 * 2. tRT: reset cancel time 5msec (7.12.1)
561 * 3. Providing PCLK,HS,VS signals for 2 frames = ~50msec worst
563 * 4. 120msec before the sleep out command (7.12.1)
567 set_sleep_mode(ddata
, 0);
570 /* 5msec between sleep out and the next command. (8.2.16) */
571 usleep_range(5000, 10000);
572 set_display_state(ddata
, 1);
573 set_cabc_mode(ddata
, ddata
->cabc_mode
);
575 return acx565akm_bl_update_status(ddata
->bl_dev
);
578 static void acx565akm_panel_power_off(struct omap_dss_device
*dssdev
)
580 struct panel_drv_data
*ddata
= to_panel_data(dssdev
);
581 struct omap_dss_device
*in
= ddata
->in
;
583 dev_dbg(dssdev
->dev
, "%s\n", __func__
);
588 set_display_state(ddata
, 0);
589 set_sleep_mode(ddata
, 1);
592 * We have to provide PCLK,HS,VS signals for 2 frames (worst case
593 * ~50msec) after sending the sleep in command and asserting the
594 * reset signal. We probably could assert the reset w/o the delay
595 * but we still delay to avoid possible artifacts. (7.6.1)
599 /* see comment in acx565akm_panel_power_on() */
600 if (ddata
->reset_gpio
)
601 gpiod_set_value_cansleep(ddata
->reset_gpio
, 0);
603 /* FIXME need to tweak this delay */
606 in
->ops
.sdi
->disable(in
);
609 static int acx565akm_enable(struct omap_dss_device
*dssdev
)
611 struct panel_drv_data
*ddata
= to_panel_data(dssdev
);
614 dev_dbg(dssdev
->dev
, "%s\n", __func__
);
616 if (!omapdss_device_is_connected(dssdev
))
619 if (omapdss_device_is_enabled(dssdev
))
622 mutex_lock(&ddata
->mutex
);
623 r
= acx565akm_panel_power_on(dssdev
);
624 mutex_unlock(&ddata
->mutex
);
628 dssdev
->state
= OMAP_DSS_DISPLAY_ACTIVE
;
633 static void acx565akm_disable(struct omap_dss_device
*dssdev
)
635 struct panel_drv_data
*ddata
= to_panel_data(dssdev
);
637 dev_dbg(dssdev
->dev
, "%s\n", __func__
);
639 if (!omapdss_device_is_enabled(dssdev
))
642 mutex_lock(&ddata
->mutex
);
643 acx565akm_panel_power_off(dssdev
);
644 mutex_unlock(&ddata
->mutex
);
646 dssdev
->state
= OMAP_DSS_DISPLAY_DISABLED
;
649 static void acx565akm_set_timings(struct omap_dss_device
*dssdev
,
650 struct omap_video_timings
*timings
)
652 struct panel_drv_data
*ddata
= to_panel_data(dssdev
);
653 struct omap_dss_device
*in
= ddata
->in
;
655 ddata
->videomode
= *timings
;
656 dssdev
->panel
.timings
= *timings
;
658 in
->ops
.sdi
->set_timings(in
, timings
);
661 static void acx565akm_get_timings(struct omap_dss_device
*dssdev
,
662 struct omap_video_timings
*timings
)
664 struct panel_drv_data
*ddata
= to_panel_data(dssdev
);
666 *timings
= ddata
->videomode
;
669 static int acx565akm_check_timings(struct omap_dss_device
*dssdev
,
670 struct omap_video_timings
*timings
)
672 struct panel_drv_data
*ddata
= to_panel_data(dssdev
);
673 struct omap_dss_device
*in
= ddata
->in
;
675 return in
->ops
.sdi
->check_timings(in
, timings
);
678 static struct omap_dss_driver acx565akm_ops
= {
679 .connect
= acx565akm_connect
,
680 .disconnect
= acx565akm_disconnect
,
682 .enable
= acx565akm_enable
,
683 .disable
= acx565akm_disable
,
685 .set_timings
= acx565akm_set_timings
,
686 .get_timings
= acx565akm_get_timings
,
687 .check_timings
= acx565akm_check_timings
,
689 .get_resolution
= omapdss_default_get_resolution
,
692 static int acx565akm_probe(struct spi_device
*spi
)
694 struct panel_drv_data
*ddata
;
695 struct omap_dss_device
*dssdev
;
696 struct backlight_device
*bldev
;
697 int max_brightness
, brightness
;
698 struct backlight_properties props
;
701 dev_dbg(&spi
->dev
, "%s\n", __func__
);
703 if (!spi
->dev
.of_node
)
706 spi
->mode
= SPI_MODE_3
;
708 ddata
= devm_kzalloc(&spi
->dev
, sizeof(*ddata
), GFP_KERNEL
);
712 dev_set_drvdata(&spi
->dev
, ddata
);
716 mutex_init(&ddata
->mutex
);
718 ddata
->in
= omapdss_of_find_source_for_first_ep(spi
->dev
.of_node
);
719 r
= PTR_ERR_OR_ZERO(ddata
->in
);
721 dev_err(&spi
->dev
, "failed to find video source\n");
725 ddata
->reset_gpio
= devm_gpiod_get_optional(&spi
->dev
, "reset",
727 r
= PTR_ERR_OR_ZERO(ddata
->reset_gpio
);
731 if (ddata
->reset_gpio
) {
732 gpiod_set_consumer_name(ddata
->reset_gpio
, "lcd reset");
734 /* release the reset line */
735 gpiod_set_value_cansleep(ddata
->reset_gpio
, 1);
739 * After reset we have to wait 5 msec before the first
740 * command can be sent.
742 usleep_range(5000, 10000);
744 ddata
->enabled
= panel_enabled(ddata
);
746 r
= panel_detect(ddata
);
748 if (!ddata
->enabled
&& ddata
->reset_gpio
)
749 gpiod_set_value_cansleep(ddata
->reset_gpio
, 0);
752 dev_err(&spi
->dev
, "%s panel detect error\n", __func__
);
756 memset(&props
, 0, sizeof(props
));
757 props
.power
= BACKLIGHT_POWER_ON
;
758 props
.type
= BACKLIGHT_RAW
;
760 bldev
= backlight_device_register("acx565akm", &ddata
->spi
->dev
,
761 ddata
, &acx565akm_bl_ops
, &props
);
766 ddata
->bl_dev
= bldev
;
767 if (ddata
->has_cabc
) {
768 r
= sysfs_create_group(&bldev
->dev
.kobj
, &bldev_attr_group
);
771 "%s failed to create sysfs files\n", __func__
);
774 ddata
->cabc_mode
= get_hw_cabc_mode(ddata
);
777 max_brightness
= 255;
780 brightness
= acx565akm_get_actual_brightness(ddata
);
784 bldev
->props
.max_brightness
= max_brightness
;
785 bldev
->props
.brightness
= brightness
;
787 acx565akm_bl_update_status(bldev
);
790 ddata
->videomode
= acx565akm_panel_timings
;
792 dssdev
= &ddata
->dssdev
;
793 dssdev
->dev
= &spi
->dev
;
794 dssdev
->driver
= &acx565akm_ops
;
795 dssdev
->type
= OMAP_DISPLAY_TYPE_SDI
;
796 dssdev
->owner
= THIS_MODULE
;
797 dssdev
->panel
.timings
= ddata
->videomode
;
799 r
= omapdss_register_display(dssdev
);
801 dev_err(&spi
->dev
, "Failed to register panel\n");
808 sysfs_remove_group(&bldev
->dev
.kobj
, &bldev_attr_group
);
810 backlight_device_unregister(bldev
);
814 omap_dss_put_device(ddata
->in
);
818 static void acx565akm_remove(struct spi_device
*spi
)
820 struct panel_drv_data
*ddata
= dev_get_drvdata(&spi
->dev
);
821 struct omap_dss_device
*dssdev
= &ddata
->dssdev
;
822 struct omap_dss_device
*in
= ddata
->in
;
824 dev_dbg(&ddata
->spi
->dev
, "%s\n", __func__
);
826 sysfs_remove_group(&ddata
->bl_dev
->dev
.kobj
, &bldev_attr_group
);
827 backlight_device_unregister(ddata
->bl_dev
);
829 omapdss_unregister_display(dssdev
);
831 acx565akm_disable(dssdev
);
832 acx565akm_disconnect(dssdev
);
834 omap_dss_put_device(in
);
837 static const struct of_device_id acx565akm_of_match
[] = {
838 { .compatible
= "omapdss,sony,acx565akm", },
841 MODULE_DEVICE_TABLE(of
, acx565akm_of_match
);
843 static struct spi_driver acx565akm_driver
= {
846 .of_match_table
= acx565akm_of_match
,
847 .suppress_bind_attrs
= true,
849 .probe
= acx565akm_probe
,
850 .remove
= acx565akm_remove
,
853 module_spi_driver(acx565akm_driver
);
855 MODULE_AUTHOR("Nokia Corporation");
856 MODULE_DESCRIPTION("acx565akm LCD Driver");
857 MODULE_LICENSE("GPL");