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;
154 const struct drm_edid *drm_edid;
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();
312 drm_edid_free(p->drm_edid);
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->drm_edid = drm_edid_read_ddc(connector, p->ddc);
405 drm_edid_connector_update(connector, p->drm_edid);
407 num += drm_edid_connector_add_modes(connector);
409 pm_runtime_mark_last_busy(panel->dev);
410 pm_runtime_put_autosuspend(panel->dev);
413 /* add hard-coded panel modes */
414 num += panel_simple_get_non_edid_modes(p, connector);
417 * TODO: Remove once all drm drivers call
418 * drm_connector_set_orientation_from_panel()
420 drm_connector_set_panel_orientation(connector, p->orientation);
425 static int panel_simple_get_timings(struct drm_panel *panel,
426 unsigned int num_timings,
427 struct display_timing *timings)
429 struct panel_simple *p = to_panel_simple(panel);
432 if (p->desc->num_timings < num_timings)
433 num_timings = p->desc->num_timings;
436 for (i = 0; i < num_timings; i++)
437 timings[i] = p->desc->timings[i];
439 return p->desc->num_timings;
442 static enum drm_panel_orientation panel_simple_get_orientation(struct drm_panel *panel)
444 struct panel_simple *p = to_panel_simple(panel);
446 return p->orientation;
449 static const struct drm_panel_funcs panel_simple_funcs = {
450 .disable = panel_simple_disable,
451 .unprepare = panel_simple_unprepare,
452 .prepare = panel_simple_prepare,
453 .enable = panel_simple_enable,
454 .get_modes = panel_simple_get_modes,
455 .get_orientation = panel_simple_get_orientation,
456 .get_timings = panel_simple_get_timings,
459 static struct panel_desc panel_dpi;
461 static int panel_dpi_probe(struct device *dev,
462 struct panel_simple *panel)
464 struct display_timing *timing;
465 const struct device_node *np;
466 struct panel_desc *desc;
467 unsigned int bus_flags;
472 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL);
476 timing = devm_kzalloc(dev, sizeof(*timing), GFP_KERNEL);
480 ret = of_get_display_timing(np, "panel-timing", timing);
482 dev_err(dev, "%pOF: no panel-timing node found for \"panel-dpi\" binding\n",
487 desc->timings = timing;
488 desc->num_timings = 1;
490 of_property_read_u32(np, "width-mm", &desc->size.width);
491 of_property_read_u32(np, "height-mm", &desc->size.height);
493 /* Extract bus_flags from display_timing */
495 vm.flags = timing->flags;
496 drm_bus_flags_from_videomode(&vm, &bus_flags);
497 desc->bus_flags = bus_flags;
499 /* We do not know the connector for the DT node, so guess it */
500 desc->connector_type = DRM_MODE_CONNECTOR_DPI;
507 #define PANEL_SIMPLE_BOUNDS_CHECK(to_check, bounds, field) \
508 (to_check->field.typ >= bounds->field.min && \
509 to_check->field.typ <= bounds->field.max)
510 static void panel_simple_parse_panel_timing_node(struct device *dev,
511 struct panel_simple *panel,
512 const struct display_timing *ot)
514 const struct panel_desc *desc = panel->desc;
518 if (WARN_ON(desc->num_modes)) {
519 dev_err(dev, "Reject override mode: panel has a fixed mode\n");
522 if (WARN_ON(!desc->num_timings)) {
523 dev_err(dev, "Reject override mode: no timings specified\n");
527 for (i = 0; i < panel->desc->num_timings; i++) {
528 const struct display_timing *dt = &panel->desc->timings[i];
530 if (!PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hactive) ||
531 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hfront_porch) ||
532 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hback_porch) ||
533 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hsync_len) ||
534 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vactive) ||
535 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vfront_porch) ||
536 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vback_porch) ||
537 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vsync_len))
540 if (ot->flags != dt->flags)
543 videomode_from_timing(ot, &vm);
544 drm_display_mode_from_videomode(&vm, &panel->override_mode);
545 panel->override_mode.type |= DRM_MODE_TYPE_DRIVER |
546 DRM_MODE_TYPE_PREFERRED;
550 if (WARN_ON(!panel->override_mode.type))
551 dev_err(dev, "Reject override mode: No display_timing found\n");
554 static int panel_simple_override_nondefault_lvds_datamapping(struct device *dev,
555 struct panel_simple *panel)
559 ret = drm_of_lvds_get_data_mapping(dev->of_node);
562 dev_warn(dev, "Ignore invalid data-mapping property\n");
565 * Ignore non-existing or malformatted property, fallback to
566 * default data-mapping, and return 0.
575 case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
577 case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
580 case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG:
584 if (panel->desc->bpc != bpc || panel->desc->bus_format != ret) {
585 struct panel_desc *override_desc;
587 override_desc = devm_kmemdup(dev, panel->desc, sizeof(*panel->desc), GFP_KERNEL);
591 override_desc->bus_format = ret;
592 override_desc->bpc = bpc;
593 panel->desc = override_desc;
599 static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
601 struct panel_simple *panel;
602 struct display_timing dt;
603 struct device_node *ddc;
608 panel = devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL);
612 panel->enabled = false;
615 panel->supply = devm_regulator_get(dev, "power");
616 if (IS_ERR(panel->supply))
617 return PTR_ERR(panel->supply);
619 panel->enable_gpio = devm_gpiod_get_optional(dev, "enable",
621 if (IS_ERR(panel->enable_gpio))
622 return dev_err_probe(dev, PTR_ERR(panel->enable_gpio),
623 "failed to request GPIO\n");
625 err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
627 dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
631 ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
633 panel->ddc = of_find_i2c_adapter_by_node(ddc);
637 return -EPROBE_DEFER;
640 if (desc == &panel_dpi) {
641 /* Handle the generic panel-dpi binding */
642 err = panel_dpi_probe(dev, panel);
647 if (!of_get_display_timing(dev->of_node, "panel-timing", &dt))
648 panel_simple_parse_panel_timing_node(dev, panel, &dt);
651 if (desc->connector_type == DRM_MODE_CONNECTOR_LVDS) {
652 /* Optional data-mapping property for overriding bus format */
653 err = panel_simple_override_nondefault_lvds_datamapping(dev, panel);
658 connector_type = desc->connector_type;
659 /* Catch common mistakes for panels. */
660 switch (connector_type) {
662 dev_warn(dev, "Specify missing connector_type\n");
663 connector_type = DRM_MODE_CONNECTOR_DPI;
665 case DRM_MODE_CONNECTOR_LVDS:
666 WARN_ON(desc->bus_flags &
667 ~(DRM_BUS_FLAG_DE_LOW |
668 DRM_BUS_FLAG_DE_HIGH |
669 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
670 DRM_BUS_FLAG_DATA_LSB_TO_MSB));
671 WARN_ON(desc->bus_format != MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
672 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_SPWG &&
673 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA);
674 WARN_ON(desc->bus_format == MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
676 WARN_ON((desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG ||
677 desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA) &&
680 case DRM_MODE_CONNECTOR_eDP:
681 dev_warn(dev, "eDP panels moved to panel-edp\n");
684 case DRM_MODE_CONNECTOR_DSI:
685 if (desc->bpc != 6 && desc->bpc != 8)
686 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
688 case DRM_MODE_CONNECTOR_DPI:
689 bus_flags = DRM_BUS_FLAG_DE_LOW |
690 DRM_BUS_FLAG_DE_HIGH |
691 DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE |
692 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
693 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
694 DRM_BUS_FLAG_DATA_LSB_TO_MSB |
695 DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE |
696 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE;
697 if (desc->bus_flags & ~bus_flags)
698 dev_warn(dev, "Unexpected bus_flags(%d)\n", desc->bus_flags & ~bus_flags);
699 if (!(desc->bus_flags & bus_flags))
700 dev_warn(dev, "Specify missing bus_flags\n");
701 if (desc->bus_format == 0)
702 dev_warn(dev, "Specify missing bus_format\n");
703 if (desc->bpc != 6 && desc->bpc != 8)
704 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
707 dev_warn(dev, "Specify a valid connector_type: %d\n", desc->connector_type);
708 connector_type = DRM_MODE_CONNECTOR_DPI;
712 dev_set_drvdata(dev, panel);
715 * We use runtime PM for prepare / unprepare since those power the panel
716 * on and off and those can be very slow operations. This is important
717 * to optimize powering the panel on briefly to read the EDID before
718 * fully enabling the panel.
720 pm_runtime_enable(dev);
721 pm_runtime_set_autosuspend_delay(dev, 1000);
722 pm_runtime_use_autosuspend(dev);
724 drm_panel_init(&panel->base, dev, &panel_simple_funcs, connector_type);
726 err = drm_panel_of_backlight(&panel->base);
728 dev_err_probe(dev, err, "Could not find backlight\n");
729 goto disable_pm_runtime;
732 drm_panel_add(&panel->base);
737 pm_runtime_dont_use_autosuspend(dev);
738 pm_runtime_disable(dev);
741 put_device(&panel->ddc->dev);
746 static void panel_simple_remove(struct device *dev)
748 struct panel_simple *panel = dev_get_drvdata(dev);
750 drm_panel_remove(&panel->base);
751 drm_panel_disable(&panel->base);
752 drm_panel_unprepare(&panel->base);
754 pm_runtime_dont_use_autosuspend(dev);
755 pm_runtime_disable(dev);
757 put_device(&panel->ddc->dev);
760 static void panel_simple_shutdown(struct device *dev)
762 struct panel_simple *panel = dev_get_drvdata(dev);
764 drm_panel_disable(&panel->base);
765 drm_panel_unprepare(&panel->base);
768 static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode = {
771 .hsync_start = 1280 + 40,
772 .hsync_end = 1280 + 40 + 80,
773 .htotal = 1280 + 40 + 80 + 40,
775 .vsync_start = 800 + 3,
776 .vsync_end = 800 + 3 + 10,
777 .vtotal = 800 + 3 + 10 + 10,
778 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
781 static const struct panel_desc ampire_am_1280800n3tzqw_t00h = {
782 .modes = &ire_am_1280800n3tzqw_t00h_mode,
789 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
790 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
791 .connector_type = DRM_MODE_CONNECTOR_LVDS,
794 static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = {
797 .hsync_start = 480 + 2,
798 .hsync_end = 480 + 2 + 41,
799 .htotal = 480 + 2 + 41 + 2,
801 .vsync_start = 272 + 2,
802 .vsync_end = 272 + 2 + 10,
803 .vtotal = 272 + 2 + 10 + 2,
804 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
807 static const struct panel_desc ampire_am_480272h3tmqw_t01h = {
808 .modes = &ire_am_480272h3tmqw_t01h_mode,
815 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
818 static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = {
821 .hsync_start = 800 + 0,
822 .hsync_end = 800 + 0 + 255,
823 .htotal = 800 + 0 + 255 + 0,
825 .vsync_start = 480 + 2,
826 .vsync_end = 480 + 2 + 45,
827 .vtotal = 480 + 2 + 45 + 0,
828 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
831 static const struct display_timing ampire_am_800480l1tmqw_t00h_timing = {
832 .pixelclock = { 29930000, 33260000, 36590000 },
833 .hactive = { 800, 800, 800 },
834 .hfront_porch = { 1, 40, 168 },
835 .hback_porch = { 88, 88, 88 },
836 .hsync_len = { 1, 128, 128 },
837 .vactive = { 480, 480, 480 },
838 .vfront_porch = { 1, 35, 37 },
839 .vback_porch = { 8, 8, 8 },
840 .vsync_len = { 1, 2, 2 },
841 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
842 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
843 DISPLAY_FLAGS_SYNC_POSEDGE,
846 static const struct panel_desc ampire_am_800480l1tmqw_t00h = {
847 .timings = &ire_am_800480l1tmqw_t00h_timing,
854 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
855 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
856 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
857 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
858 .connector_type = DRM_MODE_CONNECTOR_DPI,
861 static const struct panel_desc ampire_am800480r3tmqwa1h = {
862 .modes = &ire_am800480r3tmqwa1h_mode,
869 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
872 static const struct display_timing ampire_am800600p5tmqw_tb8h_timing = {
873 .pixelclock = { 34500000, 39600000, 50400000 },
874 .hactive = { 800, 800, 800 },
875 .hfront_porch = { 12, 112, 312 },
876 .hback_porch = { 87, 87, 48 },
877 .hsync_len = { 1, 1, 40 },
878 .vactive = { 600, 600, 600 },
879 .vfront_porch = { 1, 21, 61 },
880 .vback_porch = { 38, 38, 19 },
881 .vsync_len = { 1, 1, 20 },
882 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
883 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
884 DISPLAY_FLAGS_SYNC_POSEDGE,
887 static const struct panel_desc ampire_am800600p5tmqwtb8h = {
888 .timings = &ire_am800600p5tmqw_tb8h_timing,
895 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
896 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
897 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
898 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
899 .connector_type = DRM_MODE_CONNECTOR_DPI,
902 static const struct display_timing santek_st0700i5y_rbslw_f_timing = {
903 .pixelclock = { 26400000, 33300000, 46800000 },
904 .hactive = { 800, 800, 800 },
905 .hfront_porch = { 16, 210, 354 },
906 .hback_porch = { 45, 36, 6 },
907 .hsync_len = { 1, 10, 40 },
908 .vactive = { 480, 480, 480 },
909 .vfront_porch = { 7, 22, 147 },
910 .vback_porch = { 22, 13, 3 },
911 .vsync_len = { 1, 10, 20 },
912 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
913 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE
916 static const struct panel_desc armadeus_st0700_adapt = {
917 .timings = &santek_st0700i5y_rbslw_f_timing,
924 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
925 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
928 static const struct drm_display_mode auo_b101aw03_mode = {
931 .hsync_start = 1024 + 156,
932 .hsync_end = 1024 + 156 + 8,
933 .htotal = 1024 + 156 + 8 + 156,
935 .vsync_start = 600 + 16,
936 .vsync_end = 600 + 16 + 6,
937 .vtotal = 600 + 16 + 6 + 16,
940 static const struct panel_desc auo_b101aw03 = {
941 .modes = &auo_b101aw03_mode,
948 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
949 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
950 .connector_type = DRM_MODE_CONNECTOR_LVDS,
953 static const struct drm_display_mode auo_b101xtn01_mode = {
956 .hsync_start = 1366 + 20,
957 .hsync_end = 1366 + 20 + 70,
958 .htotal = 1366 + 20 + 70,
960 .vsync_start = 768 + 14,
961 .vsync_end = 768 + 14 + 42,
962 .vtotal = 768 + 14 + 42,
963 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
966 static const struct panel_desc auo_b101xtn01 = {
967 .modes = &auo_b101xtn01_mode,
976 static const struct drm_display_mode auo_b116xw03_mode = {
979 .hsync_start = 1366 + 40,
980 .hsync_end = 1366 + 40 + 40,
981 .htotal = 1366 + 40 + 40 + 32,
983 .vsync_start = 768 + 10,
984 .vsync_end = 768 + 10 + 12,
985 .vtotal = 768 + 10 + 12 + 6,
986 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
989 static const struct panel_desc auo_b116xw03 = {
990 .modes = &auo_b116xw03_mode,
1003 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1004 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1005 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1008 static const struct display_timing auo_g070vvn01_timings = {
1009 .pixelclock = { 33300000, 34209000, 45000000 },
1010 .hactive = { 800, 800, 800 },
1011 .hfront_porch = { 20, 40, 200 },
1012 .hback_porch = { 87, 40, 1 },
1013 .hsync_len = { 1, 48, 87 },
1014 .vactive = { 480, 480, 480 },
1015 .vfront_porch = { 5, 13, 200 },
1016 .vback_porch = { 31, 31, 29 },
1017 .vsync_len = { 1, 1, 3 },
1020 static const struct panel_desc auo_g070vvn01 = {
1021 .timings = &auo_g070vvn01_timings,
1036 static const struct drm_display_mode auo_g101evn010_mode = {
1039 .hsync_start = 1280 + 82,
1040 .hsync_end = 1280 + 82 + 2,
1041 .htotal = 1280 + 82 + 2 + 84,
1043 .vsync_start = 800 + 8,
1044 .vsync_end = 800 + 8 + 2,
1045 .vtotal = 800 + 8 + 2 + 6,
1048 static const struct panel_desc auo_g101evn010 = {
1049 .modes = &auo_g101evn010_mode,
1056 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1057 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1060 static const struct drm_display_mode auo_g104sn02_mode = {
1063 .hsync_start = 800 + 40,
1064 .hsync_end = 800 + 40 + 216,
1065 .htotal = 800 + 40 + 216 + 128,
1067 .vsync_start = 600 + 10,
1068 .vsync_end = 600 + 10 + 35,
1069 .vtotal = 600 + 10 + 35 + 2,
1072 static const struct panel_desc auo_g104sn02 = {
1073 .modes = &auo_g104sn02_mode,
1080 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1081 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1084 static const struct display_timing auo_g121ean01_timing = {
1085 .pixelclock = { 60000000, 74400000, 90000000 },
1086 .hactive = { 1280, 1280, 1280 },
1087 .hfront_porch = { 20, 50, 100 },
1088 .hback_porch = { 20, 50, 100 },
1089 .hsync_len = { 30, 100, 200 },
1090 .vactive = { 800, 800, 800 },
1091 .vfront_porch = { 2, 10, 25 },
1092 .vback_porch = { 2, 10, 25 },
1093 .vsync_len = { 4, 18, 50 },
1096 static const struct panel_desc auo_g121ean01 = {
1097 .timings = &auo_g121ean01_timing,
1104 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1105 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1108 static const struct display_timing auo_g133han01_timings = {
1109 .pixelclock = { 134000000, 141200000, 149000000 },
1110 .hactive = { 1920, 1920, 1920 },
1111 .hfront_porch = { 39, 58, 77 },
1112 .hback_porch = { 59, 88, 117 },
1113 .hsync_len = { 28, 42, 56 },
1114 .vactive = { 1080, 1080, 1080 },
1115 .vfront_porch = { 3, 8, 11 },
1116 .vback_porch = { 5, 14, 19 },
1117 .vsync_len = { 4, 14, 19 },
1120 static const struct panel_desc auo_g133han01 = {
1121 .timings = &auo_g133han01_timings,
1134 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1135 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1138 static const struct display_timing auo_g156han04_timings = {
1139 .pixelclock = { 137000000, 141000000, 146000000 },
1140 .hactive = { 1920, 1920, 1920 },
1141 .hfront_porch = { 60, 60, 60 },
1142 .hback_porch = { 90, 92, 111 },
1143 .hsync_len = { 32, 32, 32 },
1144 .vactive = { 1080, 1080, 1080 },
1145 .vfront_porch = { 12, 12, 12 },
1146 .vback_porch = { 24, 36, 56 },
1147 .vsync_len = { 8, 8, 8 },
1150 static const struct panel_desc auo_g156han04 = {
1151 .timings = &auo_g156han04_timings,
1159 .prepare = 50, /* T2 */
1160 .enable = 200, /* T3 */
1161 .disable = 110, /* T10 */
1162 .unprepare = 1000, /* T13 */
1164 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1165 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1166 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1169 static const struct drm_display_mode auo_g156xtn01_mode = {
1172 .hsync_start = 1366 + 33,
1173 .hsync_end = 1366 + 33 + 67,
1176 .vsync_start = 768 + 4,
1177 .vsync_end = 768 + 4 + 4,
1181 static const struct panel_desc auo_g156xtn01 = {
1182 .modes = &auo_g156xtn01_mode,
1189 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1190 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1193 static const struct display_timing auo_g185han01_timings = {
1194 .pixelclock = { 120000000, 144000000, 175000000 },
1195 .hactive = { 1920, 1920, 1920 },
1196 .hfront_porch = { 36, 120, 148 },
1197 .hback_porch = { 24, 88, 108 },
1198 .hsync_len = { 20, 48, 64 },
1199 .vactive = { 1080, 1080, 1080 },
1200 .vfront_porch = { 6, 10, 40 },
1201 .vback_porch = { 2, 5, 20 },
1202 .vsync_len = { 2, 5, 20 },
1205 static const struct panel_desc auo_g185han01 = {
1206 .timings = &auo_g185han01_timings,
1219 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1220 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1223 static const struct display_timing auo_g190ean01_timings = {
1224 .pixelclock = { 90000000, 108000000, 135000000 },
1225 .hactive = { 1280, 1280, 1280 },
1226 .hfront_porch = { 126, 184, 1266 },
1227 .hback_porch = { 84, 122, 844 },
1228 .hsync_len = { 70, 102, 704 },
1229 .vactive = { 1024, 1024, 1024 },
1230 .vfront_porch = { 4, 26, 76 },
1231 .vback_porch = { 2, 8, 25 },
1232 .vsync_len = { 2, 8, 25 },
1235 static const struct panel_desc auo_g190ean01 = {
1236 .timings = &auo_g190ean01_timings,
1249 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1250 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1253 static const struct display_timing auo_p320hvn03_timings = {
1254 .pixelclock = { 106000000, 148500000, 164000000 },
1255 .hactive = { 1920, 1920, 1920 },
1256 .hfront_porch = { 25, 50, 130 },
1257 .hback_porch = { 25, 50, 130 },
1258 .hsync_len = { 20, 40, 105 },
1259 .vactive = { 1080, 1080, 1080 },
1260 .vfront_porch = { 8, 17, 150 },
1261 .vback_porch = { 8, 17, 150 },
1262 .vsync_len = { 4, 11, 100 },
1265 static const struct panel_desc auo_p320hvn03 = {
1266 .timings = &auo_p320hvn03_timings,
1278 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1279 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1282 static const struct drm_display_mode auo_t215hvn01_mode = {
1285 .hsync_start = 1920 + 88,
1286 .hsync_end = 1920 + 88 + 44,
1287 .htotal = 1920 + 88 + 44 + 148,
1289 .vsync_start = 1080 + 4,
1290 .vsync_end = 1080 + 4 + 5,
1291 .vtotal = 1080 + 4 + 5 + 36,
1294 static const struct panel_desc auo_t215hvn01 = {
1295 .modes = &auo_t215hvn01_mode,
1306 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1307 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1310 static const struct drm_display_mode avic_tm070ddh03_mode = {
1313 .hsync_start = 1024 + 160,
1314 .hsync_end = 1024 + 160 + 4,
1315 .htotal = 1024 + 160 + 4 + 156,
1317 .vsync_start = 600 + 17,
1318 .vsync_end = 600 + 17 + 1,
1319 .vtotal = 600 + 17 + 1 + 17,
1322 static const struct panel_desc avic_tm070ddh03 = {
1323 .modes = &avic_tm070ddh03_mode,
1337 static const struct drm_display_mode bananapi_s070wv20_ct16_mode = {
1340 .hsync_start = 800 + 40,
1341 .hsync_end = 800 + 40 + 48,
1342 .htotal = 800 + 40 + 48 + 40,
1344 .vsync_start = 480 + 13,
1345 .vsync_end = 480 + 13 + 3,
1346 .vtotal = 480 + 13 + 3 + 29,
1349 static const struct panel_desc bananapi_s070wv20_ct16 = {
1350 .modes = &bananapi_s070wv20_ct16_mode,
1359 static const struct drm_display_mode boe_bp101wx1_100_mode = {
1362 .hsync_start = 1280 + 0,
1363 .hsync_end = 1280 + 0 + 2,
1364 .htotal = 1280 + 62 + 0 + 2,
1366 .vsync_start = 800 + 8,
1367 .vsync_end = 800 + 8 + 2,
1368 .vtotal = 800 + 6 + 8 + 2,
1371 static const struct panel_desc boe_bp082wx1_100 = {
1372 .modes = &boe_bp101wx1_100_mode,
1383 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1384 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1385 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1388 static const struct panel_desc boe_bp101wx1_100 = {
1389 .modes = &boe_bp101wx1_100_mode,
1400 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1401 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1402 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1405 static const struct display_timing boe_ev121wxm_n10_1850_timing = {
1406 .pixelclock = { 69922000, 71000000, 72293000 },
1407 .hactive = { 1280, 1280, 1280 },
1408 .hfront_porch = { 48, 48, 48 },
1409 .hback_porch = { 80, 80, 80 },
1410 .hsync_len = { 32, 32, 32 },
1411 .vactive = { 800, 800, 800 },
1412 .vfront_porch = { 3, 3, 3 },
1413 .vback_porch = { 14, 14, 14 },
1414 .vsync_len = { 6, 6, 6 },
1417 static const struct panel_desc boe_ev121wxm_n10_1850 = {
1418 .timings = &boe_ev121wxm_n10_1850_timing,
1431 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1432 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1433 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1436 static const struct drm_display_mode boe_hv070wsa_mode = {
1439 .hsync_start = 1024 + 30,
1440 .hsync_end = 1024 + 30 + 30,
1441 .htotal = 1024 + 30 + 30 + 30,
1443 .vsync_start = 600 + 10,
1444 .vsync_end = 600 + 10 + 10,
1445 .vtotal = 600 + 10 + 10 + 10,
1448 static const struct panel_desc boe_hv070wsa = {
1449 .modes = &boe_hv070wsa_mode,
1456 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1457 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1458 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1461 static const struct display_timing cct_cmt430b19n00_timing = {
1462 .pixelclock = { 8000000, 9000000, 12000000 },
1463 .hactive = { 480, 480, 480 },
1464 .hfront_porch = { 2, 8, 75 },
1465 .hback_porch = { 3, 43, 43 },
1466 .hsync_len = { 2, 4, 75 },
1467 .vactive = { 272, 272, 272 },
1468 .vfront_porch = { 2, 8, 37 },
1469 .vback_porch = { 2, 12, 12 },
1470 .vsync_len = { 2, 4, 37 },
1471 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW
1474 static const struct panel_desc cct_cmt430b19n00 = {
1475 .timings = &cct_cmt430b19n00_timing,
1482 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1483 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1484 .connector_type = DRM_MODE_CONNECTOR_DPI,
1487 static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = {
1490 .hsync_start = 480 + 5,
1491 .hsync_end = 480 + 5 + 5,
1492 .htotal = 480 + 5 + 5 + 40,
1494 .vsync_start = 272 + 8,
1495 .vsync_end = 272 + 8 + 8,
1496 .vtotal = 272 + 8 + 8 + 8,
1497 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1500 static const struct panel_desc cdtech_s043wq26h_ct7 = {
1501 .modes = &cdtech_s043wq26h_ct7_mode,
1508 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1511 /* S070PWS19HP-FC21 2017/04/22 */
1512 static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = {
1515 .hsync_start = 1024 + 160,
1516 .hsync_end = 1024 + 160 + 20,
1517 .htotal = 1024 + 160 + 20 + 140,
1519 .vsync_start = 600 + 12,
1520 .vsync_end = 600 + 12 + 3,
1521 .vtotal = 600 + 12 + 3 + 20,
1522 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1525 static const struct panel_desc cdtech_s070pws19hp_fc21 = {
1526 .modes = &cdtech_s070pws19hp_fc21_mode,
1533 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1534 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1535 .connector_type = DRM_MODE_CONNECTOR_DPI,
1538 /* S070SWV29HG-DC44 2017/09/21 */
1539 static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = {
1542 .hsync_start = 800 + 210,
1543 .hsync_end = 800 + 210 + 2,
1544 .htotal = 800 + 210 + 2 + 44,
1546 .vsync_start = 480 + 22,
1547 .vsync_end = 480 + 22 + 2,
1548 .vtotal = 480 + 22 + 2 + 21,
1549 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1552 static const struct panel_desc cdtech_s070swv29hg_dc44 = {
1553 .modes = &cdtech_s070swv29hg_dc44_mode,
1560 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1561 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1562 .connector_type = DRM_MODE_CONNECTOR_DPI,
1565 static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
1568 .hsync_start = 800 + 40,
1569 .hsync_end = 800 + 40 + 40,
1570 .htotal = 800 + 40 + 40 + 48,
1572 .vsync_start = 480 + 29,
1573 .vsync_end = 480 + 29 + 13,
1574 .vtotal = 480 + 29 + 13 + 3,
1575 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1578 static const struct panel_desc cdtech_s070wv95_ct16 = {
1579 .modes = &cdtech_s070wv95_ct16_mode,
1588 static const struct display_timing chefree_ch101olhlwh_002_timing = {
1589 .pixelclock = { 68900000, 71100000, 73400000 },
1590 .hactive = { 1280, 1280, 1280 },
1591 .hfront_porch = { 65, 80, 95 },
1592 .hback_porch = { 64, 79, 94 },
1593 .hsync_len = { 1, 1, 1 },
1594 .vactive = { 800, 800, 800 },
1595 .vfront_porch = { 7, 11, 14 },
1596 .vback_porch = { 7, 11, 14 },
1597 .vsync_len = { 1, 1, 1 },
1598 .flags = DISPLAY_FLAGS_DE_HIGH,
1601 static const struct panel_desc chefree_ch101olhlwh_002 = {
1602 .timings = &chefree_ch101olhlwh_002_timing,
1613 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1614 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1615 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1618 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
1621 .hsync_start = 800 + 49,
1622 .hsync_end = 800 + 49 + 33,
1623 .htotal = 800 + 49 + 33 + 17,
1625 .vsync_start = 1280 + 1,
1626 .vsync_end = 1280 + 1 + 7,
1627 .vtotal = 1280 + 1 + 7 + 15,
1628 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1631 static const struct panel_desc chunghwa_claa070wp03xg = {
1632 .modes = &chunghwa_claa070wp03xg_mode,
1639 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1640 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1641 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1644 static const struct drm_display_mode chunghwa_claa101wa01a_mode = {
1647 .hsync_start = 1366 + 58,
1648 .hsync_end = 1366 + 58 + 58,
1649 .htotal = 1366 + 58 + 58 + 58,
1651 .vsync_start = 768 + 4,
1652 .vsync_end = 768 + 4 + 4,
1653 .vtotal = 768 + 4 + 4 + 4,
1656 static const struct panel_desc chunghwa_claa101wa01a = {
1657 .modes = &chunghwa_claa101wa01a_mode,
1664 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1665 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1666 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1669 static const struct drm_display_mode chunghwa_claa101wb01_mode = {
1672 .hsync_start = 1366 + 48,
1673 .hsync_end = 1366 + 48 + 32,
1674 .htotal = 1366 + 48 + 32 + 20,
1676 .vsync_start = 768 + 16,
1677 .vsync_end = 768 + 16 + 8,
1678 .vtotal = 768 + 16 + 8 + 16,
1681 static const struct panel_desc chunghwa_claa101wb01 = {
1682 .modes = &chunghwa_claa101wb01_mode,
1689 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1690 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1691 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1694 static const struct display_timing dataimage_fg040346dsswbg04_timing = {
1695 .pixelclock = { 5000000, 9000000, 12000000 },
1696 .hactive = { 480, 480, 480 },
1697 .hfront_porch = { 12, 12, 12 },
1698 .hback_porch = { 12, 12, 12 },
1699 .hsync_len = { 21, 21, 21 },
1700 .vactive = { 272, 272, 272 },
1701 .vfront_porch = { 4, 4, 4 },
1702 .vback_porch = { 4, 4, 4 },
1703 .vsync_len = { 8, 8, 8 },
1706 static const struct panel_desc dataimage_fg040346dsswbg04 = {
1707 .timings = &dataimage_fg040346dsswbg04_timing,
1714 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1715 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1716 .connector_type = DRM_MODE_CONNECTOR_DPI,
1719 static const struct display_timing dataimage_fg1001l0dsswmg01_timing = {
1720 .pixelclock = { 68900000, 71110000, 73400000 },
1721 .hactive = { 1280, 1280, 1280 },
1722 .vactive = { 800, 800, 800 },
1723 .hback_porch = { 100, 100, 100 },
1724 .hfront_porch = { 100, 100, 100 },
1725 .vback_porch = { 5, 5, 5 },
1726 .vfront_porch = { 5, 5, 5 },
1727 .hsync_len = { 24, 24, 24 },
1728 .vsync_len = { 3, 3, 3 },
1729 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
1730 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1733 static const struct panel_desc dataimage_fg1001l0dsswmg01 = {
1734 .timings = &dataimage_fg1001l0dsswmg01_timing,
1743 static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = {
1746 .hsync_start = 800 + 40,
1747 .hsync_end = 800 + 40 + 128,
1748 .htotal = 800 + 40 + 128 + 88,
1750 .vsync_start = 480 + 10,
1751 .vsync_end = 480 + 10 + 2,
1752 .vtotal = 480 + 10 + 2 + 33,
1753 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1756 static const struct panel_desc dataimage_scf0700c48ggu18 = {
1757 .modes = &dataimage_scf0700c48ggu18_mode,
1764 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1765 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1768 static const struct display_timing dlc_dlc0700yzg_1_timing = {
1769 .pixelclock = { 45000000, 51200000, 57000000 },
1770 .hactive = { 1024, 1024, 1024 },
1771 .hfront_porch = { 100, 106, 113 },
1772 .hback_porch = { 100, 106, 113 },
1773 .hsync_len = { 100, 108, 114 },
1774 .vactive = { 600, 600, 600 },
1775 .vfront_porch = { 8, 11, 15 },
1776 .vback_porch = { 8, 11, 15 },
1777 .vsync_len = { 9, 13, 15 },
1778 .flags = DISPLAY_FLAGS_DE_HIGH,
1781 static const struct panel_desc dlc_dlc0700yzg_1 = {
1782 .timings = &dlc_dlc0700yzg_1_timing,
1794 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1795 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1798 static const struct display_timing dlc_dlc1010gig_timing = {
1799 .pixelclock = { 68900000, 71100000, 73400000 },
1800 .hactive = { 1280, 1280, 1280 },
1801 .hfront_porch = { 43, 53, 63 },
1802 .hback_porch = { 43, 53, 63 },
1803 .hsync_len = { 44, 54, 64 },
1804 .vactive = { 800, 800, 800 },
1805 .vfront_porch = { 5, 8, 11 },
1806 .vback_porch = { 5, 8, 11 },
1807 .vsync_len = { 5, 7, 11 },
1808 .flags = DISPLAY_FLAGS_DE_HIGH,
1811 static const struct panel_desc dlc_dlc1010gig = {
1812 .timings = &dlc_dlc1010gig_timing,
1825 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1826 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1829 static const struct drm_display_mode edt_et035012dm6_mode = {
1832 .hsync_start = 320 + 20,
1833 .hsync_end = 320 + 20 + 30,
1834 .htotal = 320 + 20 + 68,
1836 .vsync_start = 240 + 4,
1837 .vsync_end = 240 + 4 + 4,
1838 .vtotal = 240 + 4 + 4 + 14,
1839 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1842 static const struct panel_desc edt_et035012dm6 = {
1843 .modes = &edt_et035012dm6_mode,
1850 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1851 .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1854 static const struct drm_display_mode edt_etm0350g0dh6_mode = {
1857 .hsync_start = 320 + 20,
1858 .hsync_end = 320 + 20 + 68,
1859 .htotal = 320 + 20 + 68,
1861 .vsync_start = 240 + 4,
1862 .vsync_end = 240 + 4 + 18,
1863 .vtotal = 240 + 4 + 18,
1864 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1867 static const struct panel_desc edt_etm0350g0dh6 = {
1868 .modes = &edt_etm0350g0dh6_mode,
1875 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1876 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1877 .connector_type = DRM_MODE_CONNECTOR_DPI,
1880 static const struct drm_display_mode edt_etm043080dh6gp_mode = {
1883 .hsync_start = 480 + 8,
1884 .hsync_end = 480 + 8 + 4,
1885 .htotal = 480 + 8 + 4 + 41,
1888 * IWG22M: Y resolution changed for "dc_linuxfb" module crashing while
1893 .vsync_start = 288 + 2,
1894 .vsync_end = 288 + 2 + 4,
1895 .vtotal = 288 + 2 + 4 + 10,
1898 static const struct panel_desc edt_etm043080dh6gp = {
1899 .modes = &edt_etm043080dh6gp_mode,
1906 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1907 .connector_type = DRM_MODE_CONNECTOR_DPI,
1910 static const struct drm_display_mode edt_etm0430g0dh6_mode = {
1913 .hsync_start = 480 + 2,
1914 .hsync_end = 480 + 2 + 41,
1915 .htotal = 480 + 2 + 41 + 2,
1917 .vsync_start = 272 + 2,
1918 .vsync_end = 272 + 2 + 10,
1919 .vtotal = 272 + 2 + 10 + 2,
1920 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1923 static const struct panel_desc edt_etm0430g0dh6 = {
1924 .modes = &edt_etm0430g0dh6_mode,
1931 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1932 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1933 .connector_type = DRM_MODE_CONNECTOR_DPI,
1936 static const struct drm_display_mode edt_et057090dhu_mode = {
1939 .hsync_start = 640 + 16,
1940 .hsync_end = 640 + 16 + 30,
1941 .htotal = 640 + 16 + 30 + 114,
1943 .vsync_start = 480 + 10,
1944 .vsync_end = 480 + 10 + 3,
1945 .vtotal = 480 + 10 + 3 + 32,
1946 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1949 static const struct panel_desc edt_et057090dhu = {
1950 .modes = &edt_et057090dhu_mode,
1957 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1958 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1959 .connector_type = DRM_MODE_CONNECTOR_DPI,
1962 static const struct drm_display_mode edt_etm0700g0dh6_mode = {
1965 .hsync_start = 800 + 40,
1966 .hsync_end = 800 + 40 + 128,
1967 .htotal = 800 + 40 + 128 + 88,
1969 .vsync_start = 480 + 10,
1970 .vsync_end = 480 + 10 + 2,
1971 .vtotal = 480 + 10 + 2 + 33,
1972 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1975 static const struct panel_desc edt_etm0700g0dh6 = {
1976 .modes = &edt_etm0700g0dh6_mode,
1983 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1984 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1985 .connector_type = DRM_MODE_CONNECTOR_DPI,
1988 static const struct panel_desc edt_etm0700g0bdh6 = {
1989 .modes = &edt_etm0700g0dh6_mode,
1996 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1997 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1998 .connector_type = DRM_MODE_CONNECTOR_DPI,
2001 static const struct display_timing edt_etml0700y5dha_timing = {
2002 .pixelclock = { 40800000, 51200000, 67200000 },
2003 .hactive = { 1024, 1024, 1024 },
2004 .hfront_porch = { 30, 106, 125 },
2005 .hback_porch = { 30, 106, 125 },
2006 .hsync_len = { 30, 108, 126 },
2007 .vactive = { 600, 600, 600 },
2008 .vfront_porch = { 3, 12, 67},
2009 .vback_porch = { 3, 12, 67 },
2010 .vsync_len = { 4, 11, 66 },
2011 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2012 DISPLAY_FLAGS_DE_HIGH,
2015 static const struct panel_desc edt_etml0700y5dha = {
2016 .timings = &edt_etml0700y5dha_timing,
2023 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2024 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2027 static const struct display_timing edt_etml1010g3dra_timing = {
2028 .pixelclock = { 66300000, 72400000, 78900000 },
2029 .hactive = { 1280, 1280, 1280 },
2030 .hfront_porch = { 12, 72, 132 },
2031 .hback_porch = { 86, 86, 86 },
2032 .hsync_len = { 2, 2, 2 },
2033 .vactive = { 800, 800, 800 },
2034 .vfront_porch = { 1, 15, 49 },
2035 .vback_porch = { 21, 21, 21 },
2036 .vsync_len = { 2, 2, 2 },
2037 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
2038 DISPLAY_FLAGS_DE_HIGH,
2041 static const struct panel_desc edt_etml1010g3dra = {
2042 .timings = &edt_etml1010g3dra_timing,
2049 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2050 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2051 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2054 static const struct drm_display_mode edt_etmv570g2dhu_mode = {
2058 .hsync_end = 640 + 16,
2059 .htotal = 640 + 16 + 30 + 114,
2061 .vsync_start = 480 + 10,
2062 .vsync_end = 480 + 10 + 3,
2063 .vtotal = 480 + 10 + 3 + 35,
2064 .flags = DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_PHSYNC,
2067 static const struct panel_desc edt_etmv570g2dhu = {
2068 .modes = &edt_etmv570g2dhu_mode,
2075 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2076 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
2077 .connector_type = DRM_MODE_CONNECTOR_DPI,
2080 static const struct display_timing eink_vb3300_kca_timing = {
2081 .pixelclock = { 40000000, 40000000, 40000000 },
2082 .hactive = { 334, 334, 334 },
2083 .hfront_porch = { 1, 1, 1 },
2084 .hback_porch = { 1, 1, 1 },
2085 .hsync_len = { 1, 1, 1 },
2086 .vactive = { 1405, 1405, 1405 },
2087 .vfront_porch = { 1, 1, 1 },
2088 .vback_porch = { 1, 1, 1 },
2089 .vsync_len = { 1, 1, 1 },
2090 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2091 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
2094 static const struct panel_desc eink_vb3300_kca = {
2095 .timings = &eink_vb3300_kca_timing,
2102 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2103 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2104 .connector_type = DRM_MODE_CONNECTOR_DPI,
2107 static const struct display_timing evervision_vgg644804_timing = {
2108 .pixelclock = { 25175000, 25175000, 25175000 },
2109 .hactive = { 640, 640, 640 },
2110 .hfront_porch = { 16, 16, 16 },
2111 .hback_porch = { 82, 114, 170 },
2112 .hsync_len = { 5, 30, 30 },
2113 .vactive = { 480, 480, 480 },
2114 .vfront_porch = { 10, 10, 10 },
2115 .vback_porch = { 30, 32, 34 },
2116 .vsync_len = { 1, 3, 5 },
2117 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2118 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2119 DISPLAY_FLAGS_SYNC_POSEDGE,
2122 static const struct panel_desc evervision_vgg644804 = {
2123 .timings = &evervision_vgg644804_timing,
2130 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2131 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2134 static const struct display_timing evervision_vgg804821_timing = {
2135 .pixelclock = { 27600000, 33300000, 50000000 },
2136 .hactive = { 800, 800, 800 },
2137 .hfront_porch = { 40, 66, 70 },
2138 .hback_porch = { 40, 67, 70 },
2139 .hsync_len = { 40, 67, 70 },
2140 .vactive = { 480, 480, 480 },
2141 .vfront_porch = { 6, 10, 10 },
2142 .vback_porch = { 7, 11, 11 },
2143 .vsync_len = { 7, 11, 11 },
2144 .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH |
2145 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
2146 DISPLAY_FLAGS_SYNC_NEGEDGE,
2149 static const struct panel_desc evervision_vgg804821 = {
2150 .timings = &evervision_vgg804821_timing,
2157 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2158 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2161 static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = {
2164 .hsync_start = 800 + 168,
2165 .hsync_end = 800 + 168 + 64,
2166 .htotal = 800 + 168 + 64 + 88,
2168 .vsync_start = 480 + 37,
2169 .vsync_end = 480 + 37 + 2,
2170 .vtotal = 480 + 37 + 2 + 8,
2173 static const struct panel_desc foxlink_fl500wvr00_a0t = {
2174 .modes = &foxlink_fl500wvr00_a0t_mode,
2181 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2184 static const struct drm_display_mode frida_frd350h54004_modes[] = {
2188 .hsync_start = 320 + 44,
2189 .hsync_end = 320 + 44 + 16,
2190 .htotal = 320 + 44 + 16 + 20,
2192 .vsync_start = 240 + 2,
2193 .vsync_end = 240 + 2 + 6,
2194 .vtotal = 240 + 2 + 6 + 2,
2195 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2200 .hsync_start = 320 + 56,
2201 .hsync_end = 320 + 56 + 16,
2202 .htotal = 320 + 56 + 16 + 40,
2204 .vsync_start = 240 + 2,
2205 .vsync_end = 240 + 2 + 6,
2206 .vtotal = 240 + 2 + 6 + 2,
2207 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2211 static const struct panel_desc frida_frd350h54004 = {
2212 .modes = frida_frd350h54004_modes,
2213 .num_modes = ARRAY_SIZE(frida_frd350h54004_modes),
2219 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2220 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2221 .connector_type = DRM_MODE_CONNECTOR_DPI,
2224 static const struct drm_display_mode friendlyarm_hd702e_mode = {
2227 .hsync_start = 800 + 20,
2228 .hsync_end = 800 + 20 + 24,
2229 .htotal = 800 + 20 + 24 + 20,
2231 .vsync_start = 1280 + 4,
2232 .vsync_end = 1280 + 4 + 8,
2233 .vtotal = 1280 + 4 + 8 + 4,
2234 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2237 static const struct panel_desc friendlyarm_hd702e = {
2238 .modes = &friendlyarm_hd702e_mode,
2246 static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
2249 .hsync_start = 480 + 5,
2250 .hsync_end = 480 + 5 + 1,
2251 .htotal = 480 + 5 + 1 + 40,
2253 .vsync_start = 272 + 8,
2254 .vsync_end = 272 + 8 + 1,
2255 .vtotal = 272 + 8 + 1 + 8,
2258 static const struct panel_desc giantplus_gpg482739qs5 = {
2259 .modes = &giantplus_gpg482739qs5_mode,
2266 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2269 static const struct display_timing giantplus_gpm940b0_timing = {
2270 .pixelclock = { 13500000, 27000000, 27500000 },
2271 .hactive = { 320, 320, 320 },
2272 .hfront_porch = { 14, 686, 718 },
2273 .hback_porch = { 50, 70, 255 },
2274 .hsync_len = { 1, 1, 1 },
2275 .vactive = { 240, 240, 240 },
2276 .vfront_porch = { 1, 1, 179 },
2277 .vback_porch = { 1, 21, 31 },
2278 .vsync_len = { 1, 1, 6 },
2279 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
2282 static const struct panel_desc giantplus_gpm940b0 = {
2283 .timings = &giantplus_gpm940b0_timing,
2290 .bus_format = MEDIA_BUS_FMT_RGB888_3X8,
2291 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2294 static const struct display_timing hannstar_hsd070pww1_timing = {
2295 .pixelclock = { 64300000, 71100000, 82000000 },
2296 .hactive = { 1280, 1280, 1280 },
2297 .hfront_porch = { 1, 1, 10 },
2298 .hback_porch = { 1, 1, 10 },
2300 * According to the data sheet, the minimum horizontal blanking interval
2301 * is 54 clocks (1 + 52 + 1), but tests with a Nitrogen6X have shown the
2302 * minimum working horizontal blanking interval to be 60 clocks.
2304 .hsync_len = { 58, 158, 661 },
2305 .vactive = { 800, 800, 800 },
2306 .vfront_porch = { 1, 1, 10 },
2307 .vback_porch = { 1, 1, 10 },
2308 .vsync_len = { 1, 21, 203 },
2309 .flags = DISPLAY_FLAGS_DE_HIGH,
2312 static const struct panel_desc hannstar_hsd070pww1 = {
2313 .timings = &hannstar_hsd070pww1_timing,
2320 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2321 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2324 static const struct display_timing hannstar_hsd100pxn1_timing = {
2325 .pixelclock = { 55000000, 65000000, 75000000 },
2326 .hactive = { 1024, 1024, 1024 },
2327 .hfront_porch = { 40, 40, 40 },
2328 .hback_porch = { 220, 220, 220 },
2329 .hsync_len = { 20, 60, 100 },
2330 .vactive = { 768, 768, 768 },
2331 .vfront_porch = { 7, 7, 7 },
2332 .vback_porch = { 21, 21, 21 },
2333 .vsync_len = { 10, 10, 10 },
2334 .flags = DISPLAY_FLAGS_DE_HIGH,
2337 static const struct panel_desc hannstar_hsd100pxn1 = {
2338 .timings = &hannstar_hsd100pxn1_timing,
2345 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2346 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2349 static const struct display_timing hannstar_hsd101pww2_timing = {
2350 .pixelclock = { 64300000, 71100000, 82000000 },
2351 .hactive = { 1280, 1280, 1280 },
2352 .hfront_porch = { 1, 1, 10 },
2353 .hback_porch = { 1, 1, 10 },
2354 .hsync_len = { 58, 158, 661 },
2355 .vactive = { 800, 800, 800 },
2356 .vfront_porch = { 1, 1, 10 },
2357 .vback_porch = { 1, 1, 10 },
2358 .vsync_len = { 1, 21, 203 },
2359 .flags = DISPLAY_FLAGS_DE_HIGH,
2362 static const struct panel_desc hannstar_hsd101pww2 = {
2363 .timings = &hannstar_hsd101pww2_timing,
2370 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2371 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2374 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
2377 .hsync_start = 800 + 85,
2378 .hsync_end = 800 + 85 + 86,
2379 .htotal = 800 + 85 + 86 + 85,
2381 .vsync_start = 480 + 16,
2382 .vsync_end = 480 + 16 + 13,
2383 .vtotal = 480 + 16 + 13 + 16,
2386 static const struct panel_desc hitachi_tx23d38vm0caa = {
2387 .modes = &hitachi_tx23d38vm0caa_mode,
2400 static const struct drm_display_mode innolux_at043tn24_mode = {
2403 .hsync_start = 480 + 2,
2404 .hsync_end = 480 + 2 + 41,
2405 .htotal = 480 + 2 + 41 + 2,
2407 .vsync_start = 272 + 2,
2408 .vsync_end = 272 + 2 + 10,
2409 .vtotal = 272 + 2 + 10 + 2,
2410 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2413 static const struct panel_desc innolux_at043tn24 = {
2414 .modes = &innolux_at043tn24_mode,
2421 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2422 .connector_type = DRM_MODE_CONNECTOR_DPI,
2423 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2426 static const struct drm_display_mode innolux_at070tn92_mode = {
2429 .hsync_start = 800 + 210,
2430 .hsync_end = 800 + 210 + 20,
2431 .htotal = 800 + 210 + 20 + 46,
2433 .vsync_start = 480 + 22,
2434 .vsync_end = 480 + 22 + 10,
2435 .vtotal = 480 + 22 + 23 + 10,
2438 static const struct panel_desc innolux_at070tn92 = {
2439 .modes = &innolux_at070tn92_mode,
2445 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2448 static const struct display_timing innolux_g070ace_l01_timing = {
2449 .pixelclock = { 25200000, 35000000, 35700000 },
2450 .hactive = { 800, 800, 800 },
2451 .hfront_porch = { 30, 32, 87 },
2452 .hback_porch = { 30, 32, 87 },
2453 .hsync_len = { 1, 1, 1 },
2454 .vactive = { 480, 480, 480 },
2455 .vfront_porch = { 3, 3, 3 },
2456 .vback_porch = { 13, 13, 13 },
2457 .vsync_len = { 1, 1, 4 },
2458 .flags = DISPLAY_FLAGS_DE_HIGH,
2461 static const struct panel_desc innolux_g070ace_l01 = {
2462 .timings = &innolux_g070ace_l01_timing,
2475 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2476 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2477 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2480 static const struct display_timing innolux_g070y2_l01_timing = {
2481 .pixelclock = { 28000000, 29500000, 32000000 },
2482 .hactive = { 800, 800, 800 },
2483 .hfront_porch = { 61, 91, 141 },
2484 .hback_porch = { 60, 90, 140 },
2485 .hsync_len = { 12, 12, 12 },
2486 .vactive = { 480, 480, 480 },
2487 .vfront_porch = { 4, 9, 30 },
2488 .vback_porch = { 4, 8, 28 },
2489 .vsync_len = { 2, 2, 2 },
2490 .flags = DISPLAY_FLAGS_DE_HIGH,
2493 static const struct panel_desc innolux_g070y2_l01 = {
2494 .timings = &innolux_g070y2_l01_timing,
2507 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2508 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2509 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2512 static const struct drm_display_mode innolux_g070y2_t02_mode = {
2515 .hsync_start = 800 + 210,
2516 .hsync_end = 800 + 210 + 20,
2517 .htotal = 800 + 210 + 20 + 46,
2519 .vsync_start = 480 + 22,
2520 .vsync_end = 480 + 22 + 10,
2521 .vtotal = 480 + 22 + 23 + 10,
2524 static const struct panel_desc innolux_g070y2_t02 = {
2525 .modes = &innolux_g070y2_t02_mode,
2532 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2533 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2534 .connector_type = DRM_MODE_CONNECTOR_DPI,
2537 static const struct display_timing innolux_g101ice_l01_timing = {
2538 .pixelclock = { 60400000, 71100000, 74700000 },
2539 .hactive = { 1280, 1280, 1280 },
2540 .hfront_porch = { 30, 60, 70 },
2541 .hback_porch = { 30, 60, 70 },
2542 .hsync_len = { 22, 40, 60 },
2543 .vactive = { 800, 800, 800 },
2544 .vfront_porch = { 3, 8, 14 },
2545 .vback_porch = { 3, 8, 14 },
2546 .vsync_len = { 4, 7, 12 },
2547 .flags = DISPLAY_FLAGS_DE_HIGH,
2550 static const struct panel_desc innolux_g101ice_l01 = {
2551 .timings = &innolux_g101ice_l01_timing,
2562 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2563 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2564 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2567 static const struct display_timing innolux_g121i1_l01_timing = {
2568 .pixelclock = { 67450000, 71000000, 74550000 },
2569 .hactive = { 1280, 1280, 1280 },
2570 .hfront_porch = { 40, 80, 160 },
2571 .hback_porch = { 39, 79, 159 },
2572 .hsync_len = { 1, 1, 1 },
2573 .vactive = { 800, 800, 800 },
2574 .vfront_porch = { 5, 11, 100 },
2575 .vback_porch = { 4, 11, 99 },
2576 .vsync_len = { 1, 1, 1 },
2579 static const struct panel_desc innolux_g121i1_l01 = {
2580 .timings = &innolux_g121i1_l01_timing,
2591 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2592 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2595 static const struct display_timing innolux_g121x1_l03_timings = {
2596 .pixelclock = { 57500000, 64900000, 74400000 },
2597 .hactive = { 1024, 1024, 1024 },
2598 .hfront_porch = { 90, 140, 190 },
2599 .hback_porch = { 90, 140, 190 },
2600 .hsync_len = { 36, 40, 60 },
2601 .vactive = { 768, 768, 768 },
2602 .vfront_porch = { 2, 15, 30 },
2603 .vback_porch = { 2, 15, 30 },
2604 .vsync_len = { 2, 8, 20 },
2605 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
2608 static const struct panel_desc innolux_g121x1_l03 = {
2609 .timings = &innolux_g121x1_l03_timings,
2621 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2622 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2623 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2626 static const struct panel_desc innolux_g121xce_l01 = {
2627 .timings = &innolux_g121x1_l03_timings,
2639 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2640 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2641 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2644 static const struct display_timing innolux_g156hce_l01_timings = {
2645 .pixelclock = { 120000000, 141860000, 150000000 },
2646 .hactive = { 1920, 1920, 1920 },
2647 .hfront_porch = { 80, 90, 100 },
2648 .hback_porch = { 80, 90, 100 },
2649 .hsync_len = { 20, 30, 30 },
2650 .vactive = { 1080, 1080, 1080 },
2651 .vfront_porch = { 3, 10, 20 },
2652 .vback_porch = { 3, 10, 20 },
2653 .vsync_len = { 4, 10, 10 },
2656 static const struct panel_desc innolux_g156hce_l01 = {
2657 .timings = &innolux_g156hce_l01_timings,
2665 .prepare = 1, /* T1+T2 */
2666 .enable = 450, /* T5 */
2667 .disable = 200, /* T6 */
2668 .unprepare = 10, /* T3+T7 */
2670 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2671 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2672 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2675 static const struct drm_display_mode innolux_n156bge_l21_mode = {
2678 .hsync_start = 1366 + 16,
2679 .hsync_end = 1366 + 16 + 34,
2680 .htotal = 1366 + 16 + 34 + 50,
2682 .vsync_start = 768 + 2,
2683 .vsync_end = 768 + 2 + 6,
2684 .vtotal = 768 + 2 + 6 + 12,
2687 static const struct panel_desc innolux_n156bge_l21 = {
2688 .modes = &innolux_n156bge_l21_mode,
2695 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2696 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2697 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2700 static const struct drm_display_mode innolux_zj070na_01p_mode = {
2703 .hsync_start = 1024 + 128,
2704 .hsync_end = 1024 + 128 + 64,
2705 .htotal = 1024 + 128 + 64 + 128,
2707 .vsync_start = 600 + 16,
2708 .vsync_end = 600 + 16 + 4,
2709 .vtotal = 600 + 16 + 4 + 16,
2712 static const struct panel_desc innolux_zj070na_01p = {
2713 .modes = &innolux_zj070na_01p_mode,
2722 static const struct display_timing koe_tx14d24vm1bpa_timing = {
2723 .pixelclock = { 5580000, 5850000, 6200000 },
2724 .hactive = { 320, 320, 320 },
2725 .hfront_porch = { 30, 30, 30 },
2726 .hback_porch = { 30, 30, 30 },
2727 .hsync_len = { 1, 5, 17 },
2728 .vactive = { 240, 240, 240 },
2729 .vfront_porch = { 6, 6, 6 },
2730 .vback_porch = { 5, 5, 5 },
2731 .vsync_len = { 1, 2, 11 },
2732 .flags = DISPLAY_FLAGS_DE_HIGH,
2735 static const struct panel_desc koe_tx14d24vm1bpa = {
2736 .timings = &koe_tx14d24vm1bpa_timing,
2745 static const struct display_timing koe_tx26d202vm0bwa_timing = {
2746 .pixelclock = { 151820000, 156720000, 159780000 },
2747 .hactive = { 1920, 1920, 1920 },
2748 .hfront_porch = { 105, 130, 142 },
2749 .hback_porch = { 45, 70, 82 },
2750 .hsync_len = { 30, 30, 30 },
2751 .vactive = { 1200, 1200, 1200},
2752 .vfront_porch = { 3, 5, 10 },
2753 .vback_porch = { 2, 5, 10 },
2754 .vsync_len = { 5, 5, 5 },
2755 .flags = DISPLAY_FLAGS_DE_HIGH,
2758 static const struct panel_desc koe_tx26d202vm0bwa = {
2759 .timings = &koe_tx26d202vm0bwa_timing,
2772 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2773 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2774 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2777 static const struct display_timing koe_tx31d200vm0baa_timing = {
2778 .pixelclock = { 39600000, 43200000, 48000000 },
2779 .hactive = { 1280, 1280, 1280 },
2780 .hfront_porch = { 16, 36, 56 },
2781 .hback_porch = { 16, 36, 56 },
2782 .hsync_len = { 8, 8, 8 },
2783 .vactive = { 480, 480, 480 },
2784 .vfront_porch = { 6, 21, 33 },
2785 .vback_porch = { 6, 21, 33 },
2786 .vsync_len = { 8, 8, 8 },
2787 .flags = DISPLAY_FLAGS_DE_HIGH,
2790 static const struct panel_desc koe_tx31d200vm0baa = {
2791 .timings = &koe_tx31d200vm0baa_timing,
2798 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2799 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2802 static const struct display_timing kyo_tcg121xglp_timing = {
2803 .pixelclock = { 52000000, 65000000, 71000000 },
2804 .hactive = { 1024, 1024, 1024 },
2805 .hfront_porch = { 2, 2, 2 },
2806 .hback_porch = { 2, 2, 2 },
2807 .hsync_len = { 86, 124, 244 },
2808 .vactive = { 768, 768, 768 },
2809 .vfront_porch = { 2, 2, 2 },
2810 .vback_porch = { 2, 2, 2 },
2811 .vsync_len = { 6, 34, 73 },
2812 .flags = DISPLAY_FLAGS_DE_HIGH,
2815 static const struct panel_desc kyo_tcg121xglp = {
2816 .timings = &kyo_tcg121xglp_timing,
2823 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2824 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2827 static const struct drm_display_mode lemaker_bl035_rgb_002_mode = {
2830 .hsync_start = 320 + 20,
2831 .hsync_end = 320 + 20 + 30,
2832 .htotal = 320 + 20 + 30 + 38,
2834 .vsync_start = 240 + 4,
2835 .vsync_end = 240 + 4 + 3,
2836 .vtotal = 240 + 4 + 3 + 15,
2839 static const struct panel_desc lemaker_bl035_rgb_002 = {
2840 .modes = &lemaker_bl035_rgb_002_mode,
2846 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2847 .bus_flags = DRM_BUS_FLAG_DE_LOW,
2850 static const struct display_timing lg_lb070wv8_timing = {
2851 .pixelclock = { 31950000, 33260000, 34600000 },
2852 .hactive = { 800, 800, 800 },
2853 .hfront_porch = { 88, 88, 88 },
2854 .hback_porch = { 88, 88, 88 },
2855 .hsync_len = { 80, 80, 80 },
2856 .vactive = { 480, 480, 480 },
2857 .vfront_porch = { 10, 10, 10 },
2858 .vback_porch = { 10, 10, 10 },
2859 .vsync_len = { 25, 25, 25 },
2862 static const struct panel_desc lg_lb070wv8 = {
2863 .timings = &lg_lb070wv8_timing,
2870 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2871 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2874 static const struct display_timing logictechno_lt161010_2nh_timing = {
2875 .pixelclock = { 26400000, 33300000, 46800000 },
2876 .hactive = { 800, 800, 800 },
2877 .hfront_porch = { 16, 210, 354 },
2878 .hback_porch = { 46, 46, 46 },
2879 .hsync_len = { 1, 20, 40 },
2880 .vactive = { 480, 480, 480 },
2881 .vfront_porch = { 7, 22, 147 },
2882 .vback_porch = { 23, 23, 23 },
2883 .vsync_len = { 1, 10, 20 },
2884 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2885 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2886 DISPLAY_FLAGS_SYNC_POSEDGE,
2889 static const struct panel_desc logictechno_lt161010_2nh = {
2890 .timings = &logictechno_lt161010_2nh_timing,
2897 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2898 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
2899 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2900 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
2901 .connector_type = DRM_MODE_CONNECTOR_DPI,
2904 static const struct display_timing logictechno_lt170410_2whc_timing = {
2905 .pixelclock = { 68900000, 71100000, 73400000 },
2906 .hactive = { 1280, 1280, 1280 },
2907 .hfront_porch = { 23, 60, 71 },
2908 .hback_porch = { 23, 60, 71 },
2909 .hsync_len = { 15, 40, 47 },
2910 .vactive = { 800, 800, 800 },
2911 .vfront_porch = { 5, 7, 10 },
2912 .vback_porch = { 5, 7, 10 },
2913 .vsync_len = { 6, 9, 12 },
2914 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2915 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2916 DISPLAY_FLAGS_SYNC_POSEDGE,
2919 static const struct panel_desc logictechno_lt170410_2whc = {
2920 .timings = &logictechno_lt170410_2whc_timing,
2927 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2928 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2929 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2932 static const struct drm_display_mode logictechno_lttd800480070_l2rt_mode = {
2935 .hsync_start = 800 + 112,
2936 .hsync_end = 800 + 112 + 3,
2937 .htotal = 800 + 112 + 3 + 85,
2939 .vsync_start = 480 + 38,
2940 .vsync_end = 480 + 38 + 3,
2941 .vtotal = 480 + 38 + 3 + 29,
2942 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2945 static const struct panel_desc logictechno_lttd800480070_l2rt = {
2946 .modes = &logictechno_lttd800480070_l2rt_mode,
2959 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2960 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2961 .connector_type = DRM_MODE_CONNECTOR_DPI,
2964 static const struct drm_display_mode logictechno_lttd800480070_l6wh_rt_mode = {
2967 .hsync_start = 800 + 154,
2968 .hsync_end = 800 + 154 + 3,
2969 .htotal = 800 + 154 + 3 + 43,
2971 .vsync_start = 480 + 47,
2972 .vsync_end = 480 + 47 + 3,
2973 .vtotal = 480 + 47 + 3 + 20,
2974 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2977 static const struct panel_desc logictechno_lttd800480070_l6wh_rt = {
2978 .modes = &logictechno_lttd800480070_l6wh_rt_mode,
2991 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2992 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2993 .connector_type = DRM_MODE_CONNECTOR_DPI,
2996 static const struct drm_display_mode logicpd_type_28_mode = {
2999 .hsync_start = 480 + 3,
3000 .hsync_end = 480 + 3 + 42,
3001 .htotal = 480 + 3 + 42 + 2,
3004 .vsync_start = 272 + 2,
3005 .vsync_end = 272 + 2 + 11,
3006 .vtotal = 272 + 2 + 11 + 3,
3007 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3010 static const struct panel_desc logicpd_type_28 = {
3011 .modes = &logicpd_type_28_mode,
3024 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3025 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3026 DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
3027 .connector_type = DRM_MODE_CONNECTOR_DPI,
3030 static const struct drm_display_mode mitsubishi_aa070mc01_mode = {
3033 .hsync_start = 800 + 0,
3034 .hsync_end = 800 + 1,
3035 .htotal = 800 + 0 + 1 + 160,
3037 .vsync_start = 480 + 0,
3038 .vsync_end = 480 + 48 + 1,
3039 .vtotal = 480 + 48 + 1 + 0,
3040 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
3043 static const struct panel_desc mitsubishi_aa070mc01 = {
3044 .modes = &mitsubishi_aa070mc01_mode,
3057 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3058 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3059 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3062 static const struct drm_display_mode mitsubishi_aa084xe01_mode = {
3065 .hsync_start = 1024 + 24,
3066 .hsync_end = 1024 + 24 + 63,
3067 .htotal = 1024 + 24 + 63 + 1,
3069 .vsync_start = 768 + 3,
3070 .vsync_end = 768 + 3 + 6,
3071 .vtotal = 768 + 3 + 6 + 1,
3072 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3075 static const struct panel_desc mitsubishi_aa084xe01 = {
3076 .modes = &mitsubishi_aa084xe01_mode,
3083 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
3084 .connector_type = DRM_MODE_CONNECTOR_DPI,
3085 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3088 static const struct display_timing multi_inno_mi0700s4t_6_timing = {
3089 .pixelclock = { 29000000, 33000000, 38000000 },
3090 .hactive = { 800, 800, 800 },
3091 .hfront_porch = { 180, 210, 240 },
3092 .hback_porch = { 16, 16, 16 },
3093 .hsync_len = { 30, 30, 30 },
3094 .vactive = { 480, 480, 480 },
3095 .vfront_porch = { 12, 22, 32 },
3096 .vback_porch = { 10, 10, 10 },
3097 .vsync_len = { 13, 13, 13 },
3098 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3099 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3100 DISPLAY_FLAGS_SYNC_POSEDGE,
3103 static const struct panel_desc multi_inno_mi0700s4t_6 = {
3104 .timings = &multi_inno_mi0700s4t_6_timing,
3111 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3112 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3113 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3114 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3115 .connector_type = DRM_MODE_CONNECTOR_DPI,
3118 static const struct display_timing multi_inno_mi0800ft_9_timing = {
3119 .pixelclock = { 32000000, 40000000, 50000000 },
3120 .hactive = { 800, 800, 800 },
3121 .hfront_porch = { 16, 210, 354 },
3122 .hback_porch = { 6, 26, 45 },
3123 .hsync_len = { 1, 20, 40 },
3124 .vactive = { 600, 600, 600 },
3125 .vfront_porch = { 1, 12, 77 },
3126 .vback_porch = { 3, 13, 22 },
3127 .vsync_len = { 1, 10, 20 },
3128 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3129 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3130 DISPLAY_FLAGS_SYNC_POSEDGE,
3133 static const struct panel_desc multi_inno_mi0800ft_9 = {
3134 .timings = &multi_inno_mi0800ft_9_timing,
3141 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3142 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3143 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3144 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3145 .connector_type = DRM_MODE_CONNECTOR_DPI,
3148 static const struct display_timing multi_inno_mi1010ait_1cp_timing = {
3149 .pixelclock = { 68900000, 70000000, 73400000 },
3150 .hactive = { 1280, 1280, 1280 },
3151 .hfront_porch = { 30, 60, 71 },
3152 .hback_porch = { 30, 60, 71 },
3153 .hsync_len = { 10, 10, 48 },
3154 .vactive = { 800, 800, 800 },
3155 .vfront_porch = { 5, 10, 10 },
3156 .vback_porch = { 5, 10, 10 },
3157 .vsync_len = { 5, 6, 13 },
3158 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3159 DISPLAY_FLAGS_DE_HIGH,
3162 static const struct panel_desc multi_inno_mi1010ait_1cp = {
3163 .timings = &multi_inno_mi1010ait_1cp_timing,
3174 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3175 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3176 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3179 static const struct display_timing nec_nl12880bc20_05_timing = {
3180 .pixelclock = { 67000000, 71000000, 75000000 },
3181 .hactive = { 1280, 1280, 1280 },
3182 .hfront_porch = { 2, 30, 30 },
3183 .hback_porch = { 6, 100, 100 },
3184 .hsync_len = { 2, 30, 30 },
3185 .vactive = { 800, 800, 800 },
3186 .vfront_porch = { 5, 5, 5 },
3187 .vback_porch = { 11, 11, 11 },
3188 .vsync_len = { 7, 7, 7 },
3191 static const struct panel_desc nec_nl12880bc20_05 = {
3192 .timings = &nec_nl12880bc20_05_timing,
3203 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3204 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3207 static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
3210 .hsync_start = 480 + 2,
3211 .hsync_end = 480 + 2 + 41,
3212 .htotal = 480 + 2 + 41 + 2,
3214 .vsync_start = 272 + 2,
3215 .vsync_end = 272 + 2 + 4,
3216 .vtotal = 272 + 2 + 4 + 2,
3217 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3220 static const struct panel_desc nec_nl4827hc19_05b = {
3221 .modes = &nec_nl4827hc19_05b_mode,
3228 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3229 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3232 static const struct drm_display_mode netron_dy_e231732_mode = {
3235 .hsync_start = 1024 + 160,
3236 .hsync_end = 1024 + 160 + 70,
3237 .htotal = 1024 + 160 + 70 + 90,
3239 .vsync_start = 600 + 127,
3240 .vsync_end = 600 + 127 + 20,
3241 .vtotal = 600 + 127 + 20 + 3,
3244 static const struct panel_desc netron_dy_e231732 = {
3245 .modes = &netron_dy_e231732_mode,
3251 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3254 static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = {
3257 .hsync_start = 480 + 2,
3258 .hsync_end = 480 + 2 + 41,
3259 .htotal = 480 + 2 + 41 + 2,
3261 .vsync_start = 272 + 2,
3262 .vsync_end = 272 + 2 + 10,
3263 .vtotal = 272 + 2 + 10 + 2,
3264 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3267 static const struct panel_desc newhaven_nhd_43_480272ef_atxl = {
3268 .modes = &newhaven_nhd_43_480272ef_atxl_mode,
3275 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3276 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3277 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3278 .connector_type = DRM_MODE_CONNECTOR_DPI,
3281 static const struct display_timing nlt_nl192108ac18_02d_timing = {
3282 .pixelclock = { 130000000, 148350000, 163000000 },
3283 .hactive = { 1920, 1920, 1920 },
3284 .hfront_porch = { 80, 100, 100 },
3285 .hback_porch = { 100, 120, 120 },
3286 .hsync_len = { 50, 60, 60 },
3287 .vactive = { 1080, 1080, 1080 },
3288 .vfront_porch = { 12, 30, 30 },
3289 .vback_porch = { 4, 10, 10 },
3290 .vsync_len = { 4, 5, 5 },
3293 static const struct panel_desc nlt_nl192108ac18_02d = {
3294 .timings = &nlt_nl192108ac18_02d_timing,
3304 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3305 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3308 static const struct drm_display_mode nvd_9128_mode = {
3311 .hsync_start = 800 + 130,
3312 .hsync_end = 800 + 130 + 98,
3313 .htotal = 800 + 0 + 130 + 98,
3315 .vsync_start = 480 + 10,
3316 .vsync_end = 480 + 10 + 50,
3317 .vtotal = 480 + 0 + 10 + 50,
3320 static const struct panel_desc nvd_9128 = {
3321 .modes = &nvd_9128_mode,
3328 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3329 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3332 static const struct display_timing okaya_rs800480t_7x0gp_timing = {
3333 .pixelclock = { 30000000, 30000000, 40000000 },
3334 .hactive = { 800, 800, 800 },
3335 .hfront_porch = { 40, 40, 40 },
3336 .hback_porch = { 40, 40, 40 },
3337 .hsync_len = { 1, 48, 48 },
3338 .vactive = { 480, 480, 480 },
3339 .vfront_porch = { 13, 13, 13 },
3340 .vback_porch = { 29, 29, 29 },
3341 .vsync_len = { 3, 3, 3 },
3342 .flags = DISPLAY_FLAGS_DE_HIGH,
3345 static const struct panel_desc okaya_rs800480t_7x0gp = {
3346 .timings = &okaya_rs800480t_7x0gp_timing,
3359 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3362 static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = {
3365 .hsync_start = 480 + 5,
3366 .hsync_end = 480 + 5 + 30,
3367 .htotal = 480 + 5 + 30 + 10,
3369 .vsync_start = 272 + 8,
3370 .vsync_end = 272 + 8 + 5,
3371 .vtotal = 272 + 8 + 5 + 3,
3374 static const struct panel_desc olimex_lcd_olinuxino_43ts = {
3375 .modes = &olimex_lcd_olinuxino_43ts_mode,
3381 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3385 * 800x480 CVT. The panel appears to be quite accepting, at least as far as
3386 * pixel clocks, but this is the timing that was being used in the Adafruit
3387 * installation instructions.
3389 static const struct drm_display_mode ontat_yx700wv03_mode = {
3399 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3404 * https://www.adafruit.com/images/product-files/2406/c3163.pdf
3406 static const struct panel_desc ontat_yx700wv03 = {
3407 .modes = &ontat_yx700wv03_mode,
3414 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3417 static const struct drm_display_mode ortustech_com37h3m_mode = {
3420 .hsync_start = 480 + 40,
3421 .hsync_end = 480 + 40 + 10,
3422 .htotal = 480 + 40 + 10 + 40,
3424 .vsync_start = 640 + 4,
3425 .vsync_end = 640 + 4 + 2,
3426 .vtotal = 640 + 4 + 2 + 4,
3427 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3430 static const struct panel_desc ortustech_com37h3m = {
3431 .modes = &ortustech_com37h3m_mode,
3435 .width = 56, /* 56.16mm */
3436 .height = 75, /* 74.88mm */
3438 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3439 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3440 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3443 static const struct drm_display_mode ortustech_com43h4m85ulc_mode = {
3446 .hsync_start = 480 + 10,
3447 .hsync_end = 480 + 10 + 10,
3448 .htotal = 480 + 10 + 10 + 15,
3450 .vsync_start = 800 + 3,
3451 .vsync_end = 800 + 3 + 3,
3452 .vtotal = 800 + 3 + 3 + 3,
3455 static const struct panel_desc ortustech_com43h4m85ulc = {
3456 .modes = &ortustech_com43h4m85ulc_mode,
3463 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3464 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3465 .connector_type = DRM_MODE_CONNECTOR_DPI,
3468 static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = {
3471 .hsync_start = 800 + 210,
3472 .hsync_end = 800 + 210 + 30,
3473 .htotal = 800 + 210 + 30 + 16,
3475 .vsync_start = 480 + 22,
3476 .vsync_end = 480 + 22 + 13,
3477 .vtotal = 480 + 22 + 13 + 10,
3478 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3481 static const struct panel_desc osddisplays_osd070t1718_19ts = {
3482 .modes = &osddisplays_osd070t1718_19ts_mode,
3489 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3490 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3491 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3492 .connector_type = DRM_MODE_CONNECTOR_DPI,
3495 static const struct drm_display_mode pda_91_00156_a0_mode = {
3498 .hsync_start = 800 + 1,
3499 .hsync_end = 800 + 1 + 64,
3500 .htotal = 800 + 1 + 64 + 64,
3502 .vsync_start = 480 + 1,
3503 .vsync_end = 480 + 1 + 23,
3504 .vtotal = 480 + 1 + 23 + 22,
3507 static const struct panel_desc pda_91_00156_a0 = {
3508 .modes = &pda_91_00156_a0_mode,
3514 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3517 static const struct drm_display_mode powertip_ph128800t006_zhc01_mode = {
3520 .hsync_start = 1280 + 12,
3521 .hsync_end = 1280 + 12 + 20,
3522 .htotal = 1280 + 12 + 20 + 56,
3524 .vsync_start = 800 + 1,
3525 .vsync_end = 800 + 1 + 3,
3526 .vtotal = 800 + 1 + 3 + 20,
3527 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3530 static const struct panel_desc powertip_ph128800t006_zhc01 = {
3531 .modes = &powertip_ph128800t006_zhc01_mode,
3538 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3539 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3540 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3543 static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
3546 .hsync_start = 800 + 54,
3547 .hsync_end = 800 + 54 + 2,
3548 .htotal = 800 + 54 + 2 + 44,
3550 .vsync_start = 480 + 49,
3551 .vsync_end = 480 + 49 + 2,
3552 .vtotal = 480 + 49 + 2 + 22,
3553 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3556 static const struct panel_desc powertip_ph800480t013_idf02 = {
3557 .modes = &powertip_ph800480t013_idf02_mode,
3564 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3565 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3566 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3567 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3568 .connector_type = DRM_MODE_CONNECTOR_DPI,
3571 static const struct drm_display_mode qd43003c0_40_mode = {
3574 .hsync_start = 480 + 8,
3575 .hsync_end = 480 + 8 + 4,
3576 .htotal = 480 + 8 + 4 + 39,
3578 .vsync_start = 272 + 4,
3579 .vsync_end = 272 + 4 + 10,
3580 .vtotal = 272 + 4 + 10 + 2,
3583 static const struct panel_desc qd43003c0_40 = {
3584 .modes = &qd43003c0_40_mode,
3591 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3594 static const struct drm_display_mode qishenglong_gopher2b_lcd_modes[] = {
3598 .hsync_start = 480 + 77,
3599 .hsync_end = 480 + 77 + 41,
3600 .htotal = 480 + 77 + 41 + 2,
3602 .vsync_start = 272 + 16,
3603 .vsync_end = 272 + 16 + 10,
3604 .vtotal = 272 + 16 + 10 + 2,
3605 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3610 .hsync_start = 480 + 17,
3611 .hsync_end = 480 + 17 + 41,
3612 .htotal = 480 + 17 + 41 + 2,
3614 .vsync_start = 272 + 116,
3615 .vsync_end = 272 + 116 + 10,
3616 .vtotal = 272 + 116 + 10 + 2,
3617 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3621 static const struct panel_desc qishenglong_gopher2b_lcd = {
3622 .modes = qishenglong_gopher2b_lcd_modes,
3623 .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_modes),
3629 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3630 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3631 .connector_type = DRM_MODE_CONNECTOR_DPI,
3634 static const struct display_timing rocktech_rk043fn48h_timing = {
3635 .pixelclock = { 6000000, 9000000, 12000000 },
3636 .hactive = { 480, 480, 480 },
3637 .hback_porch = { 8, 43, 43 },
3638 .hfront_porch = { 2, 8, 10 },
3639 .hsync_len = { 1, 1, 1 },
3640 .vactive = { 272, 272, 272 },
3641 .vback_porch = { 2, 12, 26 },
3642 .vfront_porch = { 1, 4, 4 },
3643 .vsync_len = { 1, 10, 10 },
3644 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
3645 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3646 DISPLAY_FLAGS_SYNC_POSEDGE,
3649 static const struct panel_desc rocktech_rk043fn48h = {
3650 .timings = &rocktech_rk043fn48h_timing,
3657 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3658 .connector_type = DRM_MODE_CONNECTOR_DPI,
3661 static const struct display_timing rocktech_rk070er9427_timing = {
3662 .pixelclock = { 26400000, 33300000, 46800000 },
3663 .hactive = { 800, 800, 800 },
3664 .hfront_porch = { 16, 210, 354 },
3665 .hback_porch = { 46, 46, 46 },
3666 .hsync_len = { 1, 1, 1 },
3667 .vactive = { 480, 480, 480 },
3668 .vfront_porch = { 7, 22, 147 },
3669 .vback_porch = { 23, 23, 23 },
3670 .vsync_len = { 1, 1, 1 },
3671 .flags = DISPLAY_FLAGS_DE_HIGH,
3674 static const struct panel_desc rocktech_rk070er9427 = {
3675 .timings = &rocktech_rk070er9427_timing,
3688 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3691 static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = {
3694 .hsync_start = 1280 + 48,
3695 .hsync_end = 1280 + 48 + 32,
3696 .htotal = 1280 + 48 + 32 + 80,
3698 .vsync_start = 800 + 2,
3699 .vsync_end = 800 + 2 + 5,
3700 .vtotal = 800 + 2 + 5 + 16,
3703 static const struct panel_desc rocktech_rk101ii01d_ct = {
3704 .modes = &rocktech_rk101ii01d_ct_mode,
3715 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3716 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3717 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3720 static const struct display_timing samsung_ltl101al01_timing = {
3721 .pixelclock = { 66663000, 66663000, 66663000 },
3722 .hactive = { 1280, 1280, 1280 },
3723 .hfront_porch = { 18, 18, 18 },
3724 .hback_porch = { 36, 36, 36 },
3725 .hsync_len = { 16, 16, 16 },
3726 .vactive = { 800, 800, 800 },
3727 .vfront_porch = { 4, 4, 4 },
3728 .vback_porch = { 16, 16, 16 },
3729 .vsync_len = { 3, 3, 3 },
3730 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
3733 static const struct panel_desc samsung_ltl101al01 = {
3734 .timings = &samsung_ltl101al01_timing,
3747 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3748 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3751 static const struct drm_display_mode samsung_ltn101nt05_mode = {
3754 .hsync_start = 1024 + 24,
3755 .hsync_end = 1024 + 24 + 136,
3756 .htotal = 1024 + 24 + 136 + 160,
3758 .vsync_start = 600 + 3,
3759 .vsync_end = 600 + 3 + 6,
3760 .vtotal = 600 + 3 + 6 + 61,
3763 static const struct panel_desc samsung_ltn101nt05 = {
3764 .modes = &samsung_ltn101nt05_mode,
3771 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3772 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3773 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3776 static const struct display_timing satoz_sat050at40h12r2_timing = {
3777 .pixelclock = {33300000, 33300000, 50000000},
3778 .hactive = {800, 800, 800},
3779 .hfront_porch = {16, 210, 354},
3780 .hback_porch = {46, 46, 46},
3781 .hsync_len = {1, 1, 40},
3782 .vactive = {480, 480, 480},
3783 .vfront_porch = {7, 22, 147},
3784 .vback_porch = {23, 23, 23},
3785 .vsync_len = {1, 1, 20},
3788 static const struct panel_desc satoz_sat050at40h12r2 = {
3789 .timings = &satoz_sat050at40h12r2_timing,
3796 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3797 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3800 static const struct drm_display_mode sharp_lq070y3dg3b_mode = {
3803 .hsync_start = 800 + 64,
3804 .hsync_end = 800 + 64 + 128,
3805 .htotal = 800 + 64 + 128 + 64,
3807 .vsync_start = 480 + 8,
3808 .vsync_end = 480 + 8 + 2,
3809 .vtotal = 480 + 8 + 2 + 35,
3810 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3813 static const struct panel_desc sharp_lq070y3dg3b = {
3814 .modes = &sharp_lq070y3dg3b_mode,
3818 .width = 152, /* 152.4mm */
3819 .height = 91, /* 91.4mm */
3821 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3822 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3823 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3826 static const struct drm_display_mode sharp_lq035q7db03_mode = {
3829 .hsync_start = 240 + 16,
3830 .hsync_end = 240 + 16 + 7,
3831 .htotal = 240 + 16 + 7 + 5,
3833 .vsync_start = 320 + 9,
3834 .vsync_end = 320 + 9 + 1,
3835 .vtotal = 320 + 9 + 1 + 7,
3838 static const struct panel_desc sharp_lq035q7db03 = {
3839 .modes = &sharp_lq035q7db03_mode,
3846 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3849 static const struct display_timing sharp_lq101k1ly04_timing = {
3850 .pixelclock = { 60000000, 65000000, 80000000 },
3851 .hactive = { 1280, 1280, 1280 },
3852 .hfront_porch = { 20, 20, 20 },
3853 .hback_porch = { 20, 20, 20 },
3854 .hsync_len = { 10, 10, 10 },
3855 .vactive = { 800, 800, 800 },
3856 .vfront_porch = { 4, 4, 4 },
3857 .vback_porch = { 4, 4, 4 },
3858 .vsync_len = { 4, 4, 4 },
3859 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3862 static const struct panel_desc sharp_lq101k1ly04 = {
3863 .timings = &sharp_lq101k1ly04_timing,
3870 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
3871 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3874 static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = {
3878 .hsync_start = 240 + 58,
3879 .hsync_end = 240 + 58 + 1,
3880 .htotal = 240 + 58 + 1 + 1,
3882 .vsync_start = 160 + 24,
3883 .vsync_end = 160 + 24 + 10,
3884 .vtotal = 160 + 24 + 10 + 6,
3885 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3890 .hsync_start = 240 + 8,
3891 .hsync_end = 240 + 8 + 1,
3892 .htotal = 240 + 8 + 1 + 1,
3894 .vsync_start = 160 + 24,
3895 .vsync_end = 160 + 24 + 10,
3896 .vtotal = 160 + 24 + 10 + 6,
3897 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3901 static const struct panel_desc sharp_ls020b1dd01d = {
3902 .modes = sharp_ls020b1dd01d_modes,
3903 .num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes),
3909 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
3910 .bus_flags = DRM_BUS_FLAG_DE_HIGH
3911 | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE
3912 | DRM_BUS_FLAG_SHARP_SIGNALS,
3915 static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
3918 .hsync_start = 800 + 1,
3919 .hsync_end = 800 + 1 + 64,
3920 .htotal = 800 + 1 + 64 + 64,
3922 .vsync_start = 480 + 1,
3923 .vsync_end = 480 + 1 + 23,
3924 .vtotal = 480 + 1 + 23 + 22,
3927 static const struct panel_desc shelly_sca07010_bfn_lnn = {
3928 .modes = &shelly_sca07010_bfn_lnn_mode,
3934 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3937 static const struct drm_display_mode starry_kr070pe2t_mode = {
3940 .hsync_start = 800 + 209,
3941 .hsync_end = 800 + 209 + 1,
3942 .htotal = 800 + 209 + 1 + 45,
3944 .vsync_start = 480 + 22,
3945 .vsync_end = 480 + 22 + 1,
3946 .vtotal = 480 + 22 + 1 + 22,
3949 static const struct panel_desc starry_kr070pe2t = {
3950 .modes = &starry_kr070pe2t_mode,
3957 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3958 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
3959 .connector_type = DRM_MODE_CONNECTOR_DPI,
3962 static const struct display_timing startek_kd070wvfpa_mode = {
3963 .pixelclock = { 25200000, 27200000, 30500000 },
3964 .hactive = { 800, 800, 800 },
3965 .hfront_porch = { 19, 44, 115 },
3966 .hback_porch = { 5, 16, 101 },
3967 .hsync_len = { 1, 2, 100 },
3968 .vactive = { 480, 480, 480 },
3969 .vfront_porch = { 5, 43, 67 },
3970 .vback_porch = { 5, 5, 67 },
3971 .vsync_len = { 1, 2, 66 },
3972 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3973 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3974 DISPLAY_FLAGS_SYNC_POSEDGE,
3977 static const struct panel_desc startek_kd070wvfpa = {
3978 .timings = &startek_kd070wvfpa_mode,
3990 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3991 .connector_type = DRM_MODE_CONNECTOR_DPI,
3992 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3993 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3994 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3997 static const struct display_timing tsd_tst043015cmhx_timing = {
3998 .pixelclock = { 5000000, 9000000, 12000000 },
3999 .hactive = { 480, 480, 480 },
4000 .hfront_porch = { 4, 5, 65 },
4001 .hback_porch = { 36, 40, 255 },
4002 .hsync_len = { 1, 1, 1 },
4003 .vactive = { 272, 272, 272 },
4004 .vfront_porch = { 2, 8, 97 },
4005 .vback_porch = { 3, 8, 31 },
4006 .vsync_len = { 1, 1, 1 },
4008 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
4009 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
4012 static const struct panel_desc tsd_tst043015cmhx = {
4013 .timings = &tsd_tst043015cmhx_timing,
4020 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4021 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4024 static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = {
4027 .hsync_start = 800 + 39,
4028 .hsync_end = 800 + 39 + 47,
4029 .htotal = 800 + 39 + 47 + 39,
4031 .vsync_start = 480 + 13,
4032 .vsync_end = 480 + 13 + 2,
4033 .vtotal = 480 + 13 + 2 + 29,
4036 static const struct panel_desc tfc_s9700rtwv43tr_01b = {
4037 .modes = &tfc_s9700rtwv43tr_01b_mode,
4044 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4045 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4048 static const struct display_timing tianma_tm070jdhg30_timing = {
4049 .pixelclock = { 62600000, 68200000, 78100000 },
4050 .hactive = { 1280, 1280, 1280 },
4051 .hfront_porch = { 15, 64, 159 },
4052 .hback_porch = { 5, 5, 5 },
4053 .hsync_len = { 1, 1, 256 },
4054 .vactive = { 800, 800, 800 },
4055 .vfront_porch = { 3, 40, 99 },
4056 .vback_porch = { 2, 2, 2 },
4057 .vsync_len = { 1, 1, 128 },
4058 .flags = DISPLAY_FLAGS_DE_HIGH,
4061 static const struct panel_desc tianma_tm070jdhg30 = {
4062 .timings = &tianma_tm070jdhg30_timing,
4069 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4070 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4071 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4074 static const struct panel_desc tianma_tm070jvhg33 = {
4075 .timings = &tianma_tm070jdhg30_timing,
4082 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4083 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4084 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4087 static const struct display_timing tianma_tm070rvhg71_timing = {
4088 .pixelclock = { 27700000, 29200000, 39600000 },
4089 .hactive = { 800, 800, 800 },
4090 .hfront_porch = { 12, 40, 212 },
4091 .hback_porch = { 88, 88, 88 },
4092 .hsync_len = { 1, 1, 40 },
4093 .vactive = { 480, 480, 480 },
4094 .vfront_porch = { 1, 13, 88 },
4095 .vback_porch = { 32, 32, 32 },
4096 .vsync_len = { 1, 1, 3 },
4097 .flags = DISPLAY_FLAGS_DE_HIGH,
4100 static const struct panel_desc tianma_tm070rvhg71 = {
4101 .timings = &tianma_tm070rvhg71_timing,
4108 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4109 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4112 static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = {
4116 .hsync_start = 320 + 50,
4117 .hsync_end = 320 + 50 + 6,
4118 .htotal = 320 + 50 + 6 + 38,
4120 .vsync_start = 240 + 3,
4121 .vsync_end = 240 + 3 + 1,
4122 .vtotal = 240 + 3 + 1 + 17,
4123 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4127 static const struct panel_desc ti_nspire_cx_lcd_panel = {
4128 .modes = ti_nspire_cx_lcd_mode,
4135 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4136 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
4139 static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = {
4143 .hsync_start = 320 + 6,
4144 .hsync_end = 320 + 6 + 6,
4145 .htotal = 320 + 6 + 6 + 6,
4147 .vsync_start = 240 + 0,
4148 .vsync_end = 240 + 0 + 1,
4149 .vtotal = 240 + 0 + 1 + 0,
4150 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4154 static const struct panel_desc ti_nspire_classic_lcd_panel = {
4155 .modes = ti_nspire_classic_lcd_mode,
4157 /* The grayscale panel has 8 bit for the color .. Y (black) */
4163 /* This is the grayscale bus format */
4164 .bus_format = MEDIA_BUS_FMT_Y8_1X8,
4165 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4168 static const struct drm_display_mode toshiba_lt089ac29000_mode = {
4171 .hsync_start = 1280 + 192,
4172 .hsync_end = 1280 + 192 + 128,
4173 .htotal = 1280 + 192 + 128 + 64,
4175 .vsync_start = 768 + 20,
4176 .vsync_end = 768 + 20 + 7,
4177 .vtotal = 768 + 20 + 7 + 3,
4180 static const struct panel_desc toshiba_lt089ac29000 = {
4181 .modes = &toshiba_lt089ac29000_mode,
4187 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4188 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4189 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4192 static const struct drm_display_mode tpk_f07a_0102_mode = {
4195 .hsync_start = 800 + 40,
4196 .hsync_end = 800 + 40 + 128,
4197 .htotal = 800 + 40 + 128 + 88,
4199 .vsync_start = 480 + 10,
4200 .vsync_end = 480 + 10 + 2,
4201 .vtotal = 480 + 10 + 2 + 33,
4204 static const struct panel_desc tpk_f07a_0102 = {
4205 .modes = &tpk_f07a_0102_mode,
4211 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
4214 static const struct drm_display_mode tpk_f10a_0102_mode = {
4217 .hsync_start = 1024 + 176,
4218 .hsync_end = 1024 + 176 + 5,
4219 .htotal = 1024 + 176 + 5 + 88,
4221 .vsync_start = 600 + 20,
4222 .vsync_end = 600 + 20 + 5,
4223 .vtotal = 600 + 20 + 5 + 25,
4226 static const struct panel_desc tpk_f10a_0102 = {
4227 .modes = &tpk_f10a_0102_mode,
4235 static const struct display_timing urt_umsh_8596md_timing = {
4236 .pixelclock = { 33260000, 33260000, 33260000 },
4237 .hactive = { 800, 800, 800 },
4238 .hfront_porch = { 41, 41, 41 },
4239 .hback_porch = { 216 - 128, 216 - 128, 216 - 128 },
4240 .hsync_len = { 71, 128, 128 },
4241 .vactive = { 480, 480, 480 },
4242 .vfront_porch = { 10, 10, 10 },
4243 .vback_porch = { 35 - 2, 35 - 2, 35 - 2 },
4244 .vsync_len = { 2, 2, 2 },
4245 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
4246 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
4249 static const struct panel_desc urt_umsh_8596md_lvds = {
4250 .timings = &urt_umsh_8596md_timing,
4257 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4258 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4261 static const struct panel_desc urt_umsh_8596md_parallel = {
4262 .timings = &urt_umsh_8596md_timing,
4269 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4272 static const struct drm_display_mode vivax_tpc9150_panel_mode = {
4275 .hsync_start = 1024 + 160,
4276 .hsync_end = 1024 + 160 + 100,
4277 .htotal = 1024 + 160 + 100 + 60,
4279 .vsync_start = 600 + 12,
4280 .vsync_end = 600 + 12 + 10,
4281 .vtotal = 600 + 12 + 10 + 13,
4284 static const struct panel_desc vivax_tpc9150_panel = {
4285 .modes = &vivax_tpc9150_panel_mode,
4292 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4293 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4294 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4297 static const struct drm_display_mode vl050_8048nt_c01_mode = {
4300 .hsync_start = 800 + 210,
4301 .hsync_end = 800 + 210 + 20,
4302 .htotal = 800 + 210 + 20 + 46,
4304 .vsync_start = 480 + 22,
4305 .vsync_end = 480 + 22 + 10,
4306 .vtotal = 480 + 22 + 10 + 23,
4307 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4310 static const struct panel_desc vl050_8048nt_c01 = {
4311 .modes = &vl050_8048nt_c01_mode,
4318 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4319 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4322 static const struct drm_display_mode winstar_wf35ltiacd_mode = {
4325 .hsync_start = 320 + 20,
4326 .hsync_end = 320 + 20 + 30,
4327 .htotal = 320 + 20 + 30 + 38,
4329 .vsync_start = 240 + 4,
4330 .vsync_end = 240 + 4 + 3,
4331 .vtotal = 240 + 4 + 3 + 15,
4332 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4335 static const struct panel_desc winstar_wf35ltiacd = {
4336 .modes = &winstar_wf35ltiacd_mode,
4343 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4346 static const struct drm_display_mode yes_optoelectronics_ytc700tlag_05_201c_mode = {
4349 .hsync_start = 1024 + 100,
4350 .hsync_end = 1024 + 100 + 100,
4351 .htotal = 1024 + 100 + 100 + 120,
4353 .vsync_start = 600 + 10,
4354 .vsync_end = 600 + 10 + 10,
4355 .vtotal = 600 + 10 + 10 + 15,
4356 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4359 static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = {
4360 .modes = &yes_optoelectronics_ytc700tlag_05_201c_mode,
4367 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4368 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4369 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4372 static const struct drm_display_mode arm_rtsm_mode[] = {
4376 .hsync_start = 1024 + 24,
4377 .hsync_end = 1024 + 24 + 136,
4378 .htotal = 1024 + 24 + 136 + 160,
4380 .vsync_start = 768 + 3,
4381 .vsync_end = 768 + 3 + 6,
4382 .vtotal = 768 + 3 + 6 + 29,
4383 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4387 static const struct panel_desc arm_rtsm = {
4388 .modes = arm_rtsm_mode,
4395 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4398 static const struct of_device_id platform_of_match[] = {
4400 .compatible = "ampire,am-1280800n3tzqw-t00h",
4401 .data = &ire_am_1280800n3tzqw_t00h,
4403 .compatible = "ampire,am-480272h3tmqw-t01h",
4404 .data = &ire_am_480272h3tmqw_t01h,
4406 .compatible = "ampire,am-800480l1tmqw-t00h",
4407 .data = &ire_am_800480l1tmqw_t00h,
4409 .compatible = "ampire,am800480r3tmqwa1h",
4410 .data = &ire_am800480r3tmqwa1h,
4412 .compatible = "ampire,am800600p5tmqw-tb8h",
4413 .data = &ire_am800600p5tmqwtb8h,
4415 .compatible = "arm,rtsm-display",
4418 .compatible = "armadeus,st0700-adapt",
4419 .data = &armadeus_st0700_adapt,
4421 .compatible = "auo,b101aw03",
4422 .data = &auo_b101aw03,
4424 .compatible = "auo,b101xtn01",
4425 .data = &auo_b101xtn01,
4427 .compatible = "auo,b116xw03",
4428 .data = &auo_b116xw03,
4430 .compatible = "auo,g070vvn01",
4431 .data = &auo_g070vvn01,
4433 .compatible = "auo,g101evn010",
4434 .data = &auo_g101evn010,
4436 .compatible = "auo,g104sn02",
4437 .data = &auo_g104sn02,
4439 .compatible = "auo,g121ean01",
4440 .data = &auo_g121ean01,
4442 .compatible = "auo,g133han01",
4443 .data = &auo_g133han01,
4445 .compatible = "auo,g156han04",
4446 .data = &auo_g156han04,
4448 .compatible = "auo,g156xtn01",
4449 .data = &auo_g156xtn01,
4451 .compatible = "auo,g185han01",
4452 .data = &auo_g185han01,
4454 .compatible = "auo,g190ean01",
4455 .data = &auo_g190ean01,
4457 .compatible = "auo,p320hvn03",
4458 .data = &auo_p320hvn03,
4460 .compatible = "auo,t215hvn01",
4461 .data = &auo_t215hvn01,
4463 .compatible = "avic,tm070ddh03",
4464 .data = &avic_tm070ddh03,
4466 .compatible = "bananapi,s070wv20-ct16",
4467 .data = &bananapi_s070wv20_ct16,
4469 .compatible = "boe,bp082wx1-100",
4470 .data = &boe_bp082wx1_100,
4472 .compatible = "boe,bp101wx1-100",
4473 .data = &boe_bp101wx1_100,
4475 .compatible = "boe,ev121wxm-n10-1850",
4476 .data = &boe_ev121wxm_n10_1850,
4478 .compatible = "boe,hv070wsa-100",
4479 .data = &boe_hv070wsa
4481 .compatible = "cct,cmt430b19n00",
4482 .data = &cct_cmt430b19n00,
4484 .compatible = "cdtech,s043wq26h-ct7",
4485 .data = &cdtech_s043wq26h_ct7,
4487 .compatible = "cdtech,s070pws19hp-fc21",
4488 .data = &cdtech_s070pws19hp_fc21,
4490 .compatible = "cdtech,s070swv29hg-dc44",
4491 .data = &cdtech_s070swv29hg_dc44,
4493 .compatible = "cdtech,s070wv95-ct16",
4494 .data = &cdtech_s070wv95_ct16,
4496 .compatible = "chefree,ch101olhlwh-002",
4497 .data = &chefree_ch101olhlwh_002,
4499 .compatible = "chunghwa,claa070wp03xg",
4500 .data = &chunghwa_claa070wp03xg,
4502 .compatible = "chunghwa,claa101wa01a",
4503 .data = &chunghwa_claa101wa01a
4505 .compatible = "chunghwa,claa101wb01",
4506 .data = &chunghwa_claa101wb01
4508 .compatible = "dataimage,fg040346dsswbg04",
4509 .data = &dataimage_fg040346dsswbg04,
4511 .compatible = "dataimage,fg1001l0dsswmg01",
4512 .data = &dataimage_fg1001l0dsswmg01,
4514 .compatible = "dataimage,scf0700c48ggu18",
4515 .data = &dataimage_scf0700c48ggu18,
4517 .compatible = "dlc,dlc0700yzg-1",
4518 .data = &dlc_dlc0700yzg_1,
4520 .compatible = "dlc,dlc1010gig",
4521 .data = &dlc_dlc1010gig,
4523 .compatible = "edt,et035012dm6",
4524 .data = &edt_et035012dm6,
4526 .compatible = "edt,etm0350g0dh6",
4527 .data = &edt_etm0350g0dh6,
4529 .compatible = "edt,etm043080dh6gp",
4530 .data = &edt_etm043080dh6gp,
4532 .compatible = "edt,etm0430g0dh6",
4533 .data = &edt_etm0430g0dh6,
4535 .compatible = "edt,et057090dhu",
4536 .data = &edt_et057090dhu,
4538 .compatible = "edt,et070080dh6",
4539 .data = &edt_etm0700g0dh6,
4541 .compatible = "edt,etm0700g0dh6",
4542 .data = &edt_etm0700g0dh6,
4544 .compatible = "edt,etm0700g0bdh6",
4545 .data = &edt_etm0700g0bdh6,
4547 .compatible = "edt,etm0700g0edh6",
4548 .data = &edt_etm0700g0bdh6,
4550 .compatible = "edt,etml0700y5dha",
4551 .data = &edt_etml0700y5dha,
4553 .compatible = "edt,etml1010g3dra",
4554 .data = &edt_etml1010g3dra,
4556 .compatible = "edt,etmv570g2dhu",
4557 .data = &edt_etmv570g2dhu,
4559 .compatible = "eink,vb3300-kca",
4560 .data = &eink_vb3300_kca,
4562 .compatible = "evervision,vgg644804",
4563 .data = &evervision_vgg644804,
4565 .compatible = "evervision,vgg804821",
4566 .data = &evervision_vgg804821,
4568 .compatible = "foxlink,fl500wvr00-a0t",
4569 .data = &foxlink_fl500wvr00_a0t,
4571 .compatible = "frida,frd350h54004",
4572 .data = &frida_frd350h54004,
4574 .compatible = "friendlyarm,hd702e",
4575 .data = &friendlyarm_hd702e,
4577 .compatible = "giantplus,gpg482739qs5",
4578 .data = &giantplus_gpg482739qs5
4580 .compatible = "giantplus,gpm940b0",
4581 .data = &giantplus_gpm940b0,
4583 .compatible = "hannstar,hsd070pww1",
4584 .data = &hannstar_hsd070pww1,
4586 .compatible = "hannstar,hsd100pxn1",
4587 .data = &hannstar_hsd100pxn1,
4589 .compatible = "hannstar,hsd101pww2",
4590 .data = &hannstar_hsd101pww2,
4592 .compatible = "hit,tx23d38vm0caa",
4593 .data = &hitachi_tx23d38vm0caa
4595 .compatible = "innolux,at043tn24",
4596 .data = &innolux_at043tn24,
4598 .compatible = "innolux,at070tn92",
4599 .data = &innolux_at070tn92,
4601 .compatible = "innolux,g070ace-l01",
4602 .data = &innolux_g070ace_l01,
4604 .compatible = "innolux,g070y2-l01",
4605 .data = &innolux_g070y2_l01,
4607 .compatible = "innolux,g070y2-t02",
4608 .data = &innolux_g070y2_t02,
4610 .compatible = "innolux,g101ice-l01",
4611 .data = &innolux_g101ice_l01
4613 .compatible = "innolux,g121i1-l01",
4614 .data = &innolux_g121i1_l01
4616 .compatible = "innolux,g121x1-l03",
4617 .data = &innolux_g121x1_l03,
4619 .compatible = "innolux,g121xce-l01",
4620 .data = &innolux_g121xce_l01,
4622 .compatible = "innolux,g156hce-l01",
4623 .data = &innolux_g156hce_l01,
4625 .compatible = "innolux,n156bge-l21",
4626 .data = &innolux_n156bge_l21,
4628 .compatible = "innolux,zj070na-01p",
4629 .data = &innolux_zj070na_01p,
4631 .compatible = "koe,tx14d24vm1bpa",
4632 .data = &koe_tx14d24vm1bpa,
4634 .compatible = "koe,tx26d202vm0bwa",
4635 .data = &koe_tx26d202vm0bwa,
4637 .compatible = "koe,tx31d200vm0baa",
4638 .data = &koe_tx31d200vm0baa,
4640 .compatible = "kyo,tcg121xglp",
4641 .data = &kyo_tcg121xglp,
4643 .compatible = "lemaker,bl035-rgb-002",
4644 .data = &lemaker_bl035_rgb_002,
4646 .compatible = "lg,lb070wv8",
4647 .data = &lg_lb070wv8,
4649 .compatible = "logicpd,type28",
4650 .data = &logicpd_type_28,
4652 .compatible = "logictechno,lt161010-2nhc",
4653 .data = &logictechno_lt161010_2nh,
4655 .compatible = "logictechno,lt161010-2nhr",
4656 .data = &logictechno_lt161010_2nh,
4658 .compatible = "logictechno,lt170410-2whc",
4659 .data = &logictechno_lt170410_2whc,
4661 .compatible = "logictechno,lttd800480070-l2rt",
4662 .data = &logictechno_lttd800480070_l2rt,
4664 .compatible = "logictechno,lttd800480070-l6wh-rt",
4665 .data = &logictechno_lttd800480070_l6wh_rt,
4667 .compatible = "mitsubishi,aa070mc01-ca1",
4668 .data = &mitsubishi_aa070mc01,
4670 .compatible = "mitsubishi,aa084xe01",
4671 .data = &mitsubishi_aa084xe01,
4673 .compatible = "multi-inno,mi0700s4t-6",
4674 .data = &multi_inno_mi0700s4t_6,
4676 .compatible = "multi-inno,mi0800ft-9",
4677 .data = &multi_inno_mi0800ft_9,
4679 .compatible = "multi-inno,mi1010ait-1cp",
4680 .data = &multi_inno_mi1010ait_1cp,
4682 .compatible = "nec,nl12880bc20-05",
4683 .data = &nec_nl12880bc20_05,
4685 .compatible = "nec,nl4827hc19-05b",
4686 .data = &nec_nl4827hc19_05b,
4688 .compatible = "netron-dy,e231732",
4689 .data = &netron_dy_e231732,
4691 .compatible = "newhaven,nhd-4.3-480272ef-atxl",
4692 .data = &newhaven_nhd_43_480272ef_atxl,
4694 .compatible = "nlt,nl192108ac18-02d",
4695 .data = &nlt_nl192108ac18_02d,
4697 .compatible = "nvd,9128",
4700 .compatible = "okaya,rs800480t-7x0gp",
4701 .data = &okaya_rs800480t_7x0gp,
4703 .compatible = "olimex,lcd-olinuxino-43-ts",
4704 .data = &olimex_lcd_olinuxino_43ts,
4706 .compatible = "ontat,yx700wv03",
4707 .data = &ontat_yx700wv03,
4709 .compatible = "ortustech,com37h3m05dtc",
4710 .data = &ortustech_com37h3m,
4712 .compatible = "ortustech,com37h3m99dtc",
4713 .data = &ortustech_com37h3m,
4715 .compatible = "ortustech,com43h4m85ulc",
4716 .data = &ortustech_com43h4m85ulc,
4718 .compatible = "osddisplays,osd070t1718-19ts",
4719 .data = &osddisplays_osd070t1718_19ts,
4721 .compatible = "pda,91-00156-a0",
4722 .data = &pda_91_00156_a0,
4724 .compatible = "powertip,ph128800t006-zhc01",
4725 .data = &powertip_ph128800t006_zhc01,
4727 .compatible = "powertip,ph800480t013-idf02",
4728 .data = &powertip_ph800480t013_idf02,
4730 .compatible = "qiaodian,qd43003c0-40",
4731 .data = &qd43003c0_40,
4733 .compatible = "qishenglong,gopher2b-lcd",
4734 .data = &qishenglong_gopher2b_lcd,
4736 .compatible = "rocktech,rk043fn48h",
4737 .data = &rocktech_rk043fn48h,
4739 .compatible = "rocktech,rk070er9427",
4740 .data = &rocktech_rk070er9427,
4742 .compatible = "rocktech,rk101ii01d-ct",
4743 .data = &rocktech_rk101ii01d_ct,
4745 .compatible = "samsung,ltl101al01",
4746 .data = &samsung_ltl101al01,
4748 .compatible = "samsung,ltn101nt05",
4749 .data = &samsung_ltn101nt05,
4751 .compatible = "satoz,sat050at40h12r2",
4752 .data = &satoz_sat050at40h12r2,
4754 .compatible = "sharp,lq035q7db03",
4755 .data = &sharp_lq035q7db03,
4757 .compatible = "sharp,lq070y3dg3b",
4758 .data = &sharp_lq070y3dg3b,
4760 .compatible = "sharp,lq101k1ly04",
4761 .data = &sharp_lq101k1ly04,
4763 .compatible = "sharp,ls020b1dd01d",
4764 .data = &sharp_ls020b1dd01d,
4766 .compatible = "shelly,sca07010-bfn-lnn",
4767 .data = &shelly_sca07010_bfn_lnn,
4769 .compatible = "starry,kr070pe2t",
4770 .data = &starry_kr070pe2t,
4772 .compatible = "startek,kd070wvfpa",
4773 .data = &startek_kd070wvfpa,
4775 .compatible = "team-source-display,tst043015cmhx",
4776 .data = &tsd_tst043015cmhx,
4778 .compatible = "tfc,s9700rtwv43tr-01b",
4779 .data = &tfc_s9700rtwv43tr_01b,
4781 .compatible = "tianma,tm070jdhg30",
4782 .data = &tianma_tm070jdhg30,
4784 .compatible = "tianma,tm070jvhg33",
4785 .data = &tianma_tm070jvhg33,
4787 .compatible = "tianma,tm070rvhg71",
4788 .data = &tianma_tm070rvhg71,
4790 .compatible = "ti,nspire-cx-lcd-panel",
4791 .data = &ti_nspire_cx_lcd_panel,
4793 .compatible = "ti,nspire-classic-lcd-panel",
4794 .data = &ti_nspire_classic_lcd_panel,
4796 .compatible = "toshiba,lt089ac29000",
4797 .data = &toshiba_lt089ac29000,
4799 .compatible = "tpk,f07a-0102",
4800 .data = &tpk_f07a_0102,
4802 .compatible = "tpk,f10a-0102",
4803 .data = &tpk_f10a_0102,
4805 .compatible = "urt,umsh-8596md-t",
4806 .data = &urt_umsh_8596md_parallel,
4808 .compatible = "urt,umsh-8596md-1t",
4809 .data = &urt_umsh_8596md_parallel,
4811 .compatible = "urt,umsh-8596md-7t",
4812 .data = &urt_umsh_8596md_parallel,
4814 .compatible = "urt,umsh-8596md-11t",
4815 .data = &urt_umsh_8596md_lvds,
4817 .compatible = "urt,umsh-8596md-19t",
4818 .data = &urt_umsh_8596md_lvds,
4820 .compatible = "urt,umsh-8596md-20t",
4821 .data = &urt_umsh_8596md_parallel,
4823 .compatible = "vivax,tpc9150-panel",
4824 .data = &vivax_tpc9150_panel,
4826 .compatible = "vxt,vl050-8048nt-c01",
4827 .data = &vl050_8048nt_c01,
4829 .compatible = "winstar,wf35ltiacd",
4830 .data = &winstar_wf35ltiacd,
4832 .compatible = "yes-optoelectronics,ytc700tlag-05-201c",
4833 .data = &yes_optoelectronics_ytc700tlag_05_201c,
4835 /* Must be the last entry */
4836 .compatible = "panel-dpi",
4842 MODULE_DEVICE_TABLE(of, platform_of_match);
4844 static int panel_simple_platform_probe(struct platform_device *pdev)
4846 const struct panel_desc *desc;
4848 desc = of_device_get_match_data(&pdev->dev);
4852 return panel_simple_probe(&pdev->dev, desc);
4855 static void panel_simple_platform_remove(struct platform_device *pdev)
4857 panel_simple_remove(&pdev->dev);
4860 static void panel_simple_platform_shutdown(struct platform_device *pdev)
4862 panel_simple_shutdown(&pdev->dev);
4865 static const struct dev_pm_ops panel_simple_pm_ops = {
4866 SET_RUNTIME_PM_OPS(panel_simple_suspend, panel_simple_resume, NULL)
4867 SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
4868 pm_runtime_force_resume)
4871 static struct platform_driver panel_simple_platform_driver = {
4873 .name = "panel-simple",
4874 .of_match_table = platform_of_match,
4875 .pm = &panel_simple_pm_ops,
4877 .probe = panel_simple_platform_probe,
4878 .remove_new = panel_simple_platform_remove,
4879 .shutdown = panel_simple_platform_shutdown,
4882 struct panel_desc_dsi {
4883 struct panel_desc desc;
4885 unsigned long flags;
4886 enum mipi_dsi_pixel_format format;
4890 static const struct drm_display_mode auo_b080uan01_mode = {
4893 .hsync_start = 1200 + 62,
4894 .hsync_end = 1200 + 62 + 4,
4895 .htotal = 1200 + 62 + 4 + 62,
4897 .vsync_start = 1920 + 9,
4898 .vsync_end = 1920 + 9 + 2,
4899 .vtotal = 1920 + 9 + 2 + 8,
4902 static const struct panel_desc_dsi auo_b080uan01 = {
4904 .modes = &auo_b080uan01_mode,
4911 .connector_type = DRM_MODE_CONNECTOR_DSI,
4913 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4914 .format = MIPI_DSI_FMT_RGB888,
4918 static const struct drm_display_mode boe_tv080wum_nl0_mode = {
4921 .hsync_start = 1200 + 120,
4922 .hsync_end = 1200 + 120 + 20,
4923 .htotal = 1200 + 120 + 20 + 21,
4925 .vsync_start = 1920 + 21,
4926 .vsync_end = 1920 + 21 + 3,
4927 .vtotal = 1920 + 21 + 3 + 18,
4928 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4931 static const struct panel_desc_dsi boe_tv080wum_nl0 = {
4933 .modes = &boe_tv080wum_nl0_mode,
4939 .connector_type = DRM_MODE_CONNECTOR_DSI,
4941 .flags = MIPI_DSI_MODE_VIDEO |
4942 MIPI_DSI_MODE_VIDEO_BURST |
4943 MIPI_DSI_MODE_VIDEO_SYNC_PULSE,
4944 .format = MIPI_DSI_FMT_RGB888,
4948 static const struct drm_display_mode lg_ld070wx3_sl01_mode = {
4951 .hsync_start = 800 + 32,
4952 .hsync_end = 800 + 32 + 1,
4953 .htotal = 800 + 32 + 1 + 57,
4955 .vsync_start = 1280 + 28,
4956 .vsync_end = 1280 + 28 + 1,
4957 .vtotal = 1280 + 28 + 1 + 14,
4960 static const struct panel_desc_dsi lg_ld070wx3_sl01 = {
4962 .modes = &lg_ld070wx3_sl01_mode,
4969 .connector_type = DRM_MODE_CONNECTOR_DSI,
4971 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4972 .format = MIPI_DSI_FMT_RGB888,
4976 static const struct drm_display_mode lg_lh500wx1_sd03_mode = {
4979 .hsync_start = 720 + 12,
4980 .hsync_end = 720 + 12 + 4,
4981 .htotal = 720 + 12 + 4 + 112,
4983 .vsync_start = 1280 + 8,
4984 .vsync_end = 1280 + 8 + 4,
4985 .vtotal = 1280 + 8 + 4 + 12,
4988 static const struct panel_desc_dsi lg_lh500wx1_sd03 = {
4990 .modes = &lg_lh500wx1_sd03_mode,
4997 .connector_type = DRM_MODE_CONNECTOR_DSI,
4999 .flags = MIPI_DSI_MODE_VIDEO,
5000 .format = MIPI_DSI_FMT_RGB888,
5004 static const struct drm_display_mode panasonic_vvx10f004b00_mode = {
5007 .hsync_start = 1920 + 154,
5008 .hsync_end = 1920 + 154 + 16,
5009 .htotal = 1920 + 154 + 16 + 32,
5011 .vsync_start = 1200 + 17,
5012 .vsync_end = 1200 + 17 + 2,
5013 .vtotal = 1200 + 17 + 2 + 16,
5016 static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
5018 .modes = &panasonic_vvx10f004b00_mode,
5025 .connector_type = DRM_MODE_CONNECTOR_DSI,
5027 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
5028 MIPI_DSI_CLOCK_NON_CONTINUOUS,
5029 .format = MIPI_DSI_FMT_RGB888,
5033 static const struct drm_display_mode lg_acx467akm_7_mode = {
5036 .hsync_start = 1080 + 2,
5037 .hsync_end = 1080 + 2 + 2,
5038 .htotal = 1080 + 2 + 2 + 2,
5040 .vsync_start = 1920 + 2,
5041 .vsync_end = 1920 + 2 + 2,
5042 .vtotal = 1920 + 2 + 2 + 2,
5045 static const struct panel_desc_dsi lg_acx467akm_7 = {
5047 .modes = &lg_acx467akm_7_mode,
5054 .connector_type = DRM_MODE_CONNECTOR_DSI,
5057 .format = MIPI_DSI_FMT_RGB888,
5061 static const struct drm_display_mode osd101t2045_53ts_mode = {
5064 .hsync_start = 1920 + 112,
5065 .hsync_end = 1920 + 112 + 16,
5066 .htotal = 1920 + 112 + 16 + 32,
5068 .vsync_start = 1200 + 16,
5069 .vsync_end = 1200 + 16 + 2,
5070 .vtotal = 1200 + 16 + 2 + 16,
5071 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
5074 static const struct panel_desc_dsi osd101t2045_53ts = {
5076 .modes = &osd101t2045_53ts_mode,
5083 .connector_type = DRM_MODE_CONNECTOR_DSI,
5085 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
5086 MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
5087 MIPI_DSI_MODE_NO_EOT_PACKET,
5088 .format = MIPI_DSI_FMT_RGB888,
5092 static const struct of_device_id dsi_of_match[] = {
5094 .compatible = "auo,b080uan01",
5095 .data = &auo_b080uan01
5097 .compatible = "boe,tv080wum-nl0",
5098 .data = &boe_tv080wum_nl0
5100 .compatible = "lg,ld070wx3-sl01",
5101 .data = &lg_ld070wx3_sl01
5103 .compatible = "lg,lh500wx1-sd03",
5104 .data = &lg_lh500wx1_sd03
5106 .compatible = "panasonic,vvx10f004b00",
5107 .data = &panasonic_vvx10f004b00
5109 .compatible = "lg,acx467akm-7",
5110 .data = &lg_acx467akm_7
5112 .compatible = "osddisplays,osd101t2045-53ts",
5113 .data = &osd101t2045_53ts
5118 MODULE_DEVICE_TABLE(of, dsi_of_match);
5120 static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
5122 const struct panel_desc_dsi *desc;
5125 desc = of_device_get_match_data(&dsi->dev);
5129 err = panel_simple_probe(&dsi->dev, &desc->desc);
5133 dsi->mode_flags = desc->flags;
5134 dsi->format = desc->format;
5135 dsi->lanes = desc->lanes;
5137 err = mipi_dsi_attach(dsi);
5139 struct panel_simple *panel = mipi_dsi_get_drvdata(dsi);
5141 drm_panel_remove(&panel->base);
5147 static void panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
5151 err = mipi_dsi_detach(dsi);
5153 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err);
5155 panel_simple_remove(&dsi->dev);
5158 static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi)
5160 panel_simple_shutdown(&dsi->dev);
5163 static struct mipi_dsi_driver panel_simple_dsi_driver = {
5165 .name = "panel-simple-dsi",
5166 .of_match_table = dsi_of_match,
5167 .pm = &panel_simple_pm_ops,
5169 .probe = panel_simple_dsi_probe,
5170 .remove = panel_simple_dsi_remove,
5171 .shutdown = panel_simple_dsi_shutdown,
5174 static int __init panel_simple_init(void)
5178 err = platform_driver_register(&panel_simple_platform_driver);
5182 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
5183 err = mipi_dsi_driver_register(&panel_simple_dsi_driver);
5185 goto err_did_platform_register;
5190 err_did_platform_register:
5191 platform_driver_unregister(&panel_simple_platform_driver);
5195 module_init(panel_simple_init);
5197 static void __exit panel_simple_exit(void)
5199 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI))
5200 mipi_dsi_driver_unregister(&panel_simple_dsi_driver);
5202 platform_driver_unregister(&panel_simple_platform_driver);
5204 module_exit(panel_simple_exit);
5207 MODULE_DESCRIPTION("DRM Driver for Simple Panels");
5208 MODULE_LICENSE("GPL and additional rights");