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_bp101wx1_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 display_timing boe_ev121wxm_n10_1850_timing = {
1388 .pixelclock = { 69922000, 71000000, 72293000 },
1389 .hactive = { 1280, 1280, 1280 },
1390 .hfront_porch = { 48, 48, 48 },
1391 .hback_porch = { 80, 80, 80 },
1392 .hsync_len = { 32, 32, 32 },
1393 .vactive = { 800, 800, 800 },
1394 .vfront_porch = { 3, 3, 3 },
1395 .vback_porch = { 14, 14, 14 },
1396 .vsync_len = { 6, 6, 6 },
1399 static const struct panel_desc boe_ev121wxm_n10_1850 = {
1400 .timings = &boe_ev121wxm_n10_1850_timing,
1413 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1414 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1415 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1418 static const struct drm_display_mode boe_hv070wsa_mode = {
1421 .hsync_start = 1024 + 30,
1422 .hsync_end = 1024 + 30 + 30,
1423 .htotal = 1024 + 30 + 30 + 30,
1425 .vsync_start = 600 + 10,
1426 .vsync_end = 600 + 10 + 10,
1427 .vtotal = 600 + 10 + 10 + 10,
1430 static const struct panel_desc boe_hv070wsa = {
1431 .modes = &boe_hv070wsa_mode,
1438 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1439 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1440 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1443 static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = {
1446 .hsync_start = 480 + 5,
1447 .hsync_end = 480 + 5 + 5,
1448 .htotal = 480 + 5 + 5 + 40,
1450 .vsync_start = 272 + 8,
1451 .vsync_end = 272 + 8 + 8,
1452 .vtotal = 272 + 8 + 8 + 8,
1453 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1456 static const struct panel_desc cdtech_s043wq26h_ct7 = {
1457 .modes = &cdtech_s043wq26h_ct7_mode,
1464 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1467 /* S070PWS19HP-FC21 2017/04/22 */
1468 static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = {
1471 .hsync_start = 1024 + 160,
1472 .hsync_end = 1024 + 160 + 20,
1473 .htotal = 1024 + 160 + 20 + 140,
1475 .vsync_start = 600 + 12,
1476 .vsync_end = 600 + 12 + 3,
1477 .vtotal = 600 + 12 + 3 + 20,
1478 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1481 static const struct panel_desc cdtech_s070pws19hp_fc21 = {
1482 .modes = &cdtech_s070pws19hp_fc21_mode,
1489 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1490 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1491 .connector_type = DRM_MODE_CONNECTOR_DPI,
1494 /* S070SWV29HG-DC44 2017/09/21 */
1495 static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = {
1498 .hsync_start = 800 + 210,
1499 .hsync_end = 800 + 210 + 2,
1500 .htotal = 800 + 210 + 2 + 44,
1502 .vsync_start = 480 + 22,
1503 .vsync_end = 480 + 22 + 2,
1504 .vtotal = 480 + 22 + 2 + 21,
1505 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1508 static const struct panel_desc cdtech_s070swv29hg_dc44 = {
1509 .modes = &cdtech_s070swv29hg_dc44_mode,
1516 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1517 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1518 .connector_type = DRM_MODE_CONNECTOR_DPI,
1521 static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
1524 .hsync_start = 800 + 40,
1525 .hsync_end = 800 + 40 + 40,
1526 .htotal = 800 + 40 + 40 + 48,
1528 .vsync_start = 480 + 29,
1529 .vsync_end = 480 + 29 + 13,
1530 .vtotal = 480 + 29 + 13 + 3,
1531 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1534 static const struct panel_desc cdtech_s070wv95_ct16 = {
1535 .modes = &cdtech_s070wv95_ct16_mode,
1544 static const struct display_timing chefree_ch101olhlwh_002_timing = {
1545 .pixelclock = { 68900000, 71100000, 73400000 },
1546 .hactive = { 1280, 1280, 1280 },
1547 .hfront_porch = { 65, 80, 95 },
1548 .hback_porch = { 64, 79, 94 },
1549 .hsync_len = { 1, 1, 1 },
1550 .vactive = { 800, 800, 800 },
1551 .vfront_porch = { 7, 11, 14 },
1552 .vback_porch = { 7, 11, 14 },
1553 .vsync_len = { 1, 1, 1 },
1554 .flags = DISPLAY_FLAGS_DE_HIGH,
1557 static const struct panel_desc chefree_ch101olhlwh_002 = {
1558 .timings = &chefree_ch101olhlwh_002_timing,
1569 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1570 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1571 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1574 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
1577 .hsync_start = 800 + 49,
1578 .hsync_end = 800 + 49 + 33,
1579 .htotal = 800 + 49 + 33 + 17,
1581 .vsync_start = 1280 + 1,
1582 .vsync_end = 1280 + 1 + 7,
1583 .vtotal = 1280 + 1 + 7 + 15,
1584 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1587 static const struct panel_desc chunghwa_claa070wp03xg = {
1588 .modes = &chunghwa_claa070wp03xg_mode,
1595 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1596 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1597 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1600 static const struct drm_display_mode chunghwa_claa101wa01a_mode = {
1603 .hsync_start = 1366 + 58,
1604 .hsync_end = 1366 + 58 + 58,
1605 .htotal = 1366 + 58 + 58 + 58,
1607 .vsync_start = 768 + 4,
1608 .vsync_end = 768 + 4 + 4,
1609 .vtotal = 768 + 4 + 4 + 4,
1612 static const struct panel_desc chunghwa_claa101wa01a = {
1613 .modes = &chunghwa_claa101wa01a_mode,
1620 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1621 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1622 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1625 static const struct drm_display_mode chunghwa_claa101wb01_mode = {
1628 .hsync_start = 1366 + 48,
1629 .hsync_end = 1366 + 48 + 32,
1630 .htotal = 1366 + 48 + 32 + 20,
1632 .vsync_start = 768 + 16,
1633 .vsync_end = 768 + 16 + 8,
1634 .vtotal = 768 + 16 + 8 + 16,
1637 static const struct panel_desc chunghwa_claa101wb01 = {
1638 .modes = &chunghwa_claa101wb01_mode,
1645 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1646 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1647 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1650 static const struct display_timing dataimage_fg040346dsswbg04_timing = {
1651 .pixelclock = { 5000000, 9000000, 12000000 },
1652 .hactive = { 480, 480, 480 },
1653 .hfront_porch = { 12, 12, 12 },
1654 .hback_porch = { 12, 12, 12 },
1655 .hsync_len = { 21, 21, 21 },
1656 .vactive = { 272, 272, 272 },
1657 .vfront_porch = { 4, 4, 4 },
1658 .vback_porch = { 4, 4, 4 },
1659 .vsync_len = { 8, 8, 8 },
1662 static const struct panel_desc dataimage_fg040346dsswbg04 = {
1663 .timings = &dataimage_fg040346dsswbg04_timing,
1670 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1671 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1672 .connector_type = DRM_MODE_CONNECTOR_DPI,
1675 static const struct display_timing dataimage_fg1001l0dsswmg01_timing = {
1676 .pixelclock = { 68900000, 71110000, 73400000 },
1677 .hactive = { 1280, 1280, 1280 },
1678 .vactive = { 800, 800, 800 },
1679 .hback_porch = { 100, 100, 100 },
1680 .hfront_porch = { 100, 100, 100 },
1681 .vback_porch = { 5, 5, 5 },
1682 .vfront_porch = { 5, 5, 5 },
1683 .hsync_len = { 24, 24, 24 },
1684 .vsync_len = { 3, 3, 3 },
1685 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
1686 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1689 static const struct panel_desc dataimage_fg1001l0dsswmg01 = {
1690 .timings = &dataimage_fg1001l0dsswmg01_timing,
1699 static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = {
1702 .hsync_start = 800 + 40,
1703 .hsync_end = 800 + 40 + 128,
1704 .htotal = 800 + 40 + 128 + 88,
1706 .vsync_start = 480 + 10,
1707 .vsync_end = 480 + 10 + 2,
1708 .vtotal = 480 + 10 + 2 + 33,
1709 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1712 static const struct panel_desc dataimage_scf0700c48ggu18 = {
1713 .modes = &dataimage_scf0700c48ggu18_mode,
1720 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1721 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1724 static const struct display_timing dlc_dlc0700yzg_1_timing = {
1725 .pixelclock = { 45000000, 51200000, 57000000 },
1726 .hactive = { 1024, 1024, 1024 },
1727 .hfront_porch = { 100, 106, 113 },
1728 .hback_porch = { 100, 106, 113 },
1729 .hsync_len = { 100, 108, 114 },
1730 .vactive = { 600, 600, 600 },
1731 .vfront_porch = { 8, 11, 15 },
1732 .vback_porch = { 8, 11, 15 },
1733 .vsync_len = { 9, 13, 15 },
1734 .flags = DISPLAY_FLAGS_DE_HIGH,
1737 static const struct panel_desc dlc_dlc0700yzg_1 = {
1738 .timings = &dlc_dlc0700yzg_1_timing,
1750 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1751 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1754 static const struct display_timing dlc_dlc1010gig_timing = {
1755 .pixelclock = { 68900000, 71100000, 73400000 },
1756 .hactive = { 1280, 1280, 1280 },
1757 .hfront_porch = { 43, 53, 63 },
1758 .hback_porch = { 43, 53, 63 },
1759 .hsync_len = { 44, 54, 64 },
1760 .vactive = { 800, 800, 800 },
1761 .vfront_porch = { 5, 8, 11 },
1762 .vback_porch = { 5, 8, 11 },
1763 .vsync_len = { 5, 7, 11 },
1764 .flags = DISPLAY_FLAGS_DE_HIGH,
1767 static const struct panel_desc dlc_dlc1010gig = {
1768 .timings = &dlc_dlc1010gig_timing,
1781 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1782 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1785 static const struct drm_display_mode edt_et035012dm6_mode = {
1788 .hsync_start = 320 + 20,
1789 .hsync_end = 320 + 20 + 30,
1790 .htotal = 320 + 20 + 68,
1792 .vsync_start = 240 + 4,
1793 .vsync_end = 240 + 4 + 4,
1794 .vtotal = 240 + 4 + 4 + 14,
1795 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1798 static const struct panel_desc edt_et035012dm6 = {
1799 .modes = &edt_et035012dm6_mode,
1806 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1807 .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1810 static const struct drm_display_mode edt_etm0350g0dh6_mode = {
1813 .hsync_start = 320 + 20,
1814 .hsync_end = 320 + 20 + 68,
1815 .htotal = 320 + 20 + 68,
1817 .vsync_start = 240 + 4,
1818 .vsync_end = 240 + 4 + 18,
1819 .vtotal = 240 + 4 + 18,
1820 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1823 static const struct panel_desc edt_etm0350g0dh6 = {
1824 .modes = &edt_etm0350g0dh6_mode,
1831 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1832 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1833 .connector_type = DRM_MODE_CONNECTOR_DPI,
1836 static const struct drm_display_mode edt_etm043080dh6gp_mode = {
1839 .hsync_start = 480 + 8,
1840 .hsync_end = 480 + 8 + 4,
1841 .htotal = 480 + 8 + 4 + 41,
1844 * IWG22M: Y resolution changed for "dc_linuxfb" module crashing while
1849 .vsync_start = 288 + 2,
1850 .vsync_end = 288 + 2 + 4,
1851 .vtotal = 288 + 2 + 4 + 10,
1854 static const struct panel_desc edt_etm043080dh6gp = {
1855 .modes = &edt_etm043080dh6gp_mode,
1862 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1863 .connector_type = DRM_MODE_CONNECTOR_DPI,
1866 static const struct drm_display_mode edt_etm0430g0dh6_mode = {
1869 .hsync_start = 480 + 2,
1870 .hsync_end = 480 + 2 + 41,
1871 .htotal = 480 + 2 + 41 + 2,
1873 .vsync_start = 272 + 2,
1874 .vsync_end = 272 + 2 + 10,
1875 .vtotal = 272 + 2 + 10 + 2,
1876 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1879 static const struct panel_desc edt_etm0430g0dh6 = {
1880 .modes = &edt_etm0430g0dh6_mode,
1887 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1888 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1889 .connector_type = DRM_MODE_CONNECTOR_DPI,
1892 static const struct drm_display_mode edt_et057090dhu_mode = {
1895 .hsync_start = 640 + 16,
1896 .hsync_end = 640 + 16 + 30,
1897 .htotal = 640 + 16 + 30 + 114,
1899 .vsync_start = 480 + 10,
1900 .vsync_end = 480 + 10 + 3,
1901 .vtotal = 480 + 10 + 3 + 32,
1902 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1905 static const struct panel_desc edt_et057090dhu = {
1906 .modes = &edt_et057090dhu_mode,
1913 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1914 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1915 .connector_type = DRM_MODE_CONNECTOR_DPI,
1918 static const struct drm_display_mode edt_etm0700g0dh6_mode = {
1921 .hsync_start = 800 + 40,
1922 .hsync_end = 800 + 40 + 128,
1923 .htotal = 800 + 40 + 128 + 88,
1925 .vsync_start = 480 + 10,
1926 .vsync_end = 480 + 10 + 2,
1927 .vtotal = 480 + 10 + 2 + 33,
1928 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1931 static const struct panel_desc edt_etm0700g0dh6 = {
1932 .modes = &edt_etm0700g0dh6_mode,
1939 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1940 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1941 .connector_type = DRM_MODE_CONNECTOR_DPI,
1944 static const struct panel_desc edt_etm0700g0bdh6 = {
1945 .modes = &edt_etm0700g0dh6_mode,
1952 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1953 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1954 .connector_type = DRM_MODE_CONNECTOR_DPI,
1957 static const struct display_timing edt_etml0700y5dha_timing = {
1958 .pixelclock = { 40800000, 51200000, 67200000 },
1959 .hactive = { 1024, 1024, 1024 },
1960 .hfront_porch = { 30, 106, 125 },
1961 .hback_porch = { 30, 106, 125 },
1962 .hsync_len = { 30, 108, 126 },
1963 .vactive = { 600, 600, 600 },
1964 .vfront_porch = { 3, 12, 67},
1965 .vback_porch = { 3, 12, 67 },
1966 .vsync_len = { 4, 11, 66 },
1967 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
1968 DISPLAY_FLAGS_DE_HIGH,
1971 static const struct panel_desc edt_etml0700y5dha = {
1972 .timings = &edt_etml0700y5dha_timing,
1979 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1980 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1983 static const struct drm_display_mode edt_etmv570g2dhu_mode = {
1987 .hsync_end = 640 + 16,
1988 .htotal = 640 + 16 + 30 + 114,
1990 .vsync_start = 480 + 10,
1991 .vsync_end = 480 + 10 + 3,
1992 .vtotal = 480 + 10 + 3 + 35,
1993 .flags = DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_PHSYNC,
1996 static const struct panel_desc edt_etmv570g2dhu = {
1997 .modes = &edt_etmv570g2dhu_mode,
2004 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2005 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
2006 .connector_type = DRM_MODE_CONNECTOR_DPI,
2009 static const struct display_timing eink_vb3300_kca_timing = {
2010 .pixelclock = { 40000000, 40000000, 40000000 },
2011 .hactive = { 334, 334, 334 },
2012 .hfront_porch = { 1, 1, 1 },
2013 .hback_porch = { 1, 1, 1 },
2014 .hsync_len = { 1, 1, 1 },
2015 .vactive = { 1405, 1405, 1405 },
2016 .vfront_porch = { 1, 1, 1 },
2017 .vback_porch = { 1, 1, 1 },
2018 .vsync_len = { 1, 1, 1 },
2019 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2020 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
2023 static const struct panel_desc eink_vb3300_kca = {
2024 .timings = &eink_vb3300_kca_timing,
2031 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2032 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2033 .connector_type = DRM_MODE_CONNECTOR_DPI,
2036 static const struct display_timing evervision_vgg644804_timing = {
2037 .pixelclock = { 25175000, 25175000, 25175000 },
2038 .hactive = { 640, 640, 640 },
2039 .hfront_porch = { 16, 16, 16 },
2040 .hback_porch = { 82, 114, 170 },
2041 .hsync_len = { 5, 30, 30 },
2042 .vactive = { 480, 480, 480 },
2043 .vfront_porch = { 10, 10, 10 },
2044 .vback_porch = { 30, 32, 34 },
2045 .vsync_len = { 1, 3, 5 },
2046 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2047 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2048 DISPLAY_FLAGS_SYNC_POSEDGE,
2051 static const struct panel_desc evervision_vgg644804 = {
2052 .timings = &evervision_vgg644804_timing,
2059 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2060 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2063 static const struct display_timing evervision_vgg804821_timing = {
2064 .pixelclock = { 27600000, 33300000, 50000000 },
2065 .hactive = { 800, 800, 800 },
2066 .hfront_porch = { 40, 66, 70 },
2067 .hback_porch = { 40, 67, 70 },
2068 .hsync_len = { 40, 67, 70 },
2069 .vactive = { 480, 480, 480 },
2070 .vfront_porch = { 6, 10, 10 },
2071 .vback_porch = { 7, 11, 11 },
2072 .vsync_len = { 7, 11, 11 },
2073 .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH |
2074 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
2075 DISPLAY_FLAGS_SYNC_NEGEDGE,
2078 static const struct panel_desc evervision_vgg804821 = {
2079 .timings = &evervision_vgg804821_timing,
2086 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2087 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2090 static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = {
2093 .hsync_start = 800 + 168,
2094 .hsync_end = 800 + 168 + 64,
2095 .htotal = 800 + 168 + 64 + 88,
2097 .vsync_start = 480 + 37,
2098 .vsync_end = 480 + 37 + 2,
2099 .vtotal = 480 + 37 + 2 + 8,
2102 static const struct panel_desc foxlink_fl500wvr00_a0t = {
2103 .modes = &foxlink_fl500wvr00_a0t_mode,
2110 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2113 static const struct drm_display_mode frida_frd350h54004_modes[] = {
2117 .hsync_start = 320 + 44,
2118 .hsync_end = 320 + 44 + 16,
2119 .htotal = 320 + 44 + 16 + 20,
2121 .vsync_start = 240 + 2,
2122 .vsync_end = 240 + 2 + 6,
2123 .vtotal = 240 + 2 + 6 + 2,
2124 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2129 .hsync_start = 320 + 56,
2130 .hsync_end = 320 + 56 + 16,
2131 .htotal = 320 + 56 + 16 + 40,
2133 .vsync_start = 240 + 2,
2134 .vsync_end = 240 + 2 + 6,
2135 .vtotal = 240 + 2 + 6 + 2,
2136 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2140 static const struct panel_desc frida_frd350h54004 = {
2141 .modes = frida_frd350h54004_modes,
2142 .num_modes = ARRAY_SIZE(frida_frd350h54004_modes),
2148 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2149 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2150 .connector_type = DRM_MODE_CONNECTOR_DPI,
2153 static const struct drm_display_mode friendlyarm_hd702e_mode = {
2156 .hsync_start = 800 + 20,
2157 .hsync_end = 800 + 20 + 24,
2158 .htotal = 800 + 20 + 24 + 20,
2160 .vsync_start = 1280 + 4,
2161 .vsync_end = 1280 + 4 + 8,
2162 .vtotal = 1280 + 4 + 8 + 4,
2163 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2166 static const struct panel_desc friendlyarm_hd702e = {
2167 .modes = &friendlyarm_hd702e_mode,
2175 static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
2178 .hsync_start = 480 + 5,
2179 .hsync_end = 480 + 5 + 1,
2180 .htotal = 480 + 5 + 1 + 40,
2182 .vsync_start = 272 + 8,
2183 .vsync_end = 272 + 8 + 1,
2184 .vtotal = 272 + 8 + 1 + 8,
2187 static const struct panel_desc giantplus_gpg482739qs5 = {
2188 .modes = &giantplus_gpg482739qs5_mode,
2195 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2198 static const struct display_timing giantplus_gpm940b0_timing = {
2199 .pixelclock = { 13500000, 27000000, 27500000 },
2200 .hactive = { 320, 320, 320 },
2201 .hfront_porch = { 14, 686, 718 },
2202 .hback_porch = { 50, 70, 255 },
2203 .hsync_len = { 1, 1, 1 },
2204 .vactive = { 240, 240, 240 },
2205 .vfront_porch = { 1, 1, 179 },
2206 .vback_porch = { 1, 21, 31 },
2207 .vsync_len = { 1, 1, 6 },
2208 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
2211 static const struct panel_desc giantplus_gpm940b0 = {
2212 .timings = &giantplus_gpm940b0_timing,
2219 .bus_format = MEDIA_BUS_FMT_RGB888_3X8,
2220 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2223 static const struct display_timing hannstar_hsd070pww1_timing = {
2224 .pixelclock = { 64300000, 71100000, 82000000 },
2225 .hactive = { 1280, 1280, 1280 },
2226 .hfront_porch = { 1, 1, 10 },
2227 .hback_porch = { 1, 1, 10 },
2229 * According to the data sheet, the minimum horizontal blanking interval
2230 * is 54 clocks (1 + 52 + 1), but tests with a Nitrogen6X have shown the
2231 * minimum working horizontal blanking interval to be 60 clocks.
2233 .hsync_len = { 58, 158, 661 },
2234 .vactive = { 800, 800, 800 },
2235 .vfront_porch = { 1, 1, 10 },
2236 .vback_porch = { 1, 1, 10 },
2237 .vsync_len = { 1, 21, 203 },
2238 .flags = DISPLAY_FLAGS_DE_HIGH,
2241 static const struct panel_desc hannstar_hsd070pww1 = {
2242 .timings = &hannstar_hsd070pww1_timing,
2249 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2250 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2253 static const struct display_timing hannstar_hsd100pxn1_timing = {
2254 .pixelclock = { 55000000, 65000000, 75000000 },
2255 .hactive = { 1024, 1024, 1024 },
2256 .hfront_porch = { 40, 40, 40 },
2257 .hback_porch = { 220, 220, 220 },
2258 .hsync_len = { 20, 60, 100 },
2259 .vactive = { 768, 768, 768 },
2260 .vfront_porch = { 7, 7, 7 },
2261 .vback_porch = { 21, 21, 21 },
2262 .vsync_len = { 10, 10, 10 },
2263 .flags = DISPLAY_FLAGS_DE_HIGH,
2266 static const struct panel_desc hannstar_hsd100pxn1 = {
2267 .timings = &hannstar_hsd100pxn1_timing,
2274 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2275 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2278 static const struct display_timing hannstar_hsd101pww2_timing = {
2279 .pixelclock = { 64300000, 71100000, 82000000 },
2280 .hactive = { 1280, 1280, 1280 },
2281 .hfront_porch = { 1, 1, 10 },
2282 .hback_porch = { 1, 1, 10 },
2283 .hsync_len = { 58, 158, 661 },
2284 .vactive = { 800, 800, 800 },
2285 .vfront_porch = { 1, 1, 10 },
2286 .vback_porch = { 1, 1, 10 },
2287 .vsync_len = { 1, 21, 203 },
2288 .flags = DISPLAY_FLAGS_DE_HIGH,
2291 static const struct panel_desc hannstar_hsd101pww2 = {
2292 .timings = &hannstar_hsd101pww2_timing,
2299 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2300 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2303 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
2306 .hsync_start = 800 + 85,
2307 .hsync_end = 800 + 85 + 86,
2308 .htotal = 800 + 85 + 86 + 85,
2310 .vsync_start = 480 + 16,
2311 .vsync_end = 480 + 16 + 13,
2312 .vtotal = 480 + 16 + 13 + 16,
2315 static const struct panel_desc hitachi_tx23d38vm0caa = {
2316 .modes = &hitachi_tx23d38vm0caa_mode,
2329 static const struct drm_display_mode innolux_at043tn24_mode = {
2332 .hsync_start = 480 + 2,
2333 .hsync_end = 480 + 2 + 41,
2334 .htotal = 480 + 2 + 41 + 2,
2336 .vsync_start = 272 + 2,
2337 .vsync_end = 272 + 2 + 10,
2338 .vtotal = 272 + 2 + 10 + 2,
2339 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2342 static const struct panel_desc innolux_at043tn24 = {
2343 .modes = &innolux_at043tn24_mode,
2350 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2351 .connector_type = DRM_MODE_CONNECTOR_DPI,
2352 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2355 static const struct drm_display_mode innolux_at070tn92_mode = {
2358 .hsync_start = 800 + 210,
2359 .hsync_end = 800 + 210 + 20,
2360 .htotal = 800 + 210 + 20 + 46,
2362 .vsync_start = 480 + 22,
2363 .vsync_end = 480 + 22 + 10,
2364 .vtotal = 480 + 22 + 23 + 10,
2367 static const struct panel_desc innolux_at070tn92 = {
2368 .modes = &innolux_at070tn92_mode,
2374 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2377 static const struct display_timing innolux_g070ace_l01_timing = {
2378 .pixelclock = { 25200000, 35000000, 35700000 },
2379 .hactive = { 800, 800, 800 },
2380 .hfront_porch = { 30, 32, 87 },
2381 .hback_porch = { 30, 32, 87 },
2382 .hsync_len = { 1, 1, 1 },
2383 .vactive = { 480, 480, 480 },
2384 .vfront_porch = { 3, 3, 3 },
2385 .vback_porch = { 13, 13, 13 },
2386 .vsync_len = { 1, 1, 4 },
2387 .flags = DISPLAY_FLAGS_DE_HIGH,
2390 static const struct panel_desc innolux_g070ace_l01 = {
2391 .timings = &innolux_g070ace_l01_timing,
2404 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2405 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2406 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2409 static const struct display_timing innolux_g070y2_l01_timing = {
2410 .pixelclock = { 28000000, 29500000, 32000000 },
2411 .hactive = { 800, 800, 800 },
2412 .hfront_porch = { 61, 91, 141 },
2413 .hback_porch = { 60, 90, 140 },
2414 .hsync_len = { 12, 12, 12 },
2415 .vactive = { 480, 480, 480 },
2416 .vfront_porch = { 4, 9, 30 },
2417 .vback_porch = { 4, 8, 28 },
2418 .vsync_len = { 2, 2, 2 },
2419 .flags = DISPLAY_FLAGS_DE_HIGH,
2422 static const struct panel_desc innolux_g070y2_l01 = {
2423 .timings = &innolux_g070y2_l01_timing,
2436 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2437 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2438 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2441 static const struct drm_display_mode innolux_g070y2_t02_mode = {
2444 .hsync_start = 800 + 210,
2445 .hsync_end = 800 + 210 + 20,
2446 .htotal = 800 + 210 + 20 + 46,
2448 .vsync_start = 480 + 22,
2449 .vsync_end = 480 + 22 + 10,
2450 .vtotal = 480 + 22 + 23 + 10,
2453 static const struct panel_desc innolux_g070y2_t02 = {
2454 .modes = &innolux_g070y2_t02_mode,
2461 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2462 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2463 .connector_type = DRM_MODE_CONNECTOR_DPI,
2466 static const struct display_timing innolux_g101ice_l01_timing = {
2467 .pixelclock = { 60400000, 71100000, 74700000 },
2468 .hactive = { 1280, 1280, 1280 },
2469 .hfront_porch = { 30, 60, 70 },
2470 .hback_porch = { 30, 60, 70 },
2471 .hsync_len = { 22, 40, 60 },
2472 .vactive = { 800, 800, 800 },
2473 .vfront_porch = { 3, 8, 14 },
2474 .vback_porch = { 3, 8, 14 },
2475 .vsync_len = { 4, 7, 12 },
2476 .flags = DISPLAY_FLAGS_DE_HIGH,
2479 static const struct panel_desc innolux_g101ice_l01 = {
2480 .timings = &innolux_g101ice_l01_timing,
2491 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2492 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2493 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2496 static const struct display_timing innolux_g121i1_l01_timing = {
2497 .pixelclock = { 67450000, 71000000, 74550000 },
2498 .hactive = { 1280, 1280, 1280 },
2499 .hfront_porch = { 40, 80, 160 },
2500 .hback_porch = { 39, 79, 159 },
2501 .hsync_len = { 1, 1, 1 },
2502 .vactive = { 800, 800, 800 },
2503 .vfront_porch = { 5, 11, 100 },
2504 .vback_porch = { 4, 11, 99 },
2505 .vsync_len = { 1, 1, 1 },
2508 static const struct panel_desc innolux_g121i1_l01 = {
2509 .timings = &innolux_g121i1_l01_timing,
2520 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2521 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2524 static const struct drm_display_mode innolux_g121x1_l03_mode = {
2527 .hsync_start = 1024 + 0,
2528 .hsync_end = 1024 + 1,
2529 .htotal = 1024 + 0 + 1 + 320,
2531 .vsync_start = 768 + 38,
2532 .vsync_end = 768 + 38 + 1,
2533 .vtotal = 768 + 38 + 1 + 0,
2534 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2537 static const struct panel_desc innolux_g121x1_l03 = {
2538 .modes = &innolux_g121x1_l03_mode,
2552 static const struct display_timing innolux_g156hce_l01_timings = {
2553 .pixelclock = { 120000000, 141860000, 150000000 },
2554 .hactive = { 1920, 1920, 1920 },
2555 .hfront_porch = { 80, 90, 100 },
2556 .hback_porch = { 80, 90, 100 },
2557 .hsync_len = { 20, 30, 30 },
2558 .vactive = { 1080, 1080, 1080 },
2559 .vfront_porch = { 3, 10, 20 },
2560 .vback_porch = { 3, 10, 20 },
2561 .vsync_len = { 4, 10, 10 },
2564 static const struct panel_desc innolux_g156hce_l01 = {
2565 .timings = &innolux_g156hce_l01_timings,
2573 .prepare = 1, /* T1+T2 */
2574 .enable = 450, /* T5 */
2575 .disable = 200, /* T6 */
2576 .unprepare = 10, /* T3+T7 */
2578 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2579 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2580 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2583 static const struct drm_display_mode innolux_n156bge_l21_mode = {
2586 .hsync_start = 1366 + 16,
2587 .hsync_end = 1366 + 16 + 34,
2588 .htotal = 1366 + 16 + 34 + 50,
2590 .vsync_start = 768 + 2,
2591 .vsync_end = 768 + 2 + 6,
2592 .vtotal = 768 + 2 + 6 + 12,
2595 static const struct panel_desc innolux_n156bge_l21 = {
2596 .modes = &innolux_n156bge_l21_mode,
2603 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2604 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2605 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2608 static const struct drm_display_mode innolux_zj070na_01p_mode = {
2611 .hsync_start = 1024 + 128,
2612 .hsync_end = 1024 + 128 + 64,
2613 .htotal = 1024 + 128 + 64 + 128,
2615 .vsync_start = 600 + 16,
2616 .vsync_end = 600 + 16 + 4,
2617 .vtotal = 600 + 16 + 4 + 16,
2620 static const struct panel_desc innolux_zj070na_01p = {
2621 .modes = &innolux_zj070na_01p_mode,
2630 static const struct display_timing koe_tx14d24vm1bpa_timing = {
2631 .pixelclock = { 5580000, 5850000, 6200000 },
2632 .hactive = { 320, 320, 320 },
2633 .hfront_porch = { 30, 30, 30 },
2634 .hback_porch = { 30, 30, 30 },
2635 .hsync_len = { 1, 5, 17 },
2636 .vactive = { 240, 240, 240 },
2637 .vfront_porch = { 6, 6, 6 },
2638 .vback_porch = { 5, 5, 5 },
2639 .vsync_len = { 1, 2, 11 },
2640 .flags = DISPLAY_FLAGS_DE_HIGH,
2643 static const struct panel_desc koe_tx14d24vm1bpa = {
2644 .timings = &koe_tx14d24vm1bpa_timing,
2653 static const struct display_timing koe_tx26d202vm0bwa_timing = {
2654 .pixelclock = { 151820000, 156720000, 159780000 },
2655 .hactive = { 1920, 1920, 1920 },
2656 .hfront_porch = { 105, 130, 142 },
2657 .hback_porch = { 45, 70, 82 },
2658 .hsync_len = { 30, 30, 30 },
2659 .vactive = { 1200, 1200, 1200},
2660 .vfront_porch = { 3, 5, 10 },
2661 .vback_porch = { 2, 5, 10 },
2662 .vsync_len = { 5, 5, 5 },
2665 static const struct panel_desc koe_tx26d202vm0bwa = {
2666 .timings = &koe_tx26d202vm0bwa_timing,
2679 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2680 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2681 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2684 static const struct display_timing koe_tx31d200vm0baa_timing = {
2685 .pixelclock = { 39600000, 43200000, 48000000 },
2686 .hactive = { 1280, 1280, 1280 },
2687 .hfront_porch = { 16, 36, 56 },
2688 .hback_porch = { 16, 36, 56 },
2689 .hsync_len = { 8, 8, 8 },
2690 .vactive = { 480, 480, 480 },
2691 .vfront_porch = { 6, 21, 33 },
2692 .vback_porch = { 6, 21, 33 },
2693 .vsync_len = { 8, 8, 8 },
2694 .flags = DISPLAY_FLAGS_DE_HIGH,
2697 static const struct panel_desc koe_tx31d200vm0baa = {
2698 .timings = &koe_tx31d200vm0baa_timing,
2705 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2706 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2709 static const struct display_timing kyo_tcg121xglp_timing = {
2710 .pixelclock = { 52000000, 65000000, 71000000 },
2711 .hactive = { 1024, 1024, 1024 },
2712 .hfront_porch = { 2, 2, 2 },
2713 .hback_porch = { 2, 2, 2 },
2714 .hsync_len = { 86, 124, 244 },
2715 .vactive = { 768, 768, 768 },
2716 .vfront_porch = { 2, 2, 2 },
2717 .vback_porch = { 2, 2, 2 },
2718 .vsync_len = { 6, 34, 73 },
2719 .flags = DISPLAY_FLAGS_DE_HIGH,
2722 static const struct panel_desc kyo_tcg121xglp = {
2723 .timings = &kyo_tcg121xglp_timing,
2730 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2731 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2734 static const struct drm_display_mode lemaker_bl035_rgb_002_mode = {
2737 .hsync_start = 320 + 20,
2738 .hsync_end = 320 + 20 + 30,
2739 .htotal = 320 + 20 + 30 + 38,
2741 .vsync_start = 240 + 4,
2742 .vsync_end = 240 + 4 + 3,
2743 .vtotal = 240 + 4 + 3 + 15,
2746 static const struct panel_desc lemaker_bl035_rgb_002 = {
2747 .modes = &lemaker_bl035_rgb_002_mode,
2753 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2754 .bus_flags = DRM_BUS_FLAG_DE_LOW,
2757 static const struct drm_display_mode lg_lb070wv8_mode = {
2760 .hsync_start = 800 + 88,
2761 .hsync_end = 800 + 88 + 80,
2762 .htotal = 800 + 88 + 80 + 88,
2764 .vsync_start = 480 + 10,
2765 .vsync_end = 480 + 10 + 25,
2766 .vtotal = 480 + 10 + 25 + 10,
2769 static const struct panel_desc lg_lb070wv8 = {
2770 .modes = &lg_lb070wv8_mode,
2777 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2778 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2781 static const struct display_timing logictechno_lt161010_2nh_timing = {
2782 .pixelclock = { 26400000, 33300000, 46800000 },
2783 .hactive = { 800, 800, 800 },
2784 .hfront_porch = { 16, 210, 354 },
2785 .hback_porch = { 46, 46, 46 },
2786 .hsync_len = { 1, 20, 40 },
2787 .vactive = { 480, 480, 480 },
2788 .vfront_porch = { 7, 22, 147 },
2789 .vback_porch = { 23, 23, 23 },
2790 .vsync_len = { 1, 10, 20 },
2791 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2792 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2793 DISPLAY_FLAGS_SYNC_POSEDGE,
2796 static const struct panel_desc logictechno_lt161010_2nh = {
2797 .timings = &logictechno_lt161010_2nh_timing,
2804 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2805 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
2806 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2807 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
2808 .connector_type = DRM_MODE_CONNECTOR_DPI,
2811 static const struct display_timing logictechno_lt170410_2whc_timing = {
2812 .pixelclock = { 68900000, 71100000, 73400000 },
2813 .hactive = { 1280, 1280, 1280 },
2814 .hfront_porch = { 23, 60, 71 },
2815 .hback_porch = { 23, 60, 71 },
2816 .hsync_len = { 15, 40, 47 },
2817 .vactive = { 800, 800, 800 },
2818 .vfront_porch = { 5, 7, 10 },
2819 .vback_porch = { 5, 7, 10 },
2820 .vsync_len = { 6, 9, 12 },
2821 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2822 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2823 DISPLAY_FLAGS_SYNC_POSEDGE,
2826 static const struct panel_desc logictechno_lt170410_2whc = {
2827 .timings = &logictechno_lt170410_2whc_timing,
2834 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2835 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2836 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2839 static const struct drm_display_mode logictechno_lttd800480070_l2rt_mode = {
2842 .hsync_start = 800 + 112,
2843 .hsync_end = 800 + 112 + 3,
2844 .htotal = 800 + 112 + 3 + 85,
2846 .vsync_start = 480 + 38,
2847 .vsync_end = 480 + 38 + 3,
2848 .vtotal = 480 + 38 + 3 + 29,
2849 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2852 static const struct panel_desc logictechno_lttd800480070_l2rt = {
2853 .modes = &logictechno_lttd800480070_l2rt_mode,
2866 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2867 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2868 .connector_type = DRM_MODE_CONNECTOR_DPI,
2871 static const struct drm_display_mode logictechno_lttd800480070_l6wh_rt_mode = {
2874 .hsync_start = 800 + 154,
2875 .hsync_end = 800 + 154 + 3,
2876 .htotal = 800 + 154 + 3 + 43,
2878 .vsync_start = 480 + 47,
2879 .vsync_end = 480 + 47 + 3,
2880 .vtotal = 480 + 47 + 3 + 20,
2881 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2884 static const struct panel_desc logictechno_lttd800480070_l6wh_rt = {
2885 .modes = &logictechno_lttd800480070_l6wh_rt_mode,
2898 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2899 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2900 .connector_type = DRM_MODE_CONNECTOR_DPI,
2903 static const struct drm_display_mode logicpd_type_28_mode = {
2906 .hsync_start = 480 + 3,
2907 .hsync_end = 480 + 3 + 42,
2908 .htotal = 480 + 3 + 42 + 2,
2911 .vsync_start = 272 + 2,
2912 .vsync_end = 272 + 2 + 11,
2913 .vtotal = 272 + 2 + 11 + 3,
2914 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
2917 static const struct panel_desc logicpd_type_28 = {
2918 .modes = &logicpd_type_28_mode,
2931 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2932 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
2933 DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
2934 .connector_type = DRM_MODE_CONNECTOR_DPI,
2937 static const struct drm_display_mode mitsubishi_aa070mc01_mode = {
2940 .hsync_start = 800 + 0,
2941 .hsync_end = 800 + 1,
2942 .htotal = 800 + 0 + 1 + 160,
2944 .vsync_start = 480 + 0,
2945 .vsync_end = 480 + 48 + 1,
2946 .vtotal = 480 + 48 + 1 + 0,
2947 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2950 static const struct panel_desc mitsubishi_aa070mc01 = {
2951 .modes = &mitsubishi_aa070mc01_mode,
2964 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2965 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2966 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2969 static const struct drm_display_mode mitsubishi_aa084xe01_mode = {
2972 .hsync_start = 1024 + 24,
2973 .hsync_end = 1024 + 24 + 63,
2974 .htotal = 1024 + 24 + 63 + 1,
2976 .vsync_start = 768 + 3,
2977 .vsync_end = 768 + 3 + 6,
2978 .vtotal = 768 + 3 + 6 + 1,
2979 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
2982 static const struct panel_desc mitsubishi_aa084xe01 = {
2983 .modes = &mitsubishi_aa084xe01_mode,
2990 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
2991 .connector_type = DRM_MODE_CONNECTOR_DPI,
2992 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2995 static const struct display_timing multi_inno_mi0700s4t_6_timing = {
2996 .pixelclock = { 29000000, 33000000, 38000000 },
2997 .hactive = { 800, 800, 800 },
2998 .hfront_porch = { 180, 210, 240 },
2999 .hback_porch = { 16, 16, 16 },
3000 .hsync_len = { 30, 30, 30 },
3001 .vactive = { 480, 480, 480 },
3002 .vfront_porch = { 12, 22, 32 },
3003 .vback_porch = { 10, 10, 10 },
3004 .vsync_len = { 13, 13, 13 },
3005 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3006 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3007 DISPLAY_FLAGS_SYNC_POSEDGE,
3010 static const struct panel_desc multi_inno_mi0700s4t_6 = {
3011 .timings = &multi_inno_mi0700s4t_6_timing,
3018 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3019 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3020 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3021 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3022 .connector_type = DRM_MODE_CONNECTOR_DPI,
3025 static const struct display_timing multi_inno_mi0800ft_9_timing = {
3026 .pixelclock = { 32000000, 40000000, 50000000 },
3027 .hactive = { 800, 800, 800 },
3028 .hfront_porch = { 16, 210, 354 },
3029 .hback_porch = { 6, 26, 45 },
3030 .hsync_len = { 1, 20, 40 },
3031 .vactive = { 600, 600, 600 },
3032 .vfront_porch = { 1, 12, 77 },
3033 .vback_porch = { 3, 13, 22 },
3034 .vsync_len = { 1, 10, 20 },
3035 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3036 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3037 DISPLAY_FLAGS_SYNC_POSEDGE,
3040 static const struct panel_desc multi_inno_mi0800ft_9 = {
3041 .timings = &multi_inno_mi0800ft_9_timing,
3048 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3049 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3050 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3051 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3052 .connector_type = DRM_MODE_CONNECTOR_DPI,
3055 static const struct display_timing multi_inno_mi1010ait_1cp_timing = {
3056 .pixelclock = { 68900000, 70000000, 73400000 },
3057 .hactive = { 1280, 1280, 1280 },
3058 .hfront_porch = { 30, 60, 71 },
3059 .hback_porch = { 30, 60, 71 },
3060 .hsync_len = { 10, 10, 48 },
3061 .vactive = { 800, 800, 800 },
3062 .vfront_porch = { 5, 10, 10 },
3063 .vback_porch = { 5, 10, 10 },
3064 .vsync_len = { 5, 6, 13 },
3065 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3066 DISPLAY_FLAGS_DE_HIGH,
3069 static const struct panel_desc multi_inno_mi1010ait_1cp = {
3070 .timings = &multi_inno_mi1010ait_1cp_timing,
3081 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3082 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3083 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3086 static const struct display_timing nec_nl12880bc20_05_timing = {
3087 .pixelclock = { 67000000, 71000000, 75000000 },
3088 .hactive = { 1280, 1280, 1280 },
3089 .hfront_porch = { 2, 30, 30 },
3090 .hback_porch = { 6, 100, 100 },
3091 .hsync_len = { 2, 30, 30 },
3092 .vactive = { 800, 800, 800 },
3093 .vfront_porch = { 5, 5, 5 },
3094 .vback_porch = { 11, 11, 11 },
3095 .vsync_len = { 7, 7, 7 },
3098 static const struct panel_desc nec_nl12880bc20_05 = {
3099 .timings = &nec_nl12880bc20_05_timing,
3110 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3111 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3114 static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
3117 .hsync_start = 480 + 2,
3118 .hsync_end = 480 + 2 + 41,
3119 .htotal = 480 + 2 + 41 + 2,
3121 .vsync_start = 272 + 2,
3122 .vsync_end = 272 + 2 + 4,
3123 .vtotal = 272 + 2 + 4 + 2,
3124 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3127 static const struct panel_desc nec_nl4827hc19_05b = {
3128 .modes = &nec_nl4827hc19_05b_mode,
3135 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3136 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3139 static const struct drm_display_mode netron_dy_e231732_mode = {
3142 .hsync_start = 1024 + 160,
3143 .hsync_end = 1024 + 160 + 70,
3144 .htotal = 1024 + 160 + 70 + 90,
3146 .vsync_start = 600 + 127,
3147 .vsync_end = 600 + 127 + 20,
3148 .vtotal = 600 + 127 + 20 + 3,
3151 static const struct panel_desc netron_dy_e231732 = {
3152 .modes = &netron_dy_e231732_mode,
3158 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3161 static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = {
3164 .hsync_start = 480 + 2,
3165 .hsync_end = 480 + 2 + 41,
3166 .htotal = 480 + 2 + 41 + 2,
3168 .vsync_start = 272 + 2,
3169 .vsync_end = 272 + 2 + 10,
3170 .vtotal = 272 + 2 + 10 + 2,
3171 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3174 static const struct panel_desc newhaven_nhd_43_480272ef_atxl = {
3175 .modes = &newhaven_nhd_43_480272ef_atxl_mode,
3182 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3183 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3184 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3185 .connector_type = DRM_MODE_CONNECTOR_DPI,
3188 static const struct display_timing nlt_nl192108ac18_02d_timing = {
3189 .pixelclock = { 130000000, 148350000, 163000000 },
3190 .hactive = { 1920, 1920, 1920 },
3191 .hfront_porch = { 80, 100, 100 },
3192 .hback_porch = { 100, 120, 120 },
3193 .hsync_len = { 50, 60, 60 },
3194 .vactive = { 1080, 1080, 1080 },
3195 .vfront_porch = { 12, 30, 30 },
3196 .vback_porch = { 4, 10, 10 },
3197 .vsync_len = { 4, 5, 5 },
3200 static const struct panel_desc nlt_nl192108ac18_02d = {
3201 .timings = &nlt_nl192108ac18_02d_timing,
3211 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3212 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3215 static const struct drm_display_mode nvd_9128_mode = {
3218 .hsync_start = 800 + 130,
3219 .hsync_end = 800 + 130 + 98,
3220 .htotal = 800 + 0 + 130 + 98,
3222 .vsync_start = 480 + 10,
3223 .vsync_end = 480 + 10 + 50,
3224 .vtotal = 480 + 0 + 10 + 50,
3227 static const struct panel_desc nvd_9128 = {
3228 .modes = &nvd_9128_mode,
3235 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3236 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3239 static const struct display_timing okaya_rs800480t_7x0gp_timing = {
3240 .pixelclock = { 30000000, 30000000, 40000000 },
3241 .hactive = { 800, 800, 800 },
3242 .hfront_porch = { 40, 40, 40 },
3243 .hback_porch = { 40, 40, 40 },
3244 .hsync_len = { 1, 48, 48 },
3245 .vactive = { 480, 480, 480 },
3246 .vfront_porch = { 13, 13, 13 },
3247 .vback_porch = { 29, 29, 29 },
3248 .vsync_len = { 3, 3, 3 },
3249 .flags = DISPLAY_FLAGS_DE_HIGH,
3252 static const struct panel_desc okaya_rs800480t_7x0gp = {
3253 .timings = &okaya_rs800480t_7x0gp_timing,
3266 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3269 static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = {
3272 .hsync_start = 480 + 5,
3273 .hsync_end = 480 + 5 + 30,
3274 .htotal = 480 + 5 + 30 + 10,
3276 .vsync_start = 272 + 8,
3277 .vsync_end = 272 + 8 + 5,
3278 .vtotal = 272 + 8 + 5 + 3,
3281 static const struct panel_desc olimex_lcd_olinuxino_43ts = {
3282 .modes = &olimex_lcd_olinuxino_43ts_mode,
3288 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3292 * 800x480 CVT. The panel appears to be quite accepting, at least as far as
3293 * pixel clocks, but this is the timing that was being used in the Adafruit
3294 * installation instructions.
3296 static const struct drm_display_mode ontat_yx700wv03_mode = {
3306 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3311 * https://www.adafruit.com/images/product-files/2406/c3163.pdf
3313 static const struct panel_desc ontat_yx700wv03 = {
3314 .modes = &ontat_yx700wv03_mode,
3321 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3324 static const struct drm_display_mode ortustech_com37h3m_mode = {
3327 .hsync_start = 480 + 40,
3328 .hsync_end = 480 + 40 + 10,
3329 .htotal = 480 + 40 + 10 + 40,
3331 .vsync_start = 640 + 4,
3332 .vsync_end = 640 + 4 + 2,
3333 .vtotal = 640 + 4 + 2 + 4,
3334 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3337 static const struct panel_desc ortustech_com37h3m = {
3338 .modes = &ortustech_com37h3m_mode,
3342 .width = 56, /* 56.16mm */
3343 .height = 75, /* 74.88mm */
3345 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3346 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3347 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3350 static const struct drm_display_mode ortustech_com43h4m85ulc_mode = {
3353 .hsync_start = 480 + 10,
3354 .hsync_end = 480 + 10 + 10,
3355 .htotal = 480 + 10 + 10 + 15,
3357 .vsync_start = 800 + 3,
3358 .vsync_end = 800 + 3 + 3,
3359 .vtotal = 800 + 3 + 3 + 3,
3362 static const struct panel_desc ortustech_com43h4m85ulc = {
3363 .modes = &ortustech_com43h4m85ulc_mode,
3370 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3371 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3372 .connector_type = DRM_MODE_CONNECTOR_DPI,
3375 static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = {
3378 .hsync_start = 800 + 210,
3379 .hsync_end = 800 + 210 + 30,
3380 .htotal = 800 + 210 + 30 + 16,
3382 .vsync_start = 480 + 22,
3383 .vsync_end = 480 + 22 + 13,
3384 .vtotal = 480 + 22 + 13 + 10,
3385 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3388 static const struct panel_desc osddisplays_osd070t1718_19ts = {
3389 .modes = &osddisplays_osd070t1718_19ts_mode,
3396 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3397 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3398 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3399 .connector_type = DRM_MODE_CONNECTOR_DPI,
3402 static const struct drm_display_mode pda_91_00156_a0_mode = {
3405 .hsync_start = 800 + 1,
3406 .hsync_end = 800 + 1 + 64,
3407 .htotal = 800 + 1 + 64 + 64,
3409 .vsync_start = 480 + 1,
3410 .vsync_end = 480 + 1 + 23,
3411 .vtotal = 480 + 1 + 23 + 22,
3414 static const struct panel_desc pda_91_00156_a0 = {
3415 .modes = &pda_91_00156_a0_mode,
3421 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3424 static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
3427 .hsync_start = 800 + 54,
3428 .hsync_end = 800 + 54 + 2,
3429 .htotal = 800 + 54 + 2 + 44,
3431 .vsync_start = 480 + 49,
3432 .vsync_end = 480 + 49 + 2,
3433 .vtotal = 480 + 49 + 2 + 22,
3434 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3437 static const struct panel_desc powertip_ph800480t013_idf02 = {
3438 .modes = &powertip_ph800480t013_idf02_mode,
3445 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3446 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3447 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3448 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3449 .connector_type = DRM_MODE_CONNECTOR_DPI,
3452 static const struct drm_display_mode qd43003c0_40_mode = {
3455 .hsync_start = 480 + 8,
3456 .hsync_end = 480 + 8 + 4,
3457 .htotal = 480 + 8 + 4 + 39,
3459 .vsync_start = 272 + 4,
3460 .vsync_end = 272 + 4 + 10,
3461 .vtotal = 272 + 4 + 10 + 2,
3464 static const struct panel_desc qd43003c0_40 = {
3465 .modes = &qd43003c0_40_mode,
3472 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3475 static const struct drm_display_mode qishenglong_gopher2b_lcd_modes[] = {
3479 .hsync_start = 480 + 77,
3480 .hsync_end = 480 + 77 + 41,
3481 .htotal = 480 + 77 + 41 + 2,
3483 .vsync_start = 272 + 16,
3484 .vsync_end = 272 + 16 + 10,
3485 .vtotal = 272 + 16 + 10 + 2,
3486 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3491 .hsync_start = 480 + 17,
3492 .hsync_end = 480 + 17 + 41,
3493 .htotal = 480 + 17 + 41 + 2,
3495 .vsync_start = 272 + 116,
3496 .vsync_end = 272 + 116 + 10,
3497 .vtotal = 272 + 116 + 10 + 2,
3498 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3502 static const struct panel_desc qishenglong_gopher2b_lcd = {
3503 .modes = qishenglong_gopher2b_lcd_modes,
3504 .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_modes),
3510 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3511 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3512 .connector_type = DRM_MODE_CONNECTOR_DPI,
3515 static const struct display_timing rocktech_rk043fn48h_timing = {
3516 .pixelclock = { 6000000, 9000000, 12000000 },
3517 .hactive = { 480, 480, 480 },
3518 .hback_porch = { 8, 43, 43 },
3519 .hfront_porch = { 2, 8, 8 },
3520 .hsync_len = { 1, 1, 1 },
3521 .vactive = { 272, 272, 272 },
3522 .vback_porch = { 2, 12, 12 },
3523 .vfront_porch = { 1, 4, 4 },
3524 .vsync_len = { 1, 10, 10 },
3525 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
3526 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3529 static const struct panel_desc rocktech_rk043fn48h = {
3530 .timings = &rocktech_rk043fn48h_timing,
3537 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3538 .connector_type = DRM_MODE_CONNECTOR_DPI,
3541 static const struct display_timing rocktech_rk070er9427_timing = {
3542 .pixelclock = { 26400000, 33300000, 46800000 },
3543 .hactive = { 800, 800, 800 },
3544 .hfront_porch = { 16, 210, 354 },
3545 .hback_porch = { 46, 46, 46 },
3546 .hsync_len = { 1, 1, 1 },
3547 .vactive = { 480, 480, 480 },
3548 .vfront_porch = { 7, 22, 147 },
3549 .vback_porch = { 23, 23, 23 },
3550 .vsync_len = { 1, 1, 1 },
3551 .flags = DISPLAY_FLAGS_DE_HIGH,
3554 static const struct panel_desc rocktech_rk070er9427 = {
3555 .timings = &rocktech_rk070er9427_timing,
3568 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3571 static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = {
3574 .hsync_start = 1280 + 48,
3575 .hsync_end = 1280 + 48 + 32,
3576 .htotal = 1280 + 48 + 32 + 80,
3578 .vsync_start = 800 + 2,
3579 .vsync_end = 800 + 2 + 5,
3580 .vtotal = 800 + 2 + 5 + 16,
3583 static const struct panel_desc rocktech_rk101ii01d_ct = {
3584 .modes = &rocktech_rk101ii01d_ct_mode,
3595 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3596 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3597 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3600 static const struct display_timing samsung_ltl101al01_timing = {
3601 .pixelclock = { 66663000, 66663000, 66663000 },
3602 .hactive = { 1280, 1280, 1280 },
3603 .hfront_porch = { 18, 18, 18 },
3604 .hback_porch = { 36, 36, 36 },
3605 .hsync_len = { 16, 16, 16 },
3606 .vactive = { 800, 800, 800 },
3607 .vfront_porch = { 4, 4, 4 },
3608 .vback_porch = { 16, 16, 16 },
3609 .vsync_len = { 3, 3, 3 },
3610 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
3613 static const struct panel_desc samsung_ltl101al01 = {
3614 .timings = &samsung_ltl101al01_timing,
3627 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3628 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3631 static const struct drm_display_mode samsung_ltn101nt05_mode = {
3634 .hsync_start = 1024 + 24,
3635 .hsync_end = 1024 + 24 + 136,
3636 .htotal = 1024 + 24 + 136 + 160,
3638 .vsync_start = 600 + 3,
3639 .vsync_end = 600 + 3 + 6,
3640 .vtotal = 600 + 3 + 6 + 61,
3643 static const struct panel_desc samsung_ltn101nt05 = {
3644 .modes = &samsung_ltn101nt05_mode,
3651 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3652 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3653 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3656 static const struct display_timing satoz_sat050at40h12r2_timing = {
3657 .pixelclock = {33300000, 33300000, 50000000},
3658 .hactive = {800, 800, 800},
3659 .hfront_porch = {16, 210, 354},
3660 .hback_porch = {46, 46, 46},
3661 .hsync_len = {1, 1, 40},
3662 .vactive = {480, 480, 480},
3663 .vfront_porch = {7, 22, 147},
3664 .vback_porch = {23, 23, 23},
3665 .vsync_len = {1, 1, 20},
3668 static const struct panel_desc satoz_sat050at40h12r2 = {
3669 .timings = &satoz_sat050at40h12r2_timing,
3676 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3677 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3680 static const struct drm_display_mode sharp_lq070y3dg3b_mode = {
3683 .hsync_start = 800 + 64,
3684 .hsync_end = 800 + 64 + 128,
3685 .htotal = 800 + 64 + 128 + 64,
3687 .vsync_start = 480 + 8,
3688 .vsync_end = 480 + 8 + 2,
3689 .vtotal = 480 + 8 + 2 + 35,
3690 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3693 static const struct panel_desc sharp_lq070y3dg3b = {
3694 .modes = &sharp_lq070y3dg3b_mode,
3698 .width = 152, /* 152.4mm */
3699 .height = 91, /* 91.4mm */
3701 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3702 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3703 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3706 static const struct drm_display_mode sharp_lq035q7db03_mode = {
3709 .hsync_start = 240 + 16,
3710 .hsync_end = 240 + 16 + 7,
3711 .htotal = 240 + 16 + 7 + 5,
3713 .vsync_start = 320 + 9,
3714 .vsync_end = 320 + 9 + 1,
3715 .vtotal = 320 + 9 + 1 + 7,
3718 static const struct panel_desc sharp_lq035q7db03 = {
3719 .modes = &sharp_lq035q7db03_mode,
3726 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3729 static const struct display_timing sharp_lq101k1ly04_timing = {
3730 .pixelclock = { 60000000, 65000000, 80000000 },
3731 .hactive = { 1280, 1280, 1280 },
3732 .hfront_porch = { 20, 20, 20 },
3733 .hback_porch = { 20, 20, 20 },
3734 .hsync_len = { 10, 10, 10 },
3735 .vactive = { 800, 800, 800 },
3736 .vfront_porch = { 4, 4, 4 },
3737 .vback_porch = { 4, 4, 4 },
3738 .vsync_len = { 4, 4, 4 },
3739 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3742 static const struct panel_desc sharp_lq101k1ly04 = {
3743 .timings = &sharp_lq101k1ly04_timing,
3750 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
3751 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3754 static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = {
3758 .hsync_start = 240 + 58,
3759 .hsync_end = 240 + 58 + 1,
3760 .htotal = 240 + 58 + 1 + 1,
3762 .vsync_start = 160 + 24,
3763 .vsync_end = 160 + 24 + 10,
3764 .vtotal = 160 + 24 + 10 + 6,
3765 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3770 .hsync_start = 240 + 8,
3771 .hsync_end = 240 + 8 + 1,
3772 .htotal = 240 + 8 + 1 + 1,
3774 .vsync_start = 160 + 24,
3775 .vsync_end = 160 + 24 + 10,
3776 .vtotal = 160 + 24 + 10 + 6,
3777 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3781 static const struct panel_desc sharp_ls020b1dd01d = {
3782 .modes = sharp_ls020b1dd01d_modes,
3783 .num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes),
3789 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
3790 .bus_flags = DRM_BUS_FLAG_DE_HIGH
3791 | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE
3792 | DRM_BUS_FLAG_SHARP_SIGNALS,
3795 static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
3798 .hsync_start = 800 + 1,
3799 .hsync_end = 800 + 1 + 64,
3800 .htotal = 800 + 1 + 64 + 64,
3802 .vsync_start = 480 + 1,
3803 .vsync_end = 480 + 1 + 23,
3804 .vtotal = 480 + 1 + 23 + 22,
3807 static const struct panel_desc shelly_sca07010_bfn_lnn = {
3808 .modes = &shelly_sca07010_bfn_lnn_mode,
3814 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3817 static const struct drm_display_mode starry_kr070pe2t_mode = {
3820 .hsync_start = 800 + 209,
3821 .hsync_end = 800 + 209 + 1,
3822 .htotal = 800 + 209 + 1 + 45,
3824 .vsync_start = 480 + 22,
3825 .vsync_end = 480 + 22 + 1,
3826 .vtotal = 480 + 22 + 1 + 22,
3829 static const struct panel_desc starry_kr070pe2t = {
3830 .modes = &starry_kr070pe2t_mode,
3837 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3838 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
3839 .connector_type = DRM_MODE_CONNECTOR_DPI,
3842 static const struct display_timing startek_kd070wvfpa_mode = {
3843 .pixelclock = { 25200000, 27200000, 30500000 },
3844 .hactive = { 800, 800, 800 },
3845 .hfront_porch = { 19, 44, 115 },
3846 .hback_porch = { 5, 16, 101 },
3847 .hsync_len = { 1, 2, 100 },
3848 .vactive = { 480, 480, 480 },
3849 .vfront_porch = { 5, 43, 67 },
3850 .vback_porch = { 5, 5, 67 },
3851 .vsync_len = { 1, 2, 66 },
3852 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3853 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3854 DISPLAY_FLAGS_SYNC_POSEDGE,
3857 static const struct panel_desc startek_kd070wvfpa = {
3858 .timings = &startek_kd070wvfpa_mode,
3870 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3871 .connector_type = DRM_MODE_CONNECTOR_DPI,
3872 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3873 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3874 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3877 static const struct display_timing tsd_tst043015cmhx_timing = {
3878 .pixelclock = { 5000000, 9000000, 12000000 },
3879 .hactive = { 480, 480, 480 },
3880 .hfront_porch = { 4, 5, 65 },
3881 .hback_porch = { 36, 40, 255 },
3882 .hsync_len = { 1, 1, 1 },
3883 .vactive = { 272, 272, 272 },
3884 .vfront_porch = { 2, 8, 97 },
3885 .vback_porch = { 3, 8, 31 },
3886 .vsync_len = { 1, 1, 1 },
3888 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3889 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3892 static const struct panel_desc tsd_tst043015cmhx = {
3893 .timings = &tsd_tst043015cmhx_timing,
3900 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3901 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3904 static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = {
3907 .hsync_start = 800 + 39,
3908 .hsync_end = 800 + 39 + 47,
3909 .htotal = 800 + 39 + 47 + 39,
3911 .vsync_start = 480 + 13,
3912 .vsync_end = 480 + 13 + 2,
3913 .vtotal = 480 + 13 + 2 + 29,
3916 static const struct panel_desc tfc_s9700rtwv43tr_01b = {
3917 .modes = &tfc_s9700rtwv43tr_01b_mode,
3924 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3925 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3928 static const struct display_timing tianma_tm070jdhg30_timing = {
3929 .pixelclock = { 62600000, 68200000, 78100000 },
3930 .hactive = { 1280, 1280, 1280 },
3931 .hfront_porch = { 15, 64, 159 },
3932 .hback_porch = { 5, 5, 5 },
3933 .hsync_len = { 1, 1, 256 },
3934 .vactive = { 800, 800, 800 },
3935 .vfront_porch = { 3, 40, 99 },
3936 .vback_porch = { 2, 2, 2 },
3937 .vsync_len = { 1, 1, 128 },
3938 .flags = DISPLAY_FLAGS_DE_HIGH,
3941 static const struct panel_desc tianma_tm070jdhg30 = {
3942 .timings = &tianma_tm070jdhg30_timing,
3949 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3950 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3953 static const struct panel_desc tianma_tm070jvhg33 = {
3954 .timings = &tianma_tm070jdhg30_timing,
3961 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3962 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3965 static const struct display_timing tianma_tm070rvhg71_timing = {
3966 .pixelclock = { 27700000, 29200000, 39600000 },
3967 .hactive = { 800, 800, 800 },
3968 .hfront_porch = { 12, 40, 212 },
3969 .hback_porch = { 88, 88, 88 },
3970 .hsync_len = { 1, 1, 40 },
3971 .vactive = { 480, 480, 480 },
3972 .vfront_porch = { 1, 13, 88 },
3973 .vback_porch = { 32, 32, 32 },
3974 .vsync_len = { 1, 1, 3 },
3975 .flags = DISPLAY_FLAGS_DE_HIGH,
3978 static const struct panel_desc tianma_tm070rvhg71 = {
3979 .timings = &tianma_tm070rvhg71_timing,
3986 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3987 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3990 static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = {
3994 .hsync_start = 320 + 50,
3995 .hsync_end = 320 + 50 + 6,
3996 .htotal = 320 + 50 + 6 + 38,
3998 .vsync_start = 240 + 3,
3999 .vsync_end = 240 + 3 + 1,
4000 .vtotal = 240 + 3 + 1 + 17,
4001 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4005 static const struct panel_desc ti_nspire_cx_lcd_panel = {
4006 .modes = ti_nspire_cx_lcd_mode,
4013 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4014 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
4017 static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = {
4021 .hsync_start = 320 + 6,
4022 .hsync_end = 320 + 6 + 6,
4023 .htotal = 320 + 6 + 6 + 6,
4025 .vsync_start = 240 + 0,
4026 .vsync_end = 240 + 0 + 1,
4027 .vtotal = 240 + 0 + 1 + 0,
4028 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4032 static const struct panel_desc ti_nspire_classic_lcd_panel = {
4033 .modes = ti_nspire_classic_lcd_mode,
4035 /* The grayscale panel has 8 bit for the color .. Y (black) */
4041 /* This is the grayscale bus format */
4042 .bus_format = MEDIA_BUS_FMT_Y8_1X8,
4043 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4046 static const struct drm_display_mode toshiba_lt089ac29000_mode = {
4049 .hsync_start = 1280 + 192,
4050 .hsync_end = 1280 + 192 + 128,
4051 .htotal = 1280 + 192 + 128 + 64,
4053 .vsync_start = 768 + 20,
4054 .vsync_end = 768 + 20 + 7,
4055 .vtotal = 768 + 20 + 7 + 3,
4058 static const struct panel_desc toshiba_lt089ac29000 = {
4059 .modes = &toshiba_lt089ac29000_mode,
4065 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4066 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4067 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4070 static const struct drm_display_mode tpk_f07a_0102_mode = {
4073 .hsync_start = 800 + 40,
4074 .hsync_end = 800 + 40 + 128,
4075 .htotal = 800 + 40 + 128 + 88,
4077 .vsync_start = 480 + 10,
4078 .vsync_end = 480 + 10 + 2,
4079 .vtotal = 480 + 10 + 2 + 33,
4082 static const struct panel_desc tpk_f07a_0102 = {
4083 .modes = &tpk_f07a_0102_mode,
4089 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
4092 static const struct drm_display_mode tpk_f10a_0102_mode = {
4095 .hsync_start = 1024 + 176,
4096 .hsync_end = 1024 + 176 + 5,
4097 .htotal = 1024 + 176 + 5 + 88,
4099 .vsync_start = 600 + 20,
4100 .vsync_end = 600 + 20 + 5,
4101 .vtotal = 600 + 20 + 5 + 25,
4104 static const struct panel_desc tpk_f10a_0102 = {
4105 .modes = &tpk_f10a_0102_mode,
4113 static const struct display_timing urt_umsh_8596md_timing = {
4114 .pixelclock = { 33260000, 33260000, 33260000 },
4115 .hactive = { 800, 800, 800 },
4116 .hfront_porch = { 41, 41, 41 },
4117 .hback_porch = { 216 - 128, 216 - 128, 216 - 128 },
4118 .hsync_len = { 71, 128, 128 },
4119 .vactive = { 480, 480, 480 },
4120 .vfront_porch = { 10, 10, 10 },
4121 .vback_porch = { 35 - 2, 35 - 2, 35 - 2 },
4122 .vsync_len = { 2, 2, 2 },
4123 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
4124 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
4127 static const struct panel_desc urt_umsh_8596md_lvds = {
4128 .timings = &urt_umsh_8596md_timing,
4135 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4136 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4139 static const struct panel_desc urt_umsh_8596md_parallel = {
4140 .timings = &urt_umsh_8596md_timing,
4147 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4150 static const struct drm_display_mode vivax_tpc9150_panel_mode = {
4153 .hsync_start = 1024 + 160,
4154 .hsync_end = 1024 + 160 + 100,
4155 .htotal = 1024 + 160 + 100 + 60,
4157 .vsync_start = 600 + 12,
4158 .vsync_end = 600 + 12 + 10,
4159 .vtotal = 600 + 12 + 10 + 13,
4162 static const struct panel_desc vivax_tpc9150_panel = {
4163 .modes = &vivax_tpc9150_panel_mode,
4170 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4171 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4172 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4175 static const struct drm_display_mode vl050_8048nt_c01_mode = {
4178 .hsync_start = 800 + 210,
4179 .hsync_end = 800 + 210 + 20,
4180 .htotal = 800 + 210 + 20 + 46,
4182 .vsync_start = 480 + 22,
4183 .vsync_end = 480 + 22 + 10,
4184 .vtotal = 480 + 22 + 10 + 23,
4185 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4188 static const struct panel_desc vl050_8048nt_c01 = {
4189 .modes = &vl050_8048nt_c01_mode,
4196 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4197 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4200 static const struct drm_display_mode winstar_wf35ltiacd_mode = {
4203 .hsync_start = 320 + 20,
4204 .hsync_end = 320 + 20 + 30,
4205 .htotal = 320 + 20 + 30 + 38,
4207 .vsync_start = 240 + 4,
4208 .vsync_end = 240 + 4 + 3,
4209 .vtotal = 240 + 4 + 3 + 15,
4210 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4213 static const struct panel_desc winstar_wf35ltiacd = {
4214 .modes = &winstar_wf35ltiacd_mode,
4221 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4224 static const struct drm_display_mode yes_optoelectronics_ytc700tlag_05_201c_mode = {
4227 .hsync_start = 1024 + 100,
4228 .hsync_end = 1024 + 100 + 100,
4229 .htotal = 1024 + 100 + 100 + 120,
4231 .vsync_start = 600 + 10,
4232 .vsync_end = 600 + 10 + 10,
4233 .vtotal = 600 + 10 + 10 + 15,
4234 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4237 static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = {
4238 .modes = &yes_optoelectronics_ytc700tlag_05_201c_mode,
4245 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4246 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4247 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4250 static const struct drm_display_mode arm_rtsm_mode[] = {
4254 .hsync_start = 1024 + 24,
4255 .hsync_end = 1024 + 24 + 136,
4256 .htotal = 1024 + 24 + 136 + 160,
4258 .vsync_start = 768 + 3,
4259 .vsync_end = 768 + 3 + 6,
4260 .vtotal = 768 + 3 + 6 + 29,
4261 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4265 static const struct panel_desc arm_rtsm = {
4266 .modes = arm_rtsm_mode,
4273 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4276 static const struct of_device_id platform_of_match[] = {
4278 .compatible = "ampire,am-1280800n3tzqw-t00h",
4279 .data = &ire_am_1280800n3tzqw_t00h,
4281 .compatible = "ampire,am-480272h3tmqw-t01h",
4282 .data = &ire_am_480272h3tmqw_t01h,
4284 .compatible = "ampire,am-800480l1tmqw-t00h",
4285 .data = &ire_am_800480l1tmqw_t00h,
4287 .compatible = "ampire,am800480r3tmqwa1h",
4288 .data = &ire_am800480r3tmqwa1h,
4290 .compatible = "ampire,am800600p5tmqw-tb8h",
4291 .data = &ire_am800600p5tmqwtb8h,
4293 .compatible = "arm,rtsm-display",
4296 .compatible = "armadeus,st0700-adapt",
4297 .data = &armadeus_st0700_adapt,
4299 .compatible = "auo,b101aw03",
4300 .data = &auo_b101aw03,
4302 .compatible = "auo,b101xtn01",
4303 .data = &auo_b101xtn01,
4305 .compatible = "auo,b116xw03",
4306 .data = &auo_b116xw03,
4308 .compatible = "auo,g070vvn01",
4309 .data = &auo_g070vvn01,
4311 .compatible = "auo,g101evn010",
4312 .data = &auo_g101evn010,
4314 .compatible = "auo,g104sn02",
4315 .data = &auo_g104sn02,
4317 .compatible = "auo,g121ean01",
4318 .data = &auo_g121ean01,
4320 .compatible = "auo,g133han01",
4321 .data = &auo_g133han01,
4323 .compatible = "auo,g156han04",
4324 .data = &auo_g156han04,
4326 .compatible = "auo,g156xtn01",
4327 .data = &auo_g156xtn01,
4329 .compatible = "auo,g185han01",
4330 .data = &auo_g185han01,
4332 .compatible = "auo,g190ean01",
4333 .data = &auo_g190ean01,
4335 .compatible = "auo,p320hvn03",
4336 .data = &auo_p320hvn03,
4338 .compatible = "auo,t215hvn01",
4339 .data = &auo_t215hvn01,
4341 .compatible = "avic,tm070ddh03",
4342 .data = &avic_tm070ddh03,
4344 .compatible = "bananapi,s070wv20-ct16",
4345 .data = &bananapi_s070wv20_ct16,
4347 .compatible = "boe,bp101wx1-100",
4348 .data = &boe_bp101wx1_100,
4350 .compatible = "boe,ev121wxm-n10-1850",
4351 .data = &boe_ev121wxm_n10_1850,
4353 .compatible = "boe,hv070wsa-100",
4354 .data = &boe_hv070wsa
4356 .compatible = "cdtech,s043wq26h-ct7",
4357 .data = &cdtech_s043wq26h_ct7,
4359 .compatible = "cdtech,s070pws19hp-fc21",
4360 .data = &cdtech_s070pws19hp_fc21,
4362 .compatible = "cdtech,s070swv29hg-dc44",
4363 .data = &cdtech_s070swv29hg_dc44,
4365 .compatible = "cdtech,s070wv95-ct16",
4366 .data = &cdtech_s070wv95_ct16,
4368 .compatible = "chefree,ch101olhlwh-002",
4369 .data = &chefree_ch101olhlwh_002,
4371 .compatible = "chunghwa,claa070wp03xg",
4372 .data = &chunghwa_claa070wp03xg,
4374 .compatible = "chunghwa,claa101wa01a",
4375 .data = &chunghwa_claa101wa01a
4377 .compatible = "chunghwa,claa101wb01",
4378 .data = &chunghwa_claa101wb01
4380 .compatible = "dataimage,fg040346dsswbg04",
4381 .data = &dataimage_fg040346dsswbg04,
4383 .compatible = "dataimage,fg1001l0dsswmg01",
4384 .data = &dataimage_fg1001l0dsswmg01,
4386 .compatible = "dataimage,scf0700c48ggu18",
4387 .data = &dataimage_scf0700c48ggu18,
4389 .compatible = "dlc,dlc0700yzg-1",
4390 .data = &dlc_dlc0700yzg_1,
4392 .compatible = "dlc,dlc1010gig",
4393 .data = &dlc_dlc1010gig,
4395 .compatible = "edt,et035012dm6",
4396 .data = &edt_et035012dm6,
4398 .compatible = "edt,etm0350g0dh6",
4399 .data = &edt_etm0350g0dh6,
4401 .compatible = "edt,etm043080dh6gp",
4402 .data = &edt_etm043080dh6gp,
4404 .compatible = "edt,etm0430g0dh6",
4405 .data = &edt_etm0430g0dh6,
4407 .compatible = "edt,et057090dhu",
4408 .data = &edt_et057090dhu,
4410 .compatible = "edt,et070080dh6",
4411 .data = &edt_etm0700g0dh6,
4413 .compatible = "edt,etm0700g0dh6",
4414 .data = &edt_etm0700g0dh6,
4416 .compatible = "edt,etm0700g0bdh6",
4417 .data = &edt_etm0700g0bdh6,
4419 .compatible = "edt,etm0700g0edh6",
4420 .data = &edt_etm0700g0bdh6,
4422 .compatible = "edt,etml0700y5dha",
4423 .data = &edt_etml0700y5dha,
4425 .compatible = "edt,etmv570g2dhu",
4426 .data = &edt_etmv570g2dhu,
4428 .compatible = "eink,vb3300-kca",
4429 .data = &eink_vb3300_kca,
4431 .compatible = "evervision,vgg644804",
4432 .data = &evervision_vgg644804,
4434 .compatible = "evervision,vgg804821",
4435 .data = &evervision_vgg804821,
4437 .compatible = "foxlink,fl500wvr00-a0t",
4438 .data = &foxlink_fl500wvr00_a0t,
4440 .compatible = "frida,frd350h54004",
4441 .data = &frida_frd350h54004,
4443 .compatible = "friendlyarm,hd702e",
4444 .data = &friendlyarm_hd702e,
4446 .compatible = "giantplus,gpg482739qs5",
4447 .data = &giantplus_gpg482739qs5
4449 .compatible = "giantplus,gpm940b0",
4450 .data = &giantplus_gpm940b0,
4452 .compatible = "hannstar,hsd070pww1",
4453 .data = &hannstar_hsd070pww1,
4455 .compatible = "hannstar,hsd100pxn1",
4456 .data = &hannstar_hsd100pxn1,
4458 .compatible = "hannstar,hsd101pww2",
4459 .data = &hannstar_hsd101pww2,
4461 .compatible = "hit,tx23d38vm0caa",
4462 .data = &hitachi_tx23d38vm0caa
4464 .compatible = "innolux,at043tn24",
4465 .data = &innolux_at043tn24,
4467 .compatible = "innolux,at070tn92",
4468 .data = &innolux_at070tn92,
4470 .compatible = "innolux,g070ace-l01",
4471 .data = &innolux_g070ace_l01,
4473 .compatible = "innolux,g070y2-l01",
4474 .data = &innolux_g070y2_l01,
4476 .compatible = "innolux,g070y2-t02",
4477 .data = &innolux_g070y2_t02,
4479 .compatible = "innolux,g101ice-l01",
4480 .data = &innolux_g101ice_l01
4482 .compatible = "innolux,g121i1-l01",
4483 .data = &innolux_g121i1_l01
4485 .compatible = "innolux,g121x1-l03",
4486 .data = &innolux_g121x1_l03,
4488 .compatible = "innolux,g156hce-l01",
4489 .data = &innolux_g156hce_l01,
4491 .compatible = "innolux,n156bge-l21",
4492 .data = &innolux_n156bge_l21,
4494 .compatible = "innolux,zj070na-01p",
4495 .data = &innolux_zj070na_01p,
4497 .compatible = "koe,tx14d24vm1bpa",
4498 .data = &koe_tx14d24vm1bpa,
4500 .compatible = "koe,tx26d202vm0bwa",
4501 .data = &koe_tx26d202vm0bwa,
4503 .compatible = "koe,tx31d200vm0baa",
4504 .data = &koe_tx31d200vm0baa,
4506 .compatible = "kyo,tcg121xglp",
4507 .data = &kyo_tcg121xglp,
4509 .compatible = "lemaker,bl035-rgb-002",
4510 .data = &lemaker_bl035_rgb_002,
4512 .compatible = "lg,lb070wv8",
4513 .data = &lg_lb070wv8,
4515 .compatible = "logicpd,type28",
4516 .data = &logicpd_type_28,
4518 .compatible = "logictechno,lt161010-2nhc",
4519 .data = &logictechno_lt161010_2nh,
4521 .compatible = "logictechno,lt161010-2nhr",
4522 .data = &logictechno_lt161010_2nh,
4524 .compatible = "logictechno,lt170410-2whc",
4525 .data = &logictechno_lt170410_2whc,
4527 .compatible = "logictechno,lttd800480070-l2rt",
4528 .data = &logictechno_lttd800480070_l2rt,
4530 .compatible = "logictechno,lttd800480070-l6wh-rt",
4531 .data = &logictechno_lttd800480070_l6wh_rt,
4533 .compatible = "mitsubishi,aa070mc01-ca1",
4534 .data = &mitsubishi_aa070mc01,
4536 .compatible = "mitsubishi,aa084xe01",
4537 .data = &mitsubishi_aa084xe01,
4539 .compatible = "multi-inno,mi0700s4t-6",
4540 .data = &multi_inno_mi0700s4t_6,
4542 .compatible = "multi-inno,mi0800ft-9",
4543 .data = &multi_inno_mi0800ft_9,
4545 .compatible = "multi-inno,mi1010ait-1cp",
4546 .data = &multi_inno_mi1010ait_1cp,
4548 .compatible = "nec,nl12880bc20-05",
4549 .data = &nec_nl12880bc20_05,
4551 .compatible = "nec,nl4827hc19-05b",
4552 .data = &nec_nl4827hc19_05b,
4554 .compatible = "netron-dy,e231732",
4555 .data = &netron_dy_e231732,
4557 .compatible = "newhaven,nhd-4.3-480272ef-atxl",
4558 .data = &newhaven_nhd_43_480272ef_atxl,
4560 .compatible = "nlt,nl192108ac18-02d",
4561 .data = &nlt_nl192108ac18_02d,
4563 .compatible = "nvd,9128",
4566 .compatible = "okaya,rs800480t-7x0gp",
4567 .data = &okaya_rs800480t_7x0gp,
4569 .compatible = "olimex,lcd-olinuxino-43-ts",
4570 .data = &olimex_lcd_olinuxino_43ts,
4572 .compatible = "ontat,yx700wv03",
4573 .data = &ontat_yx700wv03,
4575 .compatible = "ortustech,com37h3m05dtc",
4576 .data = &ortustech_com37h3m,
4578 .compatible = "ortustech,com37h3m99dtc",
4579 .data = &ortustech_com37h3m,
4581 .compatible = "ortustech,com43h4m85ulc",
4582 .data = &ortustech_com43h4m85ulc,
4584 .compatible = "osddisplays,osd070t1718-19ts",
4585 .data = &osddisplays_osd070t1718_19ts,
4587 .compatible = "pda,91-00156-a0",
4588 .data = &pda_91_00156_a0,
4590 .compatible = "powertip,ph800480t013-idf02",
4591 .data = &powertip_ph800480t013_idf02,
4593 .compatible = "qiaodian,qd43003c0-40",
4594 .data = &qd43003c0_40,
4596 .compatible = "qishenglong,gopher2b-lcd",
4597 .data = &qishenglong_gopher2b_lcd,
4599 .compatible = "rocktech,rk043fn48h",
4600 .data = &rocktech_rk043fn48h,
4602 .compatible = "rocktech,rk070er9427",
4603 .data = &rocktech_rk070er9427,
4605 .compatible = "rocktech,rk101ii01d-ct",
4606 .data = &rocktech_rk101ii01d_ct,
4608 .compatible = "samsung,ltl101al01",
4609 .data = &samsung_ltl101al01,
4611 .compatible = "samsung,ltn101nt05",
4612 .data = &samsung_ltn101nt05,
4614 .compatible = "satoz,sat050at40h12r2",
4615 .data = &satoz_sat050at40h12r2,
4617 .compatible = "sharp,lq035q7db03",
4618 .data = &sharp_lq035q7db03,
4620 .compatible = "sharp,lq070y3dg3b",
4621 .data = &sharp_lq070y3dg3b,
4623 .compatible = "sharp,lq101k1ly04",
4624 .data = &sharp_lq101k1ly04,
4626 .compatible = "sharp,ls020b1dd01d",
4627 .data = &sharp_ls020b1dd01d,
4629 .compatible = "shelly,sca07010-bfn-lnn",
4630 .data = &shelly_sca07010_bfn_lnn,
4632 .compatible = "starry,kr070pe2t",
4633 .data = &starry_kr070pe2t,
4635 .compatible = "startek,kd070wvfpa",
4636 .data = &startek_kd070wvfpa,
4638 .compatible = "team-source-display,tst043015cmhx",
4639 .data = &tsd_tst043015cmhx,
4641 .compatible = "tfc,s9700rtwv43tr-01b",
4642 .data = &tfc_s9700rtwv43tr_01b,
4644 .compatible = "tianma,tm070jdhg30",
4645 .data = &tianma_tm070jdhg30,
4647 .compatible = "tianma,tm070jvhg33",
4648 .data = &tianma_tm070jvhg33,
4650 .compatible = "tianma,tm070rvhg71",
4651 .data = &tianma_tm070rvhg71,
4653 .compatible = "ti,nspire-cx-lcd-panel",
4654 .data = &ti_nspire_cx_lcd_panel,
4656 .compatible = "ti,nspire-classic-lcd-panel",
4657 .data = &ti_nspire_classic_lcd_panel,
4659 .compatible = "toshiba,lt089ac29000",
4660 .data = &toshiba_lt089ac29000,
4662 .compatible = "tpk,f07a-0102",
4663 .data = &tpk_f07a_0102,
4665 .compatible = "tpk,f10a-0102",
4666 .data = &tpk_f10a_0102,
4668 .compatible = "urt,umsh-8596md-t",
4669 .data = &urt_umsh_8596md_parallel,
4671 .compatible = "urt,umsh-8596md-1t",
4672 .data = &urt_umsh_8596md_parallel,
4674 .compatible = "urt,umsh-8596md-7t",
4675 .data = &urt_umsh_8596md_parallel,
4677 .compatible = "urt,umsh-8596md-11t",
4678 .data = &urt_umsh_8596md_lvds,
4680 .compatible = "urt,umsh-8596md-19t",
4681 .data = &urt_umsh_8596md_lvds,
4683 .compatible = "urt,umsh-8596md-20t",
4684 .data = &urt_umsh_8596md_parallel,
4686 .compatible = "vivax,tpc9150-panel",
4687 .data = &vivax_tpc9150_panel,
4689 .compatible = "vxt,vl050-8048nt-c01",
4690 .data = &vl050_8048nt_c01,
4692 .compatible = "winstar,wf35ltiacd",
4693 .data = &winstar_wf35ltiacd,
4695 .compatible = "yes-optoelectronics,ytc700tlag-05-201c",
4696 .data = &yes_optoelectronics_ytc700tlag_05_201c,
4698 /* Must be the last entry */
4699 .compatible = "panel-dpi",
4705 MODULE_DEVICE_TABLE(of, platform_of_match);
4707 static int panel_simple_platform_probe(struct platform_device *pdev)
4709 const struct panel_desc *desc;
4711 desc = of_device_get_match_data(&pdev->dev);
4715 return panel_simple_probe(&pdev->dev, desc);
4718 static void panel_simple_platform_remove(struct platform_device *pdev)
4720 panel_simple_remove(&pdev->dev);
4723 static void panel_simple_platform_shutdown(struct platform_device *pdev)
4725 panel_simple_shutdown(&pdev->dev);
4728 static const struct dev_pm_ops panel_simple_pm_ops = {
4729 SET_RUNTIME_PM_OPS(panel_simple_suspend, panel_simple_resume, NULL)
4730 SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
4731 pm_runtime_force_resume)
4734 static struct platform_driver panel_simple_platform_driver = {
4736 .name = "panel-simple",
4737 .of_match_table = platform_of_match,
4738 .pm = &panel_simple_pm_ops,
4740 .probe = panel_simple_platform_probe,
4741 .remove_new = panel_simple_platform_remove,
4742 .shutdown = panel_simple_platform_shutdown,
4745 struct panel_desc_dsi {
4746 struct panel_desc desc;
4748 unsigned long flags;
4749 enum mipi_dsi_pixel_format format;
4753 static const struct drm_display_mode auo_b080uan01_mode = {
4756 .hsync_start = 1200 + 62,
4757 .hsync_end = 1200 + 62 + 4,
4758 .htotal = 1200 + 62 + 4 + 62,
4760 .vsync_start = 1920 + 9,
4761 .vsync_end = 1920 + 9 + 2,
4762 .vtotal = 1920 + 9 + 2 + 8,
4765 static const struct panel_desc_dsi auo_b080uan01 = {
4767 .modes = &auo_b080uan01_mode,
4774 .connector_type = DRM_MODE_CONNECTOR_DSI,
4776 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4777 .format = MIPI_DSI_FMT_RGB888,
4781 static const struct drm_display_mode boe_tv080wum_nl0_mode = {
4784 .hsync_start = 1200 + 120,
4785 .hsync_end = 1200 + 120 + 20,
4786 .htotal = 1200 + 120 + 20 + 21,
4788 .vsync_start = 1920 + 21,
4789 .vsync_end = 1920 + 21 + 3,
4790 .vtotal = 1920 + 21 + 3 + 18,
4791 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4794 static const struct panel_desc_dsi boe_tv080wum_nl0 = {
4796 .modes = &boe_tv080wum_nl0_mode,
4802 .connector_type = DRM_MODE_CONNECTOR_DSI,
4804 .flags = MIPI_DSI_MODE_VIDEO |
4805 MIPI_DSI_MODE_VIDEO_BURST |
4806 MIPI_DSI_MODE_VIDEO_SYNC_PULSE,
4807 .format = MIPI_DSI_FMT_RGB888,
4811 static const struct drm_display_mode lg_ld070wx3_sl01_mode = {
4814 .hsync_start = 800 + 32,
4815 .hsync_end = 800 + 32 + 1,
4816 .htotal = 800 + 32 + 1 + 57,
4818 .vsync_start = 1280 + 28,
4819 .vsync_end = 1280 + 28 + 1,
4820 .vtotal = 1280 + 28 + 1 + 14,
4823 static const struct panel_desc_dsi lg_ld070wx3_sl01 = {
4825 .modes = &lg_ld070wx3_sl01_mode,
4832 .connector_type = DRM_MODE_CONNECTOR_DSI,
4834 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4835 .format = MIPI_DSI_FMT_RGB888,
4839 static const struct drm_display_mode lg_lh500wx1_sd03_mode = {
4842 .hsync_start = 720 + 12,
4843 .hsync_end = 720 + 12 + 4,
4844 .htotal = 720 + 12 + 4 + 112,
4846 .vsync_start = 1280 + 8,
4847 .vsync_end = 1280 + 8 + 4,
4848 .vtotal = 1280 + 8 + 4 + 12,
4851 static const struct panel_desc_dsi lg_lh500wx1_sd03 = {
4853 .modes = &lg_lh500wx1_sd03_mode,
4860 .connector_type = DRM_MODE_CONNECTOR_DSI,
4862 .flags = MIPI_DSI_MODE_VIDEO,
4863 .format = MIPI_DSI_FMT_RGB888,
4867 static const struct drm_display_mode panasonic_vvx10f004b00_mode = {
4870 .hsync_start = 1920 + 154,
4871 .hsync_end = 1920 + 154 + 16,
4872 .htotal = 1920 + 154 + 16 + 32,
4874 .vsync_start = 1200 + 17,
4875 .vsync_end = 1200 + 17 + 2,
4876 .vtotal = 1200 + 17 + 2 + 16,
4879 static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
4881 .modes = &panasonic_vvx10f004b00_mode,
4888 .connector_type = DRM_MODE_CONNECTOR_DSI,
4890 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
4891 MIPI_DSI_CLOCK_NON_CONTINUOUS,
4892 .format = MIPI_DSI_FMT_RGB888,
4896 static const struct drm_display_mode lg_acx467akm_7_mode = {
4899 .hsync_start = 1080 + 2,
4900 .hsync_end = 1080 + 2 + 2,
4901 .htotal = 1080 + 2 + 2 + 2,
4903 .vsync_start = 1920 + 2,
4904 .vsync_end = 1920 + 2 + 2,
4905 .vtotal = 1920 + 2 + 2 + 2,
4908 static const struct panel_desc_dsi lg_acx467akm_7 = {
4910 .modes = &lg_acx467akm_7_mode,
4917 .connector_type = DRM_MODE_CONNECTOR_DSI,
4920 .format = MIPI_DSI_FMT_RGB888,
4924 static const struct drm_display_mode osd101t2045_53ts_mode = {
4927 .hsync_start = 1920 + 112,
4928 .hsync_end = 1920 + 112 + 16,
4929 .htotal = 1920 + 112 + 16 + 32,
4931 .vsync_start = 1200 + 16,
4932 .vsync_end = 1200 + 16 + 2,
4933 .vtotal = 1200 + 16 + 2 + 16,
4934 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4937 static const struct panel_desc_dsi osd101t2045_53ts = {
4939 .modes = &osd101t2045_53ts_mode,
4946 .connector_type = DRM_MODE_CONNECTOR_DSI,
4948 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
4949 MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
4950 MIPI_DSI_MODE_NO_EOT_PACKET,
4951 .format = MIPI_DSI_FMT_RGB888,
4955 static const struct of_device_id dsi_of_match[] = {
4957 .compatible = "auo,b080uan01",
4958 .data = &auo_b080uan01
4960 .compatible = "boe,tv080wum-nl0",
4961 .data = &boe_tv080wum_nl0
4963 .compatible = "lg,ld070wx3-sl01",
4964 .data = &lg_ld070wx3_sl01
4966 .compatible = "lg,lh500wx1-sd03",
4967 .data = &lg_lh500wx1_sd03
4969 .compatible = "panasonic,vvx10f004b00",
4970 .data = &panasonic_vvx10f004b00
4972 .compatible = "lg,acx467akm-7",
4973 .data = &lg_acx467akm_7
4975 .compatible = "osddisplays,osd101t2045-53ts",
4976 .data = &osd101t2045_53ts
4981 MODULE_DEVICE_TABLE(of, dsi_of_match);
4983 static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
4985 const struct panel_desc_dsi *desc;
4988 desc = of_device_get_match_data(&dsi->dev);
4992 err = panel_simple_probe(&dsi->dev, &desc->desc);
4996 dsi->mode_flags = desc->flags;
4997 dsi->format = desc->format;
4998 dsi->lanes = desc->lanes;
5000 err = mipi_dsi_attach(dsi);
5002 struct panel_simple *panel = mipi_dsi_get_drvdata(dsi);
5004 drm_panel_remove(&panel->base);
5010 static void panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
5014 err = mipi_dsi_detach(dsi);
5016 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err);
5018 panel_simple_remove(&dsi->dev);
5021 static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi)
5023 panel_simple_shutdown(&dsi->dev);
5026 static struct mipi_dsi_driver panel_simple_dsi_driver = {
5028 .name = "panel-simple-dsi",
5029 .of_match_table = dsi_of_match,
5030 .pm = &panel_simple_pm_ops,
5032 .probe = panel_simple_dsi_probe,
5033 .remove = panel_simple_dsi_remove,
5034 .shutdown = panel_simple_dsi_shutdown,
5037 static int __init panel_simple_init(void)
5041 err = platform_driver_register(&panel_simple_platform_driver);
5045 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
5046 err = mipi_dsi_driver_register(&panel_simple_dsi_driver);
5048 goto err_did_platform_register;
5053 err_did_platform_register:
5054 platform_driver_unregister(&panel_simple_platform_driver);
5058 module_init(panel_simple_init);
5060 static void __exit panel_simple_exit(void)
5062 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI))
5063 mipi_dsi_driver_unregister(&panel_simple_dsi_driver);
5065 platform_driver_unregister(&panel_simple_platform_driver);
5067 module_exit(panel_simple_exit);
5070 MODULE_DESCRIPTION("DRM Driver for Simple Panels");
5071 MODULE_LICENSE("GPL and additional rights");