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/i2c.h>
27 #include <linux/media-bus-format.h>
28 #include <linux/module.h>
29 #include <linux/of_platform.h>
30 #include <linux/platform_device.h>
31 #include <linux/pm_runtime.h>
32 #include <linux/regulator/consumer.h>
34 #include <video/display_timing.h>
35 #include <video/of_display_timing.h>
36 #include <video/videomode.h>
38 #include <drm/drm_crtc.h>
39 #include <drm/drm_device.h>
40 #include <drm/drm_edid.h>
41 #include <drm/drm_mipi_dsi.h>
42 #include <drm/drm_panel.h>
45 * struct panel_desc - Describes a simple panel.
49 * @modes: Pointer to array of fixed modes appropriate for this panel.
51 * If only one mode then this can just be the address of the mode.
52 * NOTE: cannot be used with "timings" and also if this is specified
53 * then you cannot override the mode in the device tree.
55 const struct drm_display_mode *modes;
57 /** @num_modes: Number of elements in modes array. */
58 unsigned int num_modes;
61 * @timings: Pointer to array of display timings
63 * NOTE: cannot be used with "modes" and also these will be used to
64 * validate a device tree override if one is present.
66 const struct display_timing *timings;
68 /** @num_timings: Number of elements in timings array. */
69 unsigned int num_timings;
71 /** @bpc: Bits per color. */
74 /** @size: Structure containing the physical size of this panel. */
77 * @size.width: Width (in mm) of the active display area.
82 * @size.height: Height (in mm) of the active display area.
87 /** @delay: Structure containing various delay values for this panel. */
90 * @delay.prepare: Time for the panel to become ready.
92 * The time (in milliseconds) that it takes for the panel to
93 * become ready and start receiving video data
98 * @delay.enable: Time for the panel to display a valid frame.
100 * The time (in milliseconds) that it takes for the panel to
101 * display the first valid frame after starting to receive
107 * @delay.disable: Time for the panel to turn the display off.
109 * The time (in milliseconds) that it takes for the panel to
110 * turn the display off (no content is visible).
112 unsigned int disable;
115 * @delay.unprepare: Time to power down completely.
117 * The time (in milliseconds) that it takes for the panel
118 * to power itself down completely.
120 * This time is used to prevent a future "prepare" from
121 * starting until at least this many milliseconds has passed.
122 * If at prepare time less time has passed since unprepare
123 * finished, the driver waits for the remaining time.
125 unsigned int unprepare;
128 /** @bus_format: See MEDIA_BUS_FMT_... defines. */
131 /** @bus_flags: See DRM_BUS_FLAG_... defines. */
134 /** @connector_type: LVDS, eDP, DSI, DPI, etc. */
138 struct panel_simple {
139 struct drm_panel base;
144 ktime_t prepared_time;
145 ktime_t unprepared_time;
147 const struct panel_desc *desc;
149 struct regulator *supply;
150 struct i2c_adapter *ddc;
152 struct gpio_desc *enable_gpio;
156 struct drm_display_mode override_mode;
158 enum drm_panel_orientation orientation;
161 static inline struct panel_simple *to_panel_simple(struct drm_panel *panel)
163 return container_of(panel, struct panel_simple, base);
166 static unsigned int panel_simple_get_timings_modes(struct panel_simple *panel,
167 struct drm_connector *connector)
169 struct drm_display_mode *mode;
170 unsigned int i, num = 0;
172 for (i = 0; i < panel->desc->num_timings; i++) {
173 const struct display_timing *dt = &panel->desc->timings[i];
176 videomode_from_timing(dt, &vm);
177 mode = drm_mode_create(connector->dev);
179 dev_err(panel->base.dev, "failed to add mode %ux%u\n",
180 dt->hactive.typ, dt->vactive.typ);
184 drm_display_mode_from_videomode(&vm, mode);
186 mode->type |= DRM_MODE_TYPE_DRIVER;
188 if (panel->desc->num_timings == 1)
189 mode->type |= DRM_MODE_TYPE_PREFERRED;
191 drm_mode_probed_add(connector, mode);
198 static unsigned int panel_simple_get_display_modes(struct panel_simple *panel,
199 struct drm_connector *connector)
201 struct drm_display_mode *mode;
202 unsigned int i, num = 0;
204 for (i = 0; i < panel->desc->num_modes; i++) {
205 const struct drm_display_mode *m = &panel->desc->modes[i];
207 mode = drm_mode_duplicate(connector->dev, m);
209 dev_err(panel->base.dev, "failed to add mode %ux%u@%u\n",
210 m->hdisplay, m->vdisplay,
211 drm_mode_vrefresh(m));
215 mode->type |= DRM_MODE_TYPE_DRIVER;
217 if (panel->desc->num_modes == 1)
218 mode->type |= DRM_MODE_TYPE_PREFERRED;
220 drm_mode_set_name(mode);
222 drm_mode_probed_add(connector, mode);
229 static int panel_simple_get_non_edid_modes(struct panel_simple *panel,
230 struct drm_connector *connector)
232 struct drm_display_mode *mode;
233 bool has_override = panel->override_mode.type;
234 unsigned int num = 0;
240 mode = drm_mode_duplicate(connector->dev,
241 &panel->override_mode);
243 drm_mode_probed_add(connector, mode);
246 dev_err(panel->base.dev, "failed to add override mode\n");
250 /* Only add timings if override was not there or failed to validate */
251 if (num == 0 && panel->desc->num_timings)
252 num = panel_simple_get_timings_modes(panel, connector);
255 * Only add fixed modes if timings/override added no mode.
257 * We should only ever have either the display timings specified
258 * or a fixed mode. Anything else is rather bogus.
260 WARN_ON(panel->desc->num_timings && panel->desc->num_modes);
262 num = panel_simple_get_display_modes(panel, connector);
264 connector->display_info.bpc = panel->desc->bpc;
265 connector->display_info.width_mm = panel->desc->size.width;
266 connector->display_info.height_mm = panel->desc->size.height;
267 if (panel->desc->bus_format)
268 drm_display_info_set_bus_formats(&connector->display_info,
269 &panel->desc->bus_format, 1);
270 connector->display_info.bus_flags = panel->desc->bus_flags;
275 static void panel_simple_wait(ktime_t start_ktime, unsigned int min_ms)
277 ktime_t now_ktime, min_ktime;
282 min_ktime = ktime_add(start_ktime, ms_to_ktime(min_ms));
283 now_ktime = ktime_get();
285 if (ktime_before(now_ktime, min_ktime))
286 msleep(ktime_to_ms(ktime_sub(min_ktime, now_ktime)) + 1);
289 static int panel_simple_disable(struct drm_panel *panel)
291 struct panel_simple *p = to_panel_simple(panel);
296 if (p->desc->delay.disable)
297 msleep(p->desc->delay.disable);
304 static int panel_simple_suspend(struct device *dev)
306 struct panel_simple *p = dev_get_drvdata(dev);
308 gpiod_set_value_cansleep(p->enable_gpio, 0);
309 regulator_disable(p->supply);
310 p->unprepared_time = ktime_get();
318 static int panel_simple_unprepare(struct drm_panel *panel)
320 struct panel_simple *p = to_panel_simple(panel);
323 /* Unpreparing when already unprepared is a no-op */
327 pm_runtime_mark_last_busy(panel->dev);
328 ret = pm_runtime_put_autosuspend(panel->dev);
336 static int panel_simple_resume(struct device *dev)
338 struct panel_simple *p = dev_get_drvdata(dev);
341 panel_simple_wait(p->unprepared_time, p->desc->delay.unprepare);
343 err = regulator_enable(p->supply);
345 dev_err(dev, "failed to enable supply: %d\n", err);
349 gpiod_set_value_cansleep(p->enable_gpio, 1);
351 if (p->desc->delay.prepare)
352 msleep(p->desc->delay.prepare);
354 p->prepared_time = ktime_get();
359 static int panel_simple_prepare(struct drm_panel *panel)
361 struct panel_simple *p = to_panel_simple(panel);
364 /* Preparing when already prepared is a no-op */
368 ret = pm_runtime_get_sync(panel->dev);
370 pm_runtime_put_autosuspend(panel->dev);
379 static int panel_simple_enable(struct drm_panel *panel)
381 struct panel_simple *p = to_panel_simple(panel);
386 if (p->desc->delay.enable)
387 msleep(p->desc->delay.enable);
394 static int panel_simple_get_modes(struct drm_panel *panel,
395 struct drm_connector *connector)
397 struct panel_simple *p = to_panel_simple(panel);
400 /* probe EDID if a DDC bus is available */
402 pm_runtime_get_sync(panel->dev);
405 p->edid = drm_get_edid(connector, p->ddc);
408 num += drm_add_edid_modes(connector, p->edid);
410 pm_runtime_mark_last_busy(panel->dev);
411 pm_runtime_put_autosuspend(panel->dev);
414 /* add hard-coded panel modes */
415 num += panel_simple_get_non_edid_modes(p, connector);
418 * TODO: Remove once all drm drivers call
419 * drm_connector_set_orientation_from_panel()
421 drm_connector_set_panel_orientation(connector, p->orientation);
426 static int panel_simple_get_timings(struct drm_panel *panel,
427 unsigned int num_timings,
428 struct display_timing *timings)
430 struct panel_simple *p = to_panel_simple(panel);
433 if (p->desc->num_timings < num_timings)
434 num_timings = p->desc->num_timings;
437 for (i = 0; i < num_timings; i++)
438 timings[i] = p->desc->timings[i];
440 return p->desc->num_timings;
443 static enum drm_panel_orientation panel_simple_get_orientation(struct drm_panel *panel)
445 struct panel_simple *p = to_panel_simple(panel);
447 return p->orientation;
450 static const struct drm_panel_funcs panel_simple_funcs = {
451 .disable = panel_simple_disable,
452 .unprepare = panel_simple_unprepare,
453 .prepare = panel_simple_prepare,
454 .enable = panel_simple_enable,
455 .get_modes = panel_simple_get_modes,
456 .get_orientation = panel_simple_get_orientation,
457 .get_timings = panel_simple_get_timings,
460 static struct panel_desc panel_dpi;
462 static int panel_dpi_probe(struct device *dev,
463 struct panel_simple *panel)
465 struct display_timing *timing;
466 const struct device_node *np;
467 struct panel_desc *desc;
468 unsigned int bus_flags;
473 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL);
477 timing = devm_kzalloc(dev, sizeof(*timing), GFP_KERNEL);
481 ret = of_get_display_timing(np, "panel-timing", timing);
483 dev_err(dev, "%pOF: no panel-timing node found for \"panel-dpi\" binding\n",
488 desc->timings = timing;
489 desc->num_timings = 1;
491 of_property_read_u32(np, "width-mm", &desc->size.width);
492 of_property_read_u32(np, "height-mm", &desc->size.height);
494 /* Extract bus_flags from display_timing */
496 vm.flags = timing->flags;
497 drm_bus_flags_from_videomode(&vm, &bus_flags);
498 desc->bus_flags = bus_flags;
500 /* We do not know the connector for the DT node, so guess it */
501 desc->connector_type = DRM_MODE_CONNECTOR_DPI;
508 #define PANEL_SIMPLE_BOUNDS_CHECK(to_check, bounds, field) \
509 (to_check->field.typ >= bounds->field.min && \
510 to_check->field.typ <= bounds->field.max)
511 static void panel_simple_parse_panel_timing_node(struct device *dev,
512 struct panel_simple *panel,
513 const struct display_timing *ot)
515 const struct panel_desc *desc = panel->desc;
519 if (WARN_ON(desc->num_modes)) {
520 dev_err(dev, "Reject override mode: panel has a fixed mode\n");
523 if (WARN_ON(!desc->num_timings)) {
524 dev_err(dev, "Reject override mode: no timings specified\n");
528 for (i = 0; i < panel->desc->num_timings; i++) {
529 const struct display_timing *dt = &panel->desc->timings[i];
531 if (!PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hactive) ||
532 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hfront_porch) ||
533 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hback_porch) ||
534 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hsync_len) ||
535 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vactive) ||
536 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vfront_porch) ||
537 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vback_porch) ||
538 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vsync_len))
541 if (ot->flags != dt->flags)
544 videomode_from_timing(ot, &vm);
545 drm_display_mode_from_videomode(&vm, &panel->override_mode);
546 panel->override_mode.type |= DRM_MODE_TYPE_DRIVER |
547 DRM_MODE_TYPE_PREFERRED;
551 if (WARN_ON(!panel->override_mode.type))
552 dev_err(dev, "Reject override mode: No display_timing found\n");
555 static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
557 struct panel_simple *panel;
558 struct display_timing dt;
559 struct device_node *ddc;
564 panel = devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL);
568 panel->enabled = false;
569 panel->prepared_time = 0;
572 panel->supply = devm_regulator_get(dev, "power");
573 if (IS_ERR(panel->supply))
574 return PTR_ERR(panel->supply);
576 panel->enable_gpio = devm_gpiod_get_optional(dev, "enable",
578 if (IS_ERR(panel->enable_gpio)) {
579 err = PTR_ERR(panel->enable_gpio);
580 if (err != -EPROBE_DEFER)
581 dev_err(dev, "failed to request GPIO: %d\n", err);
585 err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
587 dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
591 ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
593 panel->ddc = of_find_i2c_adapter_by_node(ddc);
597 return -EPROBE_DEFER;
600 if (desc == &panel_dpi) {
601 /* Handle the generic panel-dpi binding */
602 err = panel_dpi_probe(dev, panel);
607 if (!of_get_display_timing(dev->of_node, "panel-timing", &dt))
608 panel_simple_parse_panel_timing_node(dev, panel, &dt);
611 connector_type = desc->connector_type;
612 /* Catch common mistakes for panels. */
613 switch (connector_type) {
615 dev_warn(dev, "Specify missing connector_type\n");
616 connector_type = DRM_MODE_CONNECTOR_DPI;
618 case DRM_MODE_CONNECTOR_LVDS:
619 WARN_ON(desc->bus_flags &
620 ~(DRM_BUS_FLAG_DE_LOW |
621 DRM_BUS_FLAG_DE_HIGH |
622 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
623 DRM_BUS_FLAG_DATA_LSB_TO_MSB));
624 WARN_ON(desc->bus_format != MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
625 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_SPWG &&
626 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA);
627 WARN_ON(desc->bus_format == MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
629 WARN_ON((desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG ||
630 desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA) &&
633 case DRM_MODE_CONNECTOR_eDP:
634 dev_warn(dev, "eDP panels moved to panel-edp\n");
637 case DRM_MODE_CONNECTOR_DSI:
638 if (desc->bpc != 6 && desc->bpc != 8)
639 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
641 case DRM_MODE_CONNECTOR_DPI:
642 bus_flags = DRM_BUS_FLAG_DE_LOW |
643 DRM_BUS_FLAG_DE_HIGH |
644 DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE |
645 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
646 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
647 DRM_BUS_FLAG_DATA_LSB_TO_MSB |
648 DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE |
649 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE;
650 if (desc->bus_flags & ~bus_flags)
651 dev_warn(dev, "Unexpected bus_flags(%d)\n", desc->bus_flags & ~bus_flags);
652 if (!(desc->bus_flags & bus_flags))
653 dev_warn(dev, "Specify missing bus_flags\n");
654 if (desc->bus_format == 0)
655 dev_warn(dev, "Specify missing bus_format\n");
656 if (desc->bpc != 6 && desc->bpc != 8)
657 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
660 dev_warn(dev, "Specify a valid connector_type: %d\n", desc->connector_type);
661 connector_type = DRM_MODE_CONNECTOR_DPI;
665 dev_set_drvdata(dev, panel);
668 * We use runtime PM for prepare / unprepare since those power the panel
669 * on and off and those can be very slow operations. This is important
670 * to optimize powering the panel on briefly to read the EDID before
671 * fully enabling the panel.
673 pm_runtime_enable(dev);
674 pm_runtime_set_autosuspend_delay(dev, 1000);
675 pm_runtime_use_autosuspend(dev);
677 drm_panel_init(&panel->base, dev, &panel_simple_funcs, connector_type);
679 err = drm_panel_of_backlight(&panel->base);
681 dev_err_probe(dev, err, "Could not find backlight\n");
682 goto disable_pm_runtime;
685 drm_panel_add(&panel->base);
690 pm_runtime_dont_use_autosuspend(dev);
691 pm_runtime_disable(dev);
694 put_device(&panel->ddc->dev);
699 static int panel_simple_remove(struct device *dev)
701 struct panel_simple *panel = dev_get_drvdata(dev);
703 drm_panel_remove(&panel->base);
704 drm_panel_disable(&panel->base);
705 drm_panel_unprepare(&panel->base);
707 pm_runtime_dont_use_autosuspend(dev);
708 pm_runtime_disable(dev);
710 put_device(&panel->ddc->dev);
715 static void panel_simple_shutdown(struct device *dev)
717 struct panel_simple *panel = dev_get_drvdata(dev);
719 drm_panel_disable(&panel->base);
720 drm_panel_unprepare(&panel->base);
723 static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode = {
726 .hsync_start = 1280 + 40,
727 .hsync_end = 1280 + 40 + 80,
728 .htotal = 1280 + 40 + 80 + 40,
730 .vsync_start = 800 + 3,
731 .vsync_end = 800 + 3 + 10,
732 .vtotal = 800 + 3 + 10 + 10,
733 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
736 static const struct panel_desc ampire_am_1280800n3tzqw_t00h = {
737 .modes = &ire_am_1280800n3tzqw_t00h_mode,
744 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
745 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
746 .connector_type = DRM_MODE_CONNECTOR_LVDS,
749 static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = {
752 .hsync_start = 480 + 2,
753 .hsync_end = 480 + 2 + 41,
754 .htotal = 480 + 2 + 41 + 2,
756 .vsync_start = 272 + 2,
757 .vsync_end = 272 + 2 + 10,
758 .vtotal = 272 + 2 + 10 + 2,
759 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
762 static const struct panel_desc ampire_am_480272h3tmqw_t01h = {
763 .modes = &ire_am_480272h3tmqw_t01h_mode,
770 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
773 static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = {
776 .hsync_start = 800 + 0,
777 .hsync_end = 800 + 0 + 255,
778 .htotal = 800 + 0 + 255 + 0,
780 .vsync_start = 480 + 2,
781 .vsync_end = 480 + 2 + 45,
782 .vtotal = 480 + 2 + 45 + 0,
783 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
786 static const struct panel_desc ampire_am800480r3tmqwa1h = {
787 .modes = &ire_am800480r3tmqwa1h_mode,
794 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
797 static const struct display_timing ampire_am800600p5tmqw_tb8h_timing = {
798 .pixelclock = { 34500000, 39600000, 50400000 },
799 .hactive = { 800, 800, 800 },
800 .hfront_porch = { 12, 112, 312 },
801 .hback_porch = { 87, 87, 48 },
802 .hsync_len = { 1, 1, 40 },
803 .vactive = { 600, 600, 600 },
804 .vfront_porch = { 1, 21, 61 },
805 .vback_porch = { 38, 38, 19 },
806 .vsync_len = { 1, 1, 20 },
807 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
808 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
809 DISPLAY_FLAGS_SYNC_POSEDGE,
812 static const struct panel_desc ampire_am800600p5tmqwtb8h = {
813 .timings = &ire_am800600p5tmqw_tb8h_timing,
820 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
821 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
822 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
823 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
824 .connector_type = DRM_MODE_CONNECTOR_DPI,
827 static const struct display_timing santek_st0700i5y_rbslw_f_timing = {
828 .pixelclock = { 26400000, 33300000, 46800000 },
829 .hactive = { 800, 800, 800 },
830 .hfront_porch = { 16, 210, 354 },
831 .hback_porch = { 45, 36, 6 },
832 .hsync_len = { 1, 10, 40 },
833 .vactive = { 480, 480, 480 },
834 .vfront_porch = { 7, 22, 147 },
835 .vback_porch = { 22, 13, 3 },
836 .vsync_len = { 1, 10, 20 },
837 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
838 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE
841 static const struct panel_desc armadeus_st0700_adapt = {
842 .timings = &santek_st0700i5y_rbslw_f_timing,
849 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
850 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
853 static const struct drm_display_mode auo_b101aw03_mode = {
856 .hsync_start = 1024 + 156,
857 .hsync_end = 1024 + 156 + 8,
858 .htotal = 1024 + 156 + 8 + 156,
860 .vsync_start = 600 + 16,
861 .vsync_end = 600 + 16 + 6,
862 .vtotal = 600 + 16 + 6 + 16,
865 static const struct panel_desc auo_b101aw03 = {
866 .modes = &auo_b101aw03_mode,
873 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
874 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
875 .connector_type = DRM_MODE_CONNECTOR_LVDS,
878 static const struct drm_display_mode auo_b101xtn01_mode = {
881 .hsync_start = 1366 + 20,
882 .hsync_end = 1366 + 20 + 70,
883 .htotal = 1366 + 20 + 70,
885 .vsync_start = 768 + 14,
886 .vsync_end = 768 + 14 + 42,
887 .vtotal = 768 + 14 + 42,
888 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
891 static const struct panel_desc auo_b101xtn01 = {
892 .modes = &auo_b101xtn01_mode,
901 static const struct display_timing auo_g070vvn01_timings = {
902 .pixelclock = { 33300000, 34209000, 45000000 },
903 .hactive = { 800, 800, 800 },
904 .hfront_porch = { 20, 40, 200 },
905 .hback_porch = { 87, 40, 1 },
906 .hsync_len = { 1, 48, 87 },
907 .vactive = { 480, 480, 480 },
908 .vfront_porch = { 5, 13, 200 },
909 .vback_porch = { 31, 31, 29 },
910 .vsync_len = { 1, 1, 3 },
913 static const struct panel_desc auo_g070vvn01 = {
914 .timings = &auo_g070vvn01_timings,
929 static const struct drm_display_mode auo_g101evn010_mode = {
932 .hsync_start = 1280 + 82,
933 .hsync_end = 1280 + 82 + 2,
934 .htotal = 1280 + 82 + 2 + 84,
936 .vsync_start = 800 + 8,
937 .vsync_end = 800 + 8 + 2,
938 .vtotal = 800 + 8 + 2 + 6,
941 static const struct panel_desc auo_g101evn010 = {
942 .modes = &auo_g101evn010_mode,
949 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
950 .connector_type = DRM_MODE_CONNECTOR_LVDS,
953 static const struct drm_display_mode auo_g104sn02_mode = {
956 .hsync_start = 800 + 40,
957 .hsync_end = 800 + 40 + 216,
958 .htotal = 800 + 40 + 216 + 128,
960 .vsync_start = 600 + 10,
961 .vsync_end = 600 + 10 + 35,
962 .vtotal = 600 + 10 + 35 + 2,
965 static const struct panel_desc auo_g104sn02 = {
966 .modes = &auo_g104sn02_mode,
973 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
974 .connector_type = DRM_MODE_CONNECTOR_LVDS,
977 static const struct drm_display_mode auo_g121ean01_mode = {
980 .hsync_start = 1280 + 58,
981 .hsync_end = 1280 + 58 + 8,
982 .htotal = 1280 + 58 + 8 + 70,
984 .vsync_start = 800 + 6,
985 .vsync_end = 800 + 6 + 4,
986 .vtotal = 800 + 6 + 4 + 10,
989 static const struct panel_desc auo_g121ean01 = {
990 .modes = &auo_g121ean01_mode,
997 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
998 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1001 static const struct display_timing auo_g133han01_timings = {
1002 .pixelclock = { 134000000, 141200000, 149000000 },
1003 .hactive = { 1920, 1920, 1920 },
1004 .hfront_porch = { 39, 58, 77 },
1005 .hback_porch = { 59, 88, 117 },
1006 .hsync_len = { 28, 42, 56 },
1007 .vactive = { 1080, 1080, 1080 },
1008 .vfront_porch = { 3, 8, 11 },
1009 .vback_porch = { 5, 14, 19 },
1010 .vsync_len = { 4, 14, 19 },
1013 static const struct panel_desc auo_g133han01 = {
1014 .timings = &auo_g133han01_timings,
1027 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1028 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1031 static const struct drm_display_mode auo_g156xtn01_mode = {
1034 .hsync_start = 1366 + 33,
1035 .hsync_end = 1366 + 33 + 67,
1038 .vsync_start = 768 + 4,
1039 .vsync_end = 768 + 4 + 4,
1043 static const struct panel_desc auo_g156xtn01 = {
1044 .modes = &auo_g156xtn01_mode,
1051 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1052 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1055 static const struct display_timing auo_g185han01_timings = {
1056 .pixelclock = { 120000000, 144000000, 175000000 },
1057 .hactive = { 1920, 1920, 1920 },
1058 .hfront_porch = { 36, 120, 148 },
1059 .hback_porch = { 24, 88, 108 },
1060 .hsync_len = { 20, 48, 64 },
1061 .vactive = { 1080, 1080, 1080 },
1062 .vfront_porch = { 6, 10, 40 },
1063 .vback_porch = { 2, 5, 20 },
1064 .vsync_len = { 2, 5, 20 },
1067 static const struct panel_desc auo_g185han01 = {
1068 .timings = &auo_g185han01_timings,
1081 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1082 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1085 static const struct display_timing auo_g190ean01_timings = {
1086 .pixelclock = { 90000000, 108000000, 135000000 },
1087 .hactive = { 1280, 1280, 1280 },
1088 .hfront_porch = { 126, 184, 1266 },
1089 .hback_porch = { 84, 122, 844 },
1090 .hsync_len = { 70, 102, 704 },
1091 .vactive = { 1024, 1024, 1024 },
1092 .vfront_porch = { 4, 26, 76 },
1093 .vback_porch = { 2, 8, 25 },
1094 .vsync_len = { 2, 8, 25 },
1097 static const struct panel_desc auo_g190ean01 = {
1098 .timings = &auo_g190ean01_timings,
1111 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1112 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1115 static const struct display_timing auo_p320hvn03_timings = {
1116 .pixelclock = { 106000000, 148500000, 164000000 },
1117 .hactive = { 1920, 1920, 1920 },
1118 .hfront_porch = { 25, 50, 130 },
1119 .hback_porch = { 25, 50, 130 },
1120 .hsync_len = { 20, 40, 105 },
1121 .vactive = { 1080, 1080, 1080 },
1122 .vfront_porch = { 8, 17, 150 },
1123 .vback_porch = { 8, 17, 150 },
1124 .vsync_len = { 4, 11, 100 },
1127 static const struct panel_desc auo_p320hvn03 = {
1128 .timings = &auo_p320hvn03_timings,
1140 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1141 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1144 static const struct drm_display_mode auo_t215hvn01_mode = {
1147 .hsync_start = 1920 + 88,
1148 .hsync_end = 1920 + 88 + 44,
1149 .htotal = 1920 + 88 + 44 + 148,
1151 .vsync_start = 1080 + 4,
1152 .vsync_end = 1080 + 4 + 5,
1153 .vtotal = 1080 + 4 + 5 + 36,
1156 static const struct panel_desc auo_t215hvn01 = {
1157 .modes = &auo_t215hvn01_mode,
1170 static const struct drm_display_mode avic_tm070ddh03_mode = {
1173 .hsync_start = 1024 + 160,
1174 .hsync_end = 1024 + 160 + 4,
1175 .htotal = 1024 + 160 + 4 + 156,
1177 .vsync_start = 600 + 17,
1178 .vsync_end = 600 + 17 + 1,
1179 .vtotal = 600 + 17 + 1 + 17,
1182 static const struct panel_desc avic_tm070ddh03 = {
1183 .modes = &avic_tm070ddh03_mode,
1197 static const struct drm_display_mode bananapi_s070wv20_ct16_mode = {
1200 .hsync_start = 800 + 40,
1201 .hsync_end = 800 + 40 + 48,
1202 .htotal = 800 + 40 + 48 + 40,
1204 .vsync_start = 480 + 13,
1205 .vsync_end = 480 + 13 + 3,
1206 .vtotal = 480 + 13 + 3 + 29,
1209 static const struct panel_desc bananapi_s070wv20_ct16 = {
1210 .modes = &bananapi_s070wv20_ct16_mode,
1219 static const struct drm_display_mode boe_hv070wsa_mode = {
1222 .hsync_start = 1024 + 30,
1223 .hsync_end = 1024 + 30 + 30,
1224 .htotal = 1024 + 30 + 30 + 30,
1226 .vsync_start = 600 + 10,
1227 .vsync_end = 600 + 10 + 10,
1228 .vtotal = 600 + 10 + 10 + 10,
1231 static const struct panel_desc boe_hv070wsa = {
1232 .modes = &boe_hv070wsa_mode,
1239 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1240 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1241 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1244 static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = {
1247 .hsync_start = 480 + 5,
1248 .hsync_end = 480 + 5 + 5,
1249 .htotal = 480 + 5 + 5 + 40,
1251 .vsync_start = 272 + 8,
1252 .vsync_end = 272 + 8 + 8,
1253 .vtotal = 272 + 8 + 8 + 8,
1254 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1257 static const struct panel_desc cdtech_s043wq26h_ct7 = {
1258 .modes = &cdtech_s043wq26h_ct7_mode,
1265 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1268 /* S070PWS19HP-FC21 2017/04/22 */
1269 static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = {
1272 .hsync_start = 1024 + 160,
1273 .hsync_end = 1024 + 160 + 20,
1274 .htotal = 1024 + 160 + 20 + 140,
1276 .vsync_start = 600 + 12,
1277 .vsync_end = 600 + 12 + 3,
1278 .vtotal = 600 + 12 + 3 + 20,
1279 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1282 static const struct panel_desc cdtech_s070pws19hp_fc21 = {
1283 .modes = &cdtech_s070pws19hp_fc21_mode,
1290 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1291 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1292 .connector_type = DRM_MODE_CONNECTOR_DPI,
1295 /* S070SWV29HG-DC44 2017/09/21 */
1296 static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = {
1299 .hsync_start = 800 + 210,
1300 .hsync_end = 800 + 210 + 2,
1301 .htotal = 800 + 210 + 2 + 44,
1303 .vsync_start = 480 + 22,
1304 .vsync_end = 480 + 22 + 2,
1305 .vtotal = 480 + 22 + 2 + 21,
1306 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1309 static const struct panel_desc cdtech_s070swv29hg_dc44 = {
1310 .modes = &cdtech_s070swv29hg_dc44_mode,
1317 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1318 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1319 .connector_type = DRM_MODE_CONNECTOR_DPI,
1322 static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
1325 .hsync_start = 800 + 40,
1326 .hsync_end = 800 + 40 + 40,
1327 .htotal = 800 + 40 + 40 + 48,
1329 .vsync_start = 480 + 29,
1330 .vsync_end = 480 + 29 + 13,
1331 .vtotal = 480 + 29 + 13 + 3,
1332 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1335 static const struct panel_desc cdtech_s070wv95_ct16 = {
1336 .modes = &cdtech_s070wv95_ct16_mode,
1345 static const struct display_timing chefree_ch101olhlwh_002_timing = {
1346 .pixelclock = { 68900000, 71100000, 73400000 },
1347 .hactive = { 1280, 1280, 1280 },
1348 .hfront_porch = { 65, 80, 95 },
1349 .hback_porch = { 64, 79, 94 },
1350 .hsync_len = { 1, 1, 1 },
1351 .vactive = { 800, 800, 800 },
1352 .vfront_porch = { 7, 11, 14 },
1353 .vback_porch = { 7, 11, 14 },
1354 .vsync_len = { 1, 1, 1 },
1355 .flags = DISPLAY_FLAGS_DE_HIGH,
1358 static const struct panel_desc chefree_ch101olhlwh_002 = {
1359 .timings = &chefree_ch101olhlwh_002_timing,
1370 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1371 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1372 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1375 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
1378 .hsync_start = 800 + 49,
1379 .hsync_end = 800 + 49 + 33,
1380 .htotal = 800 + 49 + 33 + 17,
1382 .vsync_start = 1280 + 1,
1383 .vsync_end = 1280 + 1 + 7,
1384 .vtotal = 1280 + 1 + 7 + 15,
1385 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1388 static const struct panel_desc chunghwa_claa070wp03xg = {
1389 .modes = &chunghwa_claa070wp03xg_mode,
1396 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1397 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1398 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1401 static const struct drm_display_mode chunghwa_claa101wa01a_mode = {
1404 .hsync_start = 1366 + 58,
1405 .hsync_end = 1366 + 58 + 58,
1406 .htotal = 1366 + 58 + 58 + 58,
1408 .vsync_start = 768 + 4,
1409 .vsync_end = 768 + 4 + 4,
1410 .vtotal = 768 + 4 + 4 + 4,
1413 static const struct panel_desc chunghwa_claa101wa01a = {
1414 .modes = &chunghwa_claa101wa01a_mode,
1421 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1422 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1423 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1426 static const struct drm_display_mode chunghwa_claa101wb01_mode = {
1429 .hsync_start = 1366 + 48,
1430 .hsync_end = 1366 + 48 + 32,
1431 .htotal = 1366 + 48 + 32 + 20,
1433 .vsync_start = 768 + 16,
1434 .vsync_end = 768 + 16 + 8,
1435 .vtotal = 768 + 16 + 8 + 16,
1438 static const struct panel_desc chunghwa_claa101wb01 = {
1439 .modes = &chunghwa_claa101wb01_mode,
1446 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1447 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1448 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1451 static const struct display_timing dataimage_fg040346dsswbg04_timing = {
1452 .pixelclock = { 5000000, 9000000, 12000000 },
1453 .hactive = { 480, 480, 480 },
1454 .hfront_porch = { 12, 12, 12 },
1455 .hback_porch = { 12, 12, 12 },
1456 .hsync_len = { 21, 21, 21 },
1457 .vactive = { 272, 272, 272 },
1458 .vfront_porch = { 4, 4, 4 },
1459 .vback_porch = { 4, 4, 4 },
1460 .vsync_len = { 8, 8, 8 },
1463 static const struct panel_desc dataimage_fg040346dsswbg04 = {
1464 .timings = &dataimage_fg040346dsswbg04_timing,
1471 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1472 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1473 .connector_type = DRM_MODE_CONNECTOR_DPI,
1476 static const struct display_timing dataimage_fg1001l0dsswmg01_timing = {
1477 .pixelclock = { 68900000, 71110000, 73400000 },
1478 .hactive = { 1280, 1280, 1280 },
1479 .vactive = { 800, 800, 800 },
1480 .hback_porch = { 100, 100, 100 },
1481 .hfront_porch = { 100, 100, 100 },
1482 .vback_porch = { 5, 5, 5 },
1483 .vfront_porch = { 5, 5, 5 },
1484 .hsync_len = { 24, 24, 24 },
1485 .vsync_len = { 3, 3, 3 },
1486 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
1487 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1490 static const struct panel_desc dataimage_fg1001l0dsswmg01 = {
1491 .timings = &dataimage_fg1001l0dsswmg01_timing,
1500 static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = {
1503 .hsync_start = 800 + 40,
1504 .hsync_end = 800 + 40 + 128,
1505 .htotal = 800 + 40 + 128 + 88,
1507 .vsync_start = 480 + 10,
1508 .vsync_end = 480 + 10 + 2,
1509 .vtotal = 480 + 10 + 2 + 33,
1510 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1513 static const struct panel_desc dataimage_scf0700c48ggu18 = {
1514 .modes = &dataimage_scf0700c48ggu18_mode,
1521 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1522 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1525 static const struct display_timing dlc_dlc0700yzg_1_timing = {
1526 .pixelclock = { 45000000, 51200000, 57000000 },
1527 .hactive = { 1024, 1024, 1024 },
1528 .hfront_porch = { 100, 106, 113 },
1529 .hback_porch = { 100, 106, 113 },
1530 .hsync_len = { 100, 108, 114 },
1531 .vactive = { 600, 600, 600 },
1532 .vfront_porch = { 8, 11, 15 },
1533 .vback_porch = { 8, 11, 15 },
1534 .vsync_len = { 9, 13, 15 },
1535 .flags = DISPLAY_FLAGS_DE_HIGH,
1538 static const struct panel_desc dlc_dlc0700yzg_1 = {
1539 .timings = &dlc_dlc0700yzg_1_timing,
1551 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1552 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1555 static const struct display_timing dlc_dlc1010gig_timing = {
1556 .pixelclock = { 68900000, 71100000, 73400000 },
1557 .hactive = { 1280, 1280, 1280 },
1558 .hfront_porch = { 43, 53, 63 },
1559 .hback_porch = { 43, 53, 63 },
1560 .hsync_len = { 44, 54, 64 },
1561 .vactive = { 800, 800, 800 },
1562 .vfront_porch = { 5, 8, 11 },
1563 .vback_porch = { 5, 8, 11 },
1564 .vsync_len = { 5, 7, 11 },
1565 .flags = DISPLAY_FLAGS_DE_HIGH,
1568 static const struct panel_desc dlc_dlc1010gig = {
1569 .timings = &dlc_dlc1010gig_timing,
1582 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1583 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1586 static const struct drm_display_mode edt_et035012dm6_mode = {
1589 .hsync_start = 320 + 20,
1590 .hsync_end = 320 + 20 + 30,
1591 .htotal = 320 + 20 + 68,
1593 .vsync_start = 240 + 4,
1594 .vsync_end = 240 + 4 + 4,
1595 .vtotal = 240 + 4 + 4 + 14,
1596 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1599 static const struct panel_desc edt_et035012dm6 = {
1600 .modes = &edt_et035012dm6_mode,
1607 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1608 .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1611 static const struct drm_display_mode edt_etm0350g0dh6_mode = {
1614 .hsync_start = 320 + 20,
1615 .hsync_end = 320 + 20 + 68,
1616 .htotal = 320 + 20 + 68,
1618 .vsync_start = 240 + 4,
1619 .vsync_end = 240 + 4 + 18,
1620 .vtotal = 240 + 4 + 18,
1621 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1624 static const struct panel_desc edt_etm0350g0dh6 = {
1625 .modes = &edt_etm0350g0dh6_mode,
1632 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1633 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1634 .connector_type = DRM_MODE_CONNECTOR_DPI,
1637 static const struct drm_display_mode edt_etm043080dh6gp_mode = {
1640 .hsync_start = 480 + 8,
1641 .hsync_end = 480 + 8 + 4,
1642 .htotal = 480 + 8 + 4 + 41,
1645 * IWG22M: Y resolution changed for "dc_linuxfb" module crashing while
1650 .vsync_start = 288 + 2,
1651 .vsync_end = 288 + 2 + 4,
1652 .vtotal = 288 + 2 + 4 + 10,
1655 static const struct panel_desc edt_etm043080dh6gp = {
1656 .modes = &edt_etm043080dh6gp_mode,
1663 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1664 .connector_type = DRM_MODE_CONNECTOR_DPI,
1667 static const struct drm_display_mode edt_etm0430g0dh6_mode = {
1670 .hsync_start = 480 + 2,
1671 .hsync_end = 480 + 2 + 41,
1672 .htotal = 480 + 2 + 41 + 2,
1674 .vsync_start = 272 + 2,
1675 .vsync_end = 272 + 2 + 10,
1676 .vtotal = 272 + 2 + 10 + 2,
1677 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1680 static const struct panel_desc edt_etm0430g0dh6 = {
1681 .modes = &edt_etm0430g0dh6_mode,
1688 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1689 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1690 .connector_type = DRM_MODE_CONNECTOR_DPI,
1693 static const struct drm_display_mode edt_et057090dhu_mode = {
1696 .hsync_start = 640 + 16,
1697 .hsync_end = 640 + 16 + 30,
1698 .htotal = 640 + 16 + 30 + 114,
1700 .vsync_start = 480 + 10,
1701 .vsync_end = 480 + 10 + 3,
1702 .vtotal = 480 + 10 + 3 + 32,
1703 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1706 static const struct panel_desc edt_et057090dhu = {
1707 .modes = &edt_et057090dhu_mode,
1714 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1715 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1716 .connector_type = DRM_MODE_CONNECTOR_DPI,
1719 static const struct drm_display_mode edt_etm0700g0dh6_mode = {
1722 .hsync_start = 800 + 40,
1723 .hsync_end = 800 + 40 + 128,
1724 .htotal = 800 + 40 + 128 + 88,
1726 .vsync_start = 480 + 10,
1727 .vsync_end = 480 + 10 + 2,
1728 .vtotal = 480 + 10 + 2 + 33,
1729 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1732 static const struct panel_desc edt_etm0700g0dh6 = {
1733 .modes = &edt_etm0700g0dh6_mode,
1740 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1741 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1742 .connector_type = DRM_MODE_CONNECTOR_DPI,
1745 static const struct panel_desc edt_etm0700g0bdh6 = {
1746 .modes = &edt_etm0700g0dh6_mode,
1753 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1754 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1755 .connector_type = DRM_MODE_CONNECTOR_DPI,
1758 static const struct display_timing edt_etml0700y5dha_timing = {
1759 .pixelclock = { 40800000, 51200000, 67200000 },
1760 .hactive = { 1024, 1024, 1024 },
1761 .hfront_porch = { 30, 106, 125 },
1762 .hback_porch = { 30, 106, 125 },
1763 .hsync_len = { 30, 108, 126 },
1764 .vactive = { 600, 600, 600 },
1765 .vfront_porch = { 3, 12, 67},
1766 .vback_porch = { 3, 12, 67 },
1767 .vsync_len = { 4, 11, 66 },
1768 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
1769 DISPLAY_FLAGS_DE_HIGH,
1772 static const struct panel_desc edt_etml0700y5dha = {
1773 .timings = &edt_etml0700y5dha_timing,
1780 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1781 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1784 static const struct drm_display_mode edt_etmv570g2dhu_mode = {
1788 .hsync_end = 640 + 16,
1789 .htotal = 640 + 16 + 30 + 114,
1791 .vsync_start = 480 + 10,
1792 .vsync_end = 480 + 10 + 3,
1793 .vtotal = 480 + 10 + 3 + 35,
1794 .flags = DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_PHSYNC,
1797 static const struct panel_desc edt_etmv570g2dhu = {
1798 .modes = &edt_etmv570g2dhu_mode,
1805 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1806 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1807 .connector_type = DRM_MODE_CONNECTOR_DPI,
1810 static const struct display_timing eink_vb3300_kca_timing = {
1811 .pixelclock = { 40000000, 40000000, 40000000 },
1812 .hactive = { 334, 334, 334 },
1813 .hfront_porch = { 1, 1, 1 },
1814 .hback_porch = { 1, 1, 1 },
1815 .hsync_len = { 1, 1, 1 },
1816 .vactive = { 1405, 1405, 1405 },
1817 .vfront_porch = { 1, 1, 1 },
1818 .vback_porch = { 1, 1, 1 },
1819 .vsync_len = { 1, 1, 1 },
1820 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
1821 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
1824 static const struct panel_desc eink_vb3300_kca = {
1825 .timings = &eink_vb3300_kca_timing,
1832 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1833 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1834 .connector_type = DRM_MODE_CONNECTOR_DPI,
1837 static const struct display_timing evervision_vgg804821_timing = {
1838 .pixelclock = { 27600000, 33300000, 50000000 },
1839 .hactive = { 800, 800, 800 },
1840 .hfront_porch = { 40, 66, 70 },
1841 .hback_porch = { 40, 67, 70 },
1842 .hsync_len = { 40, 67, 70 },
1843 .vactive = { 480, 480, 480 },
1844 .vfront_porch = { 6, 10, 10 },
1845 .vback_porch = { 7, 11, 11 },
1846 .vsync_len = { 7, 11, 11 },
1847 .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH |
1848 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
1849 DISPLAY_FLAGS_SYNC_NEGEDGE,
1852 static const struct panel_desc evervision_vgg804821 = {
1853 .timings = &evervision_vgg804821_timing,
1860 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1861 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1864 static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = {
1867 .hsync_start = 800 + 168,
1868 .hsync_end = 800 + 168 + 64,
1869 .htotal = 800 + 168 + 64 + 88,
1871 .vsync_start = 480 + 37,
1872 .vsync_end = 480 + 37 + 2,
1873 .vtotal = 480 + 37 + 2 + 8,
1876 static const struct panel_desc foxlink_fl500wvr00_a0t = {
1877 .modes = &foxlink_fl500wvr00_a0t_mode,
1884 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1887 static const struct drm_display_mode frida_frd350h54004_modes[] = {
1891 .hsync_start = 320 + 44,
1892 .hsync_end = 320 + 44 + 16,
1893 .htotal = 320 + 44 + 16 + 20,
1895 .vsync_start = 240 + 2,
1896 .vsync_end = 240 + 2 + 6,
1897 .vtotal = 240 + 2 + 6 + 2,
1898 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1903 .hsync_start = 320 + 56,
1904 .hsync_end = 320 + 56 + 16,
1905 .htotal = 320 + 56 + 16 + 40,
1907 .vsync_start = 240 + 2,
1908 .vsync_end = 240 + 2 + 6,
1909 .vtotal = 240 + 2 + 6 + 2,
1910 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1914 static const struct panel_desc frida_frd350h54004 = {
1915 .modes = frida_frd350h54004_modes,
1916 .num_modes = ARRAY_SIZE(frida_frd350h54004_modes),
1922 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1923 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1924 .connector_type = DRM_MODE_CONNECTOR_DPI,
1927 static const struct drm_display_mode friendlyarm_hd702e_mode = {
1930 .hsync_start = 800 + 20,
1931 .hsync_end = 800 + 20 + 24,
1932 .htotal = 800 + 20 + 24 + 20,
1934 .vsync_start = 1280 + 4,
1935 .vsync_end = 1280 + 4 + 8,
1936 .vtotal = 1280 + 4 + 8 + 4,
1937 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1940 static const struct panel_desc friendlyarm_hd702e = {
1941 .modes = &friendlyarm_hd702e_mode,
1949 static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
1952 .hsync_start = 480 + 5,
1953 .hsync_end = 480 + 5 + 1,
1954 .htotal = 480 + 5 + 1 + 40,
1956 .vsync_start = 272 + 8,
1957 .vsync_end = 272 + 8 + 1,
1958 .vtotal = 272 + 8 + 1 + 8,
1961 static const struct panel_desc giantplus_gpg482739qs5 = {
1962 .modes = &giantplus_gpg482739qs5_mode,
1969 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1972 static const struct display_timing giantplus_gpm940b0_timing = {
1973 .pixelclock = { 13500000, 27000000, 27500000 },
1974 .hactive = { 320, 320, 320 },
1975 .hfront_porch = { 14, 686, 718 },
1976 .hback_porch = { 50, 70, 255 },
1977 .hsync_len = { 1, 1, 1 },
1978 .vactive = { 240, 240, 240 },
1979 .vfront_porch = { 1, 1, 179 },
1980 .vback_porch = { 1, 21, 31 },
1981 .vsync_len = { 1, 1, 6 },
1982 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1985 static const struct panel_desc giantplus_gpm940b0 = {
1986 .timings = &giantplus_gpm940b0_timing,
1993 .bus_format = MEDIA_BUS_FMT_RGB888_3X8,
1994 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1997 static const struct display_timing hannstar_hsd070pww1_timing = {
1998 .pixelclock = { 64300000, 71100000, 82000000 },
1999 .hactive = { 1280, 1280, 1280 },
2000 .hfront_porch = { 1, 1, 10 },
2001 .hback_porch = { 1, 1, 10 },
2003 * According to the data sheet, the minimum horizontal blanking interval
2004 * is 54 clocks (1 + 52 + 1), but tests with a Nitrogen6X have shown the
2005 * minimum working horizontal blanking interval to be 60 clocks.
2007 .hsync_len = { 58, 158, 661 },
2008 .vactive = { 800, 800, 800 },
2009 .vfront_porch = { 1, 1, 10 },
2010 .vback_porch = { 1, 1, 10 },
2011 .vsync_len = { 1, 21, 203 },
2012 .flags = DISPLAY_FLAGS_DE_HIGH,
2015 static const struct panel_desc hannstar_hsd070pww1 = {
2016 .timings = &hannstar_hsd070pww1_timing,
2023 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2024 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2027 static const struct display_timing hannstar_hsd100pxn1_timing = {
2028 .pixelclock = { 55000000, 65000000, 75000000 },
2029 .hactive = { 1024, 1024, 1024 },
2030 .hfront_porch = { 40, 40, 40 },
2031 .hback_porch = { 220, 220, 220 },
2032 .hsync_len = { 20, 60, 100 },
2033 .vactive = { 768, 768, 768 },
2034 .vfront_porch = { 7, 7, 7 },
2035 .vback_porch = { 21, 21, 21 },
2036 .vsync_len = { 10, 10, 10 },
2037 .flags = DISPLAY_FLAGS_DE_HIGH,
2040 static const struct panel_desc hannstar_hsd100pxn1 = {
2041 .timings = &hannstar_hsd100pxn1_timing,
2048 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2049 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2052 static const struct display_timing hannstar_hsd101pww2_timing = {
2053 .pixelclock = { 64300000, 71100000, 82000000 },
2054 .hactive = { 1280, 1280, 1280 },
2055 .hfront_porch = { 1, 1, 10 },
2056 .hback_porch = { 1, 1, 10 },
2057 .hsync_len = { 58, 158, 661 },
2058 .vactive = { 800, 800, 800 },
2059 .vfront_porch = { 1, 1, 10 },
2060 .vback_porch = { 1, 1, 10 },
2061 .vsync_len = { 1, 21, 203 },
2062 .flags = DISPLAY_FLAGS_DE_HIGH,
2065 static const struct panel_desc hannstar_hsd101pww2 = {
2066 .timings = &hannstar_hsd101pww2_timing,
2073 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2074 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2077 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
2080 .hsync_start = 800 + 85,
2081 .hsync_end = 800 + 85 + 86,
2082 .htotal = 800 + 85 + 86 + 85,
2084 .vsync_start = 480 + 16,
2085 .vsync_end = 480 + 16 + 13,
2086 .vtotal = 480 + 16 + 13 + 16,
2089 static const struct panel_desc hitachi_tx23d38vm0caa = {
2090 .modes = &hitachi_tx23d38vm0caa_mode,
2103 static const struct drm_display_mode innolux_at043tn24_mode = {
2106 .hsync_start = 480 + 2,
2107 .hsync_end = 480 + 2 + 41,
2108 .htotal = 480 + 2 + 41 + 2,
2110 .vsync_start = 272 + 2,
2111 .vsync_end = 272 + 2 + 10,
2112 .vtotal = 272 + 2 + 10 + 2,
2113 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2116 static const struct panel_desc innolux_at043tn24 = {
2117 .modes = &innolux_at043tn24_mode,
2124 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2125 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2128 static const struct drm_display_mode innolux_at070tn92_mode = {
2131 .hsync_start = 800 + 210,
2132 .hsync_end = 800 + 210 + 20,
2133 .htotal = 800 + 210 + 20 + 46,
2135 .vsync_start = 480 + 22,
2136 .vsync_end = 480 + 22 + 10,
2137 .vtotal = 480 + 22 + 23 + 10,
2140 static const struct panel_desc innolux_at070tn92 = {
2141 .modes = &innolux_at070tn92_mode,
2147 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2150 static const struct display_timing innolux_g070y2_l01_timing = {
2151 .pixelclock = { 28000000, 29500000, 32000000 },
2152 .hactive = { 800, 800, 800 },
2153 .hfront_porch = { 61, 91, 141 },
2154 .hback_porch = { 60, 90, 140 },
2155 .hsync_len = { 12, 12, 12 },
2156 .vactive = { 480, 480, 480 },
2157 .vfront_porch = { 4, 9, 30 },
2158 .vback_porch = { 4, 8, 28 },
2159 .vsync_len = { 2, 2, 2 },
2160 .flags = DISPLAY_FLAGS_DE_HIGH,
2163 static const struct panel_desc innolux_g070y2_l01 = {
2164 .timings = &innolux_g070y2_l01_timing,
2177 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2178 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2179 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2182 static const struct drm_display_mode innolux_g070y2_t02_mode = {
2185 .hsync_start = 800 + 210,
2186 .hsync_end = 800 + 210 + 20,
2187 .htotal = 800 + 210 + 20 + 46,
2189 .vsync_start = 480 + 22,
2190 .vsync_end = 480 + 22 + 10,
2191 .vtotal = 480 + 22 + 23 + 10,
2194 static const struct panel_desc innolux_g070y2_t02 = {
2195 .modes = &innolux_g070y2_t02_mode,
2202 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2203 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2204 .connector_type = DRM_MODE_CONNECTOR_DPI,
2207 static const struct display_timing innolux_g101ice_l01_timing = {
2208 .pixelclock = { 60400000, 71100000, 74700000 },
2209 .hactive = { 1280, 1280, 1280 },
2210 .hfront_porch = { 41, 80, 100 },
2211 .hback_porch = { 40, 79, 99 },
2212 .hsync_len = { 1, 1, 1 },
2213 .vactive = { 800, 800, 800 },
2214 .vfront_porch = { 5, 11, 14 },
2215 .vback_porch = { 4, 11, 14 },
2216 .vsync_len = { 1, 1, 1 },
2217 .flags = DISPLAY_FLAGS_DE_HIGH,
2220 static const struct panel_desc innolux_g101ice_l01 = {
2221 .timings = &innolux_g101ice_l01_timing,
2232 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2233 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2236 static const struct display_timing innolux_g121i1_l01_timing = {
2237 .pixelclock = { 67450000, 71000000, 74550000 },
2238 .hactive = { 1280, 1280, 1280 },
2239 .hfront_porch = { 40, 80, 160 },
2240 .hback_porch = { 39, 79, 159 },
2241 .hsync_len = { 1, 1, 1 },
2242 .vactive = { 800, 800, 800 },
2243 .vfront_porch = { 5, 11, 100 },
2244 .vback_porch = { 4, 11, 99 },
2245 .vsync_len = { 1, 1, 1 },
2248 static const struct panel_desc innolux_g121i1_l01 = {
2249 .timings = &innolux_g121i1_l01_timing,
2260 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2261 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2264 static const struct drm_display_mode innolux_g121x1_l03_mode = {
2267 .hsync_start = 1024 + 0,
2268 .hsync_end = 1024 + 1,
2269 .htotal = 1024 + 0 + 1 + 320,
2271 .vsync_start = 768 + 38,
2272 .vsync_end = 768 + 38 + 1,
2273 .vtotal = 768 + 38 + 1 + 0,
2274 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2277 static const struct panel_desc innolux_g121x1_l03 = {
2278 .modes = &innolux_g121x1_l03_mode,
2292 static const struct drm_display_mode innolux_n156bge_l21_mode = {
2295 .hsync_start = 1366 + 16,
2296 .hsync_end = 1366 + 16 + 34,
2297 .htotal = 1366 + 16 + 34 + 50,
2299 .vsync_start = 768 + 2,
2300 .vsync_end = 768 + 2 + 6,
2301 .vtotal = 768 + 2 + 6 + 12,
2304 static const struct panel_desc innolux_n156bge_l21 = {
2305 .modes = &innolux_n156bge_l21_mode,
2312 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2313 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2314 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2317 static const struct drm_display_mode innolux_zj070na_01p_mode = {
2320 .hsync_start = 1024 + 128,
2321 .hsync_end = 1024 + 128 + 64,
2322 .htotal = 1024 + 128 + 64 + 128,
2324 .vsync_start = 600 + 16,
2325 .vsync_end = 600 + 16 + 4,
2326 .vtotal = 600 + 16 + 4 + 16,
2329 static const struct panel_desc innolux_zj070na_01p = {
2330 .modes = &innolux_zj070na_01p_mode,
2339 static const struct display_timing koe_tx14d24vm1bpa_timing = {
2340 .pixelclock = { 5580000, 5850000, 6200000 },
2341 .hactive = { 320, 320, 320 },
2342 .hfront_porch = { 30, 30, 30 },
2343 .hback_porch = { 30, 30, 30 },
2344 .hsync_len = { 1, 5, 17 },
2345 .vactive = { 240, 240, 240 },
2346 .vfront_porch = { 6, 6, 6 },
2347 .vback_porch = { 5, 5, 5 },
2348 .vsync_len = { 1, 2, 11 },
2349 .flags = DISPLAY_FLAGS_DE_HIGH,
2352 static const struct panel_desc koe_tx14d24vm1bpa = {
2353 .timings = &koe_tx14d24vm1bpa_timing,
2362 static const struct display_timing koe_tx26d202vm0bwa_timing = {
2363 .pixelclock = { 151820000, 156720000, 159780000 },
2364 .hactive = { 1920, 1920, 1920 },
2365 .hfront_porch = { 105, 130, 142 },
2366 .hback_porch = { 45, 70, 82 },
2367 .hsync_len = { 30, 30, 30 },
2368 .vactive = { 1200, 1200, 1200},
2369 .vfront_porch = { 3, 5, 10 },
2370 .vback_porch = { 2, 5, 10 },
2371 .vsync_len = { 5, 5, 5 },
2374 static const struct panel_desc koe_tx26d202vm0bwa = {
2375 .timings = &koe_tx26d202vm0bwa_timing,
2388 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2389 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2390 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2393 static const struct display_timing koe_tx31d200vm0baa_timing = {
2394 .pixelclock = { 39600000, 43200000, 48000000 },
2395 .hactive = { 1280, 1280, 1280 },
2396 .hfront_porch = { 16, 36, 56 },
2397 .hback_porch = { 16, 36, 56 },
2398 .hsync_len = { 8, 8, 8 },
2399 .vactive = { 480, 480, 480 },
2400 .vfront_porch = { 6, 21, 33 },
2401 .vback_porch = { 6, 21, 33 },
2402 .vsync_len = { 8, 8, 8 },
2403 .flags = DISPLAY_FLAGS_DE_HIGH,
2406 static const struct panel_desc koe_tx31d200vm0baa = {
2407 .timings = &koe_tx31d200vm0baa_timing,
2414 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2415 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2418 static const struct display_timing kyo_tcg121xglp_timing = {
2419 .pixelclock = { 52000000, 65000000, 71000000 },
2420 .hactive = { 1024, 1024, 1024 },
2421 .hfront_porch = { 2, 2, 2 },
2422 .hback_porch = { 2, 2, 2 },
2423 .hsync_len = { 86, 124, 244 },
2424 .vactive = { 768, 768, 768 },
2425 .vfront_porch = { 2, 2, 2 },
2426 .vback_porch = { 2, 2, 2 },
2427 .vsync_len = { 6, 34, 73 },
2428 .flags = DISPLAY_FLAGS_DE_HIGH,
2431 static const struct panel_desc kyo_tcg121xglp = {
2432 .timings = &kyo_tcg121xglp_timing,
2439 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2440 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2443 static const struct drm_display_mode lemaker_bl035_rgb_002_mode = {
2446 .hsync_start = 320 + 20,
2447 .hsync_end = 320 + 20 + 30,
2448 .htotal = 320 + 20 + 30 + 38,
2450 .vsync_start = 240 + 4,
2451 .vsync_end = 240 + 4 + 3,
2452 .vtotal = 240 + 4 + 3 + 15,
2455 static const struct panel_desc lemaker_bl035_rgb_002 = {
2456 .modes = &lemaker_bl035_rgb_002_mode,
2462 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2463 .bus_flags = DRM_BUS_FLAG_DE_LOW,
2466 static const struct drm_display_mode lg_lb070wv8_mode = {
2469 .hsync_start = 800 + 88,
2470 .hsync_end = 800 + 88 + 80,
2471 .htotal = 800 + 88 + 80 + 88,
2473 .vsync_start = 480 + 10,
2474 .vsync_end = 480 + 10 + 25,
2475 .vtotal = 480 + 10 + 25 + 10,
2478 static const struct panel_desc lg_lb070wv8 = {
2479 .modes = &lg_lb070wv8_mode,
2486 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2487 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2490 static const struct display_timing logictechno_lt161010_2nh_timing = {
2491 .pixelclock = { 26400000, 33300000, 46800000 },
2492 .hactive = { 800, 800, 800 },
2493 .hfront_porch = { 16, 210, 354 },
2494 .hback_porch = { 46, 46, 46 },
2495 .hsync_len = { 1, 20, 40 },
2496 .vactive = { 480, 480, 480 },
2497 .vfront_porch = { 7, 22, 147 },
2498 .vback_porch = { 23, 23, 23 },
2499 .vsync_len = { 1, 10, 20 },
2500 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2501 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2502 DISPLAY_FLAGS_SYNC_POSEDGE,
2505 static const struct panel_desc logictechno_lt161010_2nh = {
2506 .timings = &logictechno_lt161010_2nh_timing,
2512 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2513 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
2514 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2515 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
2516 .connector_type = DRM_MODE_CONNECTOR_DPI,
2519 static const struct display_timing logictechno_lt170410_2whc_timing = {
2520 .pixelclock = { 68900000, 71100000, 73400000 },
2521 .hactive = { 1280, 1280, 1280 },
2522 .hfront_porch = { 23, 60, 71 },
2523 .hback_porch = { 23, 60, 71 },
2524 .hsync_len = { 15, 40, 47 },
2525 .vactive = { 800, 800, 800 },
2526 .vfront_porch = { 5, 7, 10 },
2527 .vback_porch = { 5, 7, 10 },
2528 .vsync_len = { 6, 9, 12 },
2529 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2530 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2531 DISPLAY_FLAGS_SYNC_POSEDGE,
2534 static const struct panel_desc logictechno_lt170410_2whc = {
2535 .timings = &logictechno_lt170410_2whc_timing,
2541 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2542 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2543 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2546 static const struct drm_display_mode logictechno_lttd800480070_l2rt_mode = {
2549 .hsync_start = 800 + 112,
2550 .hsync_end = 800 + 112 + 3,
2551 .htotal = 800 + 112 + 3 + 85,
2553 .vsync_start = 480 + 38,
2554 .vsync_end = 480 + 38 + 3,
2555 .vtotal = 480 + 38 + 3 + 29,
2556 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2559 static const struct panel_desc logictechno_lttd800480070_l2rt = {
2560 .modes = &logictechno_lttd800480070_l2rt_mode,
2573 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2574 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2575 .connector_type = DRM_MODE_CONNECTOR_DPI,
2578 static const struct drm_display_mode logictechno_lttd800480070_l6wh_rt_mode = {
2581 .hsync_start = 800 + 154,
2582 .hsync_end = 800 + 154 + 3,
2583 .htotal = 800 + 154 + 3 + 43,
2585 .vsync_start = 480 + 47,
2586 .vsync_end = 480 + 47 + 3,
2587 .vtotal = 480 + 47 + 3 + 20,
2588 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2591 static const struct panel_desc logictechno_lttd800480070_l6wh_rt = {
2592 .modes = &logictechno_lttd800480070_l6wh_rt_mode,
2605 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2606 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2607 .connector_type = DRM_MODE_CONNECTOR_DPI,
2610 static const struct drm_display_mode logicpd_type_28_mode = {
2613 .hsync_start = 480 + 3,
2614 .hsync_end = 480 + 3 + 42,
2615 .htotal = 480 + 3 + 42 + 2,
2618 .vsync_start = 272 + 2,
2619 .vsync_end = 272 + 2 + 11,
2620 .vtotal = 272 + 2 + 11 + 3,
2621 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
2624 static const struct panel_desc logicpd_type_28 = {
2625 .modes = &logicpd_type_28_mode,
2638 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2639 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
2640 DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
2641 .connector_type = DRM_MODE_CONNECTOR_DPI,
2644 static const struct drm_display_mode mitsubishi_aa070mc01_mode = {
2647 .hsync_start = 800 + 0,
2648 .hsync_end = 800 + 1,
2649 .htotal = 800 + 0 + 1 + 160,
2651 .vsync_start = 480 + 0,
2652 .vsync_end = 480 + 48 + 1,
2653 .vtotal = 480 + 48 + 1 + 0,
2654 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2657 static const struct panel_desc mitsubishi_aa070mc01 = {
2658 .modes = &mitsubishi_aa070mc01_mode,
2671 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2672 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2673 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2676 static const struct display_timing multi_inno_mi0700s4t_6_timing = {
2677 .pixelclock = { 29000000, 33000000, 38000000 },
2678 .hactive = { 800, 800, 800 },
2679 .hfront_porch = { 180, 210, 240 },
2680 .hback_porch = { 16, 16, 16 },
2681 .hsync_len = { 30, 30, 30 },
2682 .vactive = { 480, 480, 480 },
2683 .vfront_porch = { 12, 22, 32 },
2684 .vback_porch = { 10, 10, 10 },
2685 .vsync_len = { 13, 13, 13 },
2686 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2687 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2688 DISPLAY_FLAGS_SYNC_POSEDGE,
2691 static const struct panel_desc multi_inno_mi0700s4t_6 = {
2692 .timings = &multi_inno_mi0700s4t_6_timing,
2699 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2700 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
2701 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2702 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
2703 .connector_type = DRM_MODE_CONNECTOR_DPI,
2706 static const struct display_timing multi_inno_mi1010ait_1cp_timing = {
2707 .pixelclock = { 68900000, 70000000, 73400000 },
2708 .hactive = { 1280, 1280, 1280 },
2709 .hfront_porch = { 30, 60, 71 },
2710 .hback_porch = { 30, 60, 71 },
2711 .hsync_len = { 10, 10, 48 },
2712 .vactive = { 800, 800, 800 },
2713 .vfront_porch = { 5, 10, 10 },
2714 .vback_porch = { 5, 10, 10 },
2715 .vsync_len = { 5, 6, 13 },
2716 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2717 DISPLAY_FLAGS_DE_HIGH,
2720 static const struct panel_desc multi_inno_mi1010ait_1cp = {
2721 .timings = &multi_inno_mi1010ait_1cp_timing,
2732 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2733 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2734 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2737 static const struct display_timing nec_nl12880bc20_05_timing = {
2738 .pixelclock = { 67000000, 71000000, 75000000 },
2739 .hactive = { 1280, 1280, 1280 },
2740 .hfront_porch = { 2, 30, 30 },
2741 .hback_porch = { 6, 100, 100 },
2742 .hsync_len = { 2, 30, 30 },
2743 .vactive = { 800, 800, 800 },
2744 .vfront_porch = { 5, 5, 5 },
2745 .vback_porch = { 11, 11, 11 },
2746 .vsync_len = { 7, 7, 7 },
2749 static const struct panel_desc nec_nl12880bc20_05 = {
2750 .timings = &nec_nl12880bc20_05_timing,
2761 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2762 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2765 static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
2768 .hsync_start = 480 + 2,
2769 .hsync_end = 480 + 2 + 41,
2770 .htotal = 480 + 2 + 41 + 2,
2772 .vsync_start = 272 + 2,
2773 .vsync_end = 272 + 2 + 4,
2774 .vtotal = 272 + 2 + 4 + 2,
2775 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2778 static const struct panel_desc nec_nl4827hc19_05b = {
2779 .modes = &nec_nl4827hc19_05b_mode,
2786 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2787 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2790 static const struct drm_display_mode netron_dy_e231732_mode = {
2793 .hsync_start = 1024 + 160,
2794 .hsync_end = 1024 + 160 + 70,
2795 .htotal = 1024 + 160 + 70 + 90,
2797 .vsync_start = 600 + 127,
2798 .vsync_end = 600 + 127 + 20,
2799 .vtotal = 600 + 127 + 20 + 3,
2802 static const struct panel_desc netron_dy_e231732 = {
2803 .modes = &netron_dy_e231732_mode,
2809 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2812 static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = {
2815 .hsync_start = 480 + 2,
2816 .hsync_end = 480 + 2 + 41,
2817 .htotal = 480 + 2 + 41 + 2,
2819 .vsync_start = 272 + 2,
2820 .vsync_end = 272 + 2 + 10,
2821 .vtotal = 272 + 2 + 10 + 2,
2822 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2825 static const struct panel_desc newhaven_nhd_43_480272ef_atxl = {
2826 .modes = &newhaven_nhd_43_480272ef_atxl_mode,
2833 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2834 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
2835 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
2836 .connector_type = DRM_MODE_CONNECTOR_DPI,
2839 static const struct display_timing nlt_nl192108ac18_02d_timing = {
2840 .pixelclock = { 130000000, 148350000, 163000000 },
2841 .hactive = { 1920, 1920, 1920 },
2842 .hfront_porch = { 80, 100, 100 },
2843 .hback_porch = { 100, 120, 120 },
2844 .hsync_len = { 50, 60, 60 },
2845 .vactive = { 1080, 1080, 1080 },
2846 .vfront_porch = { 12, 30, 30 },
2847 .vback_porch = { 4, 10, 10 },
2848 .vsync_len = { 4, 5, 5 },
2851 static const struct panel_desc nlt_nl192108ac18_02d = {
2852 .timings = &nlt_nl192108ac18_02d_timing,
2862 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2863 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2866 static const struct drm_display_mode nvd_9128_mode = {
2869 .hsync_start = 800 + 130,
2870 .hsync_end = 800 + 130 + 98,
2871 .htotal = 800 + 0 + 130 + 98,
2873 .vsync_start = 480 + 10,
2874 .vsync_end = 480 + 10 + 50,
2875 .vtotal = 480 + 0 + 10 + 50,
2878 static const struct panel_desc nvd_9128 = {
2879 .modes = &nvd_9128_mode,
2886 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2887 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2890 static const struct display_timing okaya_rs800480t_7x0gp_timing = {
2891 .pixelclock = { 30000000, 30000000, 40000000 },
2892 .hactive = { 800, 800, 800 },
2893 .hfront_porch = { 40, 40, 40 },
2894 .hback_porch = { 40, 40, 40 },
2895 .hsync_len = { 1, 48, 48 },
2896 .vactive = { 480, 480, 480 },
2897 .vfront_porch = { 13, 13, 13 },
2898 .vback_porch = { 29, 29, 29 },
2899 .vsync_len = { 3, 3, 3 },
2900 .flags = DISPLAY_FLAGS_DE_HIGH,
2903 static const struct panel_desc okaya_rs800480t_7x0gp = {
2904 .timings = &okaya_rs800480t_7x0gp_timing,
2917 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2920 static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = {
2923 .hsync_start = 480 + 5,
2924 .hsync_end = 480 + 5 + 30,
2925 .htotal = 480 + 5 + 30 + 10,
2927 .vsync_start = 272 + 8,
2928 .vsync_end = 272 + 8 + 5,
2929 .vtotal = 272 + 8 + 5 + 3,
2932 static const struct panel_desc olimex_lcd_olinuxino_43ts = {
2933 .modes = &olimex_lcd_olinuxino_43ts_mode,
2939 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2943 * 800x480 CVT. The panel appears to be quite accepting, at least as far as
2944 * pixel clocks, but this is the timing that was being used in the Adafruit
2945 * installation instructions.
2947 static const struct drm_display_mode ontat_yx700wv03_mode = {
2957 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2962 * https://www.adafruit.com/images/product-files/2406/c3163.pdf
2964 static const struct panel_desc ontat_yx700wv03 = {
2965 .modes = &ontat_yx700wv03_mode,
2972 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2975 static const struct drm_display_mode ortustech_com37h3m_mode = {
2978 .hsync_start = 480 + 40,
2979 .hsync_end = 480 + 40 + 10,
2980 .htotal = 480 + 40 + 10 + 40,
2982 .vsync_start = 640 + 4,
2983 .vsync_end = 640 + 4 + 2,
2984 .vtotal = 640 + 4 + 2 + 4,
2985 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2988 static const struct panel_desc ortustech_com37h3m = {
2989 .modes = &ortustech_com37h3m_mode,
2993 .width = 56, /* 56.16mm */
2994 .height = 75, /* 74.88mm */
2996 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2997 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2998 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3001 static const struct drm_display_mode ortustech_com43h4m85ulc_mode = {
3004 .hsync_start = 480 + 10,
3005 .hsync_end = 480 + 10 + 10,
3006 .htotal = 480 + 10 + 10 + 15,
3008 .vsync_start = 800 + 3,
3009 .vsync_end = 800 + 3 + 3,
3010 .vtotal = 800 + 3 + 3 + 3,
3013 static const struct panel_desc ortustech_com43h4m85ulc = {
3014 .modes = &ortustech_com43h4m85ulc_mode,
3021 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3022 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3023 .connector_type = DRM_MODE_CONNECTOR_DPI,
3026 static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = {
3029 .hsync_start = 800 + 210,
3030 .hsync_end = 800 + 210 + 30,
3031 .htotal = 800 + 210 + 30 + 16,
3033 .vsync_start = 480 + 22,
3034 .vsync_end = 480 + 22 + 13,
3035 .vtotal = 480 + 22 + 13 + 10,
3036 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3039 static const struct panel_desc osddisplays_osd070t1718_19ts = {
3040 .modes = &osddisplays_osd070t1718_19ts_mode,
3047 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3048 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3049 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3050 .connector_type = DRM_MODE_CONNECTOR_DPI,
3053 static const struct drm_display_mode pda_91_00156_a0_mode = {
3056 .hsync_start = 800 + 1,
3057 .hsync_end = 800 + 1 + 64,
3058 .htotal = 800 + 1 + 64 + 64,
3060 .vsync_start = 480 + 1,
3061 .vsync_end = 480 + 1 + 23,
3062 .vtotal = 480 + 1 + 23 + 22,
3065 static const struct panel_desc pda_91_00156_a0 = {
3066 .modes = &pda_91_00156_a0_mode,
3072 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3075 static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
3078 .hsync_start = 800 + 54,
3079 .hsync_end = 800 + 54 + 2,
3080 .htotal = 800 + 54 + 2 + 44,
3082 .vsync_start = 480 + 49,
3083 .vsync_end = 480 + 49 + 2,
3084 .vtotal = 480 + 49 + 2 + 22,
3087 static const struct panel_desc powertip_ph800480t013_idf02 = {
3088 .modes = &powertip_ph800480t013_idf02_mode,
3094 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3095 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3096 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3097 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3098 .connector_type = DRM_MODE_CONNECTOR_DPI,
3101 static const struct drm_display_mode qd43003c0_40_mode = {
3104 .hsync_start = 480 + 8,
3105 .hsync_end = 480 + 8 + 4,
3106 .htotal = 480 + 8 + 4 + 39,
3108 .vsync_start = 272 + 4,
3109 .vsync_end = 272 + 4 + 10,
3110 .vtotal = 272 + 4 + 10 + 2,
3113 static const struct panel_desc qd43003c0_40 = {
3114 .modes = &qd43003c0_40_mode,
3121 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3124 static const struct drm_display_mode qishenglong_gopher2b_lcd_modes[] = {
3128 .hsync_start = 480 + 77,
3129 .hsync_end = 480 + 77 + 41,
3130 .htotal = 480 + 77 + 41 + 2,
3132 .vsync_start = 272 + 16,
3133 .vsync_end = 272 + 16 + 10,
3134 .vtotal = 272 + 16 + 10 + 2,
3135 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3140 .hsync_start = 480 + 17,
3141 .hsync_end = 480 + 17 + 41,
3142 .htotal = 480 + 17 + 41 + 2,
3144 .vsync_start = 272 + 116,
3145 .vsync_end = 272 + 116 + 10,
3146 .vtotal = 272 + 116 + 10 + 2,
3147 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3151 static const struct panel_desc qishenglong_gopher2b_lcd = {
3152 .modes = qishenglong_gopher2b_lcd_modes,
3153 .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_modes),
3159 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3160 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3161 .connector_type = DRM_MODE_CONNECTOR_DPI,
3164 static const struct display_timing rocktech_rk070er9427_timing = {
3165 .pixelclock = { 26400000, 33300000, 46800000 },
3166 .hactive = { 800, 800, 800 },
3167 .hfront_porch = { 16, 210, 354 },
3168 .hback_porch = { 46, 46, 46 },
3169 .hsync_len = { 1, 1, 1 },
3170 .vactive = { 480, 480, 480 },
3171 .vfront_porch = { 7, 22, 147 },
3172 .vback_porch = { 23, 23, 23 },
3173 .vsync_len = { 1, 1, 1 },
3174 .flags = DISPLAY_FLAGS_DE_HIGH,
3177 static const struct panel_desc rocktech_rk070er9427 = {
3178 .timings = &rocktech_rk070er9427_timing,
3191 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3194 static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = {
3197 .hsync_start = 1280 + 48,
3198 .hsync_end = 1280 + 48 + 32,
3199 .htotal = 1280 + 48 + 32 + 80,
3201 .vsync_start = 800 + 2,
3202 .vsync_end = 800 + 2 + 5,
3203 .vtotal = 800 + 2 + 5 + 16,
3206 static const struct panel_desc rocktech_rk101ii01d_ct = {
3207 .modes = &rocktech_rk101ii01d_ct_mode,
3218 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3219 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3220 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3223 static const struct drm_display_mode samsung_ltn101nt05_mode = {
3226 .hsync_start = 1024 + 24,
3227 .hsync_end = 1024 + 24 + 136,
3228 .htotal = 1024 + 24 + 136 + 160,
3230 .vsync_start = 600 + 3,
3231 .vsync_end = 600 + 3 + 6,
3232 .vtotal = 600 + 3 + 6 + 61,
3235 static const struct panel_desc samsung_ltn101nt05 = {
3236 .modes = &samsung_ltn101nt05_mode,
3243 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3244 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3245 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3248 static const struct display_timing satoz_sat050at40h12r2_timing = {
3249 .pixelclock = {33300000, 33300000, 50000000},
3250 .hactive = {800, 800, 800},
3251 .hfront_porch = {16, 210, 354},
3252 .hback_porch = {46, 46, 46},
3253 .hsync_len = {1, 1, 40},
3254 .vactive = {480, 480, 480},
3255 .vfront_porch = {7, 22, 147},
3256 .vback_porch = {23, 23, 23},
3257 .vsync_len = {1, 1, 20},
3260 static const struct panel_desc satoz_sat050at40h12r2 = {
3261 .timings = &satoz_sat050at40h12r2_timing,
3268 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3269 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3272 static const struct drm_display_mode sharp_lq070y3dg3b_mode = {
3275 .hsync_start = 800 + 64,
3276 .hsync_end = 800 + 64 + 128,
3277 .htotal = 800 + 64 + 128 + 64,
3279 .vsync_start = 480 + 8,
3280 .vsync_end = 480 + 8 + 2,
3281 .vtotal = 480 + 8 + 2 + 35,
3282 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3285 static const struct panel_desc sharp_lq070y3dg3b = {
3286 .modes = &sharp_lq070y3dg3b_mode,
3290 .width = 152, /* 152.4mm */
3291 .height = 91, /* 91.4mm */
3293 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3294 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3295 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3298 static const struct drm_display_mode sharp_lq035q7db03_mode = {
3301 .hsync_start = 240 + 16,
3302 .hsync_end = 240 + 16 + 7,
3303 .htotal = 240 + 16 + 7 + 5,
3305 .vsync_start = 320 + 9,
3306 .vsync_end = 320 + 9 + 1,
3307 .vtotal = 320 + 9 + 1 + 7,
3310 static const struct panel_desc sharp_lq035q7db03 = {
3311 .modes = &sharp_lq035q7db03_mode,
3318 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3321 static const struct display_timing sharp_lq101k1ly04_timing = {
3322 .pixelclock = { 60000000, 65000000, 80000000 },
3323 .hactive = { 1280, 1280, 1280 },
3324 .hfront_porch = { 20, 20, 20 },
3325 .hback_porch = { 20, 20, 20 },
3326 .hsync_len = { 10, 10, 10 },
3327 .vactive = { 800, 800, 800 },
3328 .vfront_porch = { 4, 4, 4 },
3329 .vback_porch = { 4, 4, 4 },
3330 .vsync_len = { 4, 4, 4 },
3331 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3334 static const struct panel_desc sharp_lq101k1ly04 = {
3335 .timings = &sharp_lq101k1ly04_timing,
3342 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
3343 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3346 static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = {
3350 .hsync_start = 240 + 58,
3351 .hsync_end = 240 + 58 + 1,
3352 .htotal = 240 + 58 + 1 + 1,
3354 .vsync_start = 160 + 24,
3355 .vsync_end = 160 + 24 + 10,
3356 .vtotal = 160 + 24 + 10 + 6,
3357 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3362 .hsync_start = 240 + 8,
3363 .hsync_end = 240 + 8 + 1,
3364 .htotal = 240 + 8 + 1 + 1,
3366 .vsync_start = 160 + 24,
3367 .vsync_end = 160 + 24 + 10,
3368 .vtotal = 160 + 24 + 10 + 6,
3369 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3373 static const struct panel_desc sharp_ls020b1dd01d = {
3374 .modes = sharp_ls020b1dd01d_modes,
3375 .num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes),
3381 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
3382 .bus_flags = DRM_BUS_FLAG_DE_HIGH
3383 | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE
3384 | DRM_BUS_FLAG_SHARP_SIGNALS,
3387 static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
3390 .hsync_start = 800 + 1,
3391 .hsync_end = 800 + 1 + 64,
3392 .htotal = 800 + 1 + 64 + 64,
3394 .vsync_start = 480 + 1,
3395 .vsync_end = 480 + 1 + 23,
3396 .vtotal = 480 + 1 + 23 + 22,
3399 static const struct panel_desc shelly_sca07010_bfn_lnn = {
3400 .modes = &shelly_sca07010_bfn_lnn_mode,
3406 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3409 static const struct drm_display_mode starry_kr070pe2t_mode = {
3412 .hsync_start = 800 + 209,
3413 .hsync_end = 800 + 209 + 1,
3414 .htotal = 800 + 209 + 1 + 45,
3416 .vsync_start = 480 + 22,
3417 .vsync_end = 480 + 22 + 1,
3418 .vtotal = 480 + 22 + 1 + 22,
3421 static const struct panel_desc starry_kr070pe2t = {
3422 .modes = &starry_kr070pe2t_mode,
3429 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3430 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
3431 .connector_type = DRM_MODE_CONNECTOR_DPI,
3434 static const struct display_timing startek_kd070wvfpa_mode = {
3435 .pixelclock = { 25200000, 27200000, 30500000 },
3436 .hactive = { 800, 800, 800 },
3437 .hfront_porch = { 19, 44, 115 },
3438 .hback_porch = { 5, 16, 101 },
3439 .hsync_len = { 1, 2, 100 },
3440 .vactive = { 480, 480, 480 },
3441 .vfront_porch = { 5, 43, 67 },
3442 .vback_porch = { 5, 5, 67 },
3443 .vsync_len = { 1, 2, 66 },
3444 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3445 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3446 DISPLAY_FLAGS_SYNC_POSEDGE,
3449 static const struct panel_desc startek_kd070wvfpa = {
3450 .timings = &startek_kd070wvfpa_mode,
3462 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3463 .connector_type = DRM_MODE_CONNECTOR_DPI,
3464 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3465 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3466 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3469 static const struct display_timing tsd_tst043015cmhx_timing = {
3470 .pixelclock = { 5000000, 9000000, 12000000 },
3471 .hactive = { 480, 480, 480 },
3472 .hfront_porch = { 4, 5, 65 },
3473 .hback_porch = { 36, 40, 255 },
3474 .hsync_len = { 1, 1, 1 },
3475 .vactive = { 272, 272, 272 },
3476 .vfront_porch = { 2, 8, 97 },
3477 .vback_porch = { 3, 8, 31 },
3478 .vsync_len = { 1, 1, 1 },
3480 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3481 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3484 static const struct panel_desc tsd_tst043015cmhx = {
3485 .timings = &tsd_tst043015cmhx_timing,
3492 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3493 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3496 static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = {
3499 .hsync_start = 800 + 39,
3500 .hsync_end = 800 + 39 + 47,
3501 .htotal = 800 + 39 + 47 + 39,
3503 .vsync_start = 480 + 13,
3504 .vsync_end = 480 + 13 + 2,
3505 .vtotal = 480 + 13 + 2 + 29,
3508 static const struct panel_desc tfc_s9700rtwv43tr_01b = {
3509 .modes = &tfc_s9700rtwv43tr_01b_mode,
3516 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3517 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3520 static const struct display_timing tianma_tm070jdhg30_timing = {
3521 .pixelclock = { 62600000, 68200000, 78100000 },
3522 .hactive = { 1280, 1280, 1280 },
3523 .hfront_porch = { 15, 64, 159 },
3524 .hback_porch = { 5, 5, 5 },
3525 .hsync_len = { 1, 1, 256 },
3526 .vactive = { 800, 800, 800 },
3527 .vfront_porch = { 3, 40, 99 },
3528 .vback_porch = { 2, 2, 2 },
3529 .vsync_len = { 1, 1, 128 },
3530 .flags = DISPLAY_FLAGS_DE_HIGH,
3533 static const struct panel_desc tianma_tm070jdhg30 = {
3534 .timings = &tianma_tm070jdhg30_timing,
3541 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3542 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3545 static const struct panel_desc tianma_tm070jvhg33 = {
3546 .timings = &tianma_tm070jdhg30_timing,
3553 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3554 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3557 static const struct display_timing tianma_tm070rvhg71_timing = {
3558 .pixelclock = { 27700000, 29200000, 39600000 },
3559 .hactive = { 800, 800, 800 },
3560 .hfront_porch = { 12, 40, 212 },
3561 .hback_porch = { 88, 88, 88 },
3562 .hsync_len = { 1, 1, 40 },
3563 .vactive = { 480, 480, 480 },
3564 .vfront_porch = { 1, 13, 88 },
3565 .vback_porch = { 32, 32, 32 },
3566 .vsync_len = { 1, 1, 3 },
3567 .flags = DISPLAY_FLAGS_DE_HIGH,
3570 static const struct panel_desc tianma_tm070rvhg71 = {
3571 .timings = &tianma_tm070rvhg71_timing,
3578 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3579 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3582 static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = {
3586 .hsync_start = 320 + 50,
3587 .hsync_end = 320 + 50 + 6,
3588 .htotal = 320 + 50 + 6 + 38,
3590 .vsync_start = 240 + 3,
3591 .vsync_end = 240 + 3 + 1,
3592 .vtotal = 240 + 3 + 1 + 17,
3593 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3597 static const struct panel_desc ti_nspire_cx_lcd_panel = {
3598 .modes = ti_nspire_cx_lcd_mode,
3605 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3606 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
3609 static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = {
3613 .hsync_start = 320 + 6,
3614 .hsync_end = 320 + 6 + 6,
3615 .htotal = 320 + 6 + 6 + 6,
3617 .vsync_start = 240 + 0,
3618 .vsync_end = 240 + 0 + 1,
3619 .vtotal = 240 + 0 + 1 + 0,
3620 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3624 static const struct panel_desc ti_nspire_classic_lcd_panel = {
3625 .modes = ti_nspire_classic_lcd_mode,
3627 /* The grayscale panel has 8 bit for the color .. Y (black) */
3633 /* This is the grayscale bus format */
3634 .bus_format = MEDIA_BUS_FMT_Y8_1X8,
3635 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3638 static const struct drm_display_mode toshiba_lt089ac29000_mode = {
3641 .hsync_start = 1280 + 192,
3642 .hsync_end = 1280 + 192 + 128,
3643 .htotal = 1280 + 192 + 128 + 64,
3645 .vsync_start = 768 + 20,
3646 .vsync_end = 768 + 20 + 7,
3647 .vtotal = 768 + 20 + 7 + 3,
3650 static const struct panel_desc toshiba_lt089ac29000 = {
3651 .modes = &toshiba_lt089ac29000_mode,
3657 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
3658 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3659 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3662 static const struct drm_display_mode tpk_f07a_0102_mode = {
3665 .hsync_start = 800 + 40,
3666 .hsync_end = 800 + 40 + 128,
3667 .htotal = 800 + 40 + 128 + 88,
3669 .vsync_start = 480 + 10,
3670 .vsync_end = 480 + 10 + 2,
3671 .vtotal = 480 + 10 + 2 + 33,
3674 static const struct panel_desc tpk_f07a_0102 = {
3675 .modes = &tpk_f07a_0102_mode,
3681 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3684 static const struct drm_display_mode tpk_f10a_0102_mode = {
3687 .hsync_start = 1024 + 176,
3688 .hsync_end = 1024 + 176 + 5,
3689 .htotal = 1024 + 176 + 5 + 88,
3691 .vsync_start = 600 + 20,
3692 .vsync_end = 600 + 20 + 5,
3693 .vtotal = 600 + 20 + 5 + 25,
3696 static const struct panel_desc tpk_f10a_0102 = {
3697 .modes = &tpk_f10a_0102_mode,
3705 static const struct display_timing urt_umsh_8596md_timing = {
3706 .pixelclock = { 33260000, 33260000, 33260000 },
3707 .hactive = { 800, 800, 800 },
3708 .hfront_porch = { 41, 41, 41 },
3709 .hback_porch = { 216 - 128, 216 - 128, 216 - 128 },
3710 .hsync_len = { 71, 128, 128 },
3711 .vactive = { 480, 480, 480 },
3712 .vfront_porch = { 10, 10, 10 },
3713 .vback_porch = { 35 - 2, 35 - 2, 35 - 2 },
3714 .vsync_len = { 2, 2, 2 },
3715 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
3716 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
3719 static const struct panel_desc urt_umsh_8596md_lvds = {
3720 .timings = &urt_umsh_8596md_timing,
3727 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3728 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3731 static const struct panel_desc urt_umsh_8596md_parallel = {
3732 .timings = &urt_umsh_8596md_timing,
3739 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3742 static const struct drm_display_mode vivax_tpc9150_panel_mode = {
3745 .hsync_start = 1024 + 160,
3746 .hsync_end = 1024 + 160 + 100,
3747 .htotal = 1024 + 160 + 100 + 60,
3749 .vsync_start = 600 + 12,
3750 .vsync_end = 600 + 12 + 10,
3751 .vtotal = 600 + 12 + 10 + 13,
3754 static const struct panel_desc vivax_tpc9150_panel = {
3755 .modes = &vivax_tpc9150_panel_mode,
3762 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3763 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3764 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3767 static const struct drm_display_mode vl050_8048nt_c01_mode = {
3770 .hsync_start = 800 + 210,
3771 .hsync_end = 800 + 210 + 20,
3772 .htotal = 800 + 210 + 20 + 46,
3774 .vsync_start = 480 + 22,
3775 .vsync_end = 480 + 22 + 10,
3776 .vtotal = 480 + 22 + 10 + 23,
3777 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
3780 static const struct panel_desc vl050_8048nt_c01 = {
3781 .modes = &vl050_8048nt_c01_mode,
3788 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3789 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3792 static const struct drm_display_mode winstar_wf35ltiacd_mode = {
3795 .hsync_start = 320 + 20,
3796 .hsync_end = 320 + 20 + 30,
3797 .htotal = 320 + 20 + 30 + 38,
3799 .vsync_start = 240 + 4,
3800 .vsync_end = 240 + 4 + 3,
3801 .vtotal = 240 + 4 + 3 + 15,
3802 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3805 static const struct panel_desc winstar_wf35ltiacd = {
3806 .modes = &winstar_wf35ltiacd_mode,
3813 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3816 static const struct drm_display_mode yes_optoelectronics_ytc700tlag_05_201c_mode = {
3819 .hsync_start = 1024 + 100,
3820 .hsync_end = 1024 + 100 + 100,
3821 .htotal = 1024 + 100 + 100 + 120,
3823 .vsync_start = 600 + 10,
3824 .vsync_end = 600 + 10 + 10,
3825 .vtotal = 600 + 10 + 10 + 15,
3826 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3829 static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = {
3830 .modes = &yes_optoelectronics_ytc700tlag_05_201c_mode,
3837 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3838 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3839 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3842 static const struct drm_display_mode arm_rtsm_mode[] = {
3846 .hsync_start = 1024 + 24,
3847 .hsync_end = 1024 + 24 + 136,
3848 .htotal = 1024 + 24 + 136 + 160,
3850 .vsync_start = 768 + 3,
3851 .vsync_end = 768 + 3 + 6,
3852 .vtotal = 768 + 3 + 6 + 29,
3853 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3857 static const struct panel_desc arm_rtsm = {
3858 .modes = arm_rtsm_mode,
3865 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3868 static const struct of_device_id platform_of_match[] = {
3870 .compatible = "ampire,am-1280800n3tzqw-t00h",
3871 .data = &ire_am_1280800n3tzqw_t00h,
3873 .compatible = "ampire,am-480272h3tmqw-t01h",
3874 .data = &ire_am_480272h3tmqw_t01h,
3876 .compatible = "ampire,am800480r3tmqwa1h",
3877 .data = &ire_am800480r3tmqwa1h,
3879 .compatible = "ampire,am800600p5tmqw-tb8h",
3880 .data = &ire_am800600p5tmqwtb8h,
3882 .compatible = "arm,rtsm-display",
3885 .compatible = "armadeus,st0700-adapt",
3886 .data = &armadeus_st0700_adapt,
3888 .compatible = "auo,b101aw03",
3889 .data = &auo_b101aw03,
3891 .compatible = "auo,b101xtn01",
3892 .data = &auo_b101xtn01,
3894 .compatible = "auo,g070vvn01",
3895 .data = &auo_g070vvn01,
3897 .compatible = "auo,g101evn010",
3898 .data = &auo_g101evn010,
3900 .compatible = "auo,g104sn02",
3901 .data = &auo_g104sn02,
3903 .compatible = "auo,g121ean01",
3904 .data = &auo_g121ean01,
3906 .compatible = "auo,g133han01",
3907 .data = &auo_g133han01,
3909 .compatible = "auo,g156xtn01",
3910 .data = &auo_g156xtn01,
3912 .compatible = "auo,g185han01",
3913 .data = &auo_g185han01,
3915 .compatible = "auo,g190ean01",
3916 .data = &auo_g190ean01,
3918 .compatible = "auo,p320hvn03",
3919 .data = &auo_p320hvn03,
3921 .compatible = "auo,t215hvn01",
3922 .data = &auo_t215hvn01,
3924 .compatible = "avic,tm070ddh03",
3925 .data = &avic_tm070ddh03,
3927 .compatible = "bananapi,s070wv20-ct16",
3928 .data = &bananapi_s070wv20_ct16,
3930 .compatible = "boe,hv070wsa-100",
3931 .data = &boe_hv070wsa
3933 .compatible = "cdtech,s043wq26h-ct7",
3934 .data = &cdtech_s043wq26h_ct7,
3936 .compatible = "cdtech,s070pws19hp-fc21",
3937 .data = &cdtech_s070pws19hp_fc21,
3939 .compatible = "cdtech,s070swv29hg-dc44",
3940 .data = &cdtech_s070swv29hg_dc44,
3942 .compatible = "cdtech,s070wv95-ct16",
3943 .data = &cdtech_s070wv95_ct16,
3945 .compatible = "chefree,ch101olhlwh-002",
3946 .data = &chefree_ch101olhlwh_002,
3948 .compatible = "chunghwa,claa070wp03xg",
3949 .data = &chunghwa_claa070wp03xg,
3951 .compatible = "chunghwa,claa101wa01a",
3952 .data = &chunghwa_claa101wa01a
3954 .compatible = "chunghwa,claa101wb01",
3955 .data = &chunghwa_claa101wb01
3957 .compatible = "dataimage,fg040346dsswbg04",
3958 .data = &dataimage_fg040346dsswbg04,
3960 .compatible = "dataimage,fg1001l0dsswmg01",
3961 .data = &dataimage_fg1001l0dsswmg01,
3963 .compatible = "dataimage,scf0700c48ggu18",
3964 .data = &dataimage_scf0700c48ggu18,
3966 .compatible = "dlc,dlc0700yzg-1",
3967 .data = &dlc_dlc0700yzg_1,
3969 .compatible = "dlc,dlc1010gig",
3970 .data = &dlc_dlc1010gig,
3972 .compatible = "edt,et035012dm6",
3973 .data = &edt_et035012dm6,
3975 .compatible = "edt,etm0350g0dh6",
3976 .data = &edt_etm0350g0dh6,
3978 .compatible = "edt,etm043080dh6gp",
3979 .data = &edt_etm043080dh6gp,
3981 .compatible = "edt,etm0430g0dh6",
3982 .data = &edt_etm0430g0dh6,
3984 .compatible = "edt,et057090dhu",
3985 .data = &edt_et057090dhu,
3987 .compatible = "edt,et070080dh6",
3988 .data = &edt_etm0700g0dh6,
3990 .compatible = "edt,etm0700g0dh6",
3991 .data = &edt_etm0700g0dh6,
3993 .compatible = "edt,etm0700g0bdh6",
3994 .data = &edt_etm0700g0bdh6,
3996 .compatible = "edt,etm0700g0edh6",
3997 .data = &edt_etm0700g0bdh6,
3999 .compatible = "edt,etml0700y5dha",
4000 .data = &edt_etml0700y5dha,
4002 .compatible = "edt,etmv570g2dhu",
4003 .data = &edt_etmv570g2dhu,
4005 .compatible = "eink,vb3300-kca",
4006 .data = &eink_vb3300_kca,
4008 .compatible = "evervision,vgg804821",
4009 .data = &evervision_vgg804821,
4011 .compatible = "foxlink,fl500wvr00-a0t",
4012 .data = &foxlink_fl500wvr00_a0t,
4014 .compatible = "frida,frd350h54004",
4015 .data = &frida_frd350h54004,
4017 .compatible = "friendlyarm,hd702e",
4018 .data = &friendlyarm_hd702e,
4020 .compatible = "giantplus,gpg482739qs5",
4021 .data = &giantplus_gpg482739qs5
4023 .compatible = "giantplus,gpm940b0",
4024 .data = &giantplus_gpm940b0,
4026 .compatible = "hannstar,hsd070pww1",
4027 .data = &hannstar_hsd070pww1,
4029 .compatible = "hannstar,hsd100pxn1",
4030 .data = &hannstar_hsd100pxn1,
4032 .compatible = "hannstar,hsd101pww2",
4033 .data = &hannstar_hsd101pww2,
4035 .compatible = "hit,tx23d38vm0caa",
4036 .data = &hitachi_tx23d38vm0caa
4038 .compatible = "innolux,at043tn24",
4039 .data = &innolux_at043tn24,
4041 .compatible = "innolux,at070tn92",
4042 .data = &innolux_at070tn92,
4044 .compatible = "innolux,g070y2-l01",
4045 .data = &innolux_g070y2_l01,
4047 .compatible = "innolux,g070y2-t02",
4048 .data = &innolux_g070y2_t02,
4050 .compatible = "innolux,g101ice-l01",
4051 .data = &innolux_g101ice_l01
4053 .compatible = "innolux,g121i1-l01",
4054 .data = &innolux_g121i1_l01
4056 .compatible = "innolux,g121x1-l03",
4057 .data = &innolux_g121x1_l03,
4059 .compatible = "innolux,n156bge-l21",
4060 .data = &innolux_n156bge_l21,
4062 .compatible = "innolux,zj070na-01p",
4063 .data = &innolux_zj070na_01p,
4065 .compatible = "koe,tx14d24vm1bpa",
4066 .data = &koe_tx14d24vm1bpa,
4068 .compatible = "koe,tx26d202vm0bwa",
4069 .data = &koe_tx26d202vm0bwa,
4071 .compatible = "koe,tx31d200vm0baa",
4072 .data = &koe_tx31d200vm0baa,
4074 .compatible = "kyo,tcg121xglp",
4075 .data = &kyo_tcg121xglp,
4077 .compatible = "lemaker,bl035-rgb-002",
4078 .data = &lemaker_bl035_rgb_002,
4080 .compatible = "lg,lb070wv8",
4081 .data = &lg_lb070wv8,
4083 .compatible = "logicpd,type28",
4084 .data = &logicpd_type_28,
4086 .compatible = "logictechno,lt161010-2nhc",
4087 .data = &logictechno_lt161010_2nh,
4089 .compatible = "logictechno,lt161010-2nhr",
4090 .data = &logictechno_lt161010_2nh,
4092 .compatible = "logictechno,lt170410-2whc",
4093 .data = &logictechno_lt170410_2whc,
4095 .compatible = "logictechno,lttd800480070-l2rt",
4096 .data = &logictechno_lttd800480070_l2rt,
4098 .compatible = "logictechno,lttd800480070-l6wh-rt",
4099 .data = &logictechno_lttd800480070_l6wh_rt,
4101 .compatible = "mitsubishi,aa070mc01-ca1",
4102 .data = &mitsubishi_aa070mc01,
4104 .compatible = "multi-inno,mi0700s4t-6",
4105 .data = &multi_inno_mi0700s4t_6,
4107 .compatible = "multi-inno,mi1010ait-1cp",
4108 .data = &multi_inno_mi1010ait_1cp,
4110 .compatible = "nec,nl12880bc20-05",
4111 .data = &nec_nl12880bc20_05,
4113 .compatible = "nec,nl4827hc19-05b",
4114 .data = &nec_nl4827hc19_05b,
4116 .compatible = "netron-dy,e231732",
4117 .data = &netron_dy_e231732,
4119 .compatible = "newhaven,nhd-4.3-480272ef-atxl",
4120 .data = &newhaven_nhd_43_480272ef_atxl,
4122 .compatible = "nlt,nl192108ac18-02d",
4123 .data = &nlt_nl192108ac18_02d,
4125 .compatible = "nvd,9128",
4128 .compatible = "okaya,rs800480t-7x0gp",
4129 .data = &okaya_rs800480t_7x0gp,
4131 .compatible = "olimex,lcd-olinuxino-43-ts",
4132 .data = &olimex_lcd_olinuxino_43ts,
4134 .compatible = "ontat,yx700wv03",
4135 .data = &ontat_yx700wv03,
4137 .compatible = "ortustech,com37h3m05dtc",
4138 .data = &ortustech_com37h3m,
4140 .compatible = "ortustech,com37h3m99dtc",
4141 .data = &ortustech_com37h3m,
4143 .compatible = "ortustech,com43h4m85ulc",
4144 .data = &ortustech_com43h4m85ulc,
4146 .compatible = "osddisplays,osd070t1718-19ts",
4147 .data = &osddisplays_osd070t1718_19ts,
4149 .compatible = "pda,91-00156-a0",
4150 .data = &pda_91_00156_a0,
4152 .compatible = "powertip,ph800480t013-idf02",
4153 .data = &powertip_ph800480t013_idf02,
4155 .compatible = "qiaodian,qd43003c0-40",
4156 .data = &qd43003c0_40,
4158 .compatible = "qishenglong,gopher2b-lcd",
4159 .data = &qishenglong_gopher2b_lcd,
4161 .compatible = "rocktech,rk070er9427",
4162 .data = &rocktech_rk070er9427,
4164 .compatible = "rocktech,rk101ii01d-ct",
4165 .data = &rocktech_rk101ii01d_ct,
4167 .compatible = "samsung,ltn101nt05",
4168 .data = &samsung_ltn101nt05,
4170 .compatible = "satoz,sat050at40h12r2",
4171 .data = &satoz_sat050at40h12r2,
4173 .compatible = "sharp,lq035q7db03",
4174 .data = &sharp_lq035q7db03,
4176 .compatible = "sharp,lq070y3dg3b",
4177 .data = &sharp_lq070y3dg3b,
4179 .compatible = "sharp,lq101k1ly04",
4180 .data = &sharp_lq101k1ly04,
4182 .compatible = "sharp,ls020b1dd01d",
4183 .data = &sharp_ls020b1dd01d,
4185 .compatible = "shelly,sca07010-bfn-lnn",
4186 .data = &shelly_sca07010_bfn_lnn,
4188 .compatible = "starry,kr070pe2t",
4189 .data = &starry_kr070pe2t,
4191 .compatible = "startek,kd070wvfpa",
4192 .data = &startek_kd070wvfpa,
4194 .compatible = "team-source-display,tst043015cmhx",
4195 .data = &tsd_tst043015cmhx,
4197 .compatible = "tfc,s9700rtwv43tr-01b",
4198 .data = &tfc_s9700rtwv43tr_01b,
4200 .compatible = "tianma,tm070jdhg30",
4201 .data = &tianma_tm070jdhg30,
4203 .compatible = "tianma,tm070jvhg33",
4204 .data = &tianma_tm070jvhg33,
4206 .compatible = "tianma,tm070rvhg71",
4207 .data = &tianma_tm070rvhg71,
4209 .compatible = "ti,nspire-cx-lcd-panel",
4210 .data = &ti_nspire_cx_lcd_panel,
4212 .compatible = "ti,nspire-classic-lcd-panel",
4213 .data = &ti_nspire_classic_lcd_panel,
4215 .compatible = "toshiba,lt089ac29000",
4216 .data = &toshiba_lt089ac29000,
4218 .compatible = "tpk,f07a-0102",
4219 .data = &tpk_f07a_0102,
4221 .compatible = "tpk,f10a-0102",
4222 .data = &tpk_f10a_0102,
4224 .compatible = "urt,umsh-8596md-t",
4225 .data = &urt_umsh_8596md_parallel,
4227 .compatible = "urt,umsh-8596md-1t",
4228 .data = &urt_umsh_8596md_parallel,
4230 .compatible = "urt,umsh-8596md-7t",
4231 .data = &urt_umsh_8596md_parallel,
4233 .compatible = "urt,umsh-8596md-11t",
4234 .data = &urt_umsh_8596md_lvds,
4236 .compatible = "urt,umsh-8596md-19t",
4237 .data = &urt_umsh_8596md_lvds,
4239 .compatible = "urt,umsh-8596md-20t",
4240 .data = &urt_umsh_8596md_parallel,
4242 .compatible = "vivax,tpc9150-panel",
4243 .data = &vivax_tpc9150_panel,
4245 .compatible = "vxt,vl050-8048nt-c01",
4246 .data = &vl050_8048nt_c01,
4248 .compatible = "winstar,wf35ltiacd",
4249 .data = &winstar_wf35ltiacd,
4251 .compatible = "yes-optoelectronics,ytc700tlag-05-201c",
4252 .data = &yes_optoelectronics_ytc700tlag_05_201c,
4254 /* Must be the last entry */
4255 .compatible = "panel-dpi",
4261 MODULE_DEVICE_TABLE(of, platform_of_match);
4263 static int panel_simple_platform_probe(struct platform_device *pdev)
4265 const struct of_device_id *id;
4267 id = of_match_node(platform_of_match, pdev->dev.of_node);
4271 return panel_simple_probe(&pdev->dev, id->data);
4274 static int panel_simple_platform_remove(struct platform_device *pdev)
4276 return panel_simple_remove(&pdev->dev);
4279 static void panel_simple_platform_shutdown(struct platform_device *pdev)
4281 panel_simple_shutdown(&pdev->dev);
4284 static const struct dev_pm_ops panel_simple_pm_ops = {
4285 SET_RUNTIME_PM_OPS(panel_simple_suspend, panel_simple_resume, NULL)
4286 SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
4287 pm_runtime_force_resume)
4290 static struct platform_driver panel_simple_platform_driver = {
4292 .name = "panel-simple",
4293 .of_match_table = platform_of_match,
4294 .pm = &panel_simple_pm_ops,
4296 .probe = panel_simple_platform_probe,
4297 .remove = panel_simple_platform_remove,
4298 .shutdown = panel_simple_platform_shutdown,
4301 struct panel_desc_dsi {
4302 struct panel_desc desc;
4304 unsigned long flags;
4305 enum mipi_dsi_pixel_format format;
4309 static const struct drm_display_mode auo_b080uan01_mode = {
4312 .hsync_start = 1200 + 62,
4313 .hsync_end = 1200 + 62 + 4,
4314 .htotal = 1200 + 62 + 4 + 62,
4316 .vsync_start = 1920 + 9,
4317 .vsync_end = 1920 + 9 + 2,
4318 .vtotal = 1920 + 9 + 2 + 8,
4321 static const struct panel_desc_dsi auo_b080uan01 = {
4323 .modes = &auo_b080uan01_mode,
4330 .connector_type = DRM_MODE_CONNECTOR_DSI,
4332 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4333 .format = MIPI_DSI_FMT_RGB888,
4337 static const struct drm_display_mode boe_tv080wum_nl0_mode = {
4340 .hsync_start = 1200 + 120,
4341 .hsync_end = 1200 + 120 + 20,
4342 .htotal = 1200 + 120 + 20 + 21,
4344 .vsync_start = 1920 + 21,
4345 .vsync_end = 1920 + 21 + 3,
4346 .vtotal = 1920 + 21 + 3 + 18,
4347 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4350 static const struct panel_desc_dsi boe_tv080wum_nl0 = {
4352 .modes = &boe_tv080wum_nl0_mode,
4358 .connector_type = DRM_MODE_CONNECTOR_DSI,
4360 .flags = MIPI_DSI_MODE_VIDEO |
4361 MIPI_DSI_MODE_VIDEO_BURST |
4362 MIPI_DSI_MODE_VIDEO_SYNC_PULSE,
4363 .format = MIPI_DSI_FMT_RGB888,
4367 static const struct drm_display_mode lg_ld070wx3_sl01_mode = {
4370 .hsync_start = 800 + 32,
4371 .hsync_end = 800 + 32 + 1,
4372 .htotal = 800 + 32 + 1 + 57,
4374 .vsync_start = 1280 + 28,
4375 .vsync_end = 1280 + 28 + 1,
4376 .vtotal = 1280 + 28 + 1 + 14,
4379 static const struct panel_desc_dsi lg_ld070wx3_sl01 = {
4381 .modes = &lg_ld070wx3_sl01_mode,
4388 .connector_type = DRM_MODE_CONNECTOR_DSI,
4390 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4391 .format = MIPI_DSI_FMT_RGB888,
4395 static const struct drm_display_mode lg_lh500wx1_sd03_mode = {
4398 .hsync_start = 720 + 12,
4399 .hsync_end = 720 + 12 + 4,
4400 .htotal = 720 + 12 + 4 + 112,
4402 .vsync_start = 1280 + 8,
4403 .vsync_end = 1280 + 8 + 4,
4404 .vtotal = 1280 + 8 + 4 + 12,
4407 static const struct panel_desc_dsi lg_lh500wx1_sd03 = {
4409 .modes = &lg_lh500wx1_sd03_mode,
4416 .connector_type = DRM_MODE_CONNECTOR_DSI,
4418 .flags = MIPI_DSI_MODE_VIDEO,
4419 .format = MIPI_DSI_FMT_RGB888,
4423 static const struct drm_display_mode panasonic_vvx10f004b00_mode = {
4426 .hsync_start = 1920 + 154,
4427 .hsync_end = 1920 + 154 + 16,
4428 .htotal = 1920 + 154 + 16 + 32,
4430 .vsync_start = 1200 + 17,
4431 .vsync_end = 1200 + 17 + 2,
4432 .vtotal = 1200 + 17 + 2 + 16,
4435 static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
4437 .modes = &panasonic_vvx10f004b00_mode,
4444 .connector_type = DRM_MODE_CONNECTOR_DSI,
4446 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
4447 MIPI_DSI_CLOCK_NON_CONTINUOUS,
4448 .format = MIPI_DSI_FMT_RGB888,
4452 static const struct drm_display_mode lg_acx467akm_7_mode = {
4455 .hsync_start = 1080 + 2,
4456 .hsync_end = 1080 + 2 + 2,
4457 .htotal = 1080 + 2 + 2 + 2,
4459 .vsync_start = 1920 + 2,
4460 .vsync_end = 1920 + 2 + 2,
4461 .vtotal = 1920 + 2 + 2 + 2,
4464 static const struct panel_desc_dsi lg_acx467akm_7 = {
4466 .modes = &lg_acx467akm_7_mode,
4473 .connector_type = DRM_MODE_CONNECTOR_DSI,
4476 .format = MIPI_DSI_FMT_RGB888,
4480 static const struct drm_display_mode osd101t2045_53ts_mode = {
4483 .hsync_start = 1920 + 112,
4484 .hsync_end = 1920 + 112 + 16,
4485 .htotal = 1920 + 112 + 16 + 32,
4487 .vsync_start = 1200 + 16,
4488 .vsync_end = 1200 + 16 + 2,
4489 .vtotal = 1200 + 16 + 2 + 16,
4490 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4493 static const struct panel_desc_dsi osd101t2045_53ts = {
4495 .modes = &osd101t2045_53ts_mode,
4502 .connector_type = DRM_MODE_CONNECTOR_DSI,
4504 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
4505 MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
4506 MIPI_DSI_MODE_NO_EOT_PACKET,
4507 .format = MIPI_DSI_FMT_RGB888,
4511 static const struct of_device_id dsi_of_match[] = {
4513 .compatible = "auo,b080uan01",
4514 .data = &auo_b080uan01
4516 .compatible = "boe,tv080wum-nl0",
4517 .data = &boe_tv080wum_nl0
4519 .compatible = "lg,ld070wx3-sl01",
4520 .data = &lg_ld070wx3_sl01
4522 .compatible = "lg,lh500wx1-sd03",
4523 .data = &lg_lh500wx1_sd03
4525 .compatible = "panasonic,vvx10f004b00",
4526 .data = &panasonic_vvx10f004b00
4528 .compatible = "lg,acx467akm-7",
4529 .data = &lg_acx467akm_7
4531 .compatible = "osddisplays,osd101t2045-53ts",
4532 .data = &osd101t2045_53ts
4537 MODULE_DEVICE_TABLE(of, dsi_of_match);
4539 static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
4541 const struct panel_desc_dsi *desc;
4542 const struct of_device_id *id;
4545 id = of_match_node(dsi_of_match, dsi->dev.of_node);
4551 err = panel_simple_probe(&dsi->dev, &desc->desc);
4555 dsi->mode_flags = desc->flags;
4556 dsi->format = desc->format;
4557 dsi->lanes = desc->lanes;
4559 err = mipi_dsi_attach(dsi);
4561 struct panel_simple *panel = mipi_dsi_get_drvdata(dsi);
4563 drm_panel_remove(&panel->base);
4569 static int panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
4573 err = mipi_dsi_detach(dsi);
4575 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err);
4577 return panel_simple_remove(&dsi->dev);
4580 static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi)
4582 panel_simple_shutdown(&dsi->dev);
4585 static struct mipi_dsi_driver panel_simple_dsi_driver = {
4587 .name = "panel-simple-dsi",
4588 .of_match_table = dsi_of_match,
4589 .pm = &panel_simple_pm_ops,
4591 .probe = panel_simple_dsi_probe,
4592 .remove = panel_simple_dsi_remove,
4593 .shutdown = panel_simple_dsi_shutdown,
4596 static int __init panel_simple_init(void)
4600 err = platform_driver_register(&panel_simple_platform_driver);
4604 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
4605 err = mipi_dsi_driver_register(&panel_simple_dsi_driver);
4607 goto err_did_platform_register;
4612 err_did_platform_register:
4613 platform_driver_unregister(&panel_simple_platform_driver);
4617 module_init(panel_simple_init);
4619 static void __exit panel_simple_exit(void)
4621 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI))
4622 mipi_dsi_driver_unregister(&panel_simple_dsi_driver);
4624 platform_driver_unregister(&panel_simple_platform_driver);
4626 module_exit(panel_simple_exit);
4629 MODULE_DESCRIPTION("DRM Driver for Simple Panels");
4630 MODULE_LICENSE("GPL and additional rights");