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>
43 #include <drm/drm_of.h>
46 * struct panel_desc - Describes a simple panel.
50 * @modes: Pointer to array of fixed modes appropriate for this panel.
52 * If only one mode then this can just be the address of the mode.
53 * NOTE: cannot be used with "timings" and also if this is specified
54 * then you cannot override the mode in the device tree.
56 const struct drm_display_mode *modes;
58 /** @num_modes: Number of elements in modes array. */
59 unsigned int num_modes;
62 * @timings: Pointer to array of display timings
64 * NOTE: cannot be used with "modes" and also these will be used to
65 * validate a device tree override if one is present.
67 const struct display_timing *timings;
69 /** @num_timings: Number of elements in timings array. */
70 unsigned int num_timings;
72 /** @bpc: Bits per color. */
75 /** @size: Structure containing the physical size of this panel. */
78 * @size.width: Width (in mm) of the active display area.
83 * @size.height: Height (in mm) of the active display area.
88 /** @delay: Structure containing various delay values for this panel. */
91 * @delay.prepare: Time for the panel to become ready.
93 * The time (in milliseconds) that it takes for the panel to
94 * become ready and start receiving video data
99 * @delay.enable: Time for the panel to display a valid frame.
101 * The time (in milliseconds) that it takes for the panel to
102 * display the first valid frame after starting to receive
108 * @delay.disable: Time for the panel to turn the display off.
110 * The time (in milliseconds) that it takes for the panel to
111 * turn the display off (no content is visible).
113 unsigned int disable;
116 * @delay.unprepare: Time to power down completely.
118 * The time (in milliseconds) that it takes for the panel
119 * to power itself down completely.
121 * This time is used to prevent a future "prepare" from
122 * starting until at least this many milliseconds has passed.
123 * If at prepare time less time has passed since unprepare
124 * finished, the driver waits for the remaining time.
126 unsigned int unprepare;
129 /** @bus_format: See MEDIA_BUS_FMT_... defines. */
132 /** @bus_flags: See DRM_BUS_FLAG_... defines. */
135 /** @connector_type: LVDS, eDP, DSI, DPI, etc. */
139 struct panel_simple {
140 struct drm_panel base;
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_boottime();
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_boottime();
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);
357 static int panel_simple_prepare(struct drm_panel *panel)
359 struct panel_simple *p = to_panel_simple(panel);
362 /* Preparing when already prepared is a no-op */
366 ret = pm_runtime_get_sync(panel->dev);
368 pm_runtime_put_autosuspend(panel->dev);
377 static int panel_simple_enable(struct drm_panel *panel)
379 struct panel_simple *p = to_panel_simple(panel);
384 if (p->desc->delay.enable)
385 msleep(p->desc->delay.enable);
392 static int panel_simple_get_modes(struct drm_panel *panel,
393 struct drm_connector *connector)
395 struct panel_simple *p = to_panel_simple(panel);
398 /* probe EDID if a DDC bus is available */
400 pm_runtime_get_sync(panel->dev);
403 p->edid = drm_get_edid(connector, p->ddc);
406 num += drm_add_edid_modes(connector, p->edid);
408 pm_runtime_mark_last_busy(panel->dev);
409 pm_runtime_put_autosuspend(panel->dev);
412 /* add hard-coded panel modes */
413 num += panel_simple_get_non_edid_modes(p, connector);
416 * TODO: Remove once all drm drivers call
417 * drm_connector_set_orientation_from_panel()
419 drm_connector_set_panel_orientation(connector, p->orientation);
424 static int panel_simple_get_timings(struct drm_panel *panel,
425 unsigned int num_timings,
426 struct display_timing *timings)
428 struct panel_simple *p = to_panel_simple(panel);
431 if (p->desc->num_timings < num_timings)
432 num_timings = p->desc->num_timings;
435 for (i = 0; i < num_timings; i++)
436 timings[i] = p->desc->timings[i];
438 return p->desc->num_timings;
441 static enum drm_panel_orientation panel_simple_get_orientation(struct drm_panel *panel)
443 struct panel_simple *p = to_panel_simple(panel);
445 return p->orientation;
448 static const struct drm_panel_funcs panel_simple_funcs = {
449 .disable = panel_simple_disable,
450 .unprepare = panel_simple_unprepare,
451 .prepare = panel_simple_prepare,
452 .enable = panel_simple_enable,
453 .get_modes = panel_simple_get_modes,
454 .get_orientation = panel_simple_get_orientation,
455 .get_timings = panel_simple_get_timings,
458 static struct panel_desc panel_dpi;
460 static int panel_dpi_probe(struct device *dev,
461 struct panel_simple *panel)
463 struct display_timing *timing;
464 const struct device_node *np;
465 struct panel_desc *desc;
466 unsigned int bus_flags;
471 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL);
475 timing = devm_kzalloc(dev, sizeof(*timing), GFP_KERNEL);
479 ret = of_get_display_timing(np, "panel-timing", timing);
481 dev_err(dev, "%pOF: no panel-timing node found for \"panel-dpi\" binding\n",
486 desc->timings = timing;
487 desc->num_timings = 1;
489 of_property_read_u32(np, "width-mm", &desc->size.width);
490 of_property_read_u32(np, "height-mm", &desc->size.height);
492 /* Extract bus_flags from display_timing */
494 vm.flags = timing->flags;
495 drm_bus_flags_from_videomode(&vm, &bus_flags);
496 desc->bus_flags = bus_flags;
498 /* We do not know the connector for the DT node, so guess it */
499 desc->connector_type = DRM_MODE_CONNECTOR_DPI;
506 #define PANEL_SIMPLE_BOUNDS_CHECK(to_check, bounds, field) \
507 (to_check->field.typ >= bounds->field.min && \
508 to_check->field.typ <= bounds->field.max)
509 static void panel_simple_parse_panel_timing_node(struct device *dev,
510 struct panel_simple *panel,
511 const struct display_timing *ot)
513 const struct panel_desc *desc = panel->desc;
517 if (WARN_ON(desc->num_modes)) {
518 dev_err(dev, "Reject override mode: panel has a fixed mode\n");
521 if (WARN_ON(!desc->num_timings)) {
522 dev_err(dev, "Reject override mode: no timings specified\n");
526 for (i = 0; i < panel->desc->num_timings; i++) {
527 const struct display_timing *dt = &panel->desc->timings[i];
529 if (!PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hactive) ||
530 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hfront_porch) ||
531 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hback_porch) ||
532 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hsync_len) ||
533 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vactive) ||
534 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vfront_porch) ||
535 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vback_porch) ||
536 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vsync_len))
539 if (ot->flags != dt->flags)
542 videomode_from_timing(ot, &vm);
543 drm_display_mode_from_videomode(&vm, &panel->override_mode);
544 panel->override_mode.type |= DRM_MODE_TYPE_DRIVER |
545 DRM_MODE_TYPE_PREFERRED;
549 if (WARN_ON(!panel->override_mode.type))
550 dev_err(dev, "Reject override mode: No display_timing found\n");
553 static int panel_simple_override_nondefault_lvds_datamapping(struct device *dev,
554 struct panel_simple *panel)
558 ret = drm_of_lvds_get_data_mapping(dev->of_node);
561 dev_warn(dev, "Ignore invalid data-mapping property\n");
564 * Ignore non-existing or malformatted property, fallback to
565 * default data-mapping, and return 0.
574 case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
576 case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
579 case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG:
583 if (panel->desc->bpc != bpc || panel->desc->bus_format != ret) {
584 struct panel_desc *override_desc;
586 override_desc = devm_kmemdup(dev, panel->desc, sizeof(*panel->desc), GFP_KERNEL);
590 override_desc->bus_format = ret;
591 override_desc->bpc = bpc;
592 panel->desc = override_desc;
598 static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
600 struct panel_simple *panel;
601 struct display_timing dt;
602 struct device_node *ddc;
607 panel = devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL);
611 panel->enabled = false;
614 panel->supply = devm_regulator_get(dev, "power");
615 if (IS_ERR(panel->supply))
616 return PTR_ERR(panel->supply);
618 panel->enable_gpio = devm_gpiod_get_optional(dev, "enable",
620 if (IS_ERR(panel->enable_gpio))
621 return dev_err_probe(dev, PTR_ERR(panel->enable_gpio),
622 "failed to request GPIO\n");
624 err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
626 dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
630 ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
632 panel->ddc = of_find_i2c_adapter_by_node(ddc);
636 return -EPROBE_DEFER;
639 if (desc == &panel_dpi) {
640 /* Handle the generic panel-dpi binding */
641 err = panel_dpi_probe(dev, panel);
646 if (!of_get_display_timing(dev->of_node, "panel-timing", &dt))
647 panel_simple_parse_panel_timing_node(dev, panel, &dt);
650 if (desc->connector_type == DRM_MODE_CONNECTOR_LVDS) {
651 /* Optional data-mapping property for overriding bus format */
652 err = panel_simple_override_nondefault_lvds_datamapping(dev, panel);
657 connector_type = desc->connector_type;
658 /* Catch common mistakes for panels. */
659 switch (connector_type) {
661 dev_warn(dev, "Specify missing connector_type\n");
662 connector_type = DRM_MODE_CONNECTOR_DPI;
664 case DRM_MODE_CONNECTOR_LVDS:
665 WARN_ON(desc->bus_flags &
666 ~(DRM_BUS_FLAG_DE_LOW |
667 DRM_BUS_FLAG_DE_HIGH |
668 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
669 DRM_BUS_FLAG_DATA_LSB_TO_MSB));
670 WARN_ON(desc->bus_format != MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
671 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_SPWG &&
672 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA);
673 WARN_ON(desc->bus_format == MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
675 WARN_ON((desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG ||
676 desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA) &&
679 case DRM_MODE_CONNECTOR_eDP:
680 dev_warn(dev, "eDP panels moved to panel-edp\n");
683 case DRM_MODE_CONNECTOR_DSI:
684 if (desc->bpc != 6 && desc->bpc != 8)
685 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
687 case DRM_MODE_CONNECTOR_DPI:
688 bus_flags = DRM_BUS_FLAG_DE_LOW |
689 DRM_BUS_FLAG_DE_HIGH |
690 DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE |
691 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
692 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
693 DRM_BUS_FLAG_DATA_LSB_TO_MSB |
694 DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE |
695 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE;
696 if (desc->bus_flags & ~bus_flags)
697 dev_warn(dev, "Unexpected bus_flags(%d)\n", desc->bus_flags & ~bus_flags);
698 if (!(desc->bus_flags & bus_flags))
699 dev_warn(dev, "Specify missing bus_flags\n");
700 if (desc->bus_format == 0)
701 dev_warn(dev, "Specify missing bus_format\n");
702 if (desc->bpc != 6 && desc->bpc != 8)
703 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
706 dev_warn(dev, "Specify a valid connector_type: %d\n", desc->connector_type);
707 connector_type = DRM_MODE_CONNECTOR_DPI;
711 dev_set_drvdata(dev, panel);
714 * We use runtime PM for prepare / unprepare since those power the panel
715 * on and off and those can be very slow operations. This is important
716 * to optimize powering the panel on briefly to read the EDID before
717 * fully enabling the panel.
719 pm_runtime_enable(dev);
720 pm_runtime_set_autosuspend_delay(dev, 1000);
721 pm_runtime_use_autosuspend(dev);
723 drm_panel_init(&panel->base, dev, &panel_simple_funcs, connector_type);
725 err = drm_panel_of_backlight(&panel->base);
727 dev_err_probe(dev, err, "Could not find backlight\n");
728 goto disable_pm_runtime;
731 drm_panel_add(&panel->base);
736 pm_runtime_dont_use_autosuspend(dev);
737 pm_runtime_disable(dev);
740 put_device(&panel->ddc->dev);
745 static void panel_simple_remove(struct device *dev)
747 struct panel_simple *panel = dev_get_drvdata(dev);
749 drm_panel_remove(&panel->base);
750 drm_panel_disable(&panel->base);
751 drm_panel_unprepare(&panel->base);
753 pm_runtime_dont_use_autosuspend(dev);
754 pm_runtime_disable(dev);
756 put_device(&panel->ddc->dev);
759 static void panel_simple_shutdown(struct device *dev)
761 struct panel_simple *panel = dev_get_drvdata(dev);
763 drm_panel_disable(&panel->base);
764 drm_panel_unprepare(&panel->base);
767 static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode = {
770 .hsync_start = 1280 + 40,
771 .hsync_end = 1280 + 40 + 80,
772 .htotal = 1280 + 40 + 80 + 40,
774 .vsync_start = 800 + 3,
775 .vsync_end = 800 + 3 + 10,
776 .vtotal = 800 + 3 + 10 + 10,
777 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
780 static const struct panel_desc ampire_am_1280800n3tzqw_t00h = {
781 .modes = &ire_am_1280800n3tzqw_t00h_mode,
788 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
789 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
790 .connector_type = DRM_MODE_CONNECTOR_LVDS,
793 static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = {
796 .hsync_start = 480 + 2,
797 .hsync_end = 480 + 2 + 41,
798 .htotal = 480 + 2 + 41 + 2,
800 .vsync_start = 272 + 2,
801 .vsync_end = 272 + 2 + 10,
802 .vtotal = 272 + 2 + 10 + 2,
803 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
806 static const struct panel_desc ampire_am_480272h3tmqw_t01h = {
807 .modes = &ire_am_480272h3tmqw_t01h_mode,
814 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
817 static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = {
820 .hsync_start = 800 + 0,
821 .hsync_end = 800 + 0 + 255,
822 .htotal = 800 + 0 + 255 + 0,
824 .vsync_start = 480 + 2,
825 .vsync_end = 480 + 2 + 45,
826 .vtotal = 480 + 2 + 45 + 0,
827 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
830 static const struct display_timing ampire_am_800480l1tmqw_t00h_timing = {
831 .pixelclock = { 29930000, 33260000, 36590000 },
832 .hactive = { 800, 800, 800 },
833 .hfront_porch = { 1, 40, 168 },
834 .hback_porch = { 88, 88, 88 },
835 .hsync_len = { 1, 128, 128 },
836 .vactive = { 480, 480, 480 },
837 .vfront_porch = { 1, 35, 37 },
838 .vback_porch = { 8, 8, 8 },
839 .vsync_len = { 1, 2, 2 },
840 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
841 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
842 DISPLAY_FLAGS_SYNC_POSEDGE,
845 static const struct panel_desc ampire_am_800480l1tmqw_t00h = {
846 .timings = &ire_am_800480l1tmqw_t00h_timing,
853 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
854 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
855 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
856 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
857 .connector_type = DRM_MODE_CONNECTOR_DPI,
860 static const struct panel_desc ampire_am800480r3tmqwa1h = {
861 .modes = &ire_am800480r3tmqwa1h_mode,
868 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
871 static const struct display_timing ampire_am800600p5tmqw_tb8h_timing = {
872 .pixelclock = { 34500000, 39600000, 50400000 },
873 .hactive = { 800, 800, 800 },
874 .hfront_porch = { 12, 112, 312 },
875 .hback_porch = { 87, 87, 48 },
876 .hsync_len = { 1, 1, 40 },
877 .vactive = { 600, 600, 600 },
878 .vfront_porch = { 1, 21, 61 },
879 .vback_porch = { 38, 38, 19 },
880 .vsync_len = { 1, 1, 20 },
881 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
882 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
883 DISPLAY_FLAGS_SYNC_POSEDGE,
886 static const struct panel_desc ampire_am800600p5tmqwtb8h = {
887 .timings = &ire_am800600p5tmqw_tb8h_timing,
894 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
895 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
896 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
897 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
898 .connector_type = DRM_MODE_CONNECTOR_DPI,
901 static const struct display_timing santek_st0700i5y_rbslw_f_timing = {
902 .pixelclock = { 26400000, 33300000, 46800000 },
903 .hactive = { 800, 800, 800 },
904 .hfront_porch = { 16, 210, 354 },
905 .hback_porch = { 45, 36, 6 },
906 .hsync_len = { 1, 10, 40 },
907 .vactive = { 480, 480, 480 },
908 .vfront_porch = { 7, 22, 147 },
909 .vback_porch = { 22, 13, 3 },
910 .vsync_len = { 1, 10, 20 },
911 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
912 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE
915 static const struct panel_desc armadeus_st0700_adapt = {
916 .timings = &santek_st0700i5y_rbslw_f_timing,
923 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
924 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
927 static const struct drm_display_mode auo_b101aw03_mode = {
930 .hsync_start = 1024 + 156,
931 .hsync_end = 1024 + 156 + 8,
932 .htotal = 1024 + 156 + 8 + 156,
934 .vsync_start = 600 + 16,
935 .vsync_end = 600 + 16 + 6,
936 .vtotal = 600 + 16 + 6 + 16,
939 static const struct panel_desc auo_b101aw03 = {
940 .modes = &auo_b101aw03_mode,
947 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
948 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
949 .connector_type = DRM_MODE_CONNECTOR_LVDS,
952 static const struct drm_display_mode auo_b101xtn01_mode = {
955 .hsync_start = 1366 + 20,
956 .hsync_end = 1366 + 20 + 70,
957 .htotal = 1366 + 20 + 70,
959 .vsync_start = 768 + 14,
960 .vsync_end = 768 + 14 + 42,
961 .vtotal = 768 + 14 + 42,
962 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
965 static const struct panel_desc auo_b101xtn01 = {
966 .modes = &auo_b101xtn01_mode,
975 static const struct drm_display_mode auo_b116xw03_mode = {
978 .hsync_start = 1366 + 40,
979 .hsync_end = 1366 + 40 + 40,
980 .htotal = 1366 + 40 + 40 + 32,
982 .vsync_start = 768 + 10,
983 .vsync_end = 768 + 10 + 12,
984 .vtotal = 768 + 10 + 12 + 6,
985 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
988 static const struct panel_desc auo_b116xw03 = {
989 .modes = &auo_b116xw03_mode,
1002 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1003 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1004 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1007 static const struct display_timing auo_g070vvn01_timings = {
1008 .pixelclock = { 33300000, 34209000, 45000000 },
1009 .hactive = { 800, 800, 800 },
1010 .hfront_porch = { 20, 40, 200 },
1011 .hback_porch = { 87, 40, 1 },
1012 .hsync_len = { 1, 48, 87 },
1013 .vactive = { 480, 480, 480 },
1014 .vfront_porch = { 5, 13, 200 },
1015 .vback_porch = { 31, 31, 29 },
1016 .vsync_len = { 1, 1, 3 },
1019 static const struct panel_desc auo_g070vvn01 = {
1020 .timings = &auo_g070vvn01_timings,
1035 static const struct drm_display_mode auo_g101evn010_mode = {
1038 .hsync_start = 1280 + 82,
1039 .hsync_end = 1280 + 82 + 2,
1040 .htotal = 1280 + 82 + 2 + 84,
1042 .vsync_start = 800 + 8,
1043 .vsync_end = 800 + 8 + 2,
1044 .vtotal = 800 + 8 + 2 + 6,
1047 static const struct panel_desc auo_g101evn010 = {
1048 .modes = &auo_g101evn010_mode,
1055 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1056 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1059 static const struct drm_display_mode auo_g104sn02_mode = {
1062 .hsync_start = 800 + 40,
1063 .hsync_end = 800 + 40 + 216,
1064 .htotal = 800 + 40 + 216 + 128,
1066 .vsync_start = 600 + 10,
1067 .vsync_end = 600 + 10 + 35,
1068 .vtotal = 600 + 10 + 35 + 2,
1071 static const struct panel_desc auo_g104sn02 = {
1072 .modes = &auo_g104sn02_mode,
1079 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1080 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1083 static const struct display_timing auo_g121ean01_timing = {
1084 .pixelclock = { 60000000, 74400000, 90000000 },
1085 .hactive = { 1280, 1280, 1280 },
1086 .hfront_porch = { 20, 50, 100 },
1087 .hback_porch = { 20, 50, 100 },
1088 .hsync_len = { 30, 100, 200 },
1089 .vactive = { 800, 800, 800 },
1090 .vfront_porch = { 2, 10, 25 },
1091 .vback_porch = { 2, 10, 25 },
1092 .vsync_len = { 4, 18, 50 },
1095 static const struct panel_desc auo_g121ean01 = {
1096 .timings = &auo_g121ean01_timing,
1103 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1104 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1107 static const struct display_timing auo_g133han01_timings = {
1108 .pixelclock = { 134000000, 141200000, 149000000 },
1109 .hactive = { 1920, 1920, 1920 },
1110 .hfront_porch = { 39, 58, 77 },
1111 .hback_porch = { 59, 88, 117 },
1112 .hsync_len = { 28, 42, 56 },
1113 .vactive = { 1080, 1080, 1080 },
1114 .vfront_porch = { 3, 8, 11 },
1115 .vback_porch = { 5, 14, 19 },
1116 .vsync_len = { 4, 14, 19 },
1119 static const struct panel_desc auo_g133han01 = {
1120 .timings = &auo_g133han01_timings,
1133 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1134 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1137 static const struct display_timing auo_g156han04_timings = {
1138 .pixelclock = { 137000000, 141000000, 146000000 },
1139 .hactive = { 1920, 1920, 1920 },
1140 .hfront_porch = { 60, 60, 60 },
1141 .hback_porch = { 90, 92, 111 },
1142 .hsync_len = { 32, 32, 32 },
1143 .vactive = { 1080, 1080, 1080 },
1144 .vfront_porch = { 12, 12, 12 },
1145 .vback_porch = { 24, 36, 56 },
1146 .vsync_len = { 8, 8, 8 },
1149 static const struct panel_desc auo_g156han04 = {
1150 .timings = &auo_g156han04_timings,
1158 .prepare = 50, /* T2 */
1159 .enable = 200, /* T3 */
1160 .disable = 110, /* T10 */
1161 .unprepare = 1000, /* T13 */
1163 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1164 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1165 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1168 static const struct drm_display_mode auo_g156xtn01_mode = {
1171 .hsync_start = 1366 + 33,
1172 .hsync_end = 1366 + 33 + 67,
1175 .vsync_start = 768 + 4,
1176 .vsync_end = 768 + 4 + 4,
1180 static const struct panel_desc auo_g156xtn01 = {
1181 .modes = &auo_g156xtn01_mode,
1188 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1189 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1192 static const struct display_timing auo_g185han01_timings = {
1193 .pixelclock = { 120000000, 144000000, 175000000 },
1194 .hactive = { 1920, 1920, 1920 },
1195 .hfront_porch = { 36, 120, 148 },
1196 .hback_porch = { 24, 88, 108 },
1197 .hsync_len = { 20, 48, 64 },
1198 .vactive = { 1080, 1080, 1080 },
1199 .vfront_porch = { 6, 10, 40 },
1200 .vback_porch = { 2, 5, 20 },
1201 .vsync_len = { 2, 5, 20 },
1204 static const struct panel_desc auo_g185han01 = {
1205 .timings = &auo_g185han01_timings,
1218 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1219 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1222 static const struct display_timing auo_g190ean01_timings = {
1223 .pixelclock = { 90000000, 108000000, 135000000 },
1224 .hactive = { 1280, 1280, 1280 },
1225 .hfront_porch = { 126, 184, 1266 },
1226 .hback_porch = { 84, 122, 844 },
1227 .hsync_len = { 70, 102, 704 },
1228 .vactive = { 1024, 1024, 1024 },
1229 .vfront_porch = { 4, 26, 76 },
1230 .vback_porch = { 2, 8, 25 },
1231 .vsync_len = { 2, 8, 25 },
1234 static const struct panel_desc auo_g190ean01 = {
1235 .timings = &auo_g190ean01_timings,
1248 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1249 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1252 static const struct display_timing auo_p320hvn03_timings = {
1253 .pixelclock = { 106000000, 148500000, 164000000 },
1254 .hactive = { 1920, 1920, 1920 },
1255 .hfront_porch = { 25, 50, 130 },
1256 .hback_porch = { 25, 50, 130 },
1257 .hsync_len = { 20, 40, 105 },
1258 .vactive = { 1080, 1080, 1080 },
1259 .vfront_porch = { 8, 17, 150 },
1260 .vback_porch = { 8, 17, 150 },
1261 .vsync_len = { 4, 11, 100 },
1264 static const struct panel_desc auo_p320hvn03 = {
1265 .timings = &auo_p320hvn03_timings,
1277 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1278 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1281 static const struct drm_display_mode auo_t215hvn01_mode = {
1284 .hsync_start = 1920 + 88,
1285 .hsync_end = 1920 + 88 + 44,
1286 .htotal = 1920 + 88 + 44 + 148,
1288 .vsync_start = 1080 + 4,
1289 .vsync_end = 1080 + 4 + 5,
1290 .vtotal = 1080 + 4 + 5 + 36,
1293 static const struct panel_desc auo_t215hvn01 = {
1294 .modes = &auo_t215hvn01_mode,
1305 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1306 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1309 static const struct drm_display_mode avic_tm070ddh03_mode = {
1312 .hsync_start = 1024 + 160,
1313 .hsync_end = 1024 + 160 + 4,
1314 .htotal = 1024 + 160 + 4 + 156,
1316 .vsync_start = 600 + 17,
1317 .vsync_end = 600 + 17 + 1,
1318 .vtotal = 600 + 17 + 1 + 17,
1321 static const struct panel_desc avic_tm070ddh03 = {
1322 .modes = &avic_tm070ddh03_mode,
1336 static const struct drm_display_mode bananapi_s070wv20_ct16_mode = {
1339 .hsync_start = 800 + 40,
1340 .hsync_end = 800 + 40 + 48,
1341 .htotal = 800 + 40 + 48 + 40,
1343 .vsync_start = 480 + 13,
1344 .vsync_end = 480 + 13 + 3,
1345 .vtotal = 480 + 13 + 3 + 29,
1348 static const struct panel_desc bananapi_s070wv20_ct16 = {
1349 .modes = &bananapi_s070wv20_ct16_mode,
1358 static const struct drm_display_mode boe_bp101wx1_100_mode = {
1361 .hsync_start = 1280 + 0,
1362 .hsync_end = 1280 + 0 + 2,
1363 .htotal = 1280 + 62 + 0 + 2,
1365 .vsync_start = 800 + 8,
1366 .vsync_end = 800 + 8 + 2,
1367 .vtotal = 800 + 6 + 8 + 2,
1370 static const struct panel_desc boe_bp082wx1_100 = {
1371 .modes = &boe_bp101wx1_100_mode,
1382 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1383 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1384 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1387 static const struct panel_desc boe_bp101wx1_100 = {
1388 .modes = &boe_bp101wx1_100_mode,
1399 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1400 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1401 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1404 static const struct display_timing boe_ev121wxm_n10_1850_timing = {
1405 .pixelclock = { 69922000, 71000000, 72293000 },
1406 .hactive = { 1280, 1280, 1280 },
1407 .hfront_porch = { 48, 48, 48 },
1408 .hback_porch = { 80, 80, 80 },
1409 .hsync_len = { 32, 32, 32 },
1410 .vactive = { 800, 800, 800 },
1411 .vfront_porch = { 3, 3, 3 },
1412 .vback_porch = { 14, 14, 14 },
1413 .vsync_len = { 6, 6, 6 },
1416 static const struct panel_desc boe_ev121wxm_n10_1850 = {
1417 .timings = &boe_ev121wxm_n10_1850_timing,
1430 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1431 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1432 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1435 static const struct drm_display_mode boe_hv070wsa_mode = {
1438 .hsync_start = 1024 + 30,
1439 .hsync_end = 1024 + 30 + 30,
1440 .htotal = 1024 + 30 + 30 + 30,
1442 .vsync_start = 600 + 10,
1443 .vsync_end = 600 + 10 + 10,
1444 .vtotal = 600 + 10 + 10 + 10,
1447 static const struct panel_desc boe_hv070wsa = {
1448 .modes = &boe_hv070wsa_mode,
1455 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1456 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1457 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1460 static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = {
1463 .hsync_start = 480 + 5,
1464 .hsync_end = 480 + 5 + 5,
1465 .htotal = 480 + 5 + 5 + 40,
1467 .vsync_start = 272 + 8,
1468 .vsync_end = 272 + 8 + 8,
1469 .vtotal = 272 + 8 + 8 + 8,
1470 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1473 static const struct panel_desc cdtech_s043wq26h_ct7 = {
1474 .modes = &cdtech_s043wq26h_ct7_mode,
1481 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1484 /* S070PWS19HP-FC21 2017/04/22 */
1485 static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = {
1488 .hsync_start = 1024 + 160,
1489 .hsync_end = 1024 + 160 + 20,
1490 .htotal = 1024 + 160 + 20 + 140,
1492 .vsync_start = 600 + 12,
1493 .vsync_end = 600 + 12 + 3,
1494 .vtotal = 600 + 12 + 3 + 20,
1495 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1498 static const struct panel_desc cdtech_s070pws19hp_fc21 = {
1499 .modes = &cdtech_s070pws19hp_fc21_mode,
1506 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1507 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1508 .connector_type = DRM_MODE_CONNECTOR_DPI,
1511 /* S070SWV29HG-DC44 2017/09/21 */
1512 static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = {
1515 .hsync_start = 800 + 210,
1516 .hsync_end = 800 + 210 + 2,
1517 .htotal = 800 + 210 + 2 + 44,
1519 .vsync_start = 480 + 22,
1520 .vsync_end = 480 + 22 + 2,
1521 .vtotal = 480 + 22 + 2 + 21,
1522 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1525 static const struct panel_desc cdtech_s070swv29hg_dc44 = {
1526 .modes = &cdtech_s070swv29hg_dc44_mode,
1533 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1534 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1535 .connector_type = DRM_MODE_CONNECTOR_DPI,
1538 static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
1541 .hsync_start = 800 + 40,
1542 .hsync_end = 800 + 40 + 40,
1543 .htotal = 800 + 40 + 40 + 48,
1545 .vsync_start = 480 + 29,
1546 .vsync_end = 480 + 29 + 13,
1547 .vtotal = 480 + 29 + 13 + 3,
1548 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1551 static const struct panel_desc cdtech_s070wv95_ct16 = {
1552 .modes = &cdtech_s070wv95_ct16_mode,
1561 static const struct display_timing chefree_ch101olhlwh_002_timing = {
1562 .pixelclock = { 68900000, 71100000, 73400000 },
1563 .hactive = { 1280, 1280, 1280 },
1564 .hfront_porch = { 65, 80, 95 },
1565 .hback_porch = { 64, 79, 94 },
1566 .hsync_len = { 1, 1, 1 },
1567 .vactive = { 800, 800, 800 },
1568 .vfront_porch = { 7, 11, 14 },
1569 .vback_porch = { 7, 11, 14 },
1570 .vsync_len = { 1, 1, 1 },
1571 .flags = DISPLAY_FLAGS_DE_HIGH,
1574 static const struct panel_desc chefree_ch101olhlwh_002 = {
1575 .timings = &chefree_ch101olhlwh_002_timing,
1586 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1587 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1588 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1591 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
1594 .hsync_start = 800 + 49,
1595 .hsync_end = 800 + 49 + 33,
1596 .htotal = 800 + 49 + 33 + 17,
1598 .vsync_start = 1280 + 1,
1599 .vsync_end = 1280 + 1 + 7,
1600 .vtotal = 1280 + 1 + 7 + 15,
1601 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1604 static const struct panel_desc chunghwa_claa070wp03xg = {
1605 .modes = &chunghwa_claa070wp03xg_mode,
1612 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1613 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1614 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1617 static const struct drm_display_mode chunghwa_claa101wa01a_mode = {
1620 .hsync_start = 1366 + 58,
1621 .hsync_end = 1366 + 58 + 58,
1622 .htotal = 1366 + 58 + 58 + 58,
1624 .vsync_start = 768 + 4,
1625 .vsync_end = 768 + 4 + 4,
1626 .vtotal = 768 + 4 + 4 + 4,
1629 static const struct panel_desc chunghwa_claa101wa01a = {
1630 .modes = &chunghwa_claa101wa01a_mode,
1637 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1638 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1639 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1642 static const struct drm_display_mode chunghwa_claa101wb01_mode = {
1645 .hsync_start = 1366 + 48,
1646 .hsync_end = 1366 + 48 + 32,
1647 .htotal = 1366 + 48 + 32 + 20,
1649 .vsync_start = 768 + 16,
1650 .vsync_end = 768 + 16 + 8,
1651 .vtotal = 768 + 16 + 8 + 16,
1654 static const struct panel_desc chunghwa_claa101wb01 = {
1655 .modes = &chunghwa_claa101wb01_mode,
1662 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1663 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1664 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1667 static const struct display_timing dataimage_fg040346dsswbg04_timing = {
1668 .pixelclock = { 5000000, 9000000, 12000000 },
1669 .hactive = { 480, 480, 480 },
1670 .hfront_porch = { 12, 12, 12 },
1671 .hback_porch = { 12, 12, 12 },
1672 .hsync_len = { 21, 21, 21 },
1673 .vactive = { 272, 272, 272 },
1674 .vfront_porch = { 4, 4, 4 },
1675 .vback_porch = { 4, 4, 4 },
1676 .vsync_len = { 8, 8, 8 },
1679 static const struct panel_desc dataimage_fg040346dsswbg04 = {
1680 .timings = &dataimage_fg040346dsswbg04_timing,
1687 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1688 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1689 .connector_type = DRM_MODE_CONNECTOR_DPI,
1692 static const struct display_timing dataimage_fg1001l0dsswmg01_timing = {
1693 .pixelclock = { 68900000, 71110000, 73400000 },
1694 .hactive = { 1280, 1280, 1280 },
1695 .vactive = { 800, 800, 800 },
1696 .hback_porch = { 100, 100, 100 },
1697 .hfront_porch = { 100, 100, 100 },
1698 .vback_porch = { 5, 5, 5 },
1699 .vfront_porch = { 5, 5, 5 },
1700 .hsync_len = { 24, 24, 24 },
1701 .vsync_len = { 3, 3, 3 },
1702 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
1703 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1706 static const struct panel_desc dataimage_fg1001l0dsswmg01 = {
1707 .timings = &dataimage_fg1001l0dsswmg01_timing,
1716 static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = {
1719 .hsync_start = 800 + 40,
1720 .hsync_end = 800 + 40 + 128,
1721 .htotal = 800 + 40 + 128 + 88,
1723 .vsync_start = 480 + 10,
1724 .vsync_end = 480 + 10 + 2,
1725 .vtotal = 480 + 10 + 2 + 33,
1726 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1729 static const struct panel_desc dataimage_scf0700c48ggu18 = {
1730 .modes = &dataimage_scf0700c48ggu18_mode,
1737 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1738 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1741 static const struct display_timing dlc_dlc0700yzg_1_timing = {
1742 .pixelclock = { 45000000, 51200000, 57000000 },
1743 .hactive = { 1024, 1024, 1024 },
1744 .hfront_porch = { 100, 106, 113 },
1745 .hback_porch = { 100, 106, 113 },
1746 .hsync_len = { 100, 108, 114 },
1747 .vactive = { 600, 600, 600 },
1748 .vfront_porch = { 8, 11, 15 },
1749 .vback_porch = { 8, 11, 15 },
1750 .vsync_len = { 9, 13, 15 },
1751 .flags = DISPLAY_FLAGS_DE_HIGH,
1754 static const struct panel_desc dlc_dlc0700yzg_1 = {
1755 .timings = &dlc_dlc0700yzg_1_timing,
1767 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1768 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1771 static const struct display_timing dlc_dlc1010gig_timing = {
1772 .pixelclock = { 68900000, 71100000, 73400000 },
1773 .hactive = { 1280, 1280, 1280 },
1774 .hfront_porch = { 43, 53, 63 },
1775 .hback_porch = { 43, 53, 63 },
1776 .hsync_len = { 44, 54, 64 },
1777 .vactive = { 800, 800, 800 },
1778 .vfront_porch = { 5, 8, 11 },
1779 .vback_porch = { 5, 8, 11 },
1780 .vsync_len = { 5, 7, 11 },
1781 .flags = DISPLAY_FLAGS_DE_HIGH,
1784 static const struct panel_desc dlc_dlc1010gig = {
1785 .timings = &dlc_dlc1010gig_timing,
1798 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1799 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1802 static const struct drm_display_mode edt_et035012dm6_mode = {
1805 .hsync_start = 320 + 20,
1806 .hsync_end = 320 + 20 + 30,
1807 .htotal = 320 + 20 + 68,
1809 .vsync_start = 240 + 4,
1810 .vsync_end = 240 + 4 + 4,
1811 .vtotal = 240 + 4 + 4 + 14,
1812 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1815 static const struct panel_desc edt_et035012dm6 = {
1816 .modes = &edt_et035012dm6_mode,
1823 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1824 .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1827 static const struct drm_display_mode edt_etm0350g0dh6_mode = {
1830 .hsync_start = 320 + 20,
1831 .hsync_end = 320 + 20 + 68,
1832 .htotal = 320 + 20 + 68,
1834 .vsync_start = 240 + 4,
1835 .vsync_end = 240 + 4 + 18,
1836 .vtotal = 240 + 4 + 18,
1837 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1840 static const struct panel_desc edt_etm0350g0dh6 = {
1841 .modes = &edt_etm0350g0dh6_mode,
1848 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1849 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1850 .connector_type = DRM_MODE_CONNECTOR_DPI,
1853 static const struct drm_display_mode edt_etm043080dh6gp_mode = {
1856 .hsync_start = 480 + 8,
1857 .hsync_end = 480 + 8 + 4,
1858 .htotal = 480 + 8 + 4 + 41,
1861 * IWG22M: Y resolution changed for "dc_linuxfb" module crashing while
1866 .vsync_start = 288 + 2,
1867 .vsync_end = 288 + 2 + 4,
1868 .vtotal = 288 + 2 + 4 + 10,
1871 static const struct panel_desc edt_etm043080dh6gp = {
1872 .modes = &edt_etm043080dh6gp_mode,
1879 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1880 .connector_type = DRM_MODE_CONNECTOR_DPI,
1883 static const struct drm_display_mode edt_etm0430g0dh6_mode = {
1886 .hsync_start = 480 + 2,
1887 .hsync_end = 480 + 2 + 41,
1888 .htotal = 480 + 2 + 41 + 2,
1890 .vsync_start = 272 + 2,
1891 .vsync_end = 272 + 2 + 10,
1892 .vtotal = 272 + 2 + 10 + 2,
1893 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1896 static const struct panel_desc edt_etm0430g0dh6 = {
1897 .modes = &edt_etm0430g0dh6_mode,
1904 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1905 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1906 .connector_type = DRM_MODE_CONNECTOR_DPI,
1909 static const struct drm_display_mode edt_et057090dhu_mode = {
1912 .hsync_start = 640 + 16,
1913 .hsync_end = 640 + 16 + 30,
1914 .htotal = 640 + 16 + 30 + 114,
1916 .vsync_start = 480 + 10,
1917 .vsync_end = 480 + 10 + 3,
1918 .vtotal = 480 + 10 + 3 + 32,
1919 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1922 static const struct panel_desc edt_et057090dhu = {
1923 .modes = &edt_et057090dhu_mode,
1930 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1931 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1932 .connector_type = DRM_MODE_CONNECTOR_DPI,
1935 static const struct drm_display_mode edt_etm0700g0dh6_mode = {
1938 .hsync_start = 800 + 40,
1939 .hsync_end = 800 + 40 + 128,
1940 .htotal = 800 + 40 + 128 + 88,
1942 .vsync_start = 480 + 10,
1943 .vsync_end = 480 + 10 + 2,
1944 .vtotal = 480 + 10 + 2 + 33,
1945 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1948 static const struct panel_desc edt_etm0700g0dh6 = {
1949 .modes = &edt_etm0700g0dh6_mode,
1956 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1957 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1958 .connector_type = DRM_MODE_CONNECTOR_DPI,
1961 static const struct panel_desc edt_etm0700g0bdh6 = {
1962 .modes = &edt_etm0700g0dh6_mode,
1969 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1970 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1971 .connector_type = DRM_MODE_CONNECTOR_DPI,
1974 static const struct display_timing edt_etml0700y5dha_timing = {
1975 .pixelclock = { 40800000, 51200000, 67200000 },
1976 .hactive = { 1024, 1024, 1024 },
1977 .hfront_porch = { 30, 106, 125 },
1978 .hback_porch = { 30, 106, 125 },
1979 .hsync_len = { 30, 108, 126 },
1980 .vactive = { 600, 600, 600 },
1981 .vfront_porch = { 3, 12, 67},
1982 .vback_porch = { 3, 12, 67 },
1983 .vsync_len = { 4, 11, 66 },
1984 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
1985 DISPLAY_FLAGS_DE_HIGH,
1988 static const struct panel_desc edt_etml0700y5dha = {
1989 .timings = &edt_etml0700y5dha_timing,
1996 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1997 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2000 static const struct display_timing edt_etml1010g3dra_timing = {
2001 .pixelclock = { 66300000, 72400000, 78900000 },
2002 .hactive = { 1280, 1280, 1280 },
2003 .hfront_porch = { 12, 72, 132 },
2004 .hback_porch = { 86, 86, 86 },
2005 .hsync_len = { 2, 2, 2 },
2006 .vactive = { 800, 800, 800 },
2007 .vfront_porch = { 1, 15, 49 },
2008 .vback_porch = { 21, 21, 21 },
2009 .vsync_len = { 2, 2, 2 },
2010 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
2011 DISPLAY_FLAGS_DE_HIGH,
2014 static const struct panel_desc edt_etml1010g3dra = {
2015 .timings = &edt_etml1010g3dra_timing,
2022 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2023 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2024 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2027 static const struct drm_display_mode edt_etmv570g2dhu_mode = {
2031 .hsync_end = 640 + 16,
2032 .htotal = 640 + 16 + 30 + 114,
2034 .vsync_start = 480 + 10,
2035 .vsync_end = 480 + 10 + 3,
2036 .vtotal = 480 + 10 + 3 + 35,
2037 .flags = DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_PHSYNC,
2040 static const struct panel_desc edt_etmv570g2dhu = {
2041 .modes = &edt_etmv570g2dhu_mode,
2048 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2049 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
2050 .connector_type = DRM_MODE_CONNECTOR_DPI,
2053 static const struct display_timing eink_vb3300_kca_timing = {
2054 .pixelclock = { 40000000, 40000000, 40000000 },
2055 .hactive = { 334, 334, 334 },
2056 .hfront_porch = { 1, 1, 1 },
2057 .hback_porch = { 1, 1, 1 },
2058 .hsync_len = { 1, 1, 1 },
2059 .vactive = { 1405, 1405, 1405 },
2060 .vfront_porch = { 1, 1, 1 },
2061 .vback_porch = { 1, 1, 1 },
2062 .vsync_len = { 1, 1, 1 },
2063 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2064 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
2067 static const struct panel_desc eink_vb3300_kca = {
2068 .timings = &eink_vb3300_kca_timing,
2075 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2076 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2077 .connector_type = DRM_MODE_CONNECTOR_DPI,
2080 static const struct display_timing evervision_vgg644804_timing = {
2081 .pixelclock = { 25175000, 25175000, 25175000 },
2082 .hactive = { 640, 640, 640 },
2083 .hfront_porch = { 16, 16, 16 },
2084 .hback_porch = { 82, 114, 170 },
2085 .hsync_len = { 5, 30, 30 },
2086 .vactive = { 480, 480, 480 },
2087 .vfront_porch = { 10, 10, 10 },
2088 .vback_porch = { 30, 32, 34 },
2089 .vsync_len = { 1, 3, 5 },
2090 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2091 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2092 DISPLAY_FLAGS_SYNC_POSEDGE,
2095 static const struct panel_desc evervision_vgg644804 = {
2096 .timings = &evervision_vgg644804_timing,
2103 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2104 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2107 static const struct display_timing evervision_vgg804821_timing = {
2108 .pixelclock = { 27600000, 33300000, 50000000 },
2109 .hactive = { 800, 800, 800 },
2110 .hfront_porch = { 40, 66, 70 },
2111 .hback_porch = { 40, 67, 70 },
2112 .hsync_len = { 40, 67, 70 },
2113 .vactive = { 480, 480, 480 },
2114 .vfront_porch = { 6, 10, 10 },
2115 .vback_porch = { 7, 11, 11 },
2116 .vsync_len = { 7, 11, 11 },
2117 .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH |
2118 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
2119 DISPLAY_FLAGS_SYNC_NEGEDGE,
2122 static const struct panel_desc evervision_vgg804821 = {
2123 .timings = &evervision_vgg804821_timing,
2130 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2131 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2134 static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = {
2137 .hsync_start = 800 + 168,
2138 .hsync_end = 800 + 168 + 64,
2139 .htotal = 800 + 168 + 64 + 88,
2141 .vsync_start = 480 + 37,
2142 .vsync_end = 480 + 37 + 2,
2143 .vtotal = 480 + 37 + 2 + 8,
2146 static const struct panel_desc foxlink_fl500wvr00_a0t = {
2147 .modes = &foxlink_fl500wvr00_a0t_mode,
2154 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2157 static const struct drm_display_mode frida_frd350h54004_modes[] = {
2161 .hsync_start = 320 + 44,
2162 .hsync_end = 320 + 44 + 16,
2163 .htotal = 320 + 44 + 16 + 20,
2165 .vsync_start = 240 + 2,
2166 .vsync_end = 240 + 2 + 6,
2167 .vtotal = 240 + 2 + 6 + 2,
2168 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2173 .hsync_start = 320 + 56,
2174 .hsync_end = 320 + 56 + 16,
2175 .htotal = 320 + 56 + 16 + 40,
2177 .vsync_start = 240 + 2,
2178 .vsync_end = 240 + 2 + 6,
2179 .vtotal = 240 + 2 + 6 + 2,
2180 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2184 static const struct panel_desc frida_frd350h54004 = {
2185 .modes = frida_frd350h54004_modes,
2186 .num_modes = ARRAY_SIZE(frida_frd350h54004_modes),
2192 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2193 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2194 .connector_type = DRM_MODE_CONNECTOR_DPI,
2197 static const struct drm_display_mode friendlyarm_hd702e_mode = {
2200 .hsync_start = 800 + 20,
2201 .hsync_end = 800 + 20 + 24,
2202 .htotal = 800 + 20 + 24 + 20,
2204 .vsync_start = 1280 + 4,
2205 .vsync_end = 1280 + 4 + 8,
2206 .vtotal = 1280 + 4 + 8 + 4,
2207 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2210 static const struct panel_desc friendlyarm_hd702e = {
2211 .modes = &friendlyarm_hd702e_mode,
2219 static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
2222 .hsync_start = 480 + 5,
2223 .hsync_end = 480 + 5 + 1,
2224 .htotal = 480 + 5 + 1 + 40,
2226 .vsync_start = 272 + 8,
2227 .vsync_end = 272 + 8 + 1,
2228 .vtotal = 272 + 8 + 1 + 8,
2231 static const struct panel_desc giantplus_gpg482739qs5 = {
2232 .modes = &giantplus_gpg482739qs5_mode,
2239 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2242 static const struct display_timing giantplus_gpm940b0_timing = {
2243 .pixelclock = { 13500000, 27000000, 27500000 },
2244 .hactive = { 320, 320, 320 },
2245 .hfront_porch = { 14, 686, 718 },
2246 .hback_porch = { 50, 70, 255 },
2247 .hsync_len = { 1, 1, 1 },
2248 .vactive = { 240, 240, 240 },
2249 .vfront_porch = { 1, 1, 179 },
2250 .vback_porch = { 1, 21, 31 },
2251 .vsync_len = { 1, 1, 6 },
2252 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
2255 static const struct panel_desc giantplus_gpm940b0 = {
2256 .timings = &giantplus_gpm940b0_timing,
2263 .bus_format = MEDIA_BUS_FMT_RGB888_3X8,
2264 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2267 static const struct display_timing hannstar_hsd070pww1_timing = {
2268 .pixelclock = { 64300000, 71100000, 82000000 },
2269 .hactive = { 1280, 1280, 1280 },
2270 .hfront_porch = { 1, 1, 10 },
2271 .hback_porch = { 1, 1, 10 },
2273 * According to the data sheet, the minimum horizontal blanking interval
2274 * is 54 clocks (1 + 52 + 1), but tests with a Nitrogen6X have shown the
2275 * minimum working horizontal blanking interval to be 60 clocks.
2277 .hsync_len = { 58, 158, 661 },
2278 .vactive = { 800, 800, 800 },
2279 .vfront_porch = { 1, 1, 10 },
2280 .vback_porch = { 1, 1, 10 },
2281 .vsync_len = { 1, 21, 203 },
2282 .flags = DISPLAY_FLAGS_DE_HIGH,
2285 static const struct panel_desc hannstar_hsd070pww1 = {
2286 .timings = &hannstar_hsd070pww1_timing,
2293 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2294 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2297 static const struct display_timing hannstar_hsd100pxn1_timing = {
2298 .pixelclock = { 55000000, 65000000, 75000000 },
2299 .hactive = { 1024, 1024, 1024 },
2300 .hfront_porch = { 40, 40, 40 },
2301 .hback_porch = { 220, 220, 220 },
2302 .hsync_len = { 20, 60, 100 },
2303 .vactive = { 768, 768, 768 },
2304 .vfront_porch = { 7, 7, 7 },
2305 .vback_porch = { 21, 21, 21 },
2306 .vsync_len = { 10, 10, 10 },
2307 .flags = DISPLAY_FLAGS_DE_HIGH,
2310 static const struct panel_desc hannstar_hsd100pxn1 = {
2311 .timings = &hannstar_hsd100pxn1_timing,
2318 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2319 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2322 static const struct display_timing hannstar_hsd101pww2_timing = {
2323 .pixelclock = { 64300000, 71100000, 82000000 },
2324 .hactive = { 1280, 1280, 1280 },
2325 .hfront_porch = { 1, 1, 10 },
2326 .hback_porch = { 1, 1, 10 },
2327 .hsync_len = { 58, 158, 661 },
2328 .vactive = { 800, 800, 800 },
2329 .vfront_porch = { 1, 1, 10 },
2330 .vback_porch = { 1, 1, 10 },
2331 .vsync_len = { 1, 21, 203 },
2332 .flags = DISPLAY_FLAGS_DE_HIGH,
2335 static const struct panel_desc hannstar_hsd101pww2 = {
2336 .timings = &hannstar_hsd101pww2_timing,
2343 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2344 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2347 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
2350 .hsync_start = 800 + 85,
2351 .hsync_end = 800 + 85 + 86,
2352 .htotal = 800 + 85 + 86 + 85,
2354 .vsync_start = 480 + 16,
2355 .vsync_end = 480 + 16 + 13,
2356 .vtotal = 480 + 16 + 13 + 16,
2359 static const struct panel_desc hitachi_tx23d38vm0caa = {
2360 .modes = &hitachi_tx23d38vm0caa_mode,
2373 static const struct drm_display_mode innolux_at043tn24_mode = {
2376 .hsync_start = 480 + 2,
2377 .hsync_end = 480 + 2 + 41,
2378 .htotal = 480 + 2 + 41 + 2,
2380 .vsync_start = 272 + 2,
2381 .vsync_end = 272 + 2 + 10,
2382 .vtotal = 272 + 2 + 10 + 2,
2383 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2386 static const struct panel_desc innolux_at043tn24 = {
2387 .modes = &innolux_at043tn24_mode,
2394 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2395 .connector_type = DRM_MODE_CONNECTOR_DPI,
2396 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2399 static const struct drm_display_mode innolux_at070tn92_mode = {
2402 .hsync_start = 800 + 210,
2403 .hsync_end = 800 + 210 + 20,
2404 .htotal = 800 + 210 + 20 + 46,
2406 .vsync_start = 480 + 22,
2407 .vsync_end = 480 + 22 + 10,
2408 .vtotal = 480 + 22 + 23 + 10,
2411 static const struct panel_desc innolux_at070tn92 = {
2412 .modes = &innolux_at070tn92_mode,
2418 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2421 static const struct display_timing innolux_g070ace_l01_timing = {
2422 .pixelclock = { 25200000, 35000000, 35700000 },
2423 .hactive = { 800, 800, 800 },
2424 .hfront_porch = { 30, 32, 87 },
2425 .hback_porch = { 30, 32, 87 },
2426 .hsync_len = { 1, 1, 1 },
2427 .vactive = { 480, 480, 480 },
2428 .vfront_porch = { 3, 3, 3 },
2429 .vback_porch = { 13, 13, 13 },
2430 .vsync_len = { 1, 1, 4 },
2431 .flags = DISPLAY_FLAGS_DE_HIGH,
2434 static const struct panel_desc innolux_g070ace_l01 = {
2435 .timings = &innolux_g070ace_l01_timing,
2448 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2449 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2450 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2453 static const struct display_timing innolux_g070y2_l01_timing = {
2454 .pixelclock = { 28000000, 29500000, 32000000 },
2455 .hactive = { 800, 800, 800 },
2456 .hfront_porch = { 61, 91, 141 },
2457 .hback_porch = { 60, 90, 140 },
2458 .hsync_len = { 12, 12, 12 },
2459 .vactive = { 480, 480, 480 },
2460 .vfront_porch = { 4, 9, 30 },
2461 .vback_porch = { 4, 8, 28 },
2462 .vsync_len = { 2, 2, 2 },
2463 .flags = DISPLAY_FLAGS_DE_HIGH,
2466 static const struct panel_desc innolux_g070y2_l01 = {
2467 .timings = &innolux_g070y2_l01_timing,
2480 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2481 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2482 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2485 static const struct drm_display_mode innolux_g070y2_t02_mode = {
2488 .hsync_start = 800 + 210,
2489 .hsync_end = 800 + 210 + 20,
2490 .htotal = 800 + 210 + 20 + 46,
2492 .vsync_start = 480 + 22,
2493 .vsync_end = 480 + 22 + 10,
2494 .vtotal = 480 + 22 + 23 + 10,
2497 static const struct panel_desc innolux_g070y2_t02 = {
2498 .modes = &innolux_g070y2_t02_mode,
2505 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2506 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2507 .connector_type = DRM_MODE_CONNECTOR_DPI,
2510 static const struct display_timing innolux_g101ice_l01_timing = {
2511 .pixelclock = { 60400000, 71100000, 74700000 },
2512 .hactive = { 1280, 1280, 1280 },
2513 .hfront_porch = { 30, 60, 70 },
2514 .hback_porch = { 30, 60, 70 },
2515 .hsync_len = { 22, 40, 60 },
2516 .vactive = { 800, 800, 800 },
2517 .vfront_porch = { 3, 8, 14 },
2518 .vback_porch = { 3, 8, 14 },
2519 .vsync_len = { 4, 7, 12 },
2520 .flags = DISPLAY_FLAGS_DE_HIGH,
2523 static const struct panel_desc innolux_g101ice_l01 = {
2524 .timings = &innolux_g101ice_l01_timing,
2535 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2536 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2537 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2540 static const struct display_timing innolux_g121i1_l01_timing = {
2541 .pixelclock = { 67450000, 71000000, 74550000 },
2542 .hactive = { 1280, 1280, 1280 },
2543 .hfront_porch = { 40, 80, 160 },
2544 .hback_porch = { 39, 79, 159 },
2545 .hsync_len = { 1, 1, 1 },
2546 .vactive = { 800, 800, 800 },
2547 .vfront_porch = { 5, 11, 100 },
2548 .vback_porch = { 4, 11, 99 },
2549 .vsync_len = { 1, 1, 1 },
2552 static const struct panel_desc innolux_g121i1_l01 = {
2553 .timings = &innolux_g121i1_l01_timing,
2564 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2565 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2568 static const struct drm_display_mode innolux_g121x1_l03_mode = {
2571 .hsync_start = 1024 + 0,
2572 .hsync_end = 1024 + 1,
2573 .htotal = 1024 + 0 + 1 + 320,
2575 .vsync_start = 768 + 38,
2576 .vsync_end = 768 + 38 + 1,
2577 .vtotal = 768 + 38 + 1 + 0,
2578 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2581 static const struct panel_desc innolux_g121x1_l03 = {
2582 .modes = &innolux_g121x1_l03_mode,
2596 static const struct display_timing innolux_g156hce_l01_timings = {
2597 .pixelclock = { 120000000, 141860000, 150000000 },
2598 .hactive = { 1920, 1920, 1920 },
2599 .hfront_porch = { 80, 90, 100 },
2600 .hback_porch = { 80, 90, 100 },
2601 .hsync_len = { 20, 30, 30 },
2602 .vactive = { 1080, 1080, 1080 },
2603 .vfront_porch = { 3, 10, 20 },
2604 .vback_porch = { 3, 10, 20 },
2605 .vsync_len = { 4, 10, 10 },
2608 static const struct panel_desc innolux_g156hce_l01 = {
2609 .timings = &innolux_g156hce_l01_timings,
2617 .prepare = 1, /* T1+T2 */
2618 .enable = 450, /* T5 */
2619 .disable = 200, /* T6 */
2620 .unprepare = 10, /* T3+T7 */
2622 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2623 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2624 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2627 static const struct drm_display_mode innolux_n156bge_l21_mode = {
2630 .hsync_start = 1366 + 16,
2631 .hsync_end = 1366 + 16 + 34,
2632 .htotal = 1366 + 16 + 34 + 50,
2634 .vsync_start = 768 + 2,
2635 .vsync_end = 768 + 2 + 6,
2636 .vtotal = 768 + 2 + 6 + 12,
2639 static const struct panel_desc innolux_n156bge_l21 = {
2640 .modes = &innolux_n156bge_l21_mode,
2647 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2648 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2649 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2652 static const struct drm_display_mode innolux_zj070na_01p_mode = {
2655 .hsync_start = 1024 + 128,
2656 .hsync_end = 1024 + 128 + 64,
2657 .htotal = 1024 + 128 + 64 + 128,
2659 .vsync_start = 600 + 16,
2660 .vsync_end = 600 + 16 + 4,
2661 .vtotal = 600 + 16 + 4 + 16,
2664 static const struct panel_desc innolux_zj070na_01p = {
2665 .modes = &innolux_zj070na_01p_mode,
2674 static const struct display_timing koe_tx14d24vm1bpa_timing = {
2675 .pixelclock = { 5580000, 5850000, 6200000 },
2676 .hactive = { 320, 320, 320 },
2677 .hfront_porch = { 30, 30, 30 },
2678 .hback_porch = { 30, 30, 30 },
2679 .hsync_len = { 1, 5, 17 },
2680 .vactive = { 240, 240, 240 },
2681 .vfront_porch = { 6, 6, 6 },
2682 .vback_porch = { 5, 5, 5 },
2683 .vsync_len = { 1, 2, 11 },
2684 .flags = DISPLAY_FLAGS_DE_HIGH,
2687 static const struct panel_desc koe_tx14d24vm1bpa = {
2688 .timings = &koe_tx14d24vm1bpa_timing,
2697 static const struct display_timing koe_tx26d202vm0bwa_timing = {
2698 .pixelclock = { 151820000, 156720000, 159780000 },
2699 .hactive = { 1920, 1920, 1920 },
2700 .hfront_porch = { 105, 130, 142 },
2701 .hback_porch = { 45, 70, 82 },
2702 .hsync_len = { 30, 30, 30 },
2703 .vactive = { 1200, 1200, 1200},
2704 .vfront_porch = { 3, 5, 10 },
2705 .vback_porch = { 2, 5, 10 },
2706 .vsync_len = { 5, 5, 5 },
2709 static const struct panel_desc koe_tx26d202vm0bwa = {
2710 .timings = &koe_tx26d202vm0bwa_timing,
2723 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2724 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2725 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2728 static const struct display_timing koe_tx31d200vm0baa_timing = {
2729 .pixelclock = { 39600000, 43200000, 48000000 },
2730 .hactive = { 1280, 1280, 1280 },
2731 .hfront_porch = { 16, 36, 56 },
2732 .hback_porch = { 16, 36, 56 },
2733 .hsync_len = { 8, 8, 8 },
2734 .vactive = { 480, 480, 480 },
2735 .vfront_porch = { 6, 21, 33 },
2736 .vback_porch = { 6, 21, 33 },
2737 .vsync_len = { 8, 8, 8 },
2738 .flags = DISPLAY_FLAGS_DE_HIGH,
2741 static const struct panel_desc koe_tx31d200vm0baa = {
2742 .timings = &koe_tx31d200vm0baa_timing,
2749 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2750 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2753 static const struct display_timing kyo_tcg121xglp_timing = {
2754 .pixelclock = { 52000000, 65000000, 71000000 },
2755 .hactive = { 1024, 1024, 1024 },
2756 .hfront_porch = { 2, 2, 2 },
2757 .hback_porch = { 2, 2, 2 },
2758 .hsync_len = { 86, 124, 244 },
2759 .vactive = { 768, 768, 768 },
2760 .vfront_porch = { 2, 2, 2 },
2761 .vback_porch = { 2, 2, 2 },
2762 .vsync_len = { 6, 34, 73 },
2763 .flags = DISPLAY_FLAGS_DE_HIGH,
2766 static const struct panel_desc kyo_tcg121xglp = {
2767 .timings = &kyo_tcg121xglp_timing,
2774 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2775 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2778 static const struct drm_display_mode lemaker_bl035_rgb_002_mode = {
2781 .hsync_start = 320 + 20,
2782 .hsync_end = 320 + 20 + 30,
2783 .htotal = 320 + 20 + 30 + 38,
2785 .vsync_start = 240 + 4,
2786 .vsync_end = 240 + 4 + 3,
2787 .vtotal = 240 + 4 + 3 + 15,
2790 static const struct panel_desc lemaker_bl035_rgb_002 = {
2791 .modes = &lemaker_bl035_rgb_002_mode,
2797 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2798 .bus_flags = DRM_BUS_FLAG_DE_LOW,
2801 static const struct display_timing lg_lb070wv8_timing = {
2802 .pixelclock = { 31950000, 33260000, 34600000 },
2803 .hactive = { 800, 800, 800 },
2804 .hfront_porch = { 88, 88, 88 },
2805 .hback_porch = { 88, 88, 88 },
2806 .hsync_len = { 80, 80, 80 },
2807 .vactive = { 480, 480, 480 },
2808 .vfront_porch = { 10, 10, 10 },
2809 .vback_porch = { 10, 10, 10 },
2810 .vsync_len = { 25, 25, 25 },
2813 static const struct panel_desc lg_lb070wv8 = {
2814 .timings = &lg_lb070wv8_timing,
2821 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2822 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2825 static const struct display_timing logictechno_lt161010_2nh_timing = {
2826 .pixelclock = { 26400000, 33300000, 46800000 },
2827 .hactive = { 800, 800, 800 },
2828 .hfront_porch = { 16, 210, 354 },
2829 .hback_porch = { 46, 46, 46 },
2830 .hsync_len = { 1, 20, 40 },
2831 .vactive = { 480, 480, 480 },
2832 .vfront_porch = { 7, 22, 147 },
2833 .vback_porch = { 23, 23, 23 },
2834 .vsync_len = { 1, 10, 20 },
2835 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2836 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2837 DISPLAY_FLAGS_SYNC_POSEDGE,
2840 static const struct panel_desc logictechno_lt161010_2nh = {
2841 .timings = &logictechno_lt161010_2nh_timing,
2848 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2849 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
2850 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2851 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
2852 .connector_type = DRM_MODE_CONNECTOR_DPI,
2855 static const struct display_timing logictechno_lt170410_2whc_timing = {
2856 .pixelclock = { 68900000, 71100000, 73400000 },
2857 .hactive = { 1280, 1280, 1280 },
2858 .hfront_porch = { 23, 60, 71 },
2859 .hback_porch = { 23, 60, 71 },
2860 .hsync_len = { 15, 40, 47 },
2861 .vactive = { 800, 800, 800 },
2862 .vfront_porch = { 5, 7, 10 },
2863 .vback_porch = { 5, 7, 10 },
2864 .vsync_len = { 6, 9, 12 },
2865 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2866 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2867 DISPLAY_FLAGS_SYNC_POSEDGE,
2870 static const struct panel_desc logictechno_lt170410_2whc = {
2871 .timings = &logictechno_lt170410_2whc_timing,
2878 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2879 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2880 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2883 static const struct drm_display_mode logictechno_lttd800480070_l2rt_mode = {
2886 .hsync_start = 800 + 112,
2887 .hsync_end = 800 + 112 + 3,
2888 .htotal = 800 + 112 + 3 + 85,
2890 .vsync_start = 480 + 38,
2891 .vsync_end = 480 + 38 + 3,
2892 .vtotal = 480 + 38 + 3 + 29,
2893 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2896 static const struct panel_desc logictechno_lttd800480070_l2rt = {
2897 .modes = &logictechno_lttd800480070_l2rt_mode,
2910 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2911 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2912 .connector_type = DRM_MODE_CONNECTOR_DPI,
2915 static const struct drm_display_mode logictechno_lttd800480070_l6wh_rt_mode = {
2918 .hsync_start = 800 + 154,
2919 .hsync_end = 800 + 154 + 3,
2920 .htotal = 800 + 154 + 3 + 43,
2922 .vsync_start = 480 + 47,
2923 .vsync_end = 480 + 47 + 3,
2924 .vtotal = 480 + 47 + 3 + 20,
2925 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2928 static const struct panel_desc logictechno_lttd800480070_l6wh_rt = {
2929 .modes = &logictechno_lttd800480070_l6wh_rt_mode,
2942 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2943 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2944 .connector_type = DRM_MODE_CONNECTOR_DPI,
2947 static const struct drm_display_mode logicpd_type_28_mode = {
2950 .hsync_start = 480 + 3,
2951 .hsync_end = 480 + 3 + 42,
2952 .htotal = 480 + 3 + 42 + 2,
2955 .vsync_start = 272 + 2,
2956 .vsync_end = 272 + 2 + 11,
2957 .vtotal = 272 + 2 + 11 + 3,
2958 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
2961 static const struct panel_desc logicpd_type_28 = {
2962 .modes = &logicpd_type_28_mode,
2975 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2976 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
2977 DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
2978 .connector_type = DRM_MODE_CONNECTOR_DPI,
2981 static const struct drm_display_mode mitsubishi_aa070mc01_mode = {
2984 .hsync_start = 800 + 0,
2985 .hsync_end = 800 + 1,
2986 .htotal = 800 + 0 + 1 + 160,
2988 .vsync_start = 480 + 0,
2989 .vsync_end = 480 + 48 + 1,
2990 .vtotal = 480 + 48 + 1 + 0,
2991 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2994 static const struct panel_desc mitsubishi_aa070mc01 = {
2995 .modes = &mitsubishi_aa070mc01_mode,
3008 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3009 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3010 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3013 static const struct drm_display_mode mitsubishi_aa084xe01_mode = {
3016 .hsync_start = 1024 + 24,
3017 .hsync_end = 1024 + 24 + 63,
3018 .htotal = 1024 + 24 + 63 + 1,
3020 .vsync_start = 768 + 3,
3021 .vsync_end = 768 + 3 + 6,
3022 .vtotal = 768 + 3 + 6 + 1,
3023 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3026 static const struct panel_desc mitsubishi_aa084xe01 = {
3027 .modes = &mitsubishi_aa084xe01_mode,
3034 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
3035 .connector_type = DRM_MODE_CONNECTOR_DPI,
3036 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3039 static const struct display_timing multi_inno_mi0700s4t_6_timing = {
3040 .pixelclock = { 29000000, 33000000, 38000000 },
3041 .hactive = { 800, 800, 800 },
3042 .hfront_porch = { 180, 210, 240 },
3043 .hback_porch = { 16, 16, 16 },
3044 .hsync_len = { 30, 30, 30 },
3045 .vactive = { 480, 480, 480 },
3046 .vfront_porch = { 12, 22, 32 },
3047 .vback_porch = { 10, 10, 10 },
3048 .vsync_len = { 13, 13, 13 },
3049 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3050 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3051 DISPLAY_FLAGS_SYNC_POSEDGE,
3054 static const struct panel_desc multi_inno_mi0700s4t_6 = {
3055 .timings = &multi_inno_mi0700s4t_6_timing,
3062 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3063 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3064 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3065 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3066 .connector_type = DRM_MODE_CONNECTOR_DPI,
3069 static const struct display_timing multi_inno_mi0800ft_9_timing = {
3070 .pixelclock = { 32000000, 40000000, 50000000 },
3071 .hactive = { 800, 800, 800 },
3072 .hfront_porch = { 16, 210, 354 },
3073 .hback_porch = { 6, 26, 45 },
3074 .hsync_len = { 1, 20, 40 },
3075 .vactive = { 600, 600, 600 },
3076 .vfront_porch = { 1, 12, 77 },
3077 .vback_porch = { 3, 13, 22 },
3078 .vsync_len = { 1, 10, 20 },
3079 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3080 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3081 DISPLAY_FLAGS_SYNC_POSEDGE,
3084 static const struct panel_desc multi_inno_mi0800ft_9 = {
3085 .timings = &multi_inno_mi0800ft_9_timing,
3092 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3093 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3094 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3095 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3096 .connector_type = DRM_MODE_CONNECTOR_DPI,
3099 static const struct display_timing multi_inno_mi1010ait_1cp_timing = {
3100 .pixelclock = { 68900000, 70000000, 73400000 },
3101 .hactive = { 1280, 1280, 1280 },
3102 .hfront_porch = { 30, 60, 71 },
3103 .hback_porch = { 30, 60, 71 },
3104 .hsync_len = { 10, 10, 48 },
3105 .vactive = { 800, 800, 800 },
3106 .vfront_porch = { 5, 10, 10 },
3107 .vback_porch = { 5, 10, 10 },
3108 .vsync_len = { 5, 6, 13 },
3109 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3110 DISPLAY_FLAGS_DE_HIGH,
3113 static const struct panel_desc multi_inno_mi1010ait_1cp = {
3114 .timings = &multi_inno_mi1010ait_1cp_timing,
3125 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3126 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3127 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3130 static const struct display_timing nec_nl12880bc20_05_timing = {
3131 .pixelclock = { 67000000, 71000000, 75000000 },
3132 .hactive = { 1280, 1280, 1280 },
3133 .hfront_porch = { 2, 30, 30 },
3134 .hback_porch = { 6, 100, 100 },
3135 .hsync_len = { 2, 30, 30 },
3136 .vactive = { 800, 800, 800 },
3137 .vfront_porch = { 5, 5, 5 },
3138 .vback_porch = { 11, 11, 11 },
3139 .vsync_len = { 7, 7, 7 },
3142 static const struct panel_desc nec_nl12880bc20_05 = {
3143 .timings = &nec_nl12880bc20_05_timing,
3154 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3155 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3158 static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
3161 .hsync_start = 480 + 2,
3162 .hsync_end = 480 + 2 + 41,
3163 .htotal = 480 + 2 + 41 + 2,
3165 .vsync_start = 272 + 2,
3166 .vsync_end = 272 + 2 + 4,
3167 .vtotal = 272 + 2 + 4 + 2,
3168 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3171 static const struct panel_desc nec_nl4827hc19_05b = {
3172 .modes = &nec_nl4827hc19_05b_mode,
3179 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3180 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3183 static const struct drm_display_mode netron_dy_e231732_mode = {
3186 .hsync_start = 1024 + 160,
3187 .hsync_end = 1024 + 160 + 70,
3188 .htotal = 1024 + 160 + 70 + 90,
3190 .vsync_start = 600 + 127,
3191 .vsync_end = 600 + 127 + 20,
3192 .vtotal = 600 + 127 + 20 + 3,
3195 static const struct panel_desc netron_dy_e231732 = {
3196 .modes = &netron_dy_e231732_mode,
3202 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3205 static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = {
3208 .hsync_start = 480 + 2,
3209 .hsync_end = 480 + 2 + 41,
3210 .htotal = 480 + 2 + 41 + 2,
3212 .vsync_start = 272 + 2,
3213 .vsync_end = 272 + 2 + 10,
3214 .vtotal = 272 + 2 + 10 + 2,
3215 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3218 static const struct panel_desc newhaven_nhd_43_480272ef_atxl = {
3219 .modes = &newhaven_nhd_43_480272ef_atxl_mode,
3226 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3227 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3228 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3229 .connector_type = DRM_MODE_CONNECTOR_DPI,
3232 static const struct display_timing nlt_nl192108ac18_02d_timing = {
3233 .pixelclock = { 130000000, 148350000, 163000000 },
3234 .hactive = { 1920, 1920, 1920 },
3235 .hfront_porch = { 80, 100, 100 },
3236 .hback_porch = { 100, 120, 120 },
3237 .hsync_len = { 50, 60, 60 },
3238 .vactive = { 1080, 1080, 1080 },
3239 .vfront_porch = { 12, 30, 30 },
3240 .vback_porch = { 4, 10, 10 },
3241 .vsync_len = { 4, 5, 5 },
3244 static const struct panel_desc nlt_nl192108ac18_02d = {
3245 .timings = &nlt_nl192108ac18_02d_timing,
3255 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3256 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3259 static const struct drm_display_mode nvd_9128_mode = {
3262 .hsync_start = 800 + 130,
3263 .hsync_end = 800 + 130 + 98,
3264 .htotal = 800 + 0 + 130 + 98,
3266 .vsync_start = 480 + 10,
3267 .vsync_end = 480 + 10 + 50,
3268 .vtotal = 480 + 0 + 10 + 50,
3271 static const struct panel_desc nvd_9128 = {
3272 .modes = &nvd_9128_mode,
3279 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3280 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3283 static const struct display_timing okaya_rs800480t_7x0gp_timing = {
3284 .pixelclock = { 30000000, 30000000, 40000000 },
3285 .hactive = { 800, 800, 800 },
3286 .hfront_porch = { 40, 40, 40 },
3287 .hback_porch = { 40, 40, 40 },
3288 .hsync_len = { 1, 48, 48 },
3289 .vactive = { 480, 480, 480 },
3290 .vfront_porch = { 13, 13, 13 },
3291 .vback_porch = { 29, 29, 29 },
3292 .vsync_len = { 3, 3, 3 },
3293 .flags = DISPLAY_FLAGS_DE_HIGH,
3296 static const struct panel_desc okaya_rs800480t_7x0gp = {
3297 .timings = &okaya_rs800480t_7x0gp_timing,
3310 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3313 static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = {
3316 .hsync_start = 480 + 5,
3317 .hsync_end = 480 + 5 + 30,
3318 .htotal = 480 + 5 + 30 + 10,
3320 .vsync_start = 272 + 8,
3321 .vsync_end = 272 + 8 + 5,
3322 .vtotal = 272 + 8 + 5 + 3,
3325 static const struct panel_desc olimex_lcd_olinuxino_43ts = {
3326 .modes = &olimex_lcd_olinuxino_43ts_mode,
3332 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3336 * 800x480 CVT. The panel appears to be quite accepting, at least as far as
3337 * pixel clocks, but this is the timing that was being used in the Adafruit
3338 * installation instructions.
3340 static const struct drm_display_mode ontat_yx700wv03_mode = {
3350 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3355 * https://www.adafruit.com/images/product-files/2406/c3163.pdf
3357 static const struct panel_desc ontat_yx700wv03 = {
3358 .modes = &ontat_yx700wv03_mode,
3365 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3368 static const struct drm_display_mode ortustech_com37h3m_mode = {
3371 .hsync_start = 480 + 40,
3372 .hsync_end = 480 + 40 + 10,
3373 .htotal = 480 + 40 + 10 + 40,
3375 .vsync_start = 640 + 4,
3376 .vsync_end = 640 + 4 + 2,
3377 .vtotal = 640 + 4 + 2 + 4,
3378 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3381 static const struct panel_desc ortustech_com37h3m = {
3382 .modes = &ortustech_com37h3m_mode,
3386 .width = 56, /* 56.16mm */
3387 .height = 75, /* 74.88mm */
3389 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3390 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3391 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3394 static const struct drm_display_mode ortustech_com43h4m85ulc_mode = {
3397 .hsync_start = 480 + 10,
3398 .hsync_end = 480 + 10 + 10,
3399 .htotal = 480 + 10 + 10 + 15,
3401 .vsync_start = 800 + 3,
3402 .vsync_end = 800 + 3 + 3,
3403 .vtotal = 800 + 3 + 3 + 3,
3406 static const struct panel_desc ortustech_com43h4m85ulc = {
3407 .modes = &ortustech_com43h4m85ulc_mode,
3414 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3415 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3416 .connector_type = DRM_MODE_CONNECTOR_DPI,
3419 static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = {
3422 .hsync_start = 800 + 210,
3423 .hsync_end = 800 + 210 + 30,
3424 .htotal = 800 + 210 + 30 + 16,
3426 .vsync_start = 480 + 22,
3427 .vsync_end = 480 + 22 + 13,
3428 .vtotal = 480 + 22 + 13 + 10,
3429 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3432 static const struct panel_desc osddisplays_osd070t1718_19ts = {
3433 .modes = &osddisplays_osd070t1718_19ts_mode,
3440 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3441 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3442 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3443 .connector_type = DRM_MODE_CONNECTOR_DPI,
3446 static const struct drm_display_mode pda_91_00156_a0_mode = {
3449 .hsync_start = 800 + 1,
3450 .hsync_end = 800 + 1 + 64,
3451 .htotal = 800 + 1 + 64 + 64,
3453 .vsync_start = 480 + 1,
3454 .vsync_end = 480 + 1 + 23,
3455 .vtotal = 480 + 1 + 23 + 22,
3458 static const struct panel_desc pda_91_00156_a0 = {
3459 .modes = &pda_91_00156_a0_mode,
3465 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3468 static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
3471 .hsync_start = 800 + 54,
3472 .hsync_end = 800 + 54 + 2,
3473 .htotal = 800 + 54 + 2 + 44,
3475 .vsync_start = 480 + 49,
3476 .vsync_end = 480 + 49 + 2,
3477 .vtotal = 480 + 49 + 2 + 22,
3478 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3481 static const struct panel_desc powertip_ph800480t013_idf02 = {
3482 .modes = &powertip_ph800480t013_idf02_mode,
3489 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3490 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3491 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3492 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3493 .connector_type = DRM_MODE_CONNECTOR_DPI,
3496 static const struct drm_display_mode qd43003c0_40_mode = {
3499 .hsync_start = 480 + 8,
3500 .hsync_end = 480 + 8 + 4,
3501 .htotal = 480 + 8 + 4 + 39,
3503 .vsync_start = 272 + 4,
3504 .vsync_end = 272 + 4 + 10,
3505 .vtotal = 272 + 4 + 10 + 2,
3508 static const struct panel_desc qd43003c0_40 = {
3509 .modes = &qd43003c0_40_mode,
3516 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3519 static const struct drm_display_mode qishenglong_gopher2b_lcd_modes[] = {
3523 .hsync_start = 480 + 77,
3524 .hsync_end = 480 + 77 + 41,
3525 .htotal = 480 + 77 + 41 + 2,
3527 .vsync_start = 272 + 16,
3528 .vsync_end = 272 + 16 + 10,
3529 .vtotal = 272 + 16 + 10 + 2,
3530 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3535 .hsync_start = 480 + 17,
3536 .hsync_end = 480 + 17 + 41,
3537 .htotal = 480 + 17 + 41 + 2,
3539 .vsync_start = 272 + 116,
3540 .vsync_end = 272 + 116 + 10,
3541 .vtotal = 272 + 116 + 10 + 2,
3542 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3546 static const struct panel_desc qishenglong_gopher2b_lcd = {
3547 .modes = qishenglong_gopher2b_lcd_modes,
3548 .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_modes),
3554 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3555 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3556 .connector_type = DRM_MODE_CONNECTOR_DPI,
3559 static const struct display_timing rocktech_rk043fn48h_timing = {
3560 .pixelclock = { 6000000, 9000000, 12000000 },
3561 .hactive = { 480, 480, 480 },
3562 .hback_porch = { 8, 43, 43 },
3563 .hfront_porch = { 2, 8, 10 },
3564 .hsync_len = { 1, 1, 1 },
3565 .vactive = { 272, 272, 272 },
3566 .vback_porch = { 2, 12, 26 },
3567 .vfront_porch = { 1, 4, 4 },
3568 .vsync_len = { 1, 10, 10 },
3569 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
3570 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3571 DISPLAY_FLAGS_SYNC_POSEDGE,
3574 static const struct panel_desc rocktech_rk043fn48h = {
3575 .timings = &rocktech_rk043fn48h_timing,
3582 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3583 .connector_type = DRM_MODE_CONNECTOR_DPI,
3586 static const struct display_timing rocktech_rk070er9427_timing = {
3587 .pixelclock = { 26400000, 33300000, 46800000 },
3588 .hactive = { 800, 800, 800 },
3589 .hfront_porch = { 16, 210, 354 },
3590 .hback_porch = { 46, 46, 46 },
3591 .hsync_len = { 1, 1, 1 },
3592 .vactive = { 480, 480, 480 },
3593 .vfront_porch = { 7, 22, 147 },
3594 .vback_porch = { 23, 23, 23 },
3595 .vsync_len = { 1, 1, 1 },
3596 .flags = DISPLAY_FLAGS_DE_HIGH,
3599 static const struct panel_desc rocktech_rk070er9427 = {
3600 .timings = &rocktech_rk070er9427_timing,
3613 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3616 static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = {
3619 .hsync_start = 1280 + 48,
3620 .hsync_end = 1280 + 48 + 32,
3621 .htotal = 1280 + 48 + 32 + 80,
3623 .vsync_start = 800 + 2,
3624 .vsync_end = 800 + 2 + 5,
3625 .vtotal = 800 + 2 + 5 + 16,
3628 static const struct panel_desc rocktech_rk101ii01d_ct = {
3629 .modes = &rocktech_rk101ii01d_ct_mode,
3640 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3641 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3642 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3645 static const struct display_timing samsung_ltl101al01_timing = {
3646 .pixelclock = { 66663000, 66663000, 66663000 },
3647 .hactive = { 1280, 1280, 1280 },
3648 .hfront_porch = { 18, 18, 18 },
3649 .hback_porch = { 36, 36, 36 },
3650 .hsync_len = { 16, 16, 16 },
3651 .vactive = { 800, 800, 800 },
3652 .vfront_porch = { 4, 4, 4 },
3653 .vback_porch = { 16, 16, 16 },
3654 .vsync_len = { 3, 3, 3 },
3655 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
3658 static const struct panel_desc samsung_ltl101al01 = {
3659 .timings = &samsung_ltl101al01_timing,
3672 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3673 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3676 static const struct drm_display_mode samsung_ltn101nt05_mode = {
3679 .hsync_start = 1024 + 24,
3680 .hsync_end = 1024 + 24 + 136,
3681 .htotal = 1024 + 24 + 136 + 160,
3683 .vsync_start = 600 + 3,
3684 .vsync_end = 600 + 3 + 6,
3685 .vtotal = 600 + 3 + 6 + 61,
3688 static const struct panel_desc samsung_ltn101nt05 = {
3689 .modes = &samsung_ltn101nt05_mode,
3696 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3697 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3698 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3701 static const struct display_timing satoz_sat050at40h12r2_timing = {
3702 .pixelclock = {33300000, 33300000, 50000000},
3703 .hactive = {800, 800, 800},
3704 .hfront_porch = {16, 210, 354},
3705 .hback_porch = {46, 46, 46},
3706 .hsync_len = {1, 1, 40},
3707 .vactive = {480, 480, 480},
3708 .vfront_porch = {7, 22, 147},
3709 .vback_porch = {23, 23, 23},
3710 .vsync_len = {1, 1, 20},
3713 static const struct panel_desc satoz_sat050at40h12r2 = {
3714 .timings = &satoz_sat050at40h12r2_timing,
3721 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3722 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3725 static const struct drm_display_mode sharp_lq070y3dg3b_mode = {
3728 .hsync_start = 800 + 64,
3729 .hsync_end = 800 + 64 + 128,
3730 .htotal = 800 + 64 + 128 + 64,
3732 .vsync_start = 480 + 8,
3733 .vsync_end = 480 + 8 + 2,
3734 .vtotal = 480 + 8 + 2 + 35,
3735 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3738 static const struct panel_desc sharp_lq070y3dg3b = {
3739 .modes = &sharp_lq070y3dg3b_mode,
3743 .width = 152, /* 152.4mm */
3744 .height = 91, /* 91.4mm */
3746 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3747 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3748 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3751 static const struct drm_display_mode sharp_lq035q7db03_mode = {
3754 .hsync_start = 240 + 16,
3755 .hsync_end = 240 + 16 + 7,
3756 .htotal = 240 + 16 + 7 + 5,
3758 .vsync_start = 320 + 9,
3759 .vsync_end = 320 + 9 + 1,
3760 .vtotal = 320 + 9 + 1 + 7,
3763 static const struct panel_desc sharp_lq035q7db03 = {
3764 .modes = &sharp_lq035q7db03_mode,
3771 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3774 static const struct display_timing sharp_lq101k1ly04_timing = {
3775 .pixelclock = { 60000000, 65000000, 80000000 },
3776 .hactive = { 1280, 1280, 1280 },
3777 .hfront_porch = { 20, 20, 20 },
3778 .hback_porch = { 20, 20, 20 },
3779 .hsync_len = { 10, 10, 10 },
3780 .vactive = { 800, 800, 800 },
3781 .vfront_porch = { 4, 4, 4 },
3782 .vback_porch = { 4, 4, 4 },
3783 .vsync_len = { 4, 4, 4 },
3784 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3787 static const struct panel_desc sharp_lq101k1ly04 = {
3788 .timings = &sharp_lq101k1ly04_timing,
3795 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
3796 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3799 static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = {
3803 .hsync_start = 240 + 58,
3804 .hsync_end = 240 + 58 + 1,
3805 .htotal = 240 + 58 + 1 + 1,
3807 .vsync_start = 160 + 24,
3808 .vsync_end = 160 + 24 + 10,
3809 .vtotal = 160 + 24 + 10 + 6,
3810 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3815 .hsync_start = 240 + 8,
3816 .hsync_end = 240 + 8 + 1,
3817 .htotal = 240 + 8 + 1 + 1,
3819 .vsync_start = 160 + 24,
3820 .vsync_end = 160 + 24 + 10,
3821 .vtotal = 160 + 24 + 10 + 6,
3822 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3826 static const struct panel_desc sharp_ls020b1dd01d = {
3827 .modes = sharp_ls020b1dd01d_modes,
3828 .num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes),
3834 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
3835 .bus_flags = DRM_BUS_FLAG_DE_HIGH
3836 | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE
3837 | DRM_BUS_FLAG_SHARP_SIGNALS,
3840 static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
3843 .hsync_start = 800 + 1,
3844 .hsync_end = 800 + 1 + 64,
3845 .htotal = 800 + 1 + 64 + 64,
3847 .vsync_start = 480 + 1,
3848 .vsync_end = 480 + 1 + 23,
3849 .vtotal = 480 + 1 + 23 + 22,
3852 static const struct panel_desc shelly_sca07010_bfn_lnn = {
3853 .modes = &shelly_sca07010_bfn_lnn_mode,
3859 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3862 static const struct drm_display_mode starry_kr070pe2t_mode = {
3865 .hsync_start = 800 + 209,
3866 .hsync_end = 800 + 209 + 1,
3867 .htotal = 800 + 209 + 1 + 45,
3869 .vsync_start = 480 + 22,
3870 .vsync_end = 480 + 22 + 1,
3871 .vtotal = 480 + 22 + 1 + 22,
3874 static const struct panel_desc starry_kr070pe2t = {
3875 .modes = &starry_kr070pe2t_mode,
3882 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3883 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
3884 .connector_type = DRM_MODE_CONNECTOR_DPI,
3887 static const struct display_timing startek_kd070wvfpa_mode = {
3888 .pixelclock = { 25200000, 27200000, 30500000 },
3889 .hactive = { 800, 800, 800 },
3890 .hfront_porch = { 19, 44, 115 },
3891 .hback_porch = { 5, 16, 101 },
3892 .hsync_len = { 1, 2, 100 },
3893 .vactive = { 480, 480, 480 },
3894 .vfront_porch = { 5, 43, 67 },
3895 .vback_porch = { 5, 5, 67 },
3896 .vsync_len = { 1, 2, 66 },
3897 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3898 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3899 DISPLAY_FLAGS_SYNC_POSEDGE,
3902 static const struct panel_desc startek_kd070wvfpa = {
3903 .timings = &startek_kd070wvfpa_mode,
3915 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3916 .connector_type = DRM_MODE_CONNECTOR_DPI,
3917 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3918 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3919 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3922 static const struct display_timing tsd_tst043015cmhx_timing = {
3923 .pixelclock = { 5000000, 9000000, 12000000 },
3924 .hactive = { 480, 480, 480 },
3925 .hfront_porch = { 4, 5, 65 },
3926 .hback_porch = { 36, 40, 255 },
3927 .hsync_len = { 1, 1, 1 },
3928 .vactive = { 272, 272, 272 },
3929 .vfront_porch = { 2, 8, 97 },
3930 .vback_porch = { 3, 8, 31 },
3931 .vsync_len = { 1, 1, 1 },
3933 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3934 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3937 static const struct panel_desc tsd_tst043015cmhx = {
3938 .timings = &tsd_tst043015cmhx_timing,
3945 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3946 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3949 static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = {
3952 .hsync_start = 800 + 39,
3953 .hsync_end = 800 + 39 + 47,
3954 .htotal = 800 + 39 + 47 + 39,
3956 .vsync_start = 480 + 13,
3957 .vsync_end = 480 + 13 + 2,
3958 .vtotal = 480 + 13 + 2 + 29,
3961 static const struct panel_desc tfc_s9700rtwv43tr_01b = {
3962 .modes = &tfc_s9700rtwv43tr_01b_mode,
3969 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3970 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3973 static const struct display_timing tianma_tm070jdhg30_timing = {
3974 .pixelclock = { 62600000, 68200000, 78100000 },
3975 .hactive = { 1280, 1280, 1280 },
3976 .hfront_porch = { 15, 64, 159 },
3977 .hback_porch = { 5, 5, 5 },
3978 .hsync_len = { 1, 1, 256 },
3979 .vactive = { 800, 800, 800 },
3980 .vfront_porch = { 3, 40, 99 },
3981 .vback_porch = { 2, 2, 2 },
3982 .vsync_len = { 1, 1, 128 },
3983 .flags = DISPLAY_FLAGS_DE_HIGH,
3986 static const struct panel_desc tianma_tm070jdhg30 = {
3987 .timings = &tianma_tm070jdhg30_timing,
3994 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3995 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3996 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3999 static const struct panel_desc tianma_tm070jvhg33 = {
4000 .timings = &tianma_tm070jdhg30_timing,
4007 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4008 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4009 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4012 static const struct display_timing tianma_tm070rvhg71_timing = {
4013 .pixelclock = { 27700000, 29200000, 39600000 },
4014 .hactive = { 800, 800, 800 },
4015 .hfront_porch = { 12, 40, 212 },
4016 .hback_porch = { 88, 88, 88 },
4017 .hsync_len = { 1, 1, 40 },
4018 .vactive = { 480, 480, 480 },
4019 .vfront_porch = { 1, 13, 88 },
4020 .vback_porch = { 32, 32, 32 },
4021 .vsync_len = { 1, 1, 3 },
4022 .flags = DISPLAY_FLAGS_DE_HIGH,
4025 static const struct panel_desc tianma_tm070rvhg71 = {
4026 .timings = &tianma_tm070rvhg71_timing,
4033 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4034 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4037 static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = {
4041 .hsync_start = 320 + 50,
4042 .hsync_end = 320 + 50 + 6,
4043 .htotal = 320 + 50 + 6 + 38,
4045 .vsync_start = 240 + 3,
4046 .vsync_end = 240 + 3 + 1,
4047 .vtotal = 240 + 3 + 1 + 17,
4048 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4052 static const struct panel_desc ti_nspire_cx_lcd_panel = {
4053 .modes = ti_nspire_cx_lcd_mode,
4060 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4061 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
4064 static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = {
4068 .hsync_start = 320 + 6,
4069 .hsync_end = 320 + 6 + 6,
4070 .htotal = 320 + 6 + 6 + 6,
4072 .vsync_start = 240 + 0,
4073 .vsync_end = 240 + 0 + 1,
4074 .vtotal = 240 + 0 + 1 + 0,
4075 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4079 static const struct panel_desc ti_nspire_classic_lcd_panel = {
4080 .modes = ti_nspire_classic_lcd_mode,
4082 /* The grayscale panel has 8 bit for the color .. Y (black) */
4088 /* This is the grayscale bus format */
4089 .bus_format = MEDIA_BUS_FMT_Y8_1X8,
4090 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4093 static const struct drm_display_mode toshiba_lt089ac29000_mode = {
4096 .hsync_start = 1280 + 192,
4097 .hsync_end = 1280 + 192 + 128,
4098 .htotal = 1280 + 192 + 128 + 64,
4100 .vsync_start = 768 + 20,
4101 .vsync_end = 768 + 20 + 7,
4102 .vtotal = 768 + 20 + 7 + 3,
4105 static const struct panel_desc toshiba_lt089ac29000 = {
4106 .modes = &toshiba_lt089ac29000_mode,
4112 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4113 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4114 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4117 static const struct drm_display_mode tpk_f07a_0102_mode = {
4120 .hsync_start = 800 + 40,
4121 .hsync_end = 800 + 40 + 128,
4122 .htotal = 800 + 40 + 128 + 88,
4124 .vsync_start = 480 + 10,
4125 .vsync_end = 480 + 10 + 2,
4126 .vtotal = 480 + 10 + 2 + 33,
4129 static const struct panel_desc tpk_f07a_0102 = {
4130 .modes = &tpk_f07a_0102_mode,
4136 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
4139 static const struct drm_display_mode tpk_f10a_0102_mode = {
4142 .hsync_start = 1024 + 176,
4143 .hsync_end = 1024 + 176 + 5,
4144 .htotal = 1024 + 176 + 5 + 88,
4146 .vsync_start = 600 + 20,
4147 .vsync_end = 600 + 20 + 5,
4148 .vtotal = 600 + 20 + 5 + 25,
4151 static const struct panel_desc tpk_f10a_0102 = {
4152 .modes = &tpk_f10a_0102_mode,
4160 static const struct display_timing urt_umsh_8596md_timing = {
4161 .pixelclock = { 33260000, 33260000, 33260000 },
4162 .hactive = { 800, 800, 800 },
4163 .hfront_porch = { 41, 41, 41 },
4164 .hback_porch = { 216 - 128, 216 - 128, 216 - 128 },
4165 .hsync_len = { 71, 128, 128 },
4166 .vactive = { 480, 480, 480 },
4167 .vfront_porch = { 10, 10, 10 },
4168 .vback_porch = { 35 - 2, 35 - 2, 35 - 2 },
4169 .vsync_len = { 2, 2, 2 },
4170 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
4171 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
4174 static const struct panel_desc urt_umsh_8596md_lvds = {
4175 .timings = &urt_umsh_8596md_timing,
4182 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4183 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4186 static const struct panel_desc urt_umsh_8596md_parallel = {
4187 .timings = &urt_umsh_8596md_timing,
4194 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4197 static const struct drm_display_mode vivax_tpc9150_panel_mode = {
4200 .hsync_start = 1024 + 160,
4201 .hsync_end = 1024 + 160 + 100,
4202 .htotal = 1024 + 160 + 100 + 60,
4204 .vsync_start = 600 + 12,
4205 .vsync_end = 600 + 12 + 10,
4206 .vtotal = 600 + 12 + 10 + 13,
4209 static const struct panel_desc vivax_tpc9150_panel = {
4210 .modes = &vivax_tpc9150_panel_mode,
4217 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4218 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4219 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4222 static const struct drm_display_mode vl050_8048nt_c01_mode = {
4225 .hsync_start = 800 + 210,
4226 .hsync_end = 800 + 210 + 20,
4227 .htotal = 800 + 210 + 20 + 46,
4229 .vsync_start = 480 + 22,
4230 .vsync_end = 480 + 22 + 10,
4231 .vtotal = 480 + 22 + 10 + 23,
4232 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4235 static const struct panel_desc vl050_8048nt_c01 = {
4236 .modes = &vl050_8048nt_c01_mode,
4243 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4244 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4247 static const struct drm_display_mode winstar_wf35ltiacd_mode = {
4250 .hsync_start = 320 + 20,
4251 .hsync_end = 320 + 20 + 30,
4252 .htotal = 320 + 20 + 30 + 38,
4254 .vsync_start = 240 + 4,
4255 .vsync_end = 240 + 4 + 3,
4256 .vtotal = 240 + 4 + 3 + 15,
4257 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4260 static const struct panel_desc winstar_wf35ltiacd = {
4261 .modes = &winstar_wf35ltiacd_mode,
4268 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4271 static const struct drm_display_mode yes_optoelectronics_ytc700tlag_05_201c_mode = {
4274 .hsync_start = 1024 + 100,
4275 .hsync_end = 1024 + 100 + 100,
4276 .htotal = 1024 + 100 + 100 + 120,
4278 .vsync_start = 600 + 10,
4279 .vsync_end = 600 + 10 + 10,
4280 .vtotal = 600 + 10 + 10 + 15,
4281 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4284 static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = {
4285 .modes = &yes_optoelectronics_ytc700tlag_05_201c_mode,
4292 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4293 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4294 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4297 static const struct drm_display_mode arm_rtsm_mode[] = {
4301 .hsync_start = 1024 + 24,
4302 .hsync_end = 1024 + 24 + 136,
4303 .htotal = 1024 + 24 + 136 + 160,
4305 .vsync_start = 768 + 3,
4306 .vsync_end = 768 + 3 + 6,
4307 .vtotal = 768 + 3 + 6 + 29,
4308 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4312 static const struct panel_desc arm_rtsm = {
4313 .modes = arm_rtsm_mode,
4320 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4323 static const struct of_device_id platform_of_match[] = {
4325 .compatible = "ampire,am-1280800n3tzqw-t00h",
4326 .data = &ire_am_1280800n3tzqw_t00h,
4328 .compatible = "ampire,am-480272h3tmqw-t01h",
4329 .data = &ire_am_480272h3tmqw_t01h,
4331 .compatible = "ampire,am-800480l1tmqw-t00h",
4332 .data = &ire_am_800480l1tmqw_t00h,
4334 .compatible = "ampire,am800480r3tmqwa1h",
4335 .data = &ire_am800480r3tmqwa1h,
4337 .compatible = "ampire,am800600p5tmqw-tb8h",
4338 .data = &ire_am800600p5tmqwtb8h,
4340 .compatible = "arm,rtsm-display",
4343 .compatible = "armadeus,st0700-adapt",
4344 .data = &armadeus_st0700_adapt,
4346 .compatible = "auo,b101aw03",
4347 .data = &auo_b101aw03,
4349 .compatible = "auo,b101xtn01",
4350 .data = &auo_b101xtn01,
4352 .compatible = "auo,b116xw03",
4353 .data = &auo_b116xw03,
4355 .compatible = "auo,g070vvn01",
4356 .data = &auo_g070vvn01,
4358 .compatible = "auo,g101evn010",
4359 .data = &auo_g101evn010,
4361 .compatible = "auo,g104sn02",
4362 .data = &auo_g104sn02,
4364 .compatible = "auo,g121ean01",
4365 .data = &auo_g121ean01,
4367 .compatible = "auo,g133han01",
4368 .data = &auo_g133han01,
4370 .compatible = "auo,g156han04",
4371 .data = &auo_g156han04,
4373 .compatible = "auo,g156xtn01",
4374 .data = &auo_g156xtn01,
4376 .compatible = "auo,g185han01",
4377 .data = &auo_g185han01,
4379 .compatible = "auo,g190ean01",
4380 .data = &auo_g190ean01,
4382 .compatible = "auo,p320hvn03",
4383 .data = &auo_p320hvn03,
4385 .compatible = "auo,t215hvn01",
4386 .data = &auo_t215hvn01,
4388 .compatible = "avic,tm070ddh03",
4389 .data = &avic_tm070ddh03,
4391 .compatible = "bananapi,s070wv20-ct16",
4392 .data = &bananapi_s070wv20_ct16,
4394 .compatible = "boe,bp082wx1-100",
4395 .data = &boe_bp082wx1_100,
4397 .compatible = "boe,bp101wx1-100",
4398 .data = &boe_bp101wx1_100,
4400 .compatible = "boe,ev121wxm-n10-1850",
4401 .data = &boe_ev121wxm_n10_1850,
4403 .compatible = "boe,hv070wsa-100",
4404 .data = &boe_hv070wsa
4406 .compatible = "cdtech,s043wq26h-ct7",
4407 .data = &cdtech_s043wq26h_ct7,
4409 .compatible = "cdtech,s070pws19hp-fc21",
4410 .data = &cdtech_s070pws19hp_fc21,
4412 .compatible = "cdtech,s070swv29hg-dc44",
4413 .data = &cdtech_s070swv29hg_dc44,
4415 .compatible = "cdtech,s070wv95-ct16",
4416 .data = &cdtech_s070wv95_ct16,
4418 .compatible = "chefree,ch101olhlwh-002",
4419 .data = &chefree_ch101olhlwh_002,
4421 .compatible = "chunghwa,claa070wp03xg",
4422 .data = &chunghwa_claa070wp03xg,
4424 .compatible = "chunghwa,claa101wa01a",
4425 .data = &chunghwa_claa101wa01a
4427 .compatible = "chunghwa,claa101wb01",
4428 .data = &chunghwa_claa101wb01
4430 .compatible = "dataimage,fg040346dsswbg04",
4431 .data = &dataimage_fg040346dsswbg04,
4433 .compatible = "dataimage,fg1001l0dsswmg01",
4434 .data = &dataimage_fg1001l0dsswmg01,
4436 .compatible = "dataimage,scf0700c48ggu18",
4437 .data = &dataimage_scf0700c48ggu18,
4439 .compatible = "dlc,dlc0700yzg-1",
4440 .data = &dlc_dlc0700yzg_1,
4442 .compatible = "dlc,dlc1010gig",
4443 .data = &dlc_dlc1010gig,
4445 .compatible = "edt,et035012dm6",
4446 .data = &edt_et035012dm6,
4448 .compatible = "edt,etm0350g0dh6",
4449 .data = &edt_etm0350g0dh6,
4451 .compatible = "edt,etm043080dh6gp",
4452 .data = &edt_etm043080dh6gp,
4454 .compatible = "edt,etm0430g0dh6",
4455 .data = &edt_etm0430g0dh6,
4457 .compatible = "edt,et057090dhu",
4458 .data = &edt_et057090dhu,
4460 .compatible = "edt,et070080dh6",
4461 .data = &edt_etm0700g0dh6,
4463 .compatible = "edt,etm0700g0dh6",
4464 .data = &edt_etm0700g0dh6,
4466 .compatible = "edt,etm0700g0bdh6",
4467 .data = &edt_etm0700g0bdh6,
4469 .compatible = "edt,etm0700g0edh6",
4470 .data = &edt_etm0700g0bdh6,
4472 .compatible = "edt,etml0700y5dha",
4473 .data = &edt_etml0700y5dha,
4475 .compatible = "edt,etml1010g3dra",
4476 .data = &edt_etml1010g3dra,
4478 .compatible = "edt,etmv570g2dhu",
4479 .data = &edt_etmv570g2dhu,
4481 .compatible = "eink,vb3300-kca",
4482 .data = &eink_vb3300_kca,
4484 .compatible = "evervision,vgg644804",
4485 .data = &evervision_vgg644804,
4487 .compatible = "evervision,vgg804821",
4488 .data = &evervision_vgg804821,
4490 .compatible = "foxlink,fl500wvr00-a0t",
4491 .data = &foxlink_fl500wvr00_a0t,
4493 .compatible = "frida,frd350h54004",
4494 .data = &frida_frd350h54004,
4496 .compatible = "friendlyarm,hd702e",
4497 .data = &friendlyarm_hd702e,
4499 .compatible = "giantplus,gpg482739qs5",
4500 .data = &giantplus_gpg482739qs5
4502 .compatible = "giantplus,gpm940b0",
4503 .data = &giantplus_gpm940b0,
4505 .compatible = "hannstar,hsd070pww1",
4506 .data = &hannstar_hsd070pww1,
4508 .compatible = "hannstar,hsd100pxn1",
4509 .data = &hannstar_hsd100pxn1,
4511 .compatible = "hannstar,hsd101pww2",
4512 .data = &hannstar_hsd101pww2,
4514 .compatible = "hit,tx23d38vm0caa",
4515 .data = &hitachi_tx23d38vm0caa
4517 .compatible = "innolux,at043tn24",
4518 .data = &innolux_at043tn24,
4520 .compatible = "innolux,at070tn92",
4521 .data = &innolux_at070tn92,
4523 .compatible = "innolux,g070ace-l01",
4524 .data = &innolux_g070ace_l01,
4526 .compatible = "innolux,g070y2-l01",
4527 .data = &innolux_g070y2_l01,
4529 .compatible = "innolux,g070y2-t02",
4530 .data = &innolux_g070y2_t02,
4532 .compatible = "innolux,g101ice-l01",
4533 .data = &innolux_g101ice_l01
4535 .compatible = "innolux,g121i1-l01",
4536 .data = &innolux_g121i1_l01
4538 .compatible = "innolux,g121x1-l03",
4539 .data = &innolux_g121x1_l03,
4541 .compatible = "innolux,g156hce-l01",
4542 .data = &innolux_g156hce_l01,
4544 .compatible = "innolux,n156bge-l21",
4545 .data = &innolux_n156bge_l21,
4547 .compatible = "innolux,zj070na-01p",
4548 .data = &innolux_zj070na_01p,
4550 .compatible = "koe,tx14d24vm1bpa",
4551 .data = &koe_tx14d24vm1bpa,
4553 .compatible = "koe,tx26d202vm0bwa",
4554 .data = &koe_tx26d202vm0bwa,
4556 .compatible = "koe,tx31d200vm0baa",
4557 .data = &koe_tx31d200vm0baa,
4559 .compatible = "kyo,tcg121xglp",
4560 .data = &kyo_tcg121xglp,
4562 .compatible = "lemaker,bl035-rgb-002",
4563 .data = &lemaker_bl035_rgb_002,
4565 .compatible = "lg,lb070wv8",
4566 .data = &lg_lb070wv8,
4568 .compatible = "logicpd,type28",
4569 .data = &logicpd_type_28,
4571 .compatible = "logictechno,lt161010-2nhc",
4572 .data = &logictechno_lt161010_2nh,
4574 .compatible = "logictechno,lt161010-2nhr",
4575 .data = &logictechno_lt161010_2nh,
4577 .compatible = "logictechno,lt170410-2whc",
4578 .data = &logictechno_lt170410_2whc,
4580 .compatible = "logictechno,lttd800480070-l2rt",
4581 .data = &logictechno_lttd800480070_l2rt,
4583 .compatible = "logictechno,lttd800480070-l6wh-rt",
4584 .data = &logictechno_lttd800480070_l6wh_rt,
4586 .compatible = "mitsubishi,aa070mc01-ca1",
4587 .data = &mitsubishi_aa070mc01,
4589 .compatible = "mitsubishi,aa084xe01",
4590 .data = &mitsubishi_aa084xe01,
4592 .compatible = "multi-inno,mi0700s4t-6",
4593 .data = &multi_inno_mi0700s4t_6,
4595 .compatible = "multi-inno,mi0800ft-9",
4596 .data = &multi_inno_mi0800ft_9,
4598 .compatible = "multi-inno,mi1010ait-1cp",
4599 .data = &multi_inno_mi1010ait_1cp,
4601 .compatible = "nec,nl12880bc20-05",
4602 .data = &nec_nl12880bc20_05,
4604 .compatible = "nec,nl4827hc19-05b",
4605 .data = &nec_nl4827hc19_05b,
4607 .compatible = "netron-dy,e231732",
4608 .data = &netron_dy_e231732,
4610 .compatible = "newhaven,nhd-4.3-480272ef-atxl",
4611 .data = &newhaven_nhd_43_480272ef_atxl,
4613 .compatible = "nlt,nl192108ac18-02d",
4614 .data = &nlt_nl192108ac18_02d,
4616 .compatible = "nvd,9128",
4619 .compatible = "okaya,rs800480t-7x0gp",
4620 .data = &okaya_rs800480t_7x0gp,
4622 .compatible = "olimex,lcd-olinuxino-43-ts",
4623 .data = &olimex_lcd_olinuxino_43ts,
4625 .compatible = "ontat,yx700wv03",
4626 .data = &ontat_yx700wv03,
4628 .compatible = "ortustech,com37h3m05dtc",
4629 .data = &ortustech_com37h3m,
4631 .compatible = "ortustech,com37h3m99dtc",
4632 .data = &ortustech_com37h3m,
4634 .compatible = "ortustech,com43h4m85ulc",
4635 .data = &ortustech_com43h4m85ulc,
4637 .compatible = "osddisplays,osd070t1718-19ts",
4638 .data = &osddisplays_osd070t1718_19ts,
4640 .compatible = "pda,91-00156-a0",
4641 .data = &pda_91_00156_a0,
4643 .compatible = "powertip,ph800480t013-idf02",
4644 .data = &powertip_ph800480t013_idf02,
4646 .compatible = "qiaodian,qd43003c0-40",
4647 .data = &qd43003c0_40,
4649 .compatible = "qishenglong,gopher2b-lcd",
4650 .data = &qishenglong_gopher2b_lcd,
4652 .compatible = "rocktech,rk043fn48h",
4653 .data = &rocktech_rk043fn48h,
4655 .compatible = "rocktech,rk070er9427",
4656 .data = &rocktech_rk070er9427,
4658 .compatible = "rocktech,rk101ii01d-ct",
4659 .data = &rocktech_rk101ii01d_ct,
4661 .compatible = "samsung,ltl101al01",
4662 .data = &samsung_ltl101al01,
4664 .compatible = "samsung,ltn101nt05",
4665 .data = &samsung_ltn101nt05,
4667 .compatible = "satoz,sat050at40h12r2",
4668 .data = &satoz_sat050at40h12r2,
4670 .compatible = "sharp,lq035q7db03",
4671 .data = &sharp_lq035q7db03,
4673 .compatible = "sharp,lq070y3dg3b",
4674 .data = &sharp_lq070y3dg3b,
4676 .compatible = "sharp,lq101k1ly04",
4677 .data = &sharp_lq101k1ly04,
4679 .compatible = "sharp,ls020b1dd01d",
4680 .data = &sharp_ls020b1dd01d,
4682 .compatible = "shelly,sca07010-bfn-lnn",
4683 .data = &shelly_sca07010_bfn_lnn,
4685 .compatible = "starry,kr070pe2t",
4686 .data = &starry_kr070pe2t,
4688 .compatible = "startek,kd070wvfpa",
4689 .data = &startek_kd070wvfpa,
4691 .compatible = "team-source-display,tst043015cmhx",
4692 .data = &tsd_tst043015cmhx,
4694 .compatible = "tfc,s9700rtwv43tr-01b",
4695 .data = &tfc_s9700rtwv43tr_01b,
4697 .compatible = "tianma,tm070jdhg30",
4698 .data = &tianma_tm070jdhg30,
4700 .compatible = "tianma,tm070jvhg33",
4701 .data = &tianma_tm070jvhg33,
4703 .compatible = "tianma,tm070rvhg71",
4704 .data = &tianma_tm070rvhg71,
4706 .compatible = "ti,nspire-cx-lcd-panel",
4707 .data = &ti_nspire_cx_lcd_panel,
4709 .compatible = "ti,nspire-classic-lcd-panel",
4710 .data = &ti_nspire_classic_lcd_panel,
4712 .compatible = "toshiba,lt089ac29000",
4713 .data = &toshiba_lt089ac29000,
4715 .compatible = "tpk,f07a-0102",
4716 .data = &tpk_f07a_0102,
4718 .compatible = "tpk,f10a-0102",
4719 .data = &tpk_f10a_0102,
4721 .compatible = "urt,umsh-8596md-t",
4722 .data = &urt_umsh_8596md_parallel,
4724 .compatible = "urt,umsh-8596md-1t",
4725 .data = &urt_umsh_8596md_parallel,
4727 .compatible = "urt,umsh-8596md-7t",
4728 .data = &urt_umsh_8596md_parallel,
4730 .compatible = "urt,umsh-8596md-11t",
4731 .data = &urt_umsh_8596md_lvds,
4733 .compatible = "urt,umsh-8596md-19t",
4734 .data = &urt_umsh_8596md_lvds,
4736 .compatible = "urt,umsh-8596md-20t",
4737 .data = &urt_umsh_8596md_parallel,
4739 .compatible = "vivax,tpc9150-panel",
4740 .data = &vivax_tpc9150_panel,
4742 .compatible = "vxt,vl050-8048nt-c01",
4743 .data = &vl050_8048nt_c01,
4745 .compatible = "winstar,wf35ltiacd",
4746 .data = &winstar_wf35ltiacd,
4748 .compatible = "yes-optoelectronics,ytc700tlag-05-201c",
4749 .data = &yes_optoelectronics_ytc700tlag_05_201c,
4751 /* Must be the last entry */
4752 .compatible = "panel-dpi",
4758 MODULE_DEVICE_TABLE(of, platform_of_match);
4760 static int panel_simple_platform_probe(struct platform_device *pdev)
4762 const struct panel_desc *desc;
4764 desc = of_device_get_match_data(&pdev->dev);
4768 return panel_simple_probe(&pdev->dev, desc);
4771 static void panel_simple_platform_remove(struct platform_device *pdev)
4773 panel_simple_remove(&pdev->dev);
4776 static void panel_simple_platform_shutdown(struct platform_device *pdev)
4778 panel_simple_shutdown(&pdev->dev);
4781 static const struct dev_pm_ops panel_simple_pm_ops = {
4782 SET_RUNTIME_PM_OPS(panel_simple_suspend, panel_simple_resume, NULL)
4783 SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
4784 pm_runtime_force_resume)
4787 static struct platform_driver panel_simple_platform_driver = {
4789 .name = "panel-simple",
4790 .of_match_table = platform_of_match,
4791 .pm = &panel_simple_pm_ops,
4793 .probe = panel_simple_platform_probe,
4794 .remove_new = panel_simple_platform_remove,
4795 .shutdown = panel_simple_platform_shutdown,
4798 struct panel_desc_dsi {
4799 struct panel_desc desc;
4801 unsigned long flags;
4802 enum mipi_dsi_pixel_format format;
4806 static const struct drm_display_mode auo_b080uan01_mode = {
4809 .hsync_start = 1200 + 62,
4810 .hsync_end = 1200 + 62 + 4,
4811 .htotal = 1200 + 62 + 4 + 62,
4813 .vsync_start = 1920 + 9,
4814 .vsync_end = 1920 + 9 + 2,
4815 .vtotal = 1920 + 9 + 2 + 8,
4818 static const struct panel_desc_dsi auo_b080uan01 = {
4820 .modes = &auo_b080uan01_mode,
4827 .connector_type = DRM_MODE_CONNECTOR_DSI,
4829 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4830 .format = MIPI_DSI_FMT_RGB888,
4834 static const struct drm_display_mode boe_tv080wum_nl0_mode = {
4837 .hsync_start = 1200 + 120,
4838 .hsync_end = 1200 + 120 + 20,
4839 .htotal = 1200 + 120 + 20 + 21,
4841 .vsync_start = 1920 + 21,
4842 .vsync_end = 1920 + 21 + 3,
4843 .vtotal = 1920 + 21 + 3 + 18,
4844 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4847 static const struct panel_desc_dsi boe_tv080wum_nl0 = {
4849 .modes = &boe_tv080wum_nl0_mode,
4855 .connector_type = DRM_MODE_CONNECTOR_DSI,
4857 .flags = MIPI_DSI_MODE_VIDEO |
4858 MIPI_DSI_MODE_VIDEO_BURST |
4859 MIPI_DSI_MODE_VIDEO_SYNC_PULSE,
4860 .format = MIPI_DSI_FMT_RGB888,
4864 static const struct drm_display_mode lg_ld070wx3_sl01_mode = {
4867 .hsync_start = 800 + 32,
4868 .hsync_end = 800 + 32 + 1,
4869 .htotal = 800 + 32 + 1 + 57,
4871 .vsync_start = 1280 + 28,
4872 .vsync_end = 1280 + 28 + 1,
4873 .vtotal = 1280 + 28 + 1 + 14,
4876 static const struct panel_desc_dsi lg_ld070wx3_sl01 = {
4878 .modes = &lg_ld070wx3_sl01_mode,
4885 .connector_type = DRM_MODE_CONNECTOR_DSI,
4887 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4888 .format = MIPI_DSI_FMT_RGB888,
4892 static const struct drm_display_mode lg_lh500wx1_sd03_mode = {
4895 .hsync_start = 720 + 12,
4896 .hsync_end = 720 + 12 + 4,
4897 .htotal = 720 + 12 + 4 + 112,
4899 .vsync_start = 1280 + 8,
4900 .vsync_end = 1280 + 8 + 4,
4901 .vtotal = 1280 + 8 + 4 + 12,
4904 static const struct panel_desc_dsi lg_lh500wx1_sd03 = {
4906 .modes = &lg_lh500wx1_sd03_mode,
4913 .connector_type = DRM_MODE_CONNECTOR_DSI,
4915 .flags = MIPI_DSI_MODE_VIDEO,
4916 .format = MIPI_DSI_FMT_RGB888,
4920 static const struct drm_display_mode panasonic_vvx10f004b00_mode = {
4923 .hsync_start = 1920 + 154,
4924 .hsync_end = 1920 + 154 + 16,
4925 .htotal = 1920 + 154 + 16 + 32,
4927 .vsync_start = 1200 + 17,
4928 .vsync_end = 1200 + 17 + 2,
4929 .vtotal = 1200 + 17 + 2 + 16,
4932 static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
4934 .modes = &panasonic_vvx10f004b00_mode,
4941 .connector_type = DRM_MODE_CONNECTOR_DSI,
4943 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
4944 MIPI_DSI_CLOCK_NON_CONTINUOUS,
4945 .format = MIPI_DSI_FMT_RGB888,
4949 static const struct drm_display_mode lg_acx467akm_7_mode = {
4952 .hsync_start = 1080 + 2,
4953 .hsync_end = 1080 + 2 + 2,
4954 .htotal = 1080 + 2 + 2 + 2,
4956 .vsync_start = 1920 + 2,
4957 .vsync_end = 1920 + 2 + 2,
4958 .vtotal = 1920 + 2 + 2 + 2,
4961 static const struct panel_desc_dsi lg_acx467akm_7 = {
4963 .modes = &lg_acx467akm_7_mode,
4970 .connector_type = DRM_MODE_CONNECTOR_DSI,
4973 .format = MIPI_DSI_FMT_RGB888,
4977 static const struct drm_display_mode osd101t2045_53ts_mode = {
4980 .hsync_start = 1920 + 112,
4981 .hsync_end = 1920 + 112 + 16,
4982 .htotal = 1920 + 112 + 16 + 32,
4984 .vsync_start = 1200 + 16,
4985 .vsync_end = 1200 + 16 + 2,
4986 .vtotal = 1200 + 16 + 2 + 16,
4987 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4990 static const struct panel_desc_dsi osd101t2045_53ts = {
4992 .modes = &osd101t2045_53ts_mode,
4999 .connector_type = DRM_MODE_CONNECTOR_DSI,
5001 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
5002 MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
5003 MIPI_DSI_MODE_NO_EOT_PACKET,
5004 .format = MIPI_DSI_FMT_RGB888,
5008 static const struct of_device_id dsi_of_match[] = {
5010 .compatible = "auo,b080uan01",
5011 .data = &auo_b080uan01
5013 .compatible = "boe,tv080wum-nl0",
5014 .data = &boe_tv080wum_nl0
5016 .compatible = "lg,ld070wx3-sl01",
5017 .data = &lg_ld070wx3_sl01
5019 .compatible = "lg,lh500wx1-sd03",
5020 .data = &lg_lh500wx1_sd03
5022 .compatible = "panasonic,vvx10f004b00",
5023 .data = &panasonic_vvx10f004b00
5025 .compatible = "lg,acx467akm-7",
5026 .data = &lg_acx467akm_7
5028 .compatible = "osddisplays,osd101t2045-53ts",
5029 .data = &osd101t2045_53ts
5034 MODULE_DEVICE_TABLE(of, dsi_of_match);
5036 static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
5038 const struct panel_desc_dsi *desc;
5041 desc = of_device_get_match_data(&dsi->dev);
5045 err = panel_simple_probe(&dsi->dev, &desc->desc);
5049 dsi->mode_flags = desc->flags;
5050 dsi->format = desc->format;
5051 dsi->lanes = desc->lanes;
5053 err = mipi_dsi_attach(dsi);
5055 struct panel_simple *panel = mipi_dsi_get_drvdata(dsi);
5057 drm_panel_remove(&panel->base);
5063 static void panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
5067 err = mipi_dsi_detach(dsi);
5069 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err);
5071 panel_simple_remove(&dsi->dev);
5074 static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi)
5076 panel_simple_shutdown(&dsi->dev);
5079 static struct mipi_dsi_driver panel_simple_dsi_driver = {
5081 .name = "panel-simple-dsi",
5082 .of_match_table = dsi_of_match,
5083 .pm = &panel_simple_pm_ops,
5085 .probe = panel_simple_dsi_probe,
5086 .remove = panel_simple_dsi_remove,
5087 .shutdown = panel_simple_dsi_shutdown,
5090 static int __init panel_simple_init(void)
5094 err = platform_driver_register(&panel_simple_platform_driver);
5098 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
5099 err = mipi_dsi_driver_register(&panel_simple_dsi_driver);
5101 goto err_did_platform_register;
5106 err_did_platform_register:
5107 platform_driver_unregister(&panel_simple_platform_driver);
5111 module_init(panel_simple_init);
5113 static void __exit panel_simple_exit(void)
5115 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI))
5116 mipi_dsi_driver_unregister(&panel_simple_dsi_driver);
5118 platform_driver_unregister(&panel_simple_platform_driver);
5120 module_exit(panel_simple_exit);
5123 MODULE_DESCRIPTION("DRM Driver for Simple Panels");
5124 MODULE_LICENSE("GPL and additional rights");