2 * Copyright (C) 2013, NVIDIA Corporation. All rights reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sub license,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the
12 * next paragraph) shall be included in all copies or substantial portions
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
24 #include <linux/delay.h>
25 #include <linux/gpio/consumer.h>
26 #include <linux/module.h>
27 #include <linux/of_platform.h>
28 #include <linux/platform_device.h>
29 #include <linux/regulator/consumer.h>
31 #include <video/display_timing.h>
32 #include <video/of_display_timing.h>
33 #include <video/videomode.h>
35 #include <drm/drm_crtc.h>
36 #include <drm/drm_device.h>
37 #include <drm/drm_mipi_dsi.h>
38 #include <drm/drm_panel.h>
41 * @modes: Pointer to array of fixed modes appropriate for this panel. If
42 * only one mode then this can just be the address of this the mode.
43 * NOTE: cannot be used with "timings" and also if this is specified
44 * then you cannot override the mode in the device tree.
45 * @num_modes: Number of elements in modes array.
46 * @timings: Pointer to array of display timings. NOTE: cannot be used with
47 * "modes" and also these will be used to validate a device tree
48 * override if one is present.
49 * @num_timings: Number of elements in timings array.
50 * @bpc: Bits per color.
51 * @size: Structure containing the physical size of this panel.
52 * @delay: Structure containing various delay values for this panel.
53 * @bus_format: See MEDIA_BUS_FMT_... defines.
54 * @bus_flags: See DRM_BUS_FLAG_... defines.
57 const struct drm_display_mode
*modes
;
58 unsigned int num_modes
;
59 const struct display_timing
*timings
;
60 unsigned int num_timings
;
65 * @width: width (in millimeters) of the panel's active display area
66 * @height: height (in millimeters) of the panel's active display area
74 * @prepare: the time (in milliseconds) that it takes for the panel to
75 * become ready and start receiving video data
76 * @hpd_absent_delay: Add this to the prepare delay if we know Hot
77 * Plug Detect isn't used.
78 * @enable: the time (in milliseconds) that it takes for the panel to
79 * display the first valid frame after starting to receive
81 * @disable: the time (in milliseconds) that it takes for the panel to
82 * turn the display off (no content is visible)
83 * @unprepare: the time (in milliseconds) that it takes for the panel
84 * to power itself down completely
88 unsigned int hpd_absent_delay
;
91 unsigned int unprepare
;
100 struct drm_panel base
;
105 const struct panel_desc
*desc
;
107 struct regulator
*supply
;
108 struct i2c_adapter
*ddc
;
110 struct gpio_desc
*enable_gpio
;
112 struct drm_display_mode override_mode
;
115 static inline struct panel_simple
*to_panel_simple(struct drm_panel
*panel
)
117 return container_of(panel
, struct panel_simple
, base
);
120 static unsigned int panel_simple_get_timings_modes(struct panel_simple
*panel
,
121 struct drm_connector
*connector
)
123 struct drm_display_mode
*mode
;
124 unsigned int i
, num
= 0;
126 for (i
= 0; i
< panel
->desc
->num_timings
; i
++) {
127 const struct display_timing
*dt
= &panel
->desc
->timings
[i
];
130 videomode_from_timing(dt
, &vm
);
131 mode
= drm_mode_create(connector
->dev
);
133 dev_err(panel
->base
.dev
, "failed to add mode %ux%u\n",
134 dt
->hactive
.typ
, dt
->vactive
.typ
);
138 drm_display_mode_from_videomode(&vm
, mode
);
140 mode
->type
|= DRM_MODE_TYPE_DRIVER
;
142 if (panel
->desc
->num_timings
== 1)
143 mode
->type
|= DRM_MODE_TYPE_PREFERRED
;
145 drm_mode_probed_add(connector
, mode
);
152 static unsigned int panel_simple_get_display_modes(struct panel_simple
*panel
,
153 struct drm_connector
*connector
)
155 struct drm_display_mode
*mode
;
156 unsigned int i
, num
= 0;
158 for (i
= 0; i
< panel
->desc
->num_modes
; i
++) {
159 const struct drm_display_mode
*m
= &panel
->desc
->modes
[i
];
161 mode
= drm_mode_duplicate(connector
->dev
, m
);
163 dev_err(panel
->base
.dev
, "failed to add mode %ux%u@%u\n",
164 m
->hdisplay
, m
->vdisplay
, m
->vrefresh
);
168 mode
->type
|= DRM_MODE_TYPE_DRIVER
;
170 if (panel
->desc
->num_modes
== 1)
171 mode
->type
|= DRM_MODE_TYPE_PREFERRED
;
173 drm_mode_set_name(mode
);
175 drm_mode_probed_add(connector
, mode
);
182 static int panel_simple_get_non_edid_modes(struct panel_simple
*panel
,
183 struct drm_connector
*connector
)
185 struct drm_display_mode
*mode
;
186 bool has_override
= panel
->override_mode
.type
;
187 unsigned int num
= 0;
193 mode
= drm_mode_duplicate(connector
->dev
,
194 &panel
->override_mode
);
196 drm_mode_probed_add(connector
, mode
);
199 dev_err(panel
->base
.dev
, "failed to add override mode\n");
203 /* Only add timings if override was not there or failed to validate */
204 if (num
== 0 && panel
->desc
->num_timings
)
205 num
= panel_simple_get_timings_modes(panel
, connector
);
208 * Only add fixed modes if timings/override added no mode.
210 * We should only ever have either the display timings specified
211 * or a fixed mode. Anything else is rather bogus.
213 WARN_ON(panel
->desc
->num_timings
&& panel
->desc
->num_modes
);
215 num
= panel_simple_get_display_modes(panel
, connector
);
217 connector
->display_info
.bpc
= panel
->desc
->bpc
;
218 connector
->display_info
.width_mm
= panel
->desc
->size
.width
;
219 connector
->display_info
.height_mm
= panel
->desc
->size
.height
;
220 if (panel
->desc
->bus_format
)
221 drm_display_info_set_bus_formats(&connector
->display_info
,
222 &panel
->desc
->bus_format
, 1);
223 connector
->display_info
.bus_flags
= panel
->desc
->bus_flags
;
228 static int panel_simple_disable(struct drm_panel
*panel
)
230 struct panel_simple
*p
= to_panel_simple(panel
);
235 if (p
->desc
->delay
.disable
)
236 msleep(p
->desc
->delay
.disable
);
243 static int panel_simple_unprepare(struct drm_panel
*panel
)
245 struct panel_simple
*p
= to_panel_simple(panel
);
250 gpiod_set_value_cansleep(p
->enable_gpio
, 0);
252 regulator_disable(p
->supply
);
254 if (p
->desc
->delay
.unprepare
)
255 msleep(p
->desc
->delay
.unprepare
);
262 static int panel_simple_prepare(struct drm_panel
*panel
)
264 struct panel_simple
*p
= to_panel_simple(panel
);
271 err
= regulator_enable(p
->supply
);
273 dev_err(panel
->dev
, "failed to enable supply: %d\n", err
);
277 gpiod_set_value_cansleep(p
->enable_gpio
, 1);
279 delay
= p
->desc
->delay
.prepare
;
281 delay
+= p
->desc
->delay
.hpd_absent_delay
;
290 static int panel_simple_enable(struct drm_panel
*panel
)
292 struct panel_simple
*p
= to_panel_simple(panel
);
297 if (p
->desc
->delay
.enable
)
298 msleep(p
->desc
->delay
.enable
);
305 static int panel_simple_get_modes(struct drm_panel
*panel
,
306 struct drm_connector
*connector
)
308 struct panel_simple
*p
= to_panel_simple(panel
);
311 /* probe EDID if a DDC bus is available */
313 struct edid
*edid
= drm_get_edid(connector
, p
->ddc
);
315 drm_connector_update_edid_property(connector
, edid
);
317 num
+= drm_add_edid_modes(connector
, edid
);
322 /* add hard-coded panel modes */
323 num
+= panel_simple_get_non_edid_modes(p
, connector
);
328 static int panel_simple_get_timings(struct drm_panel
*panel
,
329 unsigned int num_timings
,
330 struct display_timing
*timings
)
332 struct panel_simple
*p
= to_panel_simple(panel
);
335 if (p
->desc
->num_timings
< num_timings
)
336 num_timings
= p
->desc
->num_timings
;
339 for (i
= 0; i
< num_timings
; i
++)
340 timings
[i
] = p
->desc
->timings
[i
];
342 return p
->desc
->num_timings
;
345 static const struct drm_panel_funcs panel_simple_funcs
= {
346 .disable
= panel_simple_disable
,
347 .unprepare
= panel_simple_unprepare
,
348 .prepare
= panel_simple_prepare
,
349 .enable
= panel_simple_enable
,
350 .get_modes
= panel_simple_get_modes
,
351 .get_timings
= panel_simple_get_timings
,
354 #define PANEL_SIMPLE_BOUNDS_CHECK(to_check, bounds, field) \
355 (to_check->field.typ >= bounds->field.min && \
356 to_check->field.typ <= bounds->field.max)
357 static void panel_simple_parse_panel_timing_node(struct device
*dev
,
358 struct panel_simple
*panel
,
359 const struct display_timing
*ot
)
361 const struct panel_desc
*desc
= panel
->desc
;
365 if (WARN_ON(desc
->num_modes
)) {
366 dev_err(dev
, "Reject override mode: panel has a fixed mode\n");
369 if (WARN_ON(!desc
->num_timings
)) {
370 dev_err(dev
, "Reject override mode: no timings specified\n");
374 for (i
= 0; i
< panel
->desc
->num_timings
; i
++) {
375 const struct display_timing
*dt
= &panel
->desc
->timings
[i
];
377 if (!PANEL_SIMPLE_BOUNDS_CHECK(ot
, dt
, hactive
) ||
378 !PANEL_SIMPLE_BOUNDS_CHECK(ot
, dt
, hfront_porch
) ||
379 !PANEL_SIMPLE_BOUNDS_CHECK(ot
, dt
, hback_porch
) ||
380 !PANEL_SIMPLE_BOUNDS_CHECK(ot
, dt
, hsync_len
) ||
381 !PANEL_SIMPLE_BOUNDS_CHECK(ot
, dt
, vactive
) ||
382 !PANEL_SIMPLE_BOUNDS_CHECK(ot
, dt
, vfront_porch
) ||
383 !PANEL_SIMPLE_BOUNDS_CHECK(ot
, dt
, vback_porch
) ||
384 !PANEL_SIMPLE_BOUNDS_CHECK(ot
, dt
, vsync_len
))
387 if (ot
->flags
!= dt
->flags
)
390 videomode_from_timing(ot
, &vm
);
391 drm_display_mode_from_videomode(&vm
, &panel
->override_mode
);
392 panel
->override_mode
.type
|= DRM_MODE_TYPE_DRIVER
|
393 DRM_MODE_TYPE_PREFERRED
;
397 if (WARN_ON(!panel
->override_mode
.type
))
398 dev_err(dev
, "Reject override mode: No display_timing found\n");
401 static int panel_simple_probe(struct device
*dev
, const struct panel_desc
*desc
)
403 struct panel_simple
*panel
;
404 struct display_timing dt
;
405 struct device_node
*ddc
;
408 panel
= devm_kzalloc(dev
, sizeof(*panel
), GFP_KERNEL
);
412 panel
->enabled
= false;
413 panel
->prepared
= false;
416 panel
->no_hpd
= of_property_read_bool(dev
->of_node
, "no-hpd");
418 panel
->supply
= devm_regulator_get(dev
, "power");
419 if (IS_ERR(panel
->supply
))
420 return PTR_ERR(panel
->supply
);
422 panel
->enable_gpio
= devm_gpiod_get_optional(dev
, "enable",
424 if (IS_ERR(panel
->enable_gpio
)) {
425 err
= PTR_ERR(panel
->enable_gpio
);
426 if (err
!= -EPROBE_DEFER
)
427 dev_err(dev
, "failed to request GPIO: %d\n", err
);
431 ddc
= of_parse_phandle(dev
->of_node
, "ddc-i2c-bus", 0);
433 panel
->ddc
= of_find_i2c_adapter_by_node(ddc
);
437 return -EPROBE_DEFER
;
440 if (!of_get_display_timing(dev
->of_node
, "panel-timing", &dt
))
441 panel_simple_parse_panel_timing_node(dev
, panel
, &dt
);
443 drm_panel_init(&panel
->base
, dev
, &panel_simple_funcs
,
444 desc
->connector_type
);
446 err
= drm_panel_of_backlight(&panel
->base
);
450 err
= drm_panel_add(&panel
->base
);
454 dev_set_drvdata(dev
, panel
);
460 put_device(&panel
->ddc
->dev
);
465 static int panel_simple_remove(struct device
*dev
)
467 struct panel_simple
*panel
= dev_get_drvdata(dev
);
469 drm_panel_remove(&panel
->base
);
470 drm_panel_disable(&panel
->base
);
471 drm_panel_unprepare(&panel
->base
);
474 put_device(&panel
->ddc
->dev
);
479 static void panel_simple_shutdown(struct device
*dev
)
481 struct panel_simple
*panel
= dev_get_drvdata(dev
);
483 drm_panel_disable(&panel
->base
);
484 drm_panel_unprepare(&panel
->base
);
487 static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode
= {
490 .hsync_start
= 480 + 2,
491 .hsync_end
= 480 + 2 + 41,
492 .htotal
= 480 + 2 + 41 + 2,
494 .vsync_start
= 272 + 2,
495 .vsync_end
= 272 + 2 + 10,
496 .vtotal
= 272 + 2 + 10 + 2,
498 .flags
= DRM_MODE_FLAG_PHSYNC
| DRM_MODE_FLAG_PVSYNC
,
501 static const struct panel_desc ampire_am_480272h3tmqw_t01h
= {
502 .modes
= &ire_am_480272h3tmqw_t01h_mode
,
509 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
512 static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode
= {
515 .hsync_start
= 800 + 0,
516 .hsync_end
= 800 + 0 + 255,
517 .htotal
= 800 + 0 + 255 + 0,
519 .vsync_start
= 480 + 2,
520 .vsync_end
= 480 + 2 + 45,
521 .vtotal
= 480 + 2 + 45 + 0,
523 .flags
= DRM_MODE_FLAG_PHSYNC
| DRM_MODE_FLAG_PVSYNC
,
526 static const struct panel_desc ampire_am800480r3tmqwa1h
= {
527 .modes
= &ire_am800480r3tmqwa1h_mode
,
534 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
537 static const struct display_timing santek_st0700i5y_rbslw_f_timing
= {
538 .pixelclock
= { 26400000, 33300000, 46800000 },
539 .hactive
= { 800, 800, 800 },
540 .hfront_porch
= { 16, 210, 354 },
541 .hback_porch
= { 45, 36, 6 },
542 .hsync_len
= { 1, 10, 40 },
543 .vactive
= { 480, 480, 480 },
544 .vfront_porch
= { 7, 22, 147 },
545 .vback_porch
= { 22, 13, 3 },
546 .vsync_len
= { 1, 10, 20 },
547 .flags
= DISPLAY_FLAGS_HSYNC_LOW
| DISPLAY_FLAGS_VSYNC_LOW
|
548 DISPLAY_FLAGS_DE_HIGH
| DISPLAY_FLAGS_PIXDATA_POSEDGE
551 static const struct panel_desc armadeus_st0700_adapt
= {
552 .timings
= &santek_st0700i5y_rbslw_f_timing
,
559 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
560 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_POSEDGE
,
563 static const struct drm_display_mode auo_b101aw03_mode
= {
566 .hsync_start
= 1024 + 156,
567 .hsync_end
= 1024 + 156 + 8,
568 .htotal
= 1024 + 156 + 8 + 156,
570 .vsync_start
= 600 + 16,
571 .vsync_end
= 600 + 16 + 6,
572 .vtotal
= 600 + 16 + 6 + 16,
576 static const struct panel_desc auo_b101aw03
= {
577 .modes
= &auo_b101aw03_mode
,
586 static const struct display_timing auo_b101ean01_timing
= {
587 .pixelclock
= { 65300000, 72500000, 75000000 },
588 .hactive
= { 1280, 1280, 1280 },
589 .hfront_porch
= { 18, 119, 119 },
590 .hback_porch
= { 21, 21, 21 },
591 .hsync_len
= { 32, 32, 32 },
592 .vactive
= { 800, 800, 800 },
593 .vfront_porch
= { 4, 4, 4 },
594 .vback_porch
= { 8, 8, 8 },
595 .vsync_len
= { 18, 20, 20 },
598 static const struct panel_desc auo_b101ean01
= {
599 .timings
= &auo_b101ean01_timing
,
608 static const struct drm_display_mode auo_b101xtn01_mode
= {
611 .hsync_start
= 1366 + 20,
612 .hsync_end
= 1366 + 20 + 70,
613 .htotal
= 1366 + 20 + 70,
615 .vsync_start
= 768 + 14,
616 .vsync_end
= 768 + 14 + 42,
617 .vtotal
= 768 + 14 + 42,
619 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
622 static const struct panel_desc auo_b101xtn01
= {
623 .modes
= &auo_b101xtn01_mode
,
632 static const struct drm_display_mode auo_b116xak01_mode
= {
635 .hsync_start
= 1366 + 48,
636 .hsync_end
= 1366 + 48 + 32,
637 .htotal
= 1366 + 48 + 32 + 10,
639 .vsync_start
= 768 + 4,
640 .vsync_end
= 768 + 4 + 6,
641 .vtotal
= 768 + 4 + 6 + 15,
643 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
646 static const struct panel_desc auo_b116xak01
= {
647 .modes
= &auo_b116xak01_mode
,
655 .hpd_absent_delay
= 200,
657 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
658 .connector_type
= DRM_MODE_CONNECTOR_eDP
,
661 static const struct drm_display_mode auo_b116xw03_mode
= {
664 .hsync_start
= 1366 + 40,
665 .hsync_end
= 1366 + 40 + 40,
666 .htotal
= 1366 + 40 + 40 + 32,
668 .vsync_start
= 768 + 10,
669 .vsync_end
= 768 + 10 + 12,
670 .vtotal
= 768 + 10 + 12 + 6,
674 static const struct panel_desc auo_b116xw03
= {
675 .modes
= &auo_b116xw03_mode
,
684 static const struct drm_display_mode auo_b133xtn01_mode
= {
687 .hsync_start
= 1366 + 48,
688 .hsync_end
= 1366 + 48 + 32,
689 .htotal
= 1366 + 48 + 32 + 20,
691 .vsync_start
= 768 + 3,
692 .vsync_end
= 768 + 3 + 6,
693 .vtotal
= 768 + 3 + 6 + 13,
697 static const struct panel_desc auo_b133xtn01
= {
698 .modes
= &auo_b133xtn01_mode
,
707 static const struct drm_display_mode auo_b133htn01_mode
= {
710 .hsync_start
= 1920 + 172,
711 .hsync_end
= 1920 + 172 + 80,
712 .htotal
= 1920 + 172 + 80 + 60,
714 .vsync_start
= 1080 + 25,
715 .vsync_end
= 1080 + 25 + 10,
716 .vtotal
= 1080 + 25 + 10 + 10,
720 static const struct panel_desc auo_b133htn01
= {
721 .modes
= &auo_b133htn01_mode
,
735 static const struct display_timing auo_g070vvn01_timings
= {
736 .pixelclock
= { 33300000, 34209000, 45000000 },
737 .hactive
= { 800, 800, 800 },
738 .hfront_porch
= { 20, 40, 200 },
739 .hback_porch
= { 87, 40, 1 },
740 .hsync_len
= { 1, 48, 87 },
741 .vactive
= { 480, 480, 480 },
742 .vfront_porch
= { 5, 13, 200 },
743 .vback_porch
= { 31, 31, 29 },
744 .vsync_len
= { 1, 1, 3 },
747 static const struct panel_desc auo_g070vvn01
= {
748 .timings
= &auo_g070vvn01_timings
,
763 static const struct drm_display_mode auo_g101evn010_mode
= {
766 .hsync_start
= 1280 + 82,
767 .hsync_end
= 1280 + 82 + 2,
768 .htotal
= 1280 + 82 + 2 + 84,
770 .vsync_start
= 800 + 8,
771 .vsync_end
= 800 + 8 + 2,
772 .vtotal
= 800 + 8 + 2 + 6,
776 static const struct panel_desc auo_g101evn010
= {
777 .modes
= &auo_g101evn010_mode
,
784 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
787 static const struct drm_display_mode auo_g104sn02_mode
= {
790 .hsync_start
= 800 + 40,
791 .hsync_end
= 800 + 40 + 216,
792 .htotal
= 800 + 40 + 216 + 128,
794 .vsync_start
= 600 + 10,
795 .vsync_end
= 600 + 10 + 35,
796 .vtotal
= 600 + 10 + 35 + 2,
800 static const struct panel_desc auo_g104sn02
= {
801 .modes
= &auo_g104sn02_mode
,
810 static const struct display_timing auo_g133han01_timings
= {
811 .pixelclock
= { 134000000, 141200000, 149000000 },
812 .hactive
= { 1920, 1920, 1920 },
813 .hfront_porch
= { 39, 58, 77 },
814 .hback_porch
= { 59, 88, 117 },
815 .hsync_len
= { 28, 42, 56 },
816 .vactive
= { 1080, 1080, 1080 },
817 .vfront_porch
= { 3, 8, 11 },
818 .vback_porch
= { 5, 14, 19 },
819 .vsync_len
= { 4, 14, 19 },
822 static const struct panel_desc auo_g133han01
= {
823 .timings
= &auo_g133han01_timings
,
836 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA
,
837 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
840 static const struct display_timing auo_g185han01_timings
= {
841 .pixelclock
= { 120000000, 144000000, 175000000 },
842 .hactive
= { 1920, 1920, 1920 },
843 .hfront_porch
= { 36, 120, 148 },
844 .hback_porch
= { 24, 88, 108 },
845 .hsync_len
= { 20, 48, 64 },
846 .vactive
= { 1080, 1080, 1080 },
847 .vfront_porch
= { 6, 10, 40 },
848 .vback_porch
= { 2, 5, 20 },
849 .vsync_len
= { 2, 5, 20 },
852 static const struct panel_desc auo_g185han01
= {
853 .timings
= &auo_g185han01_timings
,
866 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
867 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
870 static const struct display_timing auo_p320hvn03_timings
= {
871 .pixelclock
= { 106000000, 148500000, 164000000 },
872 .hactive
= { 1920, 1920, 1920 },
873 .hfront_porch
= { 25, 50, 130 },
874 .hback_porch
= { 25, 50, 130 },
875 .hsync_len
= { 20, 40, 105 },
876 .vactive
= { 1080, 1080, 1080 },
877 .vfront_porch
= { 8, 17, 150 },
878 .vback_porch
= { 8, 17, 150 },
879 .vsync_len
= { 4, 11, 100 },
882 static const struct panel_desc auo_p320hvn03
= {
883 .timings
= &auo_p320hvn03_timings
,
895 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
896 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
899 static const struct drm_display_mode auo_t215hvn01_mode
= {
902 .hsync_start
= 1920 + 88,
903 .hsync_end
= 1920 + 88 + 44,
904 .htotal
= 1920 + 88 + 44 + 148,
906 .vsync_start
= 1080 + 4,
907 .vsync_end
= 1080 + 4 + 5,
908 .vtotal
= 1080 + 4 + 5 + 36,
912 static const struct panel_desc auo_t215hvn01
= {
913 .modes
= &auo_t215hvn01_mode
,
926 static const struct drm_display_mode avic_tm070ddh03_mode
= {
929 .hsync_start
= 1024 + 160,
930 .hsync_end
= 1024 + 160 + 4,
931 .htotal
= 1024 + 160 + 4 + 156,
933 .vsync_start
= 600 + 17,
934 .vsync_end
= 600 + 17 + 1,
935 .vtotal
= 600 + 17 + 1 + 17,
939 static const struct panel_desc avic_tm070ddh03
= {
940 .modes
= &avic_tm070ddh03_mode
,
954 static const struct drm_display_mode bananapi_s070wv20_ct16_mode
= {
957 .hsync_start
= 800 + 40,
958 .hsync_end
= 800 + 40 + 48,
959 .htotal
= 800 + 40 + 48 + 40,
961 .vsync_start
= 480 + 13,
962 .vsync_end
= 480 + 13 + 3,
963 .vtotal
= 480 + 13 + 3 + 29,
966 static const struct panel_desc bananapi_s070wv20_ct16
= {
967 .modes
= &bananapi_s070wv20_ct16_mode
,
976 static const struct drm_display_mode boe_hv070wsa_mode
= {
979 .hsync_start
= 1024 + 30,
980 .hsync_end
= 1024 + 30 + 30,
981 .htotal
= 1024 + 30 + 30 + 30,
983 .vsync_start
= 600 + 10,
984 .vsync_end
= 600 + 10 + 10,
985 .vtotal
= 600 + 10 + 10 + 10,
989 static const struct panel_desc boe_hv070wsa
= {
990 .modes
= &boe_hv070wsa_mode
,
998 static const struct drm_display_mode boe_nv101wxmn51_modes
[] = {
1002 .hsync_start
= 1280 + 48,
1003 .hsync_end
= 1280 + 48 + 32,
1004 .htotal
= 1280 + 48 + 32 + 80,
1006 .vsync_start
= 800 + 3,
1007 .vsync_end
= 800 + 3 + 5,
1008 .vtotal
= 800 + 3 + 5 + 24,
1014 .hsync_start
= 1280 + 48,
1015 .hsync_end
= 1280 + 48 + 32,
1016 .htotal
= 1280 + 48 + 32 + 80,
1018 .vsync_start
= 800 + 3,
1019 .vsync_end
= 800 + 3 + 5,
1020 .vtotal
= 800 + 3 + 5 + 24,
1025 static const struct panel_desc boe_nv101wxmn51
= {
1026 .modes
= boe_nv101wxmn51_modes
,
1027 .num_modes
= ARRAY_SIZE(boe_nv101wxmn51_modes
),
1040 static const struct drm_display_mode boe_nv140fhmn49_modes
[] = {
1044 .hsync_start
= 1920 + 48,
1045 .hsync_end
= 1920 + 48 + 32,
1048 .vsync_start
= 1080 + 3,
1049 .vsync_end
= 1080 + 3 + 5,
1055 static const struct panel_desc boe_nv140fhmn49
= {
1056 .modes
= boe_nv140fhmn49_modes
,
1057 .num_modes
= ARRAY_SIZE(boe_nv140fhmn49_modes
),
1068 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
1069 .connector_type
= DRM_MODE_CONNECTOR_eDP
,
1072 static const struct drm_display_mode cdtech_s043wq26h_ct7_mode
= {
1075 .hsync_start
= 480 + 5,
1076 .hsync_end
= 480 + 5 + 5,
1077 .htotal
= 480 + 5 + 5 + 40,
1079 .vsync_start
= 272 + 8,
1080 .vsync_end
= 272 + 8 + 8,
1081 .vtotal
= 272 + 8 + 8 + 8,
1083 .flags
= DRM_MODE_FLAG_NHSYNC
| DRM_MODE_FLAG_NVSYNC
,
1086 static const struct panel_desc cdtech_s043wq26h_ct7
= {
1087 .modes
= &cdtech_s043wq26h_ct7_mode
,
1094 .bus_flags
= DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
,
1097 static const struct drm_display_mode cdtech_s070wv95_ct16_mode
= {
1100 .hsync_start
= 800 + 40,
1101 .hsync_end
= 800 + 40 + 40,
1102 .htotal
= 800 + 40 + 40 + 48,
1104 .vsync_start
= 480 + 29,
1105 .vsync_end
= 480 + 29 + 13,
1106 .vtotal
= 480 + 29 + 13 + 3,
1108 .flags
= DRM_MODE_FLAG_NHSYNC
| DRM_MODE_FLAG_NVSYNC
,
1111 static const struct panel_desc cdtech_s070wv95_ct16
= {
1112 .modes
= &cdtech_s070wv95_ct16_mode
,
1121 static const struct drm_display_mode chunghwa_claa070wp03xg_mode
= {
1124 .hsync_start
= 800 + 49,
1125 .hsync_end
= 800 + 49 + 33,
1126 .htotal
= 800 + 49 + 33 + 17,
1128 .vsync_start
= 1280 + 1,
1129 .vsync_end
= 1280 + 1 + 7,
1130 .vtotal
= 1280 + 1 + 7 + 15,
1132 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
1135 static const struct panel_desc chunghwa_claa070wp03xg
= {
1136 .modes
= &chunghwa_claa070wp03xg_mode
,
1145 static const struct drm_display_mode chunghwa_claa101wa01a_mode
= {
1148 .hsync_start
= 1366 + 58,
1149 .hsync_end
= 1366 + 58 + 58,
1150 .htotal
= 1366 + 58 + 58 + 58,
1152 .vsync_start
= 768 + 4,
1153 .vsync_end
= 768 + 4 + 4,
1154 .vtotal
= 768 + 4 + 4 + 4,
1158 static const struct panel_desc chunghwa_claa101wa01a
= {
1159 .modes
= &chunghwa_claa101wa01a_mode
,
1168 static const struct drm_display_mode chunghwa_claa101wb01_mode
= {
1171 .hsync_start
= 1366 + 48,
1172 .hsync_end
= 1366 + 48 + 32,
1173 .htotal
= 1366 + 48 + 32 + 20,
1175 .vsync_start
= 768 + 16,
1176 .vsync_end
= 768 + 16 + 8,
1177 .vtotal
= 768 + 16 + 8 + 16,
1181 static const struct panel_desc chunghwa_claa101wb01
= {
1182 .modes
= &chunghwa_claa101wb01_mode
,
1191 static const struct drm_display_mode dataimage_scf0700c48ggu18_mode
= {
1194 .hsync_start
= 800 + 40,
1195 .hsync_end
= 800 + 40 + 128,
1196 .htotal
= 800 + 40 + 128 + 88,
1198 .vsync_start
= 480 + 10,
1199 .vsync_end
= 480 + 10 + 2,
1200 .vtotal
= 480 + 10 + 2 + 33,
1202 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
1205 static const struct panel_desc dataimage_scf0700c48ggu18
= {
1206 .modes
= &dataimage_scf0700c48ggu18_mode
,
1213 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
1214 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
,
1217 static const struct display_timing dlc_dlc0700yzg_1_timing
= {
1218 .pixelclock
= { 45000000, 51200000, 57000000 },
1219 .hactive
= { 1024, 1024, 1024 },
1220 .hfront_porch
= { 100, 106, 113 },
1221 .hback_porch
= { 100, 106, 113 },
1222 .hsync_len
= { 100, 108, 114 },
1223 .vactive
= { 600, 600, 600 },
1224 .vfront_porch
= { 8, 11, 15 },
1225 .vback_porch
= { 8, 11, 15 },
1226 .vsync_len
= { 9, 13, 15 },
1227 .flags
= DISPLAY_FLAGS_DE_HIGH
,
1230 static const struct panel_desc dlc_dlc0700yzg_1
= {
1231 .timings
= &dlc_dlc0700yzg_1_timing
,
1243 .bus_format
= MEDIA_BUS_FMT_RGB666_1X7X3_SPWG
,
1244 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1247 static const struct display_timing dlc_dlc1010gig_timing
= {
1248 .pixelclock
= { 68900000, 71100000, 73400000 },
1249 .hactive
= { 1280, 1280, 1280 },
1250 .hfront_porch
= { 43, 53, 63 },
1251 .hback_porch
= { 43, 53, 63 },
1252 .hsync_len
= { 44, 54, 64 },
1253 .vactive
= { 800, 800, 800 },
1254 .vfront_porch
= { 5, 8, 11 },
1255 .vback_porch
= { 5, 8, 11 },
1256 .vsync_len
= { 5, 7, 11 },
1257 .flags
= DISPLAY_FLAGS_DE_HIGH
,
1260 static const struct panel_desc dlc_dlc1010gig
= {
1261 .timings
= &dlc_dlc1010gig_timing
,
1274 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
1275 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1278 static const struct drm_display_mode edt_et035012dm6_mode
= {
1281 .hsync_start
= 320 + 20,
1282 .hsync_end
= 320 + 20 + 30,
1283 .htotal
= 320 + 20 + 68,
1285 .vsync_start
= 240 + 4,
1286 .vsync_end
= 240 + 4 + 4,
1287 .vtotal
= 240 + 4 + 4 + 14,
1289 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
1292 static const struct panel_desc edt_et035012dm6
= {
1293 .modes
= &edt_et035012dm6_mode
,
1300 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
1301 .bus_flags
= DRM_BUS_FLAG_DE_LOW
| DRM_BUS_FLAG_PIXDATA_NEGEDGE
,
1304 static const struct drm_display_mode edt_etm0430g0dh6_mode
= {
1307 .hsync_start
= 480 + 2,
1308 .hsync_end
= 480 + 2 + 41,
1309 .htotal
= 480 + 2 + 41 + 2,
1311 .vsync_start
= 272 + 2,
1312 .vsync_end
= 272 + 2 + 10,
1313 .vtotal
= 272 + 2 + 10 + 2,
1315 .flags
= DRM_MODE_FLAG_NHSYNC
| DRM_MODE_FLAG_NVSYNC
,
1318 static const struct panel_desc edt_etm0430g0dh6
= {
1319 .modes
= &edt_etm0430g0dh6_mode
,
1328 static const struct drm_display_mode edt_et057090dhu_mode
= {
1331 .hsync_start
= 640 + 16,
1332 .hsync_end
= 640 + 16 + 30,
1333 .htotal
= 640 + 16 + 30 + 114,
1335 .vsync_start
= 480 + 10,
1336 .vsync_end
= 480 + 10 + 3,
1337 .vtotal
= 480 + 10 + 3 + 32,
1339 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
1342 static const struct panel_desc edt_et057090dhu
= {
1343 .modes
= &edt_et057090dhu_mode
,
1350 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
1351 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE
,
1354 static const struct drm_display_mode edt_etm0700g0dh6_mode
= {
1357 .hsync_start
= 800 + 40,
1358 .hsync_end
= 800 + 40 + 128,
1359 .htotal
= 800 + 40 + 128 + 88,
1361 .vsync_start
= 480 + 10,
1362 .vsync_end
= 480 + 10 + 2,
1363 .vtotal
= 480 + 10 + 2 + 33,
1365 .flags
= DRM_MODE_FLAG_NHSYNC
| DRM_MODE_FLAG_NVSYNC
,
1368 static const struct panel_desc edt_etm0700g0dh6
= {
1369 .modes
= &edt_etm0700g0dh6_mode
,
1376 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
1377 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE
,
1380 static const struct panel_desc edt_etm0700g0bdh6
= {
1381 .modes
= &edt_etm0700g0dh6_mode
,
1388 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
1389 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
,
1392 static const struct display_timing evervision_vgg804821_timing
= {
1393 .pixelclock
= { 27600000, 33300000, 50000000 },
1394 .hactive
= { 800, 800, 800 },
1395 .hfront_porch
= { 40, 66, 70 },
1396 .hback_porch
= { 40, 67, 70 },
1397 .hsync_len
= { 40, 67, 70 },
1398 .vactive
= { 480, 480, 480 },
1399 .vfront_porch
= { 6, 10, 10 },
1400 .vback_porch
= { 7, 11, 11 },
1401 .vsync_len
= { 7, 11, 11 },
1402 .flags
= DISPLAY_FLAGS_HSYNC_HIGH
| DISPLAY_FLAGS_VSYNC_HIGH
|
1403 DISPLAY_FLAGS_DE_HIGH
| DISPLAY_FLAGS_PIXDATA_NEGEDGE
|
1404 DISPLAY_FLAGS_SYNC_NEGEDGE
,
1407 static const struct panel_desc evervision_vgg804821
= {
1408 .timings
= &evervision_vgg804821_timing
,
1415 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
1416 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_NEGEDGE
,
1419 static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode
= {
1422 .hsync_start
= 800 + 168,
1423 .hsync_end
= 800 + 168 + 64,
1424 .htotal
= 800 + 168 + 64 + 88,
1426 .vsync_start
= 480 + 37,
1427 .vsync_end
= 480 + 37 + 2,
1428 .vtotal
= 480 + 37 + 2 + 8,
1432 static const struct panel_desc foxlink_fl500wvr00_a0t
= {
1433 .modes
= &foxlink_fl500wvr00_a0t_mode
,
1440 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
1443 static const struct drm_display_mode friendlyarm_hd702e_mode
= {
1446 .hsync_start
= 800 + 20,
1447 .hsync_end
= 800 + 20 + 24,
1448 .htotal
= 800 + 20 + 24 + 20,
1450 .vsync_start
= 1280 + 4,
1451 .vsync_end
= 1280 + 4 + 8,
1452 .vtotal
= 1280 + 4 + 8 + 4,
1454 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
1457 static const struct panel_desc friendlyarm_hd702e
= {
1458 .modes
= &friendlyarm_hd702e_mode
,
1466 static const struct drm_display_mode giantplus_gpg482739qs5_mode
= {
1469 .hsync_start
= 480 + 5,
1470 .hsync_end
= 480 + 5 + 1,
1471 .htotal
= 480 + 5 + 1 + 40,
1473 .vsync_start
= 272 + 8,
1474 .vsync_end
= 272 + 8 + 1,
1475 .vtotal
= 272 + 8 + 1 + 8,
1479 static const struct panel_desc giantplus_gpg482739qs5
= {
1480 .modes
= &giantplus_gpg482739qs5_mode
,
1487 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
1490 static const struct display_timing giantplus_gpm940b0_timing
= {
1491 .pixelclock
= { 13500000, 27000000, 27500000 },
1492 .hactive
= { 320, 320, 320 },
1493 .hfront_porch
= { 14, 686, 718 },
1494 .hback_porch
= { 50, 70, 255 },
1495 .hsync_len
= { 1, 1, 1 },
1496 .vactive
= { 240, 240, 240 },
1497 .vfront_porch
= { 1, 1, 179 },
1498 .vback_porch
= { 1, 21, 31 },
1499 .vsync_len
= { 1, 1, 6 },
1500 .flags
= DISPLAY_FLAGS_HSYNC_LOW
| DISPLAY_FLAGS_VSYNC_LOW
,
1503 static const struct panel_desc giantplus_gpm940b0
= {
1504 .timings
= &giantplus_gpm940b0_timing
,
1511 .bus_format
= MEDIA_BUS_FMT_RGB888_3X8
,
1512 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_NEGEDGE
,
1515 static const struct display_timing hannstar_hsd070pww1_timing
= {
1516 .pixelclock
= { 64300000, 71100000, 82000000 },
1517 .hactive
= { 1280, 1280, 1280 },
1518 .hfront_porch
= { 1, 1, 10 },
1519 .hback_porch
= { 1, 1, 10 },
1521 * According to the data sheet, the minimum horizontal blanking interval
1522 * is 54 clocks (1 + 52 + 1), but tests with a Nitrogen6X have shown the
1523 * minimum working horizontal blanking interval to be 60 clocks.
1525 .hsync_len
= { 58, 158, 661 },
1526 .vactive
= { 800, 800, 800 },
1527 .vfront_porch
= { 1, 1, 10 },
1528 .vback_porch
= { 1, 1, 10 },
1529 .vsync_len
= { 1, 21, 203 },
1530 .flags
= DISPLAY_FLAGS_DE_HIGH
,
1533 static const struct panel_desc hannstar_hsd070pww1
= {
1534 .timings
= &hannstar_hsd070pww1_timing
,
1541 .bus_format
= MEDIA_BUS_FMT_RGB666_1X7X3_SPWG
,
1542 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1545 static const struct display_timing hannstar_hsd100pxn1_timing
= {
1546 .pixelclock
= { 55000000, 65000000, 75000000 },
1547 .hactive
= { 1024, 1024, 1024 },
1548 .hfront_porch
= { 40, 40, 40 },
1549 .hback_porch
= { 220, 220, 220 },
1550 .hsync_len
= { 20, 60, 100 },
1551 .vactive
= { 768, 768, 768 },
1552 .vfront_porch
= { 7, 7, 7 },
1553 .vback_porch
= { 21, 21, 21 },
1554 .vsync_len
= { 10, 10, 10 },
1555 .flags
= DISPLAY_FLAGS_DE_HIGH
,
1558 static const struct panel_desc hannstar_hsd100pxn1
= {
1559 .timings
= &hannstar_hsd100pxn1_timing
,
1566 .bus_format
= MEDIA_BUS_FMT_RGB666_1X7X3_SPWG
,
1567 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1570 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode
= {
1573 .hsync_start
= 800 + 85,
1574 .hsync_end
= 800 + 85 + 86,
1575 .htotal
= 800 + 85 + 86 + 85,
1577 .vsync_start
= 480 + 16,
1578 .vsync_end
= 480 + 16 + 13,
1579 .vtotal
= 480 + 16 + 13 + 16,
1583 static const struct panel_desc hitachi_tx23d38vm0caa
= {
1584 .modes
= &hitachi_tx23d38vm0caa_mode
,
1597 static const struct drm_display_mode innolux_at043tn24_mode
= {
1600 .hsync_start
= 480 + 2,
1601 .hsync_end
= 480 + 2 + 41,
1602 .htotal
= 480 + 2 + 41 + 2,
1604 .vsync_start
= 272 + 2,
1605 .vsync_end
= 272 + 2 + 10,
1606 .vtotal
= 272 + 2 + 10 + 2,
1608 .flags
= DRM_MODE_FLAG_NHSYNC
| DRM_MODE_FLAG_NVSYNC
,
1611 static const struct panel_desc innolux_at043tn24
= {
1612 .modes
= &innolux_at043tn24_mode
,
1619 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
1620 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
,
1623 static const struct drm_display_mode innolux_at070tn92_mode
= {
1626 .hsync_start
= 800 + 210,
1627 .hsync_end
= 800 + 210 + 20,
1628 .htotal
= 800 + 210 + 20 + 46,
1630 .vsync_start
= 480 + 22,
1631 .vsync_end
= 480 + 22 + 10,
1632 .vtotal
= 480 + 22 + 23 + 10,
1636 static const struct panel_desc innolux_at070tn92
= {
1637 .modes
= &innolux_at070tn92_mode
,
1643 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
1646 static const struct display_timing innolux_g070y2_l01_timing
= {
1647 .pixelclock
= { 28000000, 29500000, 32000000 },
1648 .hactive
= { 800, 800, 800 },
1649 .hfront_porch
= { 61, 91, 141 },
1650 .hback_porch
= { 60, 90, 140 },
1651 .hsync_len
= { 12, 12, 12 },
1652 .vactive
= { 480, 480, 480 },
1653 .vfront_porch
= { 4, 9, 30 },
1654 .vback_porch
= { 4, 8, 28 },
1655 .vsync_len
= { 2, 2, 2 },
1656 .flags
= DISPLAY_FLAGS_DE_HIGH
,
1659 static const struct panel_desc innolux_g070y2_l01
= {
1660 .timings
= &innolux_g070y2_l01_timing
,
1673 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
1674 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1677 static const struct display_timing innolux_g101ice_l01_timing
= {
1678 .pixelclock
= { 60400000, 71100000, 74700000 },
1679 .hactive
= { 1280, 1280, 1280 },
1680 .hfront_porch
= { 41, 80, 100 },
1681 .hback_porch
= { 40, 79, 99 },
1682 .hsync_len
= { 1, 1, 1 },
1683 .vactive
= { 800, 800, 800 },
1684 .vfront_porch
= { 5, 11, 14 },
1685 .vback_porch
= { 4, 11, 14 },
1686 .vsync_len
= { 1, 1, 1 },
1687 .flags
= DISPLAY_FLAGS_DE_HIGH
,
1690 static const struct panel_desc innolux_g101ice_l01
= {
1691 .timings
= &innolux_g101ice_l01_timing
,
1702 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
1703 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1706 static const struct display_timing innolux_g121i1_l01_timing
= {
1707 .pixelclock
= { 67450000, 71000000, 74550000 },
1708 .hactive
= { 1280, 1280, 1280 },
1709 .hfront_porch
= { 40, 80, 160 },
1710 .hback_porch
= { 39, 79, 159 },
1711 .hsync_len
= { 1, 1, 1 },
1712 .vactive
= { 800, 800, 800 },
1713 .vfront_porch
= { 5, 11, 100 },
1714 .vback_porch
= { 4, 11, 99 },
1715 .vsync_len
= { 1, 1, 1 },
1718 static const struct panel_desc innolux_g121i1_l01
= {
1719 .timings
= &innolux_g121i1_l01_timing
,
1730 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
1731 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1734 static const struct drm_display_mode innolux_g121x1_l03_mode
= {
1737 .hsync_start
= 1024 + 0,
1738 .hsync_end
= 1024 + 1,
1739 .htotal
= 1024 + 0 + 1 + 320,
1741 .vsync_start
= 768 + 38,
1742 .vsync_end
= 768 + 38 + 1,
1743 .vtotal
= 768 + 38 + 1 + 0,
1745 .flags
= DRM_MODE_FLAG_NHSYNC
| DRM_MODE_FLAG_NVSYNC
,
1748 static const struct panel_desc innolux_g121x1_l03
= {
1749 .modes
= &innolux_g121x1_l03_mode
,
1764 * Datasheet specifies that at 60 Hz refresh rate:
1765 * - total horizontal time: { 1506, 1592, 1716 }
1766 * - total vertical time: { 788, 800, 868 }
1768 * ...but doesn't go into exactly how that should be split into a front
1769 * porch, back porch, or sync length. For now we'll leave a single setting
1770 * here which allows a bit of tweaking of the pixel clock at the expense of
1773 static const struct display_timing innolux_n116bge_timing
= {
1774 .pixelclock
= { 72600000, 76420000, 80240000 },
1775 .hactive
= { 1366, 1366, 1366 },
1776 .hfront_porch
= { 136, 136, 136 },
1777 .hback_porch
= { 60, 60, 60 },
1778 .hsync_len
= { 30, 30, 30 },
1779 .vactive
= { 768, 768, 768 },
1780 .vfront_porch
= { 8, 8, 8 },
1781 .vback_porch
= { 12, 12, 12 },
1782 .vsync_len
= { 12, 12, 12 },
1783 .flags
= DISPLAY_FLAGS_VSYNC_LOW
| DISPLAY_FLAGS_HSYNC_LOW
,
1786 static const struct panel_desc innolux_n116bge
= {
1787 .timings
= &innolux_n116bge_timing
,
1796 static const struct drm_display_mode innolux_n156bge_l21_mode
= {
1799 .hsync_start
= 1366 + 16,
1800 .hsync_end
= 1366 + 16 + 34,
1801 .htotal
= 1366 + 16 + 34 + 50,
1803 .vsync_start
= 768 + 2,
1804 .vsync_end
= 768 + 2 + 6,
1805 .vtotal
= 768 + 2 + 6 + 12,
1809 static const struct panel_desc innolux_n156bge_l21
= {
1810 .modes
= &innolux_n156bge_l21_mode
,
1819 static const struct drm_display_mode innolux_p120zdg_bf1_mode
= {
1822 .hsync_start
= 2160 + 48,
1823 .hsync_end
= 2160 + 48 + 32,
1824 .htotal
= 2160 + 48 + 32 + 80,
1826 .vsync_start
= 1440 + 3,
1827 .vsync_end
= 1440 + 3 + 10,
1828 .vtotal
= 1440 + 3 + 10 + 27,
1830 .flags
= DRM_MODE_FLAG_PHSYNC
| DRM_MODE_FLAG_PVSYNC
,
1833 static const struct panel_desc innolux_p120zdg_bf1
= {
1834 .modes
= &innolux_p120zdg_bf1_mode
,
1842 .hpd_absent_delay
= 200,
1847 static const struct drm_display_mode innolux_zj070na_01p_mode
= {
1850 .hsync_start
= 1024 + 128,
1851 .hsync_end
= 1024 + 128 + 64,
1852 .htotal
= 1024 + 128 + 64 + 128,
1854 .vsync_start
= 600 + 16,
1855 .vsync_end
= 600 + 16 + 4,
1856 .vtotal
= 600 + 16 + 4 + 16,
1860 static const struct panel_desc innolux_zj070na_01p
= {
1861 .modes
= &innolux_zj070na_01p_mode
,
1870 static const struct display_timing koe_tx14d24vm1bpa_timing
= {
1871 .pixelclock
= { 5580000, 5850000, 6200000 },
1872 .hactive
= { 320, 320, 320 },
1873 .hfront_porch
= { 30, 30, 30 },
1874 .hback_porch
= { 30, 30, 30 },
1875 .hsync_len
= { 1, 5, 17 },
1876 .vactive
= { 240, 240, 240 },
1877 .vfront_porch
= { 6, 6, 6 },
1878 .vback_porch
= { 5, 5, 5 },
1879 .vsync_len
= { 1, 2, 11 },
1880 .flags
= DISPLAY_FLAGS_DE_HIGH
,
1883 static const struct panel_desc koe_tx14d24vm1bpa
= {
1884 .timings
= &koe_tx14d24vm1bpa_timing
,
1893 static const struct display_timing koe_tx31d200vm0baa_timing
= {
1894 .pixelclock
= { 39600000, 43200000, 48000000 },
1895 .hactive
= { 1280, 1280, 1280 },
1896 .hfront_porch
= { 16, 36, 56 },
1897 .hback_porch
= { 16, 36, 56 },
1898 .hsync_len
= { 8, 8, 8 },
1899 .vactive
= { 480, 480, 480 },
1900 .vfront_porch
= { 6, 21, 33 },
1901 .vback_porch
= { 6, 21, 33 },
1902 .vsync_len
= { 8, 8, 8 },
1903 .flags
= DISPLAY_FLAGS_DE_HIGH
,
1906 static const struct panel_desc koe_tx31d200vm0baa
= {
1907 .timings
= &koe_tx31d200vm0baa_timing
,
1914 .bus_format
= MEDIA_BUS_FMT_RGB666_1X7X3_SPWG
,
1915 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1918 static const struct display_timing kyo_tcg121xglp_timing
= {
1919 .pixelclock
= { 52000000, 65000000, 71000000 },
1920 .hactive
= { 1024, 1024, 1024 },
1921 .hfront_porch
= { 2, 2, 2 },
1922 .hback_porch
= { 2, 2, 2 },
1923 .hsync_len
= { 86, 124, 244 },
1924 .vactive
= { 768, 768, 768 },
1925 .vfront_porch
= { 2, 2, 2 },
1926 .vback_porch
= { 2, 2, 2 },
1927 .vsync_len
= { 6, 34, 73 },
1928 .flags
= DISPLAY_FLAGS_DE_HIGH
,
1931 static const struct panel_desc kyo_tcg121xglp
= {
1932 .timings
= &kyo_tcg121xglp_timing
,
1939 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
1940 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1943 static const struct drm_display_mode lemaker_bl035_rgb_002_mode
= {
1946 .hsync_start
= 320 + 20,
1947 .hsync_end
= 320 + 20 + 30,
1948 .htotal
= 320 + 20 + 30 + 38,
1950 .vsync_start
= 240 + 4,
1951 .vsync_end
= 240 + 4 + 3,
1952 .vtotal
= 240 + 4 + 3 + 15,
1956 static const struct panel_desc lemaker_bl035_rgb_002
= {
1957 .modes
= &lemaker_bl035_rgb_002_mode
,
1963 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
1964 .bus_flags
= DRM_BUS_FLAG_DE_LOW
,
1967 static const struct drm_display_mode lg_lb070wv8_mode
= {
1970 .hsync_start
= 800 + 88,
1971 .hsync_end
= 800 + 88 + 80,
1972 .htotal
= 800 + 88 + 80 + 88,
1974 .vsync_start
= 480 + 10,
1975 .vsync_end
= 480 + 10 + 25,
1976 .vtotal
= 480 + 10 + 25 + 10,
1980 static const struct panel_desc lg_lb070wv8
= {
1981 .modes
= &lg_lb070wv8_mode
,
1988 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
1989 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
1992 static const struct drm_display_mode lg_lp079qx1_sp0v_mode
= {
1995 .hsync_start
= 1536 + 12,
1996 .hsync_end
= 1536 + 12 + 16,
1997 .htotal
= 1536 + 12 + 16 + 48,
1999 .vsync_start
= 2048 + 8,
2000 .vsync_end
= 2048 + 8 + 4,
2001 .vtotal
= 2048 + 8 + 4 + 8,
2003 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
2006 static const struct panel_desc lg_lp079qx1_sp0v
= {
2007 .modes
= &lg_lp079qx1_sp0v_mode
,
2015 static const struct drm_display_mode lg_lp097qx1_spa1_mode
= {
2018 .hsync_start
= 2048 + 150,
2019 .hsync_end
= 2048 + 150 + 5,
2020 .htotal
= 2048 + 150 + 5 + 5,
2022 .vsync_start
= 1536 + 3,
2023 .vsync_end
= 1536 + 3 + 1,
2024 .vtotal
= 1536 + 3 + 1 + 9,
2028 static const struct panel_desc lg_lp097qx1_spa1
= {
2029 .modes
= &lg_lp097qx1_spa1_mode
,
2037 static const struct drm_display_mode lg_lp120up1_mode
= {
2040 .hsync_start
= 1920 + 40,
2041 .hsync_end
= 1920 + 40 + 40,
2042 .htotal
= 1920 + 40 + 40+ 80,
2044 .vsync_start
= 1280 + 4,
2045 .vsync_end
= 1280 + 4 + 4,
2046 .vtotal
= 1280 + 4 + 4 + 12,
2050 static const struct panel_desc lg_lp120up1
= {
2051 .modes
= &lg_lp120up1_mode
,
2060 static const struct drm_display_mode lg_lp129qe_mode
= {
2063 .hsync_start
= 2560 + 48,
2064 .hsync_end
= 2560 + 48 + 32,
2065 .htotal
= 2560 + 48 + 32 + 80,
2067 .vsync_start
= 1700 + 3,
2068 .vsync_end
= 1700 + 3 + 10,
2069 .vtotal
= 1700 + 3 + 10 + 36,
2073 static const struct panel_desc lg_lp129qe
= {
2074 .modes
= &lg_lp129qe_mode
,
2083 static const struct drm_display_mode mitsubishi_aa070mc01_mode
= {
2086 .hsync_start
= 800 + 0,
2087 .hsync_end
= 800 + 1,
2088 .htotal
= 800 + 0 + 1 + 160,
2090 .vsync_start
= 480 + 0,
2091 .vsync_end
= 480 + 48 + 1,
2092 .vtotal
= 480 + 48 + 1 + 0,
2094 .flags
= DRM_MODE_FLAG_NHSYNC
| DRM_MODE_FLAG_NVSYNC
,
2097 static const struct drm_display_mode logicpd_type_28_mode
= {
2100 .hsync_start
= 480 + 3,
2101 .hsync_end
= 480 + 3 + 42,
2102 .htotal
= 480 + 3 + 42 + 2,
2105 .vsync_start
= 272 + 2,
2106 .vsync_end
= 272 + 2 + 11,
2107 .vtotal
= 272 + 2 + 11 + 3,
2109 .flags
= DRM_MODE_FLAG_PHSYNC
| DRM_MODE_FLAG_PVSYNC
,
2112 static const struct panel_desc logicpd_type_28
= {
2113 .modes
= &logicpd_type_28_mode
,
2126 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2127 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
|
2128 DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE
,
2131 static const struct panel_desc mitsubishi_aa070mc01
= {
2132 .modes
= &mitsubishi_aa070mc01_mode
,
2145 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
2146 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
2147 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
,
2150 static const struct display_timing nec_nl12880bc20_05_timing
= {
2151 .pixelclock
= { 67000000, 71000000, 75000000 },
2152 .hactive
= { 1280, 1280, 1280 },
2153 .hfront_porch
= { 2, 30, 30 },
2154 .hback_porch
= { 6, 100, 100 },
2155 .hsync_len
= { 2, 30, 30 },
2156 .vactive
= { 800, 800, 800 },
2157 .vfront_porch
= { 5, 5, 5 },
2158 .vback_porch
= { 11, 11, 11 },
2159 .vsync_len
= { 7, 7, 7 },
2162 static const struct panel_desc nec_nl12880bc20_05
= {
2163 .timings
= &nec_nl12880bc20_05_timing
,
2174 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
2175 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
2178 static const struct drm_display_mode nec_nl4827hc19_05b_mode
= {
2181 .hsync_start
= 480 + 2,
2182 .hsync_end
= 480 + 2 + 41,
2183 .htotal
= 480 + 2 + 41 + 2,
2185 .vsync_start
= 272 + 2,
2186 .vsync_end
= 272 + 2 + 4,
2187 .vtotal
= 272 + 2 + 4 + 2,
2189 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
2192 static const struct panel_desc nec_nl4827hc19_05b
= {
2193 .modes
= &nec_nl4827hc19_05b_mode
,
2200 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2201 .bus_flags
= DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
,
2204 static const struct drm_display_mode netron_dy_e231732_mode
= {
2207 .hsync_start
= 1024 + 160,
2208 .hsync_end
= 1024 + 160 + 70,
2209 .htotal
= 1024 + 160 + 70 + 90,
2211 .vsync_start
= 600 + 127,
2212 .vsync_end
= 600 + 127 + 20,
2213 .vtotal
= 600 + 127 + 20 + 3,
2217 static const struct panel_desc netron_dy_e231732
= {
2218 .modes
= &netron_dy_e231732_mode
,
2224 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
2227 static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode
= {
2230 .hsync_start
= 480 + 2,
2231 .hsync_end
= 480 + 2 + 41,
2232 .htotal
= 480 + 2 + 41 + 2,
2234 .vsync_start
= 272 + 2,
2235 .vsync_end
= 272 + 2 + 10,
2236 .vtotal
= 272 + 2 + 10 + 2,
2238 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
2241 static const struct panel_desc newhaven_nhd_43_480272ef_atxl
= {
2242 .modes
= &newhaven_nhd_43_480272ef_atxl_mode
,
2249 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2250 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
|
2251 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE
,
2254 static const struct display_timing nlt_nl192108ac18_02d_timing
= {
2255 .pixelclock
= { 130000000, 148350000, 163000000 },
2256 .hactive
= { 1920, 1920, 1920 },
2257 .hfront_porch
= { 80, 100, 100 },
2258 .hback_porch
= { 100, 120, 120 },
2259 .hsync_len
= { 50, 60, 60 },
2260 .vactive
= { 1080, 1080, 1080 },
2261 .vfront_porch
= { 12, 30, 30 },
2262 .vback_porch
= { 4, 10, 10 },
2263 .vsync_len
= { 4, 5, 5 },
2266 static const struct panel_desc nlt_nl192108ac18_02d
= {
2267 .timings
= &nlt_nl192108ac18_02d_timing
,
2277 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
2278 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
2281 static const struct drm_display_mode nvd_9128_mode
= {
2284 .hsync_start
= 800 + 130,
2285 .hsync_end
= 800 + 130 + 98,
2286 .htotal
= 800 + 0 + 130 + 98,
2288 .vsync_start
= 480 + 10,
2289 .vsync_end
= 480 + 10 + 50,
2290 .vtotal
= 480 + 0 + 10 + 50,
2293 static const struct panel_desc nvd_9128
= {
2294 .modes
= &nvd_9128_mode
,
2301 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
2302 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
2305 static const struct display_timing okaya_rs800480t_7x0gp_timing
= {
2306 .pixelclock
= { 30000000, 30000000, 40000000 },
2307 .hactive
= { 800, 800, 800 },
2308 .hfront_porch
= { 40, 40, 40 },
2309 .hback_porch
= { 40, 40, 40 },
2310 .hsync_len
= { 1, 48, 48 },
2311 .vactive
= { 480, 480, 480 },
2312 .vfront_porch
= { 13, 13, 13 },
2313 .vback_porch
= { 29, 29, 29 },
2314 .vsync_len
= { 3, 3, 3 },
2315 .flags
= DISPLAY_FLAGS_DE_HIGH
,
2318 static const struct panel_desc okaya_rs800480t_7x0gp
= {
2319 .timings
= &okaya_rs800480t_7x0gp_timing
,
2332 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
2335 static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode
= {
2338 .hsync_start
= 480 + 5,
2339 .hsync_end
= 480 + 5 + 30,
2340 .htotal
= 480 + 5 + 30 + 10,
2342 .vsync_start
= 272 + 8,
2343 .vsync_end
= 272 + 8 + 5,
2344 .vtotal
= 272 + 8 + 5 + 3,
2348 static const struct panel_desc olimex_lcd_olinuxino_43ts
= {
2349 .modes
= &olimex_lcd_olinuxino_43ts_mode
,
2355 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2359 * 800x480 CVT. The panel appears to be quite accepting, at least as far as
2360 * pixel clocks, but this is the timing that was being used in the Adafruit
2361 * installation instructions.
2363 static const struct drm_display_mode ontat_yx700wv03_mode
= {
2374 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
2379 * https://www.adafruit.com/images/product-files/2406/c3163.pdf
2381 static const struct panel_desc ontat_yx700wv03
= {
2382 .modes
= &ontat_yx700wv03_mode
,
2389 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
2392 static const struct drm_display_mode ortustech_com37h3m_mode
= {
2395 .hsync_start
= 480 + 8,
2396 .hsync_end
= 480 + 8 + 10,
2397 .htotal
= 480 + 8 + 10 + 10,
2399 .vsync_start
= 640 + 4,
2400 .vsync_end
= 640 + 4 + 3,
2401 .vtotal
= 640 + 4 + 3 + 4,
2403 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
2406 static const struct panel_desc ortustech_com37h3m
= {
2407 .modes
= &ortustech_com37h3m_mode
,
2411 .width
= 56, /* 56.16mm */
2412 .height
= 75, /* 74.88mm */
2414 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2415 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_POSEDGE
|
2416 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE
,
2419 static const struct drm_display_mode ortustech_com43h4m85ulc_mode
= {
2422 .hsync_start
= 480 + 10,
2423 .hsync_end
= 480 + 10 + 10,
2424 .htotal
= 480 + 10 + 10 + 15,
2426 .vsync_start
= 800 + 3,
2427 .vsync_end
= 800 + 3 + 3,
2428 .vtotal
= 800 + 3 + 3 + 3,
2432 static const struct panel_desc ortustech_com43h4m85ulc
= {
2433 .modes
= &ortustech_com43h4m85ulc_mode
,
2440 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2441 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
,
2444 static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode
= {
2447 .hsync_start
= 800 + 210,
2448 .hsync_end
= 800 + 210 + 30,
2449 .htotal
= 800 + 210 + 30 + 16,
2451 .vsync_start
= 480 + 22,
2452 .vsync_end
= 480 + 22 + 13,
2453 .vtotal
= 480 + 22 + 13 + 10,
2455 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
2458 static const struct panel_desc osddisplays_osd070t1718_19ts
= {
2459 .modes
= &osddisplays_osd070t1718_19ts_mode
,
2466 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2467 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
,
2468 .connector_type
= DRM_MODE_CONNECTOR_DPI
,
2471 static const struct drm_display_mode pda_91_00156_a0_mode
= {
2474 .hsync_start
= 800 + 1,
2475 .hsync_end
= 800 + 1 + 64,
2476 .htotal
= 800 + 1 + 64 + 64,
2478 .vsync_start
= 480 + 1,
2479 .vsync_end
= 480 + 1 + 23,
2480 .vtotal
= 480 + 1 + 23 + 22,
2484 static const struct panel_desc pda_91_00156_a0
= {
2485 .modes
= &pda_91_00156_a0_mode
,
2491 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2495 static const struct drm_display_mode qd43003c0_40_mode
= {
2498 .hsync_start
= 480 + 8,
2499 .hsync_end
= 480 + 8 + 4,
2500 .htotal
= 480 + 8 + 4 + 39,
2502 .vsync_start
= 272 + 4,
2503 .vsync_end
= 272 + 4 + 10,
2504 .vtotal
= 272 + 4 + 10 + 2,
2508 static const struct panel_desc qd43003c0_40
= {
2509 .modes
= &qd43003c0_40_mode
,
2516 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2519 static const struct display_timing rocktech_rk070er9427_timing
= {
2520 .pixelclock
= { 26400000, 33300000, 46800000 },
2521 .hactive
= { 800, 800, 800 },
2522 .hfront_porch
= { 16, 210, 354 },
2523 .hback_porch
= { 46, 46, 46 },
2524 .hsync_len
= { 1, 1, 1 },
2525 .vactive
= { 480, 480, 480 },
2526 .vfront_porch
= { 7, 22, 147 },
2527 .vback_porch
= { 23, 23, 23 },
2528 .vsync_len
= { 1, 1, 1 },
2529 .flags
= DISPLAY_FLAGS_DE_HIGH
,
2532 static const struct panel_desc rocktech_rk070er9427
= {
2533 .timings
= &rocktech_rk070er9427_timing
,
2546 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
2549 static const struct drm_display_mode samsung_lsn122dl01_c01_mode
= {
2552 .hsync_start
= 2560 + 48,
2553 .hsync_end
= 2560 + 48 + 32,
2554 .htotal
= 2560 + 48 + 32 + 80,
2556 .vsync_start
= 1600 + 2,
2557 .vsync_end
= 1600 + 2 + 5,
2558 .vtotal
= 1600 + 2 + 5 + 57,
2562 static const struct panel_desc samsung_lsn122dl01_c01
= {
2563 .modes
= &samsung_lsn122dl01_c01_mode
,
2571 static const struct drm_display_mode samsung_ltn101nt05_mode
= {
2574 .hsync_start
= 1024 + 24,
2575 .hsync_end
= 1024 + 24 + 136,
2576 .htotal
= 1024 + 24 + 136 + 160,
2578 .vsync_start
= 600 + 3,
2579 .vsync_end
= 600 + 3 + 6,
2580 .vtotal
= 600 + 3 + 6 + 61,
2584 static const struct panel_desc samsung_ltn101nt05
= {
2585 .modes
= &samsung_ltn101nt05_mode
,
2594 static const struct drm_display_mode samsung_ltn140at29_301_mode
= {
2597 .hsync_start
= 1366 + 64,
2598 .hsync_end
= 1366 + 64 + 48,
2599 .htotal
= 1366 + 64 + 48 + 128,
2601 .vsync_start
= 768 + 2,
2602 .vsync_end
= 768 + 2 + 5,
2603 .vtotal
= 768 + 2 + 5 + 17,
2607 static const struct panel_desc samsung_ltn140at29_301
= {
2608 .modes
= &samsung_ltn140at29_301_mode
,
2617 static const struct display_timing satoz_sat050at40h12r2_timing
= {
2618 .pixelclock
= {33300000, 33300000, 50000000},
2619 .hactive
= {800, 800, 800},
2620 .hfront_porch
= {16, 210, 354},
2621 .hback_porch
= {46, 46, 46},
2622 .hsync_len
= {1, 1, 40},
2623 .vactive
= {480, 480, 480},
2624 .vfront_porch
= {7, 22, 147},
2625 .vback_porch
= {23, 23, 23},
2626 .vsync_len
= {1, 1, 20},
2629 static const struct panel_desc satoz_sat050at40h12r2
= {
2630 .timings
= &satoz_sat050at40h12r2_timing
,
2637 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2638 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
2641 static const struct drm_display_mode sharp_ld_d5116z01b_mode
= {
2644 .hsync_start
= 1920 + 48,
2645 .hsync_end
= 1920 + 48 + 32,
2646 .htotal
= 1920 + 48 + 32 + 80,
2648 .vsync_start
= 1280 + 3,
2649 .vsync_end
= 1280 + 3 + 10,
2650 .vtotal
= 1280 + 3 + 10 + 57,
2652 .flags
= DRM_MODE_FLAG_PHSYNC
| DRM_MODE_FLAG_PVSYNC
,
2655 static const struct panel_desc sharp_ld_d5116z01b
= {
2656 .modes
= &sharp_ld_d5116z01b_mode
,
2663 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2664 .bus_flags
= DRM_BUS_FLAG_DATA_MSB_TO_LSB
,
2667 static const struct drm_display_mode sharp_lq070y3dg3b_mode
= {
2670 .hsync_start
= 800 + 64,
2671 .hsync_end
= 800 + 64 + 128,
2672 .htotal
= 800 + 64 + 128 + 64,
2674 .vsync_start
= 480 + 8,
2675 .vsync_end
= 480 + 8 + 2,
2676 .vtotal
= 480 + 8 + 2 + 35,
2678 .flags
= DISPLAY_FLAGS_PIXDATA_POSEDGE
,
2681 static const struct panel_desc sharp_lq070y3dg3b
= {
2682 .modes
= &sharp_lq070y3dg3b_mode
,
2686 .width
= 152, /* 152.4mm */
2687 .height
= 91, /* 91.4mm */
2689 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2690 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_POSEDGE
|
2691 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE
,
2694 static const struct drm_display_mode sharp_lq035q7db03_mode
= {
2697 .hsync_start
= 240 + 16,
2698 .hsync_end
= 240 + 16 + 7,
2699 .htotal
= 240 + 16 + 7 + 5,
2701 .vsync_start
= 320 + 9,
2702 .vsync_end
= 320 + 9 + 1,
2703 .vtotal
= 320 + 9 + 1 + 7,
2707 static const struct panel_desc sharp_lq035q7db03
= {
2708 .modes
= &sharp_lq035q7db03_mode
,
2715 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
2718 static const struct display_timing sharp_lq101k1ly04_timing
= {
2719 .pixelclock
= { 60000000, 65000000, 80000000 },
2720 .hactive
= { 1280, 1280, 1280 },
2721 .hfront_porch
= { 20, 20, 20 },
2722 .hback_porch
= { 20, 20, 20 },
2723 .hsync_len
= { 10, 10, 10 },
2724 .vactive
= { 800, 800, 800 },
2725 .vfront_porch
= { 4, 4, 4 },
2726 .vback_porch
= { 4, 4, 4 },
2727 .vsync_len
= { 4, 4, 4 },
2728 .flags
= DISPLAY_FLAGS_PIXDATA_POSEDGE
,
2731 static const struct panel_desc sharp_lq101k1ly04
= {
2732 .timings
= &sharp_lq101k1ly04_timing
,
2739 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA
,
2740 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
2743 static const struct display_timing sharp_lq123p1jx31_timing
= {
2744 .pixelclock
= { 252750000, 252750000, 266604720 },
2745 .hactive
= { 2400, 2400, 2400 },
2746 .hfront_porch
= { 48, 48, 48 },
2747 .hback_porch
= { 80, 80, 84 },
2748 .hsync_len
= { 32, 32, 32 },
2749 .vactive
= { 1600, 1600, 1600 },
2750 .vfront_porch
= { 3, 3, 3 },
2751 .vback_porch
= { 33, 33, 120 },
2752 .vsync_len
= { 10, 10, 10 },
2753 .flags
= DISPLAY_FLAGS_VSYNC_LOW
| DISPLAY_FLAGS_HSYNC_LOW
,
2756 static const struct panel_desc sharp_lq123p1jx31
= {
2757 .timings
= &sharp_lq123p1jx31_timing
,
2771 static const struct drm_display_mode sharp_lq150x1lg11_mode
= {
2774 .hsync_start
= 1024 + 168,
2775 .hsync_end
= 1024 + 168 + 64,
2776 .htotal
= 1024 + 168 + 64 + 88,
2778 .vsync_start
= 768 + 37,
2779 .vsync_end
= 768 + 37 + 2,
2780 .vtotal
= 768 + 37 + 2 + 8,
2784 static const struct panel_desc sharp_lq150x1lg11
= {
2785 .modes
= &sharp_lq150x1lg11_mode
,
2792 .bus_format
= MEDIA_BUS_FMT_RGB565_1X16
,
2795 static const struct display_timing sharp_ls020b1dd01d_timing
= {
2796 .pixelclock
= { 2000000, 4200000, 5000000 },
2797 .hactive
= { 240, 240, 240 },
2798 .hfront_porch
= { 66, 66, 66 },
2799 .hback_porch
= { 1, 1, 1 },
2800 .hsync_len
= { 1, 1, 1 },
2801 .vactive
= { 160, 160, 160 },
2802 .vfront_porch
= { 52, 52, 52 },
2803 .vback_porch
= { 6, 6, 6 },
2804 .vsync_len
= { 10, 10, 10 },
2805 .flags
= DISPLAY_FLAGS_HSYNC_HIGH
| DISPLAY_FLAGS_VSYNC_LOW
,
2808 static const struct panel_desc sharp_ls020b1dd01d
= {
2809 .timings
= &sharp_ls020b1dd01d_timing
,
2816 .bus_format
= MEDIA_BUS_FMT_RGB565_1X16
,
2817 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
2818 | DRM_BUS_FLAG_PIXDATA_NEGEDGE
2819 | DRM_BUS_FLAG_SHARP_SIGNALS
,
2822 static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode
= {
2825 .hsync_start
= 800 + 1,
2826 .hsync_end
= 800 + 1 + 64,
2827 .htotal
= 800 + 1 + 64 + 64,
2829 .vsync_start
= 480 + 1,
2830 .vsync_end
= 480 + 1 + 23,
2831 .vtotal
= 480 + 1 + 23 + 22,
2835 static const struct panel_desc shelly_sca07010_bfn_lnn
= {
2836 .modes
= &shelly_sca07010_bfn_lnn_mode
,
2842 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
2845 static const struct drm_display_mode starry_kr122ea0sra_mode
= {
2848 .hsync_start
= 1920 + 16,
2849 .hsync_end
= 1920 + 16 + 16,
2850 .htotal
= 1920 + 16 + 16 + 32,
2852 .vsync_start
= 1200 + 15,
2853 .vsync_end
= 1200 + 15 + 2,
2854 .vtotal
= 1200 + 15 + 2 + 18,
2856 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
2859 static const struct panel_desc starry_kr122ea0sra
= {
2860 .modes
= &starry_kr122ea0sra_mode
,
2867 .prepare
= 10 + 200,
2869 .unprepare
= 10 + 500,
2873 static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode
= {
2876 .hsync_start
= 800 + 39,
2877 .hsync_end
= 800 + 39 + 47,
2878 .htotal
= 800 + 39 + 47 + 39,
2880 .vsync_start
= 480 + 13,
2881 .vsync_end
= 480 + 13 + 2,
2882 .vtotal
= 480 + 13 + 2 + 29,
2886 static const struct panel_desc tfc_s9700rtwv43tr_01b
= {
2887 .modes
= &tfc_s9700rtwv43tr_01b_mode
,
2894 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2895 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_POSEDGE
,
2898 static const struct display_timing tianma_tm070jdhg30_timing
= {
2899 .pixelclock
= { 62600000, 68200000, 78100000 },
2900 .hactive
= { 1280, 1280, 1280 },
2901 .hfront_porch
= { 15, 64, 159 },
2902 .hback_porch
= { 5, 5, 5 },
2903 .hsync_len
= { 1, 1, 256 },
2904 .vactive
= { 800, 800, 800 },
2905 .vfront_porch
= { 3, 40, 99 },
2906 .vback_porch
= { 2, 2, 2 },
2907 .vsync_len
= { 1, 1, 128 },
2908 .flags
= DISPLAY_FLAGS_DE_HIGH
,
2911 static const struct panel_desc tianma_tm070jdhg30
= {
2912 .timings
= &tianma_tm070jdhg30_timing
,
2919 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
2920 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
2923 static const struct display_timing tianma_tm070rvhg71_timing
= {
2924 .pixelclock
= { 27700000, 29200000, 39600000 },
2925 .hactive
= { 800, 800, 800 },
2926 .hfront_porch
= { 12, 40, 212 },
2927 .hback_porch
= { 88, 88, 88 },
2928 .hsync_len
= { 1, 1, 40 },
2929 .vactive
= { 480, 480, 480 },
2930 .vfront_porch
= { 1, 13, 88 },
2931 .vback_porch
= { 32, 32, 32 },
2932 .vsync_len
= { 1, 1, 3 },
2933 .flags
= DISPLAY_FLAGS_DE_HIGH
,
2936 static const struct panel_desc tianma_tm070rvhg71
= {
2937 .timings
= &tianma_tm070rvhg71_timing
,
2944 .bus_format
= MEDIA_BUS_FMT_RGB888_1X7X4_SPWG
,
2945 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
2948 static const struct drm_display_mode ti_nspire_cx_lcd_mode
[] = {
2952 .hsync_start
= 320 + 50,
2953 .hsync_end
= 320 + 50 + 6,
2954 .htotal
= 320 + 50 + 6 + 38,
2956 .vsync_start
= 240 + 3,
2957 .vsync_end
= 240 + 3 + 1,
2958 .vtotal
= 240 + 3 + 1 + 17,
2960 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
2964 static const struct panel_desc ti_nspire_cx_lcd_panel
= {
2965 .modes
= ti_nspire_cx_lcd_mode
,
2972 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
2973 .bus_flags
= DRM_BUS_FLAG_PIXDATA_NEGEDGE
,
2976 static const struct drm_display_mode ti_nspire_classic_lcd_mode
[] = {
2980 .hsync_start
= 320 + 6,
2981 .hsync_end
= 320 + 6 + 6,
2982 .htotal
= 320 + 6 + 6 + 6,
2984 .vsync_start
= 240 + 0,
2985 .vsync_end
= 240 + 0 + 1,
2986 .vtotal
= 240 + 0 + 1 + 0,
2988 .flags
= DRM_MODE_FLAG_PHSYNC
| DRM_MODE_FLAG_PVSYNC
,
2992 static const struct panel_desc ti_nspire_classic_lcd_panel
= {
2993 .modes
= ti_nspire_classic_lcd_mode
,
2995 /* The grayscale panel has 8 bit for the color .. Y (black) */
3001 /* This is the grayscale bus format */
3002 .bus_format
= MEDIA_BUS_FMT_Y8_1X8
,
3003 .bus_flags
= DRM_BUS_FLAG_PIXDATA_POSEDGE
,
3006 static const struct drm_display_mode toshiba_lt089ac29000_mode
= {
3009 .hsync_start
= 1280 + 192,
3010 .hsync_end
= 1280 + 192 + 128,
3011 .htotal
= 1280 + 192 + 128 + 64,
3013 .vsync_start
= 768 + 20,
3014 .vsync_end
= 768 + 20 + 7,
3015 .vtotal
= 768 + 20 + 7 + 3,
3019 static const struct panel_desc toshiba_lt089ac29000
= {
3020 .modes
= &toshiba_lt089ac29000_mode
,
3026 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
3027 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
,
3028 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
3031 static const struct drm_display_mode tpk_f07a_0102_mode
= {
3034 .hsync_start
= 800 + 40,
3035 .hsync_end
= 800 + 40 + 128,
3036 .htotal
= 800 + 40 + 128 + 88,
3038 .vsync_start
= 480 + 10,
3039 .vsync_end
= 480 + 10 + 2,
3040 .vtotal
= 480 + 10 + 2 + 33,
3044 static const struct panel_desc tpk_f07a_0102
= {
3045 .modes
= &tpk_f07a_0102_mode
,
3051 .bus_flags
= DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE
,
3054 static const struct drm_display_mode tpk_f10a_0102_mode
= {
3057 .hsync_start
= 1024 + 176,
3058 .hsync_end
= 1024 + 176 + 5,
3059 .htotal
= 1024 + 176 + 5 + 88,
3061 .vsync_start
= 600 + 20,
3062 .vsync_end
= 600 + 20 + 5,
3063 .vtotal
= 600 + 20 + 5 + 25,
3067 static const struct panel_desc tpk_f10a_0102
= {
3068 .modes
= &tpk_f10a_0102_mode
,
3076 static const struct display_timing urt_umsh_8596md_timing
= {
3077 .pixelclock
= { 33260000, 33260000, 33260000 },
3078 .hactive
= { 800, 800, 800 },
3079 .hfront_porch
= { 41, 41, 41 },
3080 .hback_porch
= { 216 - 128, 216 - 128, 216 - 128 },
3081 .hsync_len
= { 71, 128, 128 },
3082 .vactive
= { 480, 480, 480 },
3083 .vfront_porch
= { 10, 10, 10 },
3084 .vback_porch
= { 35 - 2, 35 - 2, 35 - 2 },
3085 .vsync_len
= { 2, 2, 2 },
3086 .flags
= DISPLAY_FLAGS_DE_HIGH
| DISPLAY_FLAGS_PIXDATA_NEGEDGE
|
3087 DISPLAY_FLAGS_HSYNC_LOW
| DISPLAY_FLAGS_VSYNC_LOW
,
3090 static const struct panel_desc urt_umsh_8596md_lvds
= {
3091 .timings
= &urt_umsh_8596md_timing
,
3098 .bus_format
= MEDIA_BUS_FMT_RGB666_1X7X3_SPWG
,
3099 .connector_type
= DRM_MODE_CONNECTOR_LVDS
,
3102 static const struct panel_desc urt_umsh_8596md_parallel
= {
3103 .timings
= &urt_umsh_8596md_timing
,
3110 .bus_format
= MEDIA_BUS_FMT_RGB666_1X18
,
3113 static const struct drm_display_mode vl050_8048nt_c01_mode
= {
3116 .hsync_start
= 800 + 210,
3117 .hsync_end
= 800 + 210 + 20,
3118 .htotal
= 800 + 210 + 20 + 46,
3120 .vsync_start
= 480 + 22,
3121 .vsync_end
= 480 + 22 + 10,
3122 .vtotal
= 480 + 22 + 10 + 23,
3124 .flags
= DRM_MODE_FLAG_NHSYNC
| DRM_MODE_FLAG_NVSYNC
,
3127 static const struct panel_desc vl050_8048nt_c01
= {
3128 .modes
= &vl050_8048nt_c01_mode
,
3135 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
3136 .bus_flags
= DRM_BUS_FLAG_DE_HIGH
| DRM_BUS_FLAG_PIXDATA_POSEDGE
,
3139 static const struct drm_display_mode winstar_wf35ltiacd_mode
= {
3142 .hsync_start
= 320 + 20,
3143 .hsync_end
= 320 + 20 + 30,
3144 .htotal
= 320 + 20 + 30 + 38,
3146 .vsync_start
= 240 + 4,
3147 .vsync_end
= 240 + 4 + 3,
3148 .vtotal
= 240 + 4 + 3 + 15,
3150 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
3153 static const struct panel_desc winstar_wf35ltiacd
= {
3154 .modes
= &winstar_wf35ltiacd_mode
,
3161 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
3164 static const struct drm_display_mode arm_rtsm_mode
[] = {
3168 .hsync_start
= 1024 + 24,
3169 .hsync_end
= 1024 + 24 + 136,
3170 .htotal
= 1024 + 24 + 136 + 160,
3172 .vsync_start
= 768 + 3,
3173 .vsync_end
= 768 + 3 + 6,
3174 .vtotal
= 768 + 3 + 6 + 29,
3176 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
3180 static const struct panel_desc arm_rtsm
= {
3181 .modes
= arm_rtsm_mode
,
3188 .bus_format
= MEDIA_BUS_FMT_RGB888_1X24
,
3191 static const struct of_device_id platform_of_match
[] = {
3193 .compatible
= "ampire,am-480272h3tmqw-t01h",
3194 .data
= &ire_am_480272h3tmqw_t01h
,
3196 .compatible
= "ampire,am800480r3tmqwa1h",
3197 .data
= &ire_am800480r3tmqwa1h
,
3199 .compatible
= "arm,rtsm-display",
3202 .compatible
= "armadeus,st0700-adapt",
3203 .data
= &armadeus_st0700_adapt
,
3205 .compatible
= "auo,b101aw03",
3206 .data
= &auo_b101aw03
,
3208 .compatible
= "auo,b101ean01",
3209 .data
= &auo_b101ean01
,
3211 .compatible
= "auo,b101xtn01",
3212 .data
= &auo_b101xtn01
,
3214 .compatible
= "auo,b116xa01",
3215 .data
= &auo_b116xak01
,
3217 .compatible
= "auo,b116xw03",
3218 .data
= &auo_b116xw03
,
3220 .compatible
= "auo,b133htn01",
3221 .data
= &auo_b133htn01
,
3223 .compatible
= "auo,b133xtn01",
3224 .data
= &auo_b133xtn01
,
3226 .compatible
= "auo,g070vvn01",
3227 .data
= &auo_g070vvn01
,
3229 .compatible
= "auo,g101evn010",
3230 .data
= &auo_g101evn010
,
3232 .compatible
= "auo,g104sn02",
3233 .data
= &auo_g104sn02
,
3235 .compatible
= "auo,g133han01",
3236 .data
= &auo_g133han01
,
3238 .compatible
= "auo,g185han01",
3239 .data
= &auo_g185han01
,
3241 .compatible
= "auo,p320hvn03",
3242 .data
= &auo_p320hvn03
,
3244 .compatible
= "auo,t215hvn01",
3245 .data
= &auo_t215hvn01
,
3247 .compatible
= "avic,tm070ddh03",
3248 .data
= &avic_tm070ddh03
,
3250 .compatible
= "bananapi,s070wv20-ct16",
3251 .data
= &bananapi_s070wv20_ct16
,
3253 .compatible
= "boe,hv070wsa-100",
3254 .data
= &boe_hv070wsa
3256 .compatible
= "boe,nv101wxmn51",
3257 .data
= &boe_nv101wxmn51
,
3259 .compatible
= "boe,nv140fhmn49",
3260 .data
= &boe_nv140fhmn49
,
3262 .compatible
= "cdtech,s043wq26h-ct7",
3263 .data
= &cdtech_s043wq26h_ct7
,
3265 .compatible
= "cdtech,s070wv95-ct16",
3266 .data
= &cdtech_s070wv95_ct16
,
3268 .compatible
= "chunghwa,claa070wp03xg",
3269 .data
= &chunghwa_claa070wp03xg
,
3271 .compatible
= "chunghwa,claa101wa01a",
3272 .data
= &chunghwa_claa101wa01a
3274 .compatible
= "chunghwa,claa101wb01",
3275 .data
= &chunghwa_claa101wb01
3277 .compatible
= "dataimage,scf0700c48ggu18",
3278 .data
= &dataimage_scf0700c48ggu18
,
3280 .compatible
= "dlc,dlc0700yzg-1",
3281 .data
= &dlc_dlc0700yzg_1
,
3283 .compatible
= "dlc,dlc1010gig",
3284 .data
= &dlc_dlc1010gig
,
3286 .compatible
= "edt,et035012dm6",
3287 .data
= &edt_et035012dm6
,
3289 .compatible
= "edt,etm0430g0dh6",
3290 .data
= &edt_etm0430g0dh6
,
3292 .compatible
= "edt,et057090dhu",
3293 .data
= &edt_et057090dhu
,
3295 .compatible
= "edt,et070080dh6",
3296 .data
= &edt_etm0700g0dh6
,
3298 .compatible
= "edt,etm0700g0dh6",
3299 .data
= &edt_etm0700g0dh6
,
3301 .compatible
= "edt,etm0700g0bdh6",
3302 .data
= &edt_etm0700g0bdh6
,
3304 .compatible
= "edt,etm0700g0edh6",
3305 .data
= &edt_etm0700g0bdh6
,
3307 .compatible
= "evervision,vgg804821",
3308 .data
= &evervision_vgg804821
,
3310 .compatible
= "foxlink,fl500wvr00-a0t",
3311 .data
= &foxlink_fl500wvr00_a0t
,
3313 .compatible
= "friendlyarm,hd702e",
3314 .data
= &friendlyarm_hd702e
,
3316 .compatible
= "giantplus,gpg482739qs5",
3317 .data
= &giantplus_gpg482739qs5
3319 .compatible
= "giantplus,gpm940b0",
3320 .data
= &giantplus_gpm940b0
,
3322 .compatible
= "hannstar,hsd070pww1",
3323 .data
= &hannstar_hsd070pww1
,
3325 .compatible
= "hannstar,hsd100pxn1",
3326 .data
= &hannstar_hsd100pxn1
,
3328 .compatible
= "hit,tx23d38vm0caa",
3329 .data
= &hitachi_tx23d38vm0caa
3331 .compatible
= "innolux,at043tn24",
3332 .data
= &innolux_at043tn24
,
3334 .compatible
= "innolux,at070tn92",
3335 .data
= &innolux_at070tn92
,
3337 .compatible
= "innolux,g070y2-l01",
3338 .data
= &innolux_g070y2_l01
,
3340 .compatible
= "innolux,g101ice-l01",
3341 .data
= &innolux_g101ice_l01
3343 .compatible
= "innolux,g121i1-l01",
3344 .data
= &innolux_g121i1_l01
3346 .compatible
= "innolux,g121x1-l03",
3347 .data
= &innolux_g121x1_l03
,
3349 .compatible
= "innolux,n116bge",
3350 .data
= &innolux_n116bge
,
3352 .compatible
= "innolux,n156bge-l21",
3353 .data
= &innolux_n156bge_l21
,
3355 .compatible
= "innolux,p120zdg-bf1",
3356 .data
= &innolux_p120zdg_bf1
,
3358 .compatible
= "innolux,zj070na-01p",
3359 .data
= &innolux_zj070na_01p
,
3361 .compatible
= "koe,tx14d24vm1bpa",
3362 .data
= &koe_tx14d24vm1bpa
,
3364 .compatible
= "koe,tx31d200vm0baa",
3365 .data
= &koe_tx31d200vm0baa
,
3367 .compatible
= "kyo,tcg121xglp",
3368 .data
= &kyo_tcg121xglp
,
3370 .compatible
= "lemaker,bl035-rgb-002",
3371 .data
= &lemaker_bl035_rgb_002
,
3373 .compatible
= "lg,lb070wv8",
3374 .data
= &lg_lb070wv8
,
3376 .compatible
= "lg,lp079qx1-sp0v",
3377 .data
= &lg_lp079qx1_sp0v
,
3379 .compatible
= "lg,lp097qx1-spa1",
3380 .data
= &lg_lp097qx1_spa1
,
3382 .compatible
= "lg,lp120up1",
3383 .data
= &lg_lp120up1
,
3385 .compatible
= "lg,lp129qe",
3386 .data
= &lg_lp129qe
,
3388 .compatible
= "logicpd,type28",
3389 .data
= &logicpd_type_28
,
3391 .compatible
= "mitsubishi,aa070mc01-ca1",
3392 .data
= &mitsubishi_aa070mc01
,
3394 .compatible
= "nec,nl12880bc20-05",
3395 .data
= &nec_nl12880bc20_05
,
3397 .compatible
= "nec,nl4827hc19-05b",
3398 .data
= &nec_nl4827hc19_05b
,
3400 .compatible
= "netron-dy,e231732",
3401 .data
= &netron_dy_e231732
,
3403 .compatible
= "newhaven,nhd-4.3-480272ef-atxl",
3404 .data
= &newhaven_nhd_43_480272ef_atxl
,
3406 .compatible
= "nlt,nl192108ac18-02d",
3407 .data
= &nlt_nl192108ac18_02d
,
3409 .compatible
= "nvd,9128",
3412 .compatible
= "okaya,rs800480t-7x0gp",
3413 .data
= &okaya_rs800480t_7x0gp
,
3415 .compatible
= "olimex,lcd-olinuxino-43-ts",
3416 .data
= &olimex_lcd_olinuxino_43ts
,
3418 .compatible
= "ontat,yx700wv03",
3419 .data
= &ontat_yx700wv03
,
3421 .compatible
= "ortustech,com37h3m05dtc",
3422 .data
= &ortustech_com37h3m
,
3424 .compatible
= "ortustech,com37h3m99dtc",
3425 .data
= &ortustech_com37h3m
,
3427 .compatible
= "ortustech,com43h4m85ulc",
3428 .data
= &ortustech_com43h4m85ulc
,
3430 .compatible
= "osddisplays,osd070t1718-19ts",
3431 .data
= &osddisplays_osd070t1718_19ts
,
3433 .compatible
= "pda,91-00156-a0",
3434 .data
= &pda_91_00156_a0
,
3436 .compatible
= "qiaodian,qd43003c0-40",
3437 .data
= &qd43003c0_40
,
3439 .compatible
= "rocktech,rk070er9427",
3440 .data
= &rocktech_rk070er9427
,
3442 .compatible
= "samsung,lsn122dl01-c01",
3443 .data
= &samsung_lsn122dl01_c01
,
3445 .compatible
= "samsung,ltn101nt05",
3446 .data
= &samsung_ltn101nt05
,
3448 .compatible
= "samsung,ltn140at29-301",
3449 .data
= &samsung_ltn140at29_301
,
3451 .compatible
= "satoz,sat050at40h12r2",
3452 .data
= &satoz_sat050at40h12r2
,
3454 .compatible
= "sharp,ld-d5116z01b",
3455 .data
= &sharp_ld_d5116z01b
,
3457 .compatible
= "sharp,lq035q7db03",
3458 .data
= &sharp_lq035q7db03
,
3460 .compatible
= "sharp,lq070y3dg3b",
3461 .data
= &sharp_lq070y3dg3b
,
3463 .compatible
= "sharp,lq101k1ly04",
3464 .data
= &sharp_lq101k1ly04
,
3466 .compatible
= "sharp,lq123p1jx31",
3467 .data
= &sharp_lq123p1jx31
,
3469 .compatible
= "sharp,lq150x1lg11",
3470 .data
= &sharp_lq150x1lg11
,
3472 .compatible
= "sharp,ls020b1dd01d",
3473 .data
= &sharp_ls020b1dd01d
,
3475 .compatible
= "shelly,sca07010-bfn-lnn",
3476 .data
= &shelly_sca07010_bfn_lnn
,
3478 .compatible
= "starry,kr122ea0sra",
3479 .data
= &starry_kr122ea0sra
,
3481 .compatible
= "tfc,s9700rtwv43tr-01b",
3482 .data
= &tfc_s9700rtwv43tr_01b
,
3484 .compatible
= "tianma,tm070jdhg30",
3485 .data
= &tianma_tm070jdhg30
,
3487 .compatible
= "tianma,tm070rvhg71",
3488 .data
= &tianma_tm070rvhg71
,
3490 .compatible
= "ti,nspire-cx-lcd-panel",
3491 .data
= &ti_nspire_cx_lcd_panel
,
3493 .compatible
= "ti,nspire-classic-lcd-panel",
3494 .data
= &ti_nspire_classic_lcd_panel
,
3496 .compatible
= "toshiba,lt089ac29000",
3497 .data
= &toshiba_lt089ac29000
,
3499 .compatible
= "tpk,f07a-0102",
3500 .data
= &tpk_f07a_0102
,
3502 .compatible
= "tpk,f10a-0102",
3503 .data
= &tpk_f10a_0102
,
3505 .compatible
= "urt,umsh-8596md-t",
3506 .data
= &urt_umsh_8596md_parallel
,
3508 .compatible
= "urt,umsh-8596md-1t",
3509 .data
= &urt_umsh_8596md_parallel
,
3511 .compatible
= "urt,umsh-8596md-7t",
3512 .data
= &urt_umsh_8596md_parallel
,
3514 .compatible
= "urt,umsh-8596md-11t",
3515 .data
= &urt_umsh_8596md_lvds
,
3517 .compatible
= "urt,umsh-8596md-19t",
3518 .data
= &urt_umsh_8596md_lvds
,
3520 .compatible
= "urt,umsh-8596md-20t",
3521 .data
= &urt_umsh_8596md_parallel
,
3523 .compatible
= "vxt,vl050-8048nt-c01",
3524 .data
= &vl050_8048nt_c01
,
3526 .compatible
= "winstar,wf35ltiacd",
3527 .data
= &winstar_wf35ltiacd
,
3532 MODULE_DEVICE_TABLE(of
, platform_of_match
);
3534 static int panel_simple_platform_probe(struct platform_device
*pdev
)
3536 const struct of_device_id
*id
;
3538 id
= of_match_node(platform_of_match
, pdev
->dev
.of_node
);
3542 return panel_simple_probe(&pdev
->dev
, id
->data
);
3545 static int panel_simple_platform_remove(struct platform_device
*pdev
)
3547 return panel_simple_remove(&pdev
->dev
);
3550 static void panel_simple_platform_shutdown(struct platform_device
*pdev
)
3552 panel_simple_shutdown(&pdev
->dev
);
3555 static struct platform_driver panel_simple_platform_driver
= {
3557 .name
= "panel-simple",
3558 .of_match_table
= platform_of_match
,
3560 .probe
= panel_simple_platform_probe
,
3561 .remove
= panel_simple_platform_remove
,
3562 .shutdown
= panel_simple_platform_shutdown
,
3565 struct panel_desc_dsi
{
3566 struct panel_desc desc
;
3568 unsigned long flags
;
3569 enum mipi_dsi_pixel_format format
;
3573 static const struct drm_display_mode auo_b080uan01_mode
= {
3576 .hsync_start
= 1200 + 62,
3577 .hsync_end
= 1200 + 62 + 4,
3578 .htotal
= 1200 + 62 + 4 + 62,
3580 .vsync_start
= 1920 + 9,
3581 .vsync_end
= 1920 + 9 + 2,
3582 .vtotal
= 1920 + 9 + 2 + 8,
3586 static const struct panel_desc_dsi auo_b080uan01
= {
3588 .modes
= &auo_b080uan01_mode
,
3596 .flags
= MIPI_DSI_MODE_VIDEO
| MIPI_DSI_CLOCK_NON_CONTINUOUS
,
3597 .format
= MIPI_DSI_FMT_RGB888
,
3601 static const struct drm_display_mode boe_tv080wum_nl0_mode
= {
3604 .hsync_start
= 1200 + 120,
3605 .hsync_end
= 1200 + 120 + 20,
3606 .htotal
= 1200 + 120 + 20 + 21,
3608 .vsync_start
= 1920 + 21,
3609 .vsync_end
= 1920 + 21 + 3,
3610 .vtotal
= 1920 + 21 + 3 + 18,
3612 .flags
= DRM_MODE_FLAG_NVSYNC
| DRM_MODE_FLAG_NHSYNC
,
3615 static const struct panel_desc_dsi boe_tv080wum_nl0
= {
3617 .modes
= &boe_tv080wum_nl0_mode
,
3624 .flags
= MIPI_DSI_MODE_VIDEO
|
3625 MIPI_DSI_MODE_VIDEO_BURST
|
3626 MIPI_DSI_MODE_VIDEO_SYNC_PULSE
,
3627 .format
= MIPI_DSI_FMT_RGB888
,
3631 static const struct drm_display_mode lg_ld070wx3_sl01_mode
= {
3634 .hsync_start
= 800 + 32,
3635 .hsync_end
= 800 + 32 + 1,
3636 .htotal
= 800 + 32 + 1 + 57,
3638 .vsync_start
= 1280 + 28,
3639 .vsync_end
= 1280 + 28 + 1,
3640 .vtotal
= 1280 + 28 + 1 + 14,
3644 static const struct panel_desc_dsi lg_ld070wx3_sl01
= {
3646 .modes
= &lg_ld070wx3_sl01_mode
,
3654 .flags
= MIPI_DSI_MODE_VIDEO
| MIPI_DSI_CLOCK_NON_CONTINUOUS
,
3655 .format
= MIPI_DSI_FMT_RGB888
,
3659 static const struct drm_display_mode lg_lh500wx1_sd03_mode
= {
3662 .hsync_start
= 720 + 12,
3663 .hsync_end
= 720 + 12 + 4,
3664 .htotal
= 720 + 12 + 4 + 112,
3666 .vsync_start
= 1280 + 8,
3667 .vsync_end
= 1280 + 8 + 4,
3668 .vtotal
= 1280 + 8 + 4 + 12,
3672 static const struct panel_desc_dsi lg_lh500wx1_sd03
= {
3674 .modes
= &lg_lh500wx1_sd03_mode
,
3682 .flags
= MIPI_DSI_MODE_VIDEO
,
3683 .format
= MIPI_DSI_FMT_RGB888
,
3687 static const struct drm_display_mode panasonic_vvx10f004b00_mode
= {
3690 .hsync_start
= 1920 + 154,
3691 .hsync_end
= 1920 + 154 + 16,
3692 .htotal
= 1920 + 154 + 16 + 32,
3694 .vsync_start
= 1200 + 17,
3695 .vsync_end
= 1200 + 17 + 2,
3696 .vtotal
= 1200 + 17 + 2 + 16,
3700 static const struct panel_desc_dsi panasonic_vvx10f004b00
= {
3702 .modes
= &panasonic_vvx10f004b00_mode
,
3710 .flags
= MIPI_DSI_MODE_VIDEO
| MIPI_DSI_MODE_VIDEO_SYNC_PULSE
|
3711 MIPI_DSI_CLOCK_NON_CONTINUOUS
,
3712 .format
= MIPI_DSI_FMT_RGB888
,
3716 static const struct drm_display_mode lg_acx467akm_7_mode
= {
3719 .hsync_start
= 1080 + 2,
3720 .hsync_end
= 1080 + 2 + 2,
3721 .htotal
= 1080 + 2 + 2 + 2,
3723 .vsync_start
= 1920 + 2,
3724 .vsync_end
= 1920 + 2 + 2,
3725 .vtotal
= 1920 + 2 + 2 + 2,
3729 static const struct panel_desc_dsi lg_acx467akm_7
= {
3731 .modes
= &lg_acx467akm_7_mode
,
3740 .format
= MIPI_DSI_FMT_RGB888
,
3744 static const struct drm_display_mode osd101t2045_53ts_mode
= {
3747 .hsync_start
= 1920 + 112,
3748 .hsync_end
= 1920 + 112 + 16,
3749 .htotal
= 1920 + 112 + 16 + 32,
3751 .vsync_start
= 1200 + 16,
3752 .vsync_end
= 1200 + 16 + 2,
3753 .vtotal
= 1200 + 16 + 2 + 16,
3755 .flags
= DRM_MODE_FLAG_NHSYNC
| DRM_MODE_FLAG_NVSYNC
,
3758 static const struct panel_desc_dsi osd101t2045_53ts
= {
3760 .modes
= &osd101t2045_53ts_mode
,
3768 .flags
= MIPI_DSI_MODE_VIDEO
| MIPI_DSI_MODE_VIDEO_BURST
|
3769 MIPI_DSI_MODE_VIDEO_SYNC_PULSE
|
3770 MIPI_DSI_MODE_EOT_PACKET
,
3771 .format
= MIPI_DSI_FMT_RGB888
,
3775 static const struct of_device_id dsi_of_match
[] = {
3777 .compatible
= "auo,b080uan01",
3778 .data
= &auo_b080uan01
3780 .compatible
= "boe,tv080wum-nl0",
3781 .data
= &boe_tv080wum_nl0
3783 .compatible
= "lg,ld070wx3-sl01",
3784 .data
= &lg_ld070wx3_sl01
3786 .compatible
= "lg,lh500wx1-sd03",
3787 .data
= &lg_lh500wx1_sd03
3789 .compatible
= "panasonic,vvx10f004b00",
3790 .data
= &panasonic_vvx10f004b00
3792 .compatible
= "lg,acx467akm-7",
3793 .data
= &lg_acx467akm_7
3795 .compatible
= "osddisplays,osd101t2045-53ts",
3796 .data
= &osd101t2045_53ts
3801 MODULE_DEVICE_TABLE(of
, dsi_of_match
);
3803 static int panel_simple_dsi_probe(struct mipi_dsi_device
*dsi
)
3805 const struct panel_desc_dsi
*desc
;
3806 const struct of_device_id
*id
;
3809 id
= of_match_node(dsi_of_match
, dsi
->dev
.of_node
);
3815 err
= panel_simple_probe(&dsi
->dev
, &desc
->desc
);
3819 dsi
->mode_flags
= desc
->flags
;
3820 dsi
->format
= desc
->format
;
3821 dsi
->lanes
= desc
->lanes
;
3823 err
= mipi_dsi_attach(dsi
);
3825 struct panel_simple
*panel
= dev_get_drvdata(&dsi
->dev
);
3827 drm_panel_remove(&panel
->base
);
3833 static int panel_simple_dsi_remove(struct mipi_dsi_device
*dsi
)
3837 err
= mipi_dsi_detach(dsi
);
3839 dev_err(&dsi
->dev
, "failed to detach from DSI host: %d\n", err
);
3841 return panel_simple_remove(&dsi
->dev
);
3844 static void panel_simple_dsi_shutdown(struct mipi_dsi_device
*dsi
)
3846 panel_simple_shutdown(&dsi
->dev
);
3849 static struct mipi_dsi_driver panel_simple_dsi_driver
= {
3851 .name
= "panel-simple-dsi",
3852 .of_match_table
= dsi_of_match
,
3854 .probe
= panel_simple_dsi_probe
,
3855 .remove
= panel_simple_dsi_remove
,
3856 .shutdown
= panel_simple_dsi_shutdown
,
3859 static int __init
panel_simple_init(void)
3863 err
= platform_driver_register(&panel_simple_platform_driver
);
3867 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI
)) {
3868 err
= mipi_dsi_driver_register(&panel_simple_dsi_driver
);
3875 module_init(panel_simple_init
);
3877 static void __exit
panel_simple_exit(void)
3879 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI
))
3880 mipi_dsi_driver_unregister(&panel_simple_dsi_driver
);
3882 platform_driver_unregister(&panel_simple_platform_driver
);
3884 module_exit(panel_simple_exit
);
3886 MODULE_AUTHOR("Thierry Reding <treding@nvidia.com>");
3887 MODULE_DESCRIPTION("DRM Driver for Simple Panels");
3888 MODULE_LICENSE("GPL and additional rights");