2 * Copyright (C) 2013, NVIDIA Corporation. All rights reserved.
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sub license,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice (including the
12 * next paragraph) shall be included in all copies or substantial portions
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
24 #include <linux/delay.h>
25 #include <linux/gpio/consumer.h>
26 #include <linux/i2c.h>
27 #include <linux/media-bus-format.h>
28 #include <linux/module.h>
29 #include <linux/of_platform.h>
30 #include <linux/platform_device.h>
31 #include <linux/pm_runtime.h>
32 #include <linux/regulator/consumer.h>
34 #include <video/display_timing.h>
35 #include <video/of_display_timing.h>
36 #include <video/videomode.h>
38 #include <drm/drm_crtc.h>
39 #include <drm/drm_device.h>
40 #include <drm/drm_edid.h>
41 #include <drm/drm_mipi_dsi.h>
42 #include <drm/drm_panel.h>
43 #include <drm/drm_of.h>
46 * struct panel_desc - Describes a simple panel.
50 * @modes: Pointer to array of fixed modes appropriate for this panel.
52 * If only one mode then this can just be the address of the mode.
53 * NOTE: cannot be used with "timings" and also if this is specified
54 * then you cannot override the mode in the device tree.
56 const struct drm_display_mode *modes;
58 /** @num_modes: Number of elements in modes array. */
59 unsigned int num_modes;
62 * @timings: Pointer to array of display timings
64 * NOTE: cannot be used with "modes" and also these will be used to
65 * validate a device tree override if one is present.
67 const struct display_timing *timings;
69 /** @num_timings: Number of elements in timings array. */
70 unsigned int num_timings;
72 /** @bpc: Bits per color. */
75 /** @size: Structure containing the physical size of this panel. */
78 * @size.width: Width (in mm) of the active display area.
83 * @size.height: Height (in mm) of the active display area.
88 /** @delay: Structure containing various delay values for this panel. */
91 * @delay.prepare: Time for the panel to become ready.
93 * The time (in milliseconds) that it takes for the panel to
94 * become ready and start receiving video data
99 * @delay.enable: Time for the panel to display a valid frame.
101 * The time (in milliseconds) that it takes for the panel to
102 * display the first valid frame after starting to receive
108 * @delay.disable: Time for the panel to turn the display off.
110 * The time (in milliseconds) that it takes for the panel to
111 * turn the display off (no content is visible).
113 unsigned int disable;
116 * @delay.unprepare: Time to power down completely.
118 * The time (in milliseconds) that it takes for the panel
119 * to power itself down completely.
121 * This time is used to prevent a future "prepare" from
122 * starting until at least this many milliseconds has passed.
123 * If at prepare time less time has passed since unprepare
124 * finished, the driver waits for the remaining time.
126 unsigned int unprepare;
129 /** @bus_format: See MEDIA_BUS_FMT_... defines. */
132 /** @bus_flags: See DRM_BUS_FLAG_... defines. */
135 /** @connector_type: LVDS, eDP, DSI, DPI, etc. */
139 struct panel_simple {
140 struct drm_panel base;
145 ktime_t unprepared_time;
147 const struct panel_desc *desc;
149 struct regulator *supply;
150 struct i2c_adapter *ddc;
152 struct gpio_desc *enable_gpio;
156 struct drm_display_mode override_mode;
158 enum drm_panel_orientation orientation;
161 static inline struct panel_simple *to_panel_simple(struct drm_panel *panel)
163 return container_of(panel, struct panel_simple, base);
166 static unsigned int panel_simple_get_timings_modes(struct panel_simple *panel,
167 struct drm_connector *connector)
169 struct drm_display_mode *mode;
170 unsigned int i, num = 0;
172 for (i = 0; i < panel->desc->num_timings; i++) {
173 const struct display_timing *dt = &panel->desc->timings[i];
176 videomode_from_timing(dt, &vm);
177 mode = drm_mode_create(connector->dev);
179 dev_err(panel->base.dev, "failed to add mode %ux%u\n",
180 dt->hactive.typ, dt->vactive.typ);
184 drm_display_mode_from_videomode(&vm, mode);
186 mode->type |= DRM_MODE_TYPE_DRIVER;
188 if (panel->desc->num_timings == 1)
189 mode->type |= DRM_MODE_TYPE_PREFERRED;
191 drm_mode_probed_add(connector, mode);
198 static unsigned int panel_simple_get_display_modes(struct panel_simple *panel,
199 struct drm_connector *connector)
201 struct drm_display_mode *mode;
202 unsigned int i, num = 0;
204 for (i = 0; i < panel->desc->num_modes; i++) {
205 const struct drm_display_mode *m = &panel->desc->modes[i];
207 mode = drm_mode_duplicate(connector->dev, m);
209 dev_err(panel->base.dev, "failed to add mode %ux%u@%u\n",
210 m->hdisplay, m->vdisplay,
211 drm_mode_vrefresh(m));
215 mode->type |= DRM_MODE_TYPE_DRIVER;
217 if (panel->desc->num_modes == 1)
218 mode->type |= DRM_MODE_TYPE_PREFERRED;
220 drm_mode_set_name(mode);
222 drm_mode_probed_add(connector, mode);
229 static int panel_simple_get_non_edid_modes(struct panel_simple *panel,
230 struct drm_connector *connector)
232 struct drm_display_mode *mode;
233 bool has_override = panel->override_mode.type;
234 unsigned int num = 0;
240 mode = drm_mode_duplicate(connector->dev,
241 &panel->override_mode);
243 drm_mode_probed_add(connector, mode);
246 dev_err(panel->base.dev, "failed to add override mode\n");
250 /* Only add timings if override was not there or failed to validate */
251 if (num == 0 && panel->desc->num_timings)
252 num = panel_simple_get_timings_modes(panel, connector);
255 * Only add fixed modes if timings/override added no mode.
257 * We should only ever have either the display timings specified
258 * or a fixed mode. Anything else is rather bogus.
260 WARN_ON(panel->desc->num_timings && panel->desc->num_modes);
262 num = panel_simple_get_display_modes(panel, connector);
264 connector->display_info.bpc = panel->desc->bpc;
265 connector->display_info.width_mm = panel->desc->size.width;
266 connector->display_info.height_mm = panel->desc->size.height;
267 if (panel->desc->bus_format)
268 drm_display_info_set_bus_formats(&connector->display_info,
269 &panel->desc->bus_format, 1);
270 connector->display_info.bus_flags = panel->desc->bus_flags;
275 static void panel_simple_wait(ktime_t start_ktime, unsigned int min_ms)
277 ktime_t now_ktime, min_ktime;
282 min_ktime = ktime_add(start_ktime, ms_to_ktime(min_ms));
283 now_ktime = ktime_get_boottime();
285 if (ktime_before(now_ktime, min_ktime))
286 msleep(ktime_to_ms(ktime_sub(min_ktime, now_ktime)) + 1);
289 static int panel_simple_disable(struct drm_panel *panel)
291 struct panel_simple *p = to_panel_simple(panel);
296 if (p->desc->delay.disable)
297 msleep(p->desc->delay.disable);
304 static int panel_simple_suspend(struct device *dev)
306 struct panel_simple *p = dev_get_drvdata(dev);
308 gpiod_set_value_cansleep(p->enable_gpio, 0);
309 regulator_disable(p->supply);
310 p->unprepared_time = ktime_get_boottime();
318 static int panel_simple_unprepare(struct drm_panel *panel)
320 struct panel_simple *p = to_panel_simple(panel);
323 /* Unpreparing when already unprepared is a no-op */
327 pm_runtime_mark_last_busy(panel->dev);
328 ret = pm_runtime_put_autosuspend(panel->dev);
336 static int panel_simple_resume(struct device *dev)
338 struct panel_simple *p = dev_get_drvdata(dev);
341 panel_simple_wait(p->unprepared_time, p->desc->delay.unprepare);
343 err = regulator_enable(p->supply);
345 dev_err(dev, "failed to enable supply: %d\n", err);
349 gpiod_set_value_cansleep(p->enable_gpio, 1);
351 if (p->desc->delay.prepare)
352 msleep(p->desc->delay.prepare);
357 static int panel_simple_prepare(struct drm_panel *panel)
359 struct panel_simple *p = to_panel_simple(panel);
362 /* Preparing when already prepared is a no-op */
366 ret = pm_runtime_get_sync(panel->dev);
368 pm_runtime_put_autosuspend(panel->dev);
377 static int panel_simple_enable(struct drm_panel *panel)
379 struct panel_simple *p = to_panel_simple(panel);
384 if (p->desc->delay.enable)
385 msleep(p->desc->delay.enable);
392 static int panel_simple_get_modes(struct drm_panel *panel,
393 struct drm_connector *connector)
395 struct panel_simple *p = to_panel_simple(panel);
398 /* probe EDID if a DDC bus is available */
400 pm_runtime_get_sync(panel->dev);
403 p->edid = drm_get_edid(connector, p->ddc);
406 num += drm_add_edid_modes(connector, p->edid);
408 pm_runtime_mark_last_busy(panel->dev);
409 pm_runtime_put_autosuspend(panel->dev);
412 /* add hard-coded panel modes */
413 num += panel_simple_get_non_edid_modes(p, connector);
416 * TODO: Remove once all drm drivers call
417 * drm_connector_set_orientation_from_panel()
419 drm_connector_set_panel_orientation(connector, p->orientation);
424 static int panel_simple_get_timings(struct drm_panel *panel,
425 unsigned int num_timings,
426 struct display_timing *timings)
428 struct panel_simple *p = to_panel_simple(panel);
431 if (p->desc->num_timings < num_timings)
432 num_timings = p->desc->num_timings;
435 for (i = 0; i < num_timings; i++)
436 timings[i] = p->desc->timings[i];
438 return p->desc->num_timings;
441 static enum drm_panel_orientation panel_simple_get_orientation(struct drm_panel *panel)
443 struct panel_simple *p = to_panel_simple(panel);
445 return p->orientation;
448 static const struct drm_panel_funcs panel_simple_funcs = {
449 .disable = panel_simple_disable,
450 .unprepare = panel_simple_unprepare,
451 .prepare = panel_simple_prepare,
452 .enable = panel_simple_enable,
453 .get_modes = panel_simple_get_modes,
454 .get_orientation = panel_simple_get_orientation,
455 .get_timings = panel_simple_get_timings,
458 static struct panel_desc panel_dpi;
460 static int panel_dpi_probe(struct device *dev,
461 struct panel_simple *panel)
463 struct display_timing *timing;
464 const struct device_node *np;
465 struct panel_desc *desc;
466 unsigned int bus_flags;
471 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL);
475 timing = devm_kzalloc(dev, sizeof(*timing), GFP_KERNEL);
479 ret = of_get_display_timing(np, "panel-timing", timing);
481 dev_err(dev, "%pOF: no panel-timing node found for \"panel-dpi\" binding\n",
486 desc->timings = timing;
487 desc->num_timings = 1;
489 of_property_read_u32(np, "width-mm", &desc->size.width);
490 of_property_read_u32(np, "height-mm", &desc->size.height);
492 /* Extract bus_flags from display_timing */
494 vm.flags = timing->flags;
495 drm_bus_flags_from_videomode(&vm, &bus_flags);
496 desc->bus_flags = bus_flags;
498 /* We do not know the connector for the DT node, so guess it */
499 desc->connector_type = DRM_MODE_CONNECTOR_DPI;
506 #define PANEL_SIMPLE_BOUNDS_CHECK(to_check, bounds, field) \
507 (to_check->field.typ >= bounds->field.min && \
508 to_check->field.typ <= bounds->field.max)
509 static void panel_simple_parse_panel_timing_node(struct device *dev,
510 struct panel_simple *panel,
511 const struct display_timing *ot)
513 const struct panel_desc *desc = panel->desc;
517 if (WARN_ON(desc->num_modes)) {
518 dev_err(dev, "Reject override mode: panel has a fixed mode\n");
521 if (WARN_ON(!desc->num_timings)) {
522 dev_err(dev, "Reject override mode: no timings specified\n");
526 for (i = 0; i < panel->desc->num_timings; i++) {
527 const struct display_timing *dt = &panel->desc->timings[i];
529 if (!PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hactive) ||
530 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hfront_porch) ||
531 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hback_porch) ||
532 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hsync_len) ||
533 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vactive) ||
534 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vfront_porch) ||
535 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vback_porch) ||
536 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vsync_len))
539 if (ot->flags != dt->flags)
542 videomode_from_timing(ot, &vm);
543 drm_display_mode_from_videomode(&vm, &panel->override_mode);
544 panel->override_mode.type |= DRM_MODE_TYPE_DRIVER |
545 DRM_MODE_TYPE_PREFERRED;
549 if (WARN_ON(!panel->override_mode.type))
550 dev_err(dev, "Reject override mode: No display_timing found\n");
553 static int panel_simple_override_nondefault_lvds_datamapping(struct device *dev,
554 struct panel_simple *panel)
558 ret = drm_of_lvds_get_data_mapping(dev->of_node);
561 dev_warn(dev, "Ignore invalid data-mapping property\n");
564 * Ignore non-existing or malformatted property, fallback to
565 * default data-mapping, and return 0.
574 case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
576 case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
579 case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG:
583 if (panel->desc->bpc != bpc || panel->desc->bus_format != ret) {
584 struct panel_desc *override_desc;
586 override_desc = devm_kmemdup(dev, panel->desc, sizeof(*panel->desc), GFP_KERNEL);
590 override_desc->bus_format = ret;
591 override_desc->bpc = bpc;
592 panel->desc = override_desc;
598 static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
600 struct panel_simple *panel;
601 struct display_timing dt;
602 struct device_node *ddc;
607 panel = devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL);
611 panel->enabled = false;
614 panel->supply = devm_regulator_get(dev, "power");
615 if (IS_ERR(panel->supply))
616 return PTR_ERR(panel->supply);
618 panel->enable_gpio = devm_gpiod_get_optional(dev, "enable",
620 if (IS_ERR(panel->enable_gpio))
621 return dev_err_probe(dev, PTR_ERR(panel->enable_gpio),
622 "failed to request GPIO\n");
624 err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
626 dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
630 ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
632 panel->ddc = of_find_i2c_adapter_by_node(ddc);
636 return -EPROBE_DEFER;
639 if (desc == &panel_dpi) {
640 /* Handle the generic panel-dpi binding */
641 err = panel_dpi_probe(dev, panel);
646 if (!of_get_display_timing(dev->of_node, "panel-timing", &dt))
647 panel_simple_parse_panel_timing_node(dev, panel, &dt);
650 if (desc->connector_type == DRM_MODE_CONNECTOR_LVDS) {
651 /* Optional data-mapping property for overriding bus format */
652 err = panel_simple_override_nondefault_lvds_datamapping(dev, panel);
657 connector_type = desc->connector_type;
658 /* Catch common mistakes for panels. */
659 switch (connector_type) {
661 dev_warn(dev, "Specify missing connector_type\n");
662 connector_type = DRM_MODE_CONNECTOR_DPI;
664 case DRM_MODE_CONNECTOR_LVDS:
665 WARN_ON(desc->bus_flags &
666 ~(DRM_BUS_FLAG_DE_LOW |
667 DRM_BUS_FLAG_DE_HIGH |
668 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
669 DRM_BUS_FLAG_DATA_LSB_TO_MSB));
670 WARN_ON(desc->bus_format != MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
671 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_SPWG &&
672 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA);
673 WARN_ON(desc->bus_format == MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
675 WARN_ON((desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG ||
676 desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA) &&
679 case DRM_MODE_CONNECTOR_eDP:
680 dev_warn(dev, "eDP panels moved to panel-edp\n");
683 case DRM_MODE_CONNECTOR_DSI:
684 if (desc->bpc != 6 && desc->bpc != 8)
685 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
687 case DRM_MODE_CONNECTOR_DPI:
688 bus_flags = DRM_BUS_FLAG_DE_LOW |
689 DRM_BUS_FLAG_DE_HIGH |
690 DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE |
691 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
692 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
693 DRM_BUS_FLAG_DATA_LSB_TO_MSB |
694 DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE |
695 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE;
696 if (desc->bus_flags & ~bus_flags)
697 dev_warn(dev, "Unexpected bus_flags(%d)\n", desc->bus_flags & ~bus_flags);
698 if (!(desc->bus_flags & bus_flags))
699 dev_warn(dev, "Specify missing bus_flags\n");
700 if (desc->bus_format == 0)
701 dev_warn(dev, "Specify missing bus_format\n");
702 if (desc->bpc != 6 && desc->bpc != 8)
703 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
706 dev_warn(dev, "Specify a valid connector_type: %d\n", desc->connector_type);
707 connector_type = DRM_MODE_CONNECTOR_DPI;
711 dev_set_drvdata(dev, panel);
714 * We use runtime PM for prepare / unprepare since those power the panel
715 * on and off and those can be very slow operations. This is important
716 * to optimize powering the panel on briefly to read the EDID before
717 * fully enabling the panel.
719 pm_runtime_enable(dev);
720 pm_runtime_set_autosuspend_delay(dev, 1000);
721 pm_runtime_use_autosuspend(dev);
723 drm_panel_init(&panel->base, dev, &panel_simple_funcs, connector_type);
725 err = drm_panel_of_backlight(&panel->base);
727 dev_err_probe(dev, err, "Could not find backlight\n");
728 goto disable_pm_runtime;
731 drm_panel_add(&panel->base);
736 pm_runtime_dont_use_autosuspend(dev);
737 pm_runtime_disable(dev);
740 put_device(&panel->ddc->dev);
745 static void panel_simple_remove(struct device *dev)
747 struct panel_simple *panel = dev_get_drvdata(dev);
749 drm_panel_remove(&panel->base);
750 drm_panel_disable(&panel->base);
751 drm_panel_unprepare(&panel->base);
753 pm_runtime_dont_use_autosuspend(dev);
754 pm_runtime_disable(dev);
756 put_device(&panel->ddc->dev);
759 static void panel_simple_shutdown(struct device *dev)
761 struct panel_simple *panel = dev_get_drvdata(dev);
763 drm_panel_disable(&panel->base);
764 drm_panel_unprepare(&panel->base);
767 static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode = {
770 .hsync_start = 1280 + 40,
771 .hsync_end = 1280 + 40 + 80,
772 .htotal = 1280 + 40 + 80 + 40,
774 .vsync_start = 800 + 3,
775 .vsync_end = 800 + 3 + 10,
776 .vtotal = 800 + 3 + 10 + 10,
777 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
780 static const struct panel_desc ampire_am_1280800n3tzqw_t00h = {
781 .modes = &ire_am_1280800n3tzqw_t00h_mode,
788 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
789 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
790 .connector_type = DRM_MODE_CONNECTOR_LVDS,
793 static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = {
796 .hsync_start = 480 + 2,
797 .hsync_end = 480 + 2 + 41,
798 .htotal = 480 + 2 + 41 + 2,
800 .vsync_start = 272 + 2,
801 .vsync_end = 272 + 2 + 10,
802 .vtotal = 272 + 2 + 10 + 2,
803 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
806 static const struct panel_desc ampire_am_480272h3tmqw_t01h = {
807 .modes = &ire_am_480272h3tmqw_t01h_mode,
814 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
817 static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = {
820 .hsync_start = 800 + 0,
821 .hsync_end = 800 + 0 + 255,
822 .htotal = 800 + 0 + 255 + 0,
824 .vsync_start = 480 + 2,
825 .vsync_end = 480 + 2 + 45,
826 .vtotal = 480 + 2 + 45 + 0,
827 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
830 static const struct display_timing ampire_am_800480l1tmqw_t00h_timing = {
831 .pixelclock = { 29930000, 33260000, 36590000 },
832 .hactive = { 800, 800, 800 },
833 .hfront_porch = { 1, 40, 168 },
834 .hback_porch = { 88, 88, 88 },
835 .hsync_len = { 1, 128, 128 },
836 .vactive = { 480, 480, 480 },
837 .vfront_porch = { 1, 35, 37 },
838 .vback_porch = { 8, 8, 8 },
839 .vsync_len = { 1, 2, 2 },
840 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
841 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
842 DISPLAY_FLAGS_SYNC_POSEDGE,
845 static const struct panel_desc ampire_am_800480l1tmqw_t00h = {
846 .timings = &ire_am_800480l1tmqw_t00h_timing,
853 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
854 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
855 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
856 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
857 .connector_type = DRM_MODE_CONNECTOR_DPI,
860 static const struct panel_desc ampire_am800480r3tmqwa1h = {
861 .modes = &ire_am800480r3tmqwa1h_mode,
868 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
871 static const struct display_timing ampire_am800600p5tmqw_tb8h_timing = {
872 .pixelclock = { 34500000, 39600000, 50400000 },
873 .hactive = { 800, 800, 800 },
874 .hfront_porch = { 12, 112, 312 },
875 .hback_porch = { 87, 87, 48 },
876 .hsync_len = { 1, 1, 40 },
877 .vactive = { 600, 600, 600 },
878 .vfront_porch = { 1, 21, 61 },
879 .vback_porch = { 38, 38, 19 },
880 .vsync_len = { 1, 1, 20 },
881 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
882 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
883 DISPLAY_FLAGS_SYNC_POSEDGE,
886 static const struct panel_desc ampire_am800600p5tmqwtb8h = {
887 .timings = &ire_am800600p5tmqw_tb8h_timing,
894 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
895 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
896 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
897 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
898 .connector_type = DRM_MODE_CONNECTOR_DPI,
901 static const struct display_timing santek_st0700i5y_rbslw_f_timing = {
902 .pixelclock = { 26400000, 33300000, 46800000 },
903 .hactive = { 800, 800, 800 },
904 .hfront_porch = { 16, 210, 354 },
905 .hback_porch = { 45, 36, 6 },
906 .hsync_len = { 1, 10, 40 },
907 .vactive = { 480, 480, 480 },
908 .vfront_porch = { 7, 22, 147 },
909 .vback_porch = { 22, 13, 3 },
910 .vsync_len = { 1, 10, 20 },
911 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
912 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE
915 static const struct panel_desc armadeus_st0700_adapt = {
916 .timings = &santek_st0700i5y_rbslw_f_timing,
923 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
924 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
927 static const struct drm_display_mode auo_b101aw03_mode = {
930 .hsync_start = 1024 + 156,
931 .hsync_end = 1024 + 156 + 8,
932 .htotal = 1024 + 156 + 8 + 156,
934 .vsync_start = 600 + 16,
935 .vsync_end = 600 + 16 + 6,
936 .vtotal = 600 + 16 + 6 + 16,
939 static const struct panel_desc auo_b101aw03 = {
940 .modes = &auo_b101aw03_mode,
947 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
948 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
949 .connector_type = DRM_MODE_CONNECTOR_LVDS,
952 static const struct drm_display_mode auo_b101xtn01_mode = {
955 .hsync_start = 1366 + 20,
956 .hsync_end = 1366 + 20 + 70,
957 .htotal = 1366 + 20 + 70,
959 .vsync_start = 768 + 14,
960 .vsync_end = 768 + 14 + 42,
961 .vtotal = 768 + 14 + 42,
962 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
965 static const struct panel_desc auo_b101xtn01 = {
966 .modes = &auo_b101xtn01_mode,
975 static const struct drm_display_mode auo_b116xw03_mode = {
978 .hsync_start = 1366 + 40,
979 .hsync_end = 1366 + 40 + 40,
980 .htotal = 1366 + 40 + 40 + 32,
982 .vsync_start = 768 + 10,
983 .vsync_end = 768 + 10 + 12,
984 .vtotal = 768 + 10 + 12 + 6,
985 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
988 static const struct panel_desc auo_b116xw03 = {
989 .modes = &auo_b116xw03_mode,
1002 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1003 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1004 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1007 static const struct display_timing auo_g070vvn01_timings = {
1008 .pixelclock = { 33300000, 34209000, 45000000 },
1009 .hactive = { 800, 800, 800 },
1010 .hfront_porch = { 20, 40, 200 },
1011 .hback_porch = { 87, 40, 1 },
1012 .hsync_len = { 1, 48, 87 },
1013 .vactive = { 480, 480, 480 },
1014 .vfront_porch = { 5, 13, 200 },
1015 .vback_porch = { 31, 31, 29 },
1016 .vsync_len = { 1, 1, 3 },
1019 static const struct panel_desc auo_g070vvn01 = {
1020 .timings = &auo_g070vvn01_timings,
1035 static const struct drm_display_mode auo_g101evn010_mode = {
1038 .hsync_start = 1280 + 82,
1039 .hsync_end = 1280 + 82 + 2,
1040 .htotal = 1280 + 82 + 2 + 84,
1042 .vsync_start = 800 + 8,
1043 .vsync_end = 800 + 8 + 2,
1044 .vtotal = 800 + 8 + 2 + 6,
1047 static const struct panel_desc auo_g101evn010 = {
1048 .modes = &auo_g101evn010_mode,
1055 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1056 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1059 static const struct drm_display_mode auo_g104sn02_mode = {
1062 .hsync_start = 800 + 40,
1063 .hsync_end = 800 + 40 + 216,
1064 .htotal = 800 + 40 + 216 + 128,
1066 .vsync_start = 600 + 10,
1067 .vsync_end = 600 + 10 + 35,
1068 .vtotal = 600 + 10 + 35 + 2,
1071 static const struct panel_desc auo_g104sn02 = {
1072 .modes = &auo_g104sn02_mode,
1079 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1080 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1083 static const struct display_timing auo_g121ean01_timing = {
1084 .pixelclock = { 60000000, 74400000, 90000000 },
1085 .hactive = { 1280, 1280, 1280 },
1086 .hfront_porch = { 20, 50, 100 },
1087 .hback_porch = { 20, 50, 100 },
1088 .hsync_len = { 30, 100, 200 },
1089 .vactive = { 800, 800, 800 },
1090 .vfront_porch = { 2, 10, 25 },
1091 .vback_porch = { 2, 10, 25 },
1092 .vsync_len = { 4, 18, 50 },
1095 static const struct panel_desc auo_g121ean01 = {
1096 .timings = &auo_g121ean01_timing,
1103 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1104 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1107 static const struct display_timing auo_g133han01_timings = {
1108 .pixelclock = { 134000000, 141200000, 149000000 },
1109 .hactive = { 1920, 1920, 1920 },
1110 .hfront_porch = { 39, 58, 77 },
1111 .hback_porch = { 59, 88, 117 },
1112 .hsync_len = { 28, 42, 56 },
1113 .vactive = { 1080, 1080, 1080 },
1114 .vfront_porch = { 3, 8, 11 },
1115 .vback_porch = { 5, 14, 19 },
1116 .vsync_len = { 4, 14, 19 },
1119 static const struct panel_desc auo_g133han01 = {
1120 .timings = &auo_g133han01_timings,
1133 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1134 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1137 static const struct drm_display_mode auo_g156xtn01_mode = {
1140 .hsync_start = 1366 + 33,
1141 .hsync_end = 1366 + 33 + 67,
1144 .vsync_start = 768 + 4,
1145 .vsync_end = 768 + 4 + 4,
1149 static const struct panel_desc auo_g156xtn01 = {
1150 .modes = &auo_g156xtn01_mode,
1157 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1158 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1161 static const struct display_timing auo_g185han01_timings = {
1162 .pixelclock = { 120000000, 144000000, 175000000 },
1163 .hactive = { 1920, 1920, 1920 },
1164 .hfront_porch = { 36, 120, 148 },
1165 .hback_porch = { 24, 88, 108 },
1166 .hsync_len = { 20, 48, 64 },
1167 .vactive = { 1080, 1080, 1080 },
1168 .vfront_porch = { 6, 10, 40 },
1169 .vback_porch = { 2, 5, 20 },
1170 .vsync_len = { 2, 5, 20 },
1173 static const struct panel_desc auo_g185han01 = {
1174 .timings = &auo_g185han01_timings,
1187 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1188 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1191 static const struct display_timing auo_g190ean01_timings = {
1192 .pixelclock = { 90000000, 108000000, 135000000 },
1193 .hactive = { 1280, 1280, 1280 },
1194 .hfront_porch = { 126, 184, 1266 },
1195 .hback_porch = { 84, 122, 844 },
1196 .hsync_len = { 70, 102, 704 },
1197 .vactive = { 1024, 1024, 1024 },
1198 .vfront_porch = { 4, 26, 76 },
1199 .vback_porch = { 2, 8, 25 },
1200 .vsync_len = { 2, 8, 25 },
1203 static const struct panel_desc auo_g190ean01 = {
1204 .timings = &auo_g190ean01_timings,
1217 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1218 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1221 static const struct display_timing auo_p320hvn03_timings = {
1222 .pixelclock = { 106000000, 148500000, 164000000 },
1223 .hactive = { 1920, 1920, 1920 },
1224 .hfront_porch = { 25, 50, 130 },
1225 .hback_porch = { 25, 50, 130 },
1226 .hsync_len = { 20, 40, 105 },
1227 .vactive = { 1080, 1080, 1080 },
1228 .vfront_porch = { 8, 17, 150 },
1229 .vback_porch = { 8, 17, 150 },
1230 .vsync_len = { 4, 11, 100 },
1233 static const struct panel_desc auo_p320hvn03 = {
1234 .timings = &auo_p320hvn03_timings,
1246 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1247 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1250 static const struct drm_display_mode auo_t215hvn01_mode = {
1253 .hsync_start = 1920 + 88,
1254 .hsync_end = 1920 + 88 + 44,
1255 .htotal = 1920 + 88 + 44 + 148,
1257 .vsync_start = 1080 + 4,
1258 .vsync_end = 1080 + 4 + 5,
1259 .vtotal = 1080 + 4 + 5 + 36,
1262 static const struct panel_desc auo_t215hvn01 = {
1263 .modes = &auo_t215hvn01_mode,
1274 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1275 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1278 static const struct drm_display_mode avic_tm070ddh03_mode = {
1281 .hsync_start = 1024 + 160,
1282 .hsync_end = 1024 + 160 + 4,
1283 .htotal = 1024 + 160 + 4 + 156,
1285 .vsync_start = 600 + 17,
1286 .vsync_end = 600 + 17 + 1,
1287 .vtotal = 600 + 17 + 1 + 17,
1290 static const struct panel_desc avic_tm070ddh03 = {
1291 .modes = &avic_tm070ddh03_mode,
1305 static const struct drm_display_mode bananapi_s070wv20_ct16_mode = {
1308 .hsync_start = 800 + 40,
1309 .hsync_end = 800 + 40 + 48,
1310 .htotal = 800 + 40 + 48 + 40,
1312 .vsync_start = 480 + 13,
1313 .vsync_end = 480 + 13 + 3,
1314 .vtotal = 480 + 13 + 3 + 29,
1317 static const struct panel_desc bananapi_s070wv20_ct16 = {
1318 .modes = &bananapi_s070wv20_ct16_mode,
1327 static const struct display_timing boe_ev121wxm_n10_1850_timing = {
1328 .pixelclock = { 69922000, 71000000, 72293000 },
1329 .hactive = { 1280, 1280, 1280 },
1330 .hfront_porch = { 48, 48, 48 },
1331 .hback_porch = { 80, 80, 80 },
1332 .hsync_len = { 32, 32, 32 },
1333 .vactive = { 800, 800, 800 },
1334 .vfront_porch = { 3, 3, 3 },
1335 .vback_porch = { 14, 14, 14 },
1336 .vsync_len = { 6, 6, 6 },
1339 static const struct panel_desc boe_ev121wxm_n10_1850 = {
1340 .timings = &boe_ev121wxm_n10_1850_timing,
1353 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1354 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1355 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1358 static const struct drm_display_mode boe_hv070wsa_mode = {
1361 .hsync_start = 1024 + 30,
1362 .hsync_end = 1024 + 30 + 30,
1363 .htotal = 1024 + 30 + 30 + 30,
1365 .vsync_start = 600 + 10,
1366 .vsync_end = 600 + 10 + 10,
1367 .vtotal = 600 + 10 + 10 + 10,
1370 static const struct panel_desc boe_hv070wsa = {
1371 .modes = &boe_hv070wsa_mode,
1378 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1379 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1380 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1383 static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = {
1386 .hsync_start = 480 + 5,
1387 .hsync_end = 480 + 5 + 5,
1388 .htotal = 480 + 5 + 5 + 40,
1390 .vsync_start = 272 + 8,
1391 .vsync_end = 272 + 8 + 8,
1392 .vtotal = 272 + 8 + 8 + 8,
1393 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1396 static const struct panel_desc cdtech_s043wq26h_ct7 = {
1397 .modes = &cdtech_s043wq26h_ct7_mode,
1404 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1407 /* S070PWS19HP-FC21 2017/04/22 */
1408 static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = {
1411 .hsync_start = 1024 + 160,
1412 .hsync_end = 1024 + 160 + 20,
1413 .htotal = 1024 + 160 + 20 + 140,
1415 .vsync_start = 600 + 12,
1416 .vsync_end = 600 + 12 + 3,
1417 .vtotal = 600 + 12 + 3 + 20,
1418 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1421 static const struct panel_desc cdtech_s070pws19hp_fc21 = {
1422 .modes = &cdtech_s070pws19hp_fc21_mode,
1429 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1430 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1431 .connector_type = DRM_MODE_CONNECTOR_DPI,
1434 /* S070SWV29HG-DC44 2017/09/21 */
1435 static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = {
1438 .hsync_start = 800 + 210,
1439 .hsync_end = 800 + 210 + 2,
1440 .htotal = 800 + 210 + 2 + 44,
1442 .vsync_start = 480 + 22,
1443 .vsync_end = 480 + 22 + 2,
1444 .vtotal = 480 + 22 + 2 + 21,
1445 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1448 static const struct panel_desc cdtech_s070swv29hg_dc44 = {
1449 .modes = &cdtech_s070swv29hg_dc44_mode,
1456 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1457 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1458 .connector_type = DRM_MODE_CONNECTOR_DPI,
1461 static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
1464 .hsync_start = 800 + 40,
1465 .hsync_end = 800 + 40 + 40,
1466 .htotal = 800 + 40 + 40 + 48,
1468 .vsync_start = 480 + 29,
1469 .vsync_end = 480 + 29 + 13,
1470 .vtotal = 480 + 29 + 13 + 3,
1471 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1474 static const struct panel_desc cdtech_s070wv95_ct16 = {
1475 .modes = &cdtech_s070wv95_ct16_mode,
1484 static const struct display_timing chefree_ch101olhlwh_002_timing = {
1485 .pixelclock = { 68900000, 71100000, 73400000 },
1486 .hactive = { 1280, 1280, 1280 },
1487 .hfront_porch = { 65, 80, 95 },
1488 .hback_porch = { 64, 79, 94 },
1489 .hsync_len = { 1, 1, 1 },
1490 .vactive = { 800, 800, 800 },
1491 .vfront_porch = { 7, 11, 14 },
1492 .vback_porch = { 7, 11, 14 },
1493 .vsync_len = { 1, 1, 1 },
1494 .flags = DISPLAY_FLAGS_DE_HIGH,
1497 static const struct panel_desc chefree_ch101olhlwh_002 = {
1498 .timings = &chefree_ch101olhlwh_002_timing,
1509 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1510 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1511 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1514 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
1517 .hsync_start = 800 + 49,
1518 .hsync_end = 800 + 49 + 33,
1519 .htotal = 800 + 49 + 33 + 17,
1521 .vsync_start = 1280 + 1,
1522 .vsync_end = 1280 + 1 + 7,
1523 .vtotal = 1280 + 1 + 7 + 15,
1524 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1527 static const struct panel_desc chunghwa_claa070wp03xg = {
1528 .modes = &chunghwa_claa070wp03xg_mode,
1535 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1536 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1537 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1540 static const struct drm_display_mode chunghwa_claa101wa01a_mode = {
1543 .hsync_start = 1366 + 58,
1544 .hsync_end = 1366 + 58 + 58,
1545 .htotal = 1366 + 58 + 58 + 58,
1547 .vsync_start = 768 + 4,
1548 .vsync_end = 768 + 4 + 4,
1549 .vtotal = 768 + 4 + 4 + 4,
1552 static const struct panel_desc chunghwa_claa101wa01a = {
1553 .modes = &chunghwa_claa101wa01a_mode,
1560 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1561 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1562 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1565 static const struct drm_display_mode chunghwa_claa101wb01_mode = {
1568 .hsync_start = 1366 + 48,
1569 .hsync_end = 1366 + 48 + 32,
1570 .htotal = 1366 + 48 + 32 + 20,
1572 .vsync_start = 768 + 16,
1573 .vsync_end = 768 + 16 + 8,
1574 .vtotal = 768 + 16 + 8 + 16,
1577 static const struct panel_desc chunghwa_claa101wb01 = {
1578 .modes = &chunghwa_claa101wb01_mode,
1585 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1586 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1587 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1590 static const struct display_timing dataimage_fg040346dsswbg04_timing = {
1591 .pixelclock = { 5000000, 9000000, 12000000 },
1592 .hactive = { 480, 480, 480 },
1593 .hfront_porch = { 12, 12, 12 },
1594 .hback_porch = { 12, 12, 12 },
1595 .hsync_len = { 21, 21, 21 },
1596 .vactive = { 272, 272, 272 },
1597 .vfront_porch = { 4, 4, 4 },
1598 .vback_porch = { 4, 4, 4 },
1599 .vsync_len = { 8, 8, 8 },
1602 static const struct panel_desc dataimage_fg040346dsswbg04 = {
1603 .timings = &dataimage_fg040346dsswbg04_timing,
1610 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1611 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1612 .connector_type = DRM_MODE_CONNECTOR_DPI,
1615 static const struct display_timing dataimage_fg1001l0dsswmg01_timing = {
1616 .pixelclock = { 68900000, 71110000, 73400000 },
1617 .hactive = { 1280, 1280, 1280 },
1618 .vactive = { 800, 800, 800 },
1619 .hback_porch = { 100, 100, 100 },
1620 .hfront_porch = { 100, 100, 100 },
1621 .vback_porch = { 5, 5, 5 },
1622 .vfront_porch = { 5, 5, 5 },
1623 .hsync_len = { 24, 24, 24 },
1624 .vsync_len = { 3, 3, 3 },
1625 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
1626 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1629 static const struct panel_desc dataimage_fg1001l0dsswmg01 = {
1630 .timings = &dataimage_fg1001l0dsswmg01_timing,
1639 static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = {
1642 .hsync_start = 800 + 40,
1643 .hsync_end = 800 + 40 + 128,
1644 .htotal = 800 + 40 + 128 + 88,
1646 .vsync_start = 480 + 10,
1647 .vsync_end = 480 + 10 + 2,
1648 .vtotal = 480 + 10 + 2 + 33,
1649 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1652 static const struct panel_desc dataimage_scf0700c48ggu18 = {
1653 .modes = &dataimage_scf0700c48ggu18_mode,
1660 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1661 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1664 static const struct display_timing dlc_dlc0700yzg_1_timing = {
1665 .pixelclock = { 45000000, 51200000, 57000000 },
1666 .hactive = { 1024, 1024, 1024 },
1667 .hfront_porch = { 100, 106, 113 },
1668 .hback_porch = { 100, 106, 113 },
1669 .hsync_len = { 100, 108, 114 },
1670 .vactive = { 600, 600, 600 },
1671 .vfront_porch = { 8, 11, 15 },
1672 .vback_porch = { 8, 11, 15 },
1673 .vsync_len = { 9, 13, 15 },
1674 .flags = DISPLAY_FLAGS_DE_HIGH,
1677 static const struct panel_desc dlc_dlc0700yzg_1 = {
1678 .timings = &dlc_dlc0700yzg_1_timing,
1690 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1691 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1694 static const struct display_timing dlc_dlc1010gig_timing = {
1695 .pixelclock = { 68900000, 71100000, 73400000 },
1696 .hactive = { 1280, 1280, 1280 },
1697 .hfront_porch = { 43, 53, 63 },
1698 .hback_porch = { 43, 53, 63 },
1699 .hsync_len = { 44, 54, 64 },
1700 .vactive = { 800, 800, 800 },
1701 .vfront_porch = { 5, 8, 11 },
1702 .vback_porch = { 5, 8, 11 },
1703 .vsync_len = { 5, 7, 11 },
1704 .flags = DISPLAY_FLAGS_DE_HIGH,
1707 static const struct panel_desc dlc_dlc1010gig = {
1708 .timings = &dlc_dlc1010gig_timing,
1721 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1722 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1725 static const struct drm_display_mode edt_et035012dm6_mode = {
1728 .hsync_start = 320 + 20,
1729 .hsync_end = 320 + 20 + 30,
1730 .htotal = 320 + 20 + 68,
1732 .vsync_start = 240 + 4,
1733 .vsync_end = 240 + 4 + 4,
1734 .vtotal = 240 + 4 + 4 + 14,
1735 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1738 static const struct panel_desc edt_et035012dm6 = {
1739 .modes = &edt_et035012dm6_mode,
1746 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1747 .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1750 static const struct drm_display_mode edt_etm0350g0dh6_mode = {
1753 .hsync_start = 320 + 20,
1754 .hsync_end = 320 + 20 + 68,
1755 .htotal = 320 + 20 + 68,
1757 .vsync_start = 240 + 4,
1758 .vsync_end = 240 + 4 + 18,
1759 .vtotal = 240 + 4 + 18,
1760 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1763 static const struct panel_desc edt_etm0350g0dh6 = {
1764 .modes = &edt_etm0350g0dh6_mode,
1771 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1772 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1773 .connector_type = DRM_MODE_CONNECTOR_DPI,
1776 static const struct drm_display_mode edt_etm043080dh6gp_mode = {
1779 .hsync_start = 480 + 8,
1780 .hsync_end = 480 + 8 + 4,
1781 .htotal = 480 + 8 + 4 + 41,
1784 * IWG22M: Y resolution changed for "dc_linuxfb" module crashing while
1789 .vsync_start = 288 + 2,
1790 .vsync_end = 288 + 2 + 4,
1791 .vtotal = 288 + 2 + 4 + 10,
1794 static const struct panel_desc edt_etm043080dh6gp = {
1795 .modes = &edt_etm043080dh6gp_mode,
1802 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1803 .connector_type = DRM_MODE_CONNECTOR_DPI,
1806 static const struct drm_display_mode edt_etm0430g0dh6_mode = {
1809 .hsync_start = 480 + 2,
1810 .hsync_end = 480 + 2 + 41,
1811 .htotal = 480 + 2 + 41 + 2,
1813 .vsync_start = 272 + 2,
1814 .vsync_end = 272 + 2 + 10,
1815 .vtotal = 272 + 2 + 10 + 2,
1816 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1819 static const struct panel_desc edt_etm0430g0dh6 = {
1820 .modes = &edt_etm0430g0dh6_mode,
1827 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1828 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1829 .connector_type = DRM_MODE_CONNECTOR_DPI,
1832 static const struct drm_display_mode edt_et057090dhu_mode = {
1835 .hsync_start = 640 + 16,
1836 .hsync_end = 640 + 16 + 30,
1837 .htotal = 640 + 16 + 30 + 114,
1839 .vsync_start = 480 + 10,
1840 .vsync_end = 480 + 10 + 3,
1841 .vtotal = 480 + 10 + 3 + 32,
1842 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1845 static const struct panel_desc edt_et057090dhu = {
1846 .modes = &edt_et057090dhu_mode,
1853 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1854 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1855 .connector_type = DRM_MODE_CONNECTOR_DPI,
1858 static const struct drm_display_mode edt_etm0700g0dh6_mode = {
1861 .hsync_start = 800 + 40,
1862 .hsync_end = 800 + 40 + 128,
1863 .htotal = 800 + 40 + 128 + 88,
1865 .vsync_start = 480 + 10,
1866 .vsync_end = 480 + 10 + 2,
1867 .vtotal = 480 + 10 + 2 + 33,
1868 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1871 static const struct panel_desc edt_etm0700g0dh6 = {
1872 .modes = &edt_etm0700g0dh6_mode,
1879 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1880 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1881 .connector_type = DRM_MODE_CONNECTOR_DPI,
1884 static const struct panel_desc edt_etm0700g0bdh6 = {
1885 .modes = &edt_etm0700g0dh6_mode,
1892 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1893 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1894 .connector_type = DRM_MODE_CONNECTOR_DPI,
1897 static const struct display_timing edt_etml0700y5dha_timing = {
1898 .pixelclock = { 40800000, 51200000, 67200000 },
1899 .hactive = { 1024, 1024, 1024 },
1900 .hfront_porch = { 30, 106, 125 },
1901 .hback_porch = { 30, 106, 125 },
1902 .hsync_len = { 30, 108, 126 },
1903 .vactive = { 600, 600, 600 },
1904 .vfront_porch = { 3, 12, 67},
1905 .vback_porch = { 3, 12, 67 },
1906 .vsync_len = { 4, 11, 66 },
1907 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
1908 DISPLAY_FLAGS_DE_HIGH,
1911 static const struct panel_desc edt_etml0700y5dha = {
1912 .timings = &edt_etml0700y5dha_timing,
1919 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1920 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1923 static const struct drm_display_mode edt_etmv570g2dhu_mode = {
1927 .hsync_end = 640 + 16,
1928 .htotal = 640 + 16 + 30 + 114,
1930 .vsync_start = 480 + 10,
1931 .vsync_end = 480 + 10 + 3,
1932 .vtotal = 480 + 10 + 3 + 35,
1933 .flags = DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_PHSYNC,
1936 static const struct panel_desc edt_etmv570g2dhu = {
1937 .modes = &edt_etmv570g2dhu_mode,
1944 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1945 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1946 .connector_type = DRM_MODE_CONNECTOR_DPI,
1949 static const struct display_timing eink_vb3300_kca_timing = {
1950 .pixelclock = { 40000000, 40000000, 40000000 },
1951 .hactive = { 334, 334, 334 },
1952 .hfront_porch = { 1, 1, 1 },
1953 .hback_porch = { 1, 1, 1 },
1954 .hsync_len = { 1, 1, 1 },
1955 .vactive = { 1405, 1405, 1405 },
1956 .vfront_porch = { 1, 1, 1 },
1957 .vback_porch = { 1, 1, 1 },
1958 .vsync_len = { 1, 1, 1 },
1959 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
1960 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
1963 static const struct panel_desc eink_vb3300_kca = {
1964 .timings = &eink_vb3300_kca_timing,
1971 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1972 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1973 .connector_type = DRM_MODE_CONNECTOR_DPI,
1976 static const struct display_timing evervision_vgg804821_timing = {
1977 .pixelclock = { 27600000, 33300000, 50000000 },
1978 .hactive = { 800, 800, 800 },
1979 .hfront_porch = { 40, 66, 70 },
1980 .hback_porch = { 40, 67, 70 },
1981 .hsync_len = { 40, 67, 70 },
1982 .vactive = { 480, 480, 480 },
1983 .vfront_porch = { 6, 10, 10 },
1984 .vback_porch = { 7, 11, 11 },
1985 .vsync_len = { 7, 11, 11 },
1986 .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH |
1987 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
1988 DISPLAY_FLAGS_SYNC_NEGEDGE,
1991 static const struct panel_desc evervision_vgg804821 = {
1992 .timings = &evervision_vgg804821_timing,
1999 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2000 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2003 static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = {
2006 .hsync_start = 800 + 168,
2007 .hsync_end = 800 + 168 + 64,
2008 .htotal = 800 + 168 + 64 + 88,
2010 .vsync_start = 480 + 37,
2011 .vsync_end = 480 + 37 + 2,
2012 .vtotal = 480 + 37 + 2 + 8,
2015 static const struct panel_desc foxlink_fl500wvr00_a0t = {
2016 .modes = &foxlink_fl500wvr00_a0t_mode,
2023 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2026 static const struct drm_display_mode frida_frd350h54004_modes[] = {
2030 .hsync_start = 320 + 44,
2031 .hsync_end = 320 + 44 + 16,
2032 .htotal = 320 + 44 + 16 + 20,
2034 .vsync_start = 240 + 2,
2035 .vsync_end = 240 + 2 + 6,
2036 .vtotal = 240 + 2 + 6 + 2,
2037 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2042 .hsync_start = 320 + 56,
2043 .hsync_end = 320 + 56 + 16,
2044 .htotal = 320 + 56 + 16 + 40,
2046 .vsync_start = 240 + 2,
2047 .vsync_end = 240 + 2 + 6,
2048 .vtotal = 240 + 2 + 6 + 2,
2049 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2053 static const struct panel_desc frida_frd350h54004 = {
2054 .modes = frida_frd350h54004_modes,
2055 .num_modes = ARRAY_SIZE(frida_frd350h54004_modes),
2061 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2062 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2063 .connector_type = DRM_MODE_CONNECTOR_DPI,
2066 static const struct drm_display_mode friendlyarm_hd702e_mode = {
2069 .hsync_start = 800 + 20,
2070 .hsync_end = 800 + 20 + 24,
2071 .htotal = 800 + 20 + 24 + 20,
2073 .vsync_start = 1280 + 4,
2074 .vsync_end = 1280 + 4 + 8,
2075 .vtotal = 1280 + 4 + 8 + 4,
2076 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2079 static const struct panel_desc friendlyarm_hd702e = {
2080 .modes = &friendlyarm_hd702e_mode,
2088 static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
2091 .hsync_start = 480 + 5,
2092 .hsync_end = 480 + 5 + 1,
2093 .htotal = 480 + 5 + 1 + 40,
2095 .vsync_start = 272 + 8,
2096 .vsync_end = 272 + 8 + 1,
2097 .vtotal = 272 + 8 + 1 + 8,
2100 static const struct panel_desc giantplus_gpg482739qs5 = {
2101 .modes = &giantplus_gpg482739qs5_mode,
2108 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2111 static const struct display_timing giantplus_gpm940b0_timing = {
2112 .pixelclock = { 13500000, 27000000, 27500000 },
2113 .hactive = { 320, 320, 320 },
2114 .hfront_porch = { 14, 686, 718 },
2115 .hback_porch = { 50, 70, 255 },
2116 .hsync_len = { 1, 1, 1 },
2117 .vactive = { 240, 240, 240 },
2118 .vfront_porch = { 1, 1, 179 },
2119 .vback_porch = { 1, 21, 31 },
2120 .vsync_len = { 1, 1, 6 },
2121 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
2124 static const struct panel_desc giantplus_gpm940b0 = {
2125 .timings = &giantplus_gpm940b0_timing,
2132 .bus_format = MEDIA_BUS_FMT_RGB888_3X8,
2133 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2136 static const struct display_timing hannstar_hsd070pww1_timing = {
2137 .pixelclock = { 64300000, 71100000, 82000000 },
2138 .hactive = { 1280, 1280, 1280 },
2139 .hfront_porch = { 1, 1, 10 },
2140 .hback_porch = { 1, 1, 10 },
2142 * According to the data sheet, the minimum horizontal blanking interval
2143 * is 54 clocks (1 + 52 + 1), but tests with a Nitrogen6X have shown the
2144 * minimum working horizontal blanking interval to be 60 clocks.
2146 .hsync_len = { 58, 158, 661 },
2147 .vactive = { 800, 800, 800 },
2148 .vfront_porch = { 1, 1, 10 },
2149 .vback_porch = { 1, 1, 10 },
2150 .vsync_len = { 1, 21, 203 },
2151 .flags = DISPLAY_FLAGS_DE_HIGH,
2154 static const struct panel_desc hannstar_hsd070pww1 = {
2155 .timings = &hannstar_hsd070pww1_timing,
2162 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2163 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2166 static const struct display_timing hannstar_hsd100pxn1_timing = {
2167 .pixelclock = { 55000000, 65000000, 75000000 },
2168 .hactive = { 1024, 1024, 1024 },
2169 .hfront_porch = { 40, 40, 40 },
2170 .hback_porch = { 220, 220, 220 },
2171 .hsync_len = { 20, 60, 100 },
2172 .vactive = { 768, 768, 768 },
2173 .vfront_porch = { 7, 7, 7 },
2174 .vback_porch = { 21, 21, 21 },
2175 .vsync_len = { 10, 10, 10 },
2176 .flags = DISPLAY_FLAGS_DE_HIGH,
2179 static const struct panel_desc hannstar_hsd100pxn1 = {
2180 .timings = &hannstar_hsd100pxn1_timing,
2187 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2188 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2191 static const struct display_timing hannstar_hsd101pww2_timing = {
2192 .pixelclock = { 64300000, 71100000, 82000000 },
2193 .hactive = { 1280, 1280, 1280 },
2194 .hfront_porch = { 1, 1, 10 },
2195 .hback_porch = { 1, 1, 10 },
2196 .hsync_len = { 58, 158, 661 },
2197 .vactive = { 800, 800, 800 },
2198 .vfront_porch = { 1, 1, 10 },
2199 .vback_porch = { 1, 1, 10 },
2200 .vsync_len = { 1, 21, 203 },
2201 .flags = DISPLAY_FLAGS_DE_HIGH,
2204 static const struct panel_desc hannstar_hsd101pww2 = {
2205 .timings = &hannstar_hsd101pww2_timing,
2212 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2213 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2216 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
2219 .hsync_start = 800 + 85,
2220 .hsync_end = 800 + 85 + 86,
2221 .htotal = 800 + 85 + 86 + 85,
2223 .vsync_start = 480 + 16,
2224 .vsync_end = 480 + 16 + 13,
2225 .vtotal = 480 + 16 + 13 + 16,
2228 static const struct panel_desc hitachi_tx23d38vm0caa = {
2229 .modes = &hitachi_tx23d38vm0caa_mode,
2242 static const struct drm_display_mode innolux_at043tn24_mode = {
2245 .hsync_start = 480 + 2,
2246 .hsync_end = 480 + 2 + 41,
2247 .htotal = 480 + 2 + 41 + 2,
2249 .vsync_start = 272 + 2,
2250 .vsync_end = 272 + 2 + 10,
2251 .vtotal = 272 + 2 + 10 + 2,
2252 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2255 static const struct panel_desc innolux_at043tn24 = {
2256 .modes = &innolux_at043tn24_mode,
2263 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2264 .connector_type = DRM_MODE_CONNECTOR_DPI,
2265 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2268 static const struct drm_display_mode innolux_at070tn92_mode = {
2271 .hsync_start = 800 + 210,
2272 .hsync_end = 800 + 210 + 20,
2273 .htotal = 800 + 210 + 20 + 46,
2275 .vsync_start = 480 + 22,
2276 .vsync_end = 480 + 22 + 10,
2277 .vtotal = 480 + 22 + 23 + 10,
2280 static const struct panel_desc innolux_at070tn92 = {
2281 .modes = &innolux_at070tn92_mode,
2287 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2290 static const struct display_timing innolux_g070ace_l01_timing = {
2291 .pixelclock = { 25200000, 35000000, 35700000 },
2292 .hactive = { 800, 800, 800 },
2293 .hfront_porch = { 30, 32, 87 },
2294 .hback_porch = { 30, 32, 87 },
2295 .hsync_len = { 1, 1, 1 },
2296 .vactive = { 480, 480, 480 },
2297 .vfront_porch = { 3, 3, 3 },
2298 .vback_porch = { 13, 13, 13 },
2299 .vsync_len = { 1, 1, 4 },
2300 .flags = DISPLAY_FLAGS_DE_HIGH,
2303 static const struct panel_desc innolux_g070ace_l01 = {
2304 .timings = &innolux_g070ace_l01_timing,
2317 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2318 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2319 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2322 static const struct display_timing innolux_g070y2_l01_timing = {
2323 .pixelclock = { 28000000, 29500000, 32000000 },
2324 .hactive = { 800, 800, 800 },
2325 .hfront_porch = { 61, 91, 141 },
2326 .hback_porch = { 60, 90, 140 },
2327 .hsync_len = { 12, 12, 12 },
2328 .vactive = { 480, 480, 480 },
2329 .vfront_porch = { 4, 9, 30 },
2330 .vback_porch = { 4, 8, 28 },
2331 .vsync_len = { 2, 2, 2 },
2332 .flags = DISPLAY_FLAGS_DE_HIGH,
2335 static const struct panel_desc innolux_g070y2_l01 = {
2336 .timings = &innolux_g070y2_l01_timing,
2349 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2350 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2351 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2354 static const struct drm_display_mode innolux_g070y2_t02_mode = {
2357 .hsync_start = 800 + 210,
2358 .hsync_end = 800 + 210 + 20,
2359 .htotal = 800 + 210 + 20 + 46,
2361 .vsync_start = 480 + 22,
2362 .vsync_end = 480 + 22 + 10,
2363 .vtotal = 480 + 22 + 23 + 10,
2366 static const struct panel_desc innolux_g070y2_t02 = {
2367 .modes = &innolux_g070y2_t02_mode,
2374 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2375 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2376 .connector_type = DRM_MODE_CONNECTOR_DPI,
2379 static const struct display_timing innolux_g101ice_l01_timing = {
2380 .pixelclock = { 60400000, 71100000, 74700000 },
2381 .hactive = { 1280, 1280, 1280 },
2382 .hfront_porch = { 41, 80, 100 },
2383 .hback_porch = { 40, 79, 99 },
2384 .hsync_len = { 1, 1, 1 },
2385 .vactive = { 800, 800, 800 },
2386 .vfront_porch = { 5, 11, 14 },
2387 .vback_porch = { 4, 11, 14 },
2388 .vsync_len = { 1, 1, 1 },
2389 .flags = DISPLAY_FLAGS_DE_HIGH,
2392 static const struct panel_desc innolux_g101ice_l01 = {
2393 .timings = &innolux_g101ice_l01_timing,
2404 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2405 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2408 static const struct display_timing innolux_g121i1_l01_timing = {
2409 .pixelclock = { 67450000, 71000000, 74550000 },
2410 .hactive = { 1280, 1280, 1280 },
2411 .hfront_porch = { 40, 80, 160 },
2412 .hback_porch = { 39, 79, 159 },
2413 .hsync_len = { 1, 1, 1 },
2414 .vactive = { 800, 800, 800 },
2415 .vfront_porch = { 5, 11, 100 },
2416 .vback_porch = { 4, 11, 99 },
2417 .vsync_len = { 1, 1, 1 },
2420 static const struct panel_desc innolux_g121i1_l01 = {
2421 .timings = &innolux_g121i1_l01_timing,
2432 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2433 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2436 static const struct drm_display_mode innolux_g121x1_l03_mode = {
2439 .hsync_start = 1024 + 0,
2440 .hsync_end = 1024 + 1,
2441 .htotal = 1024 + 0 + 1 + 320,
2443 .vsync_start = 768 + 38,
2444 .vsync_end = 768 + 38 + 1,
2445 .vtotal = 768 + 38 + 1 + 0,
2446 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2449 static const struct panel_desc innolux_g121x1_l03 = {
2450 .modes = &innolux_g121x1_l03_mode,
2464 static const struct display_timing innolux_g156hce_l01_timings = {
2465 .pixelclock = { 120000000, 141860000, 150000000 },
2466 .hactive = { 1920, 1920, 1920 },
2467 .hfront_porch = { 80, 90, 100 },
2468 .hback_porch = { 80, 90, 100 },
2469 .hsync_len = { 20, 30, 30 },
2470 .vactive = { 1080, 1080, 1080 },
2471 .vfront_porch = { 3, 10, 20 },
2472 .vback_porch = { 3, 10, 20 },
2473 .vsync_len = { 4, 10, 10 },
2476 static const struct panel_desc innolux_g156hce_l01 = {
2477 .timings = &innolux_g156hce_l01_timings,
2485 .prepare = 1, /* T1+T2 */
2486 .enable = 450, /* T5 */
2487 .disable = 200, /* T6 */
2488 .unprepare = 10, /* T3+T7 */
2490 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2491 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2492 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2495 static const struct drm_display_mode innolux_n156bge_l21_mode = {
2498 .hsync_start = 1366 + 16,
2499 .hsync_end = 1366 + 16 + 34,
2500 .htotal = 1366 + 16 + 34 + 50,
2502 .vsync_start = 768 + 2,
2503 .vsync_end = 768 + 2 + 6,
2504 .vtotal = 768 + 2 + 6 + 12,
2507 static const struct panel_desc innolux_n156bge_l21 = {
2508 .modes = &innolux_n156bge_l21_mode,
2515 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2516 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2517 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2520 static const struct drm_display_mode innolux_zj070na_01p_mode = {
2523 .hsync_start = 1024 + 128,
2524 .hsync_end = 1024 + 128 + 64,
2525 .htotal = 1024 + 128 + 64 + 128,
2527 .vsync_start = 600 + 16,
2528 .vsync_end = 600 + 16 + 4,
2529 .vtotal = 600 + 16 + 4 + 16,
2532 static const struct panel_desc innolux_zj070na_01p = {
2533 .modes = &innolux_zj070na_01p_mode,
2542 static const struct display_timing koe_tx14d24vm1bpa_timing = {
2543 .pixelclock = { 5580000, 5850000, 6200000 },
2544 .hactive = { 320, 320, 320 },
2545 .hfront_porch = { 30, 30, 30 },
2546 .hback_porch = { 30, 30, 30 },
2547 .hsync_len = { 1, 5, 17 },
2548 .vactive = { 240, 240, 240 },
2549 .vfront_porch = { 6, 6, 6 },
2550 .vback_porch = { 5, 5, 5 },
2551 .vsync_len = { 1, 2, 11 },
2552 .flags = DISPLAY_FLAGS_DE_HIGH,
2555 static const struct panel_desc koe_tx14d24vm1bpa = {
2556 .timings = &koe_tx14d24vm1bpa_timing,
2565 static const struct display_timing koe_tx26d202vm0bwa_timing = {
2566 .pixelclock = { 151820000, 156720000, 159780000 },
2567 .hactive = { 1920, 1920, 1920 },
2568 .hfront_porch = { 105, 130, 142 },
2569 .hback_porch = { 45, 70, 82 },
2570 .hsync_len = { 30, 30, 30 },
2571 .vactive = { 1200, 1200, 1200},
2572 .vfront_porch = { 3, 5, 10 },
2573 .vback_porch = { 2, 5, 10 },
2574 .vsync_len = { 5, 5, 5 },
2577 static const struct panel_desc koe_tx26d202vm0bwa = {
2578 .timings = &koe_tx26d202vm0bwa_timing,
2591 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2592 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2593 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2596 static const struct display_timing koe_tx31d200vm0baa_timing = {
2597 .pixelclock = { 39600000, 43200000, 48000000 },
2598 .hactive = { 1280, 1280, 1280 },
2599 .hfront_porch = { 16, 36, 56 },
2600 .hback_porch = { 16, 36, 56 },
2601 .hsync_len = { 8, 8, 8 },
2602 .vactive = { 480, 480, 480 },
2603 .vfront_porch = { 6, 21, 33 },
2604 .vback_porch = { 6, 21, 33 },
2605 .vsync_len = { 8, 8, 8 },
2606 .flags = DISPLAY_FLAGS_DE_HIGH,
2609 static const struct panel_desc koe_tx31d200vm0baa = {
2610 .timings = &koe_tx31d200vm0baa_timing,
2617 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2618 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2621 static const struct display_timing kyo_tcg121xglp_timing = {
2622 .pixelclock = { 52000000, 65000000, 71000000 },
2623 .hactive = { 1024, 1024, 1024 },
2624 .hfront_porch = { 2, 2, 2 },
2625 .hback_porch = { 2, 2, 2 },
2626 .hsync_len = { 86, 124, 244 },
2627 .vactive = { 768, 768, 768 },
2628 .vfront_porch = { 2, 2, 2 },
2629 .vback_porch = { 2, 2, 2 },
2630 .vsync_len = { 6, 34, 73 },
2631 .flags = DISPLAY_FLAGS_DE_HIGH,
2634 static const struct panel_desc kyo_tcg121xglp = {
2635 .timings = &kyo_tcg121xglp_timing,
2642 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2643 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2646 static const struct drm_display_mode lemaker_bl035_rgb_002_mode = {
2649 .hsync_start = 320 + 20,
2650 .hsync_end = 320 + 20 + 30,
2651 .htotal = 320 + 20 + 30 + 38,
2653 .vsync_start = 240 + 4,
2654 .vsync_end = 240 + 4 + 3,
2655 .vtotal = 240 + 4 + 3 + 15,
2658 static const struct panel_desc lemaker_bl035_rgb_002 = {
2659 .modes = &lemaker_bl035_rgb_002_mode,
2665 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2666 .bus_flags = DRM_BUS_FLAG_DE_LOW,
2669 static const struct drm_display_mode lg_lb070wv8_mode = {
2672 .hsync_start = 800 + 88,
2673 .hsync_end = 800 + 88 + 80,
2674 .htotal = 800 + 88 + 80 + 88,
2676 .vsync_start = 480 + 10,
2677 .vsync_end = 480 + 10 + 25,
2678 .vtotal = 480 + 10 + 25 + 10,
2681 static const struct panel_desc lg_lb070wv8 = {
2682 .modes = &lg_lb070wv8_mode,
2689 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2690 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2693 static const struct display_timing logictechno_lt161010_2nh_timing = {
2694 .pixelclock = { 26400000, 33300000, 46800000 },
2695 .hactive = { 800, 800, 800 },
2696 .hfront_porch = { 16, 210, 354 },
2697 .hback_porch = { 46, 46, 46 },
2698 .hsync_len = { 1, 20, 40 },
2699 .vactive = { 480, 480, 480 },
2700 .vfront_porch = { 7, 22, 147 },
2701 .vback_porch = { 23, 23, 23 },
2702 .vsync_len = { 1, 10, 20 },
2703 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2704 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2705 DISPLAY_FLAGS_SYNC_POSEDGE,
2708 static const struct panel_desc logictechno_lt161010_2nh = {
2709 .timings = &logictechno_lt161010_2nh_timing,
2716 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2717 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
2718 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2719 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
2720 .connector_type = DRM_MODE_CONNECTOR_DPI,
2723 static const struct display_timing logictechno_lt170410_2whc_timing = {
2724 .pixelclock = { 68900000, 71100000, 73400000 },
2725 .hactive = { 1280, 1280, 1280 },
2726 .hfront_porch = { 23, 60, 71 },
2727 .hback_porch = { 23, 60, 71 },
2728 .hsync_len = { 15, 40, 47 },
2729 .vactive = { 800, 800, 800 },
2730 .vfront_porch = { 5, 7, 10 },
2731 .vback_porch = { 5, 7, 10 },
2732 .vsync_len = { 6, 9, 12 },
2733 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2734 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2735 DISPLAY_FLAGS_SYNC_POSEDGE,
2738 static const struct panel_desc logictechno_lt170410_2whc = {
2739 .timings = &logictechno_lt170410_2whc_timing,
2746 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2747 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2748 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2751 static const struct drm_display_mode logictechno_lttd800480070_l2rt_mode = {
2754 .hsync_start = 800 + 112,
2755 .hsync_end = 800 + 112 + 3,
2756 .htotal = 800 + 112 + 3 + 85,
2758 .vsync_start = 480 + 38,
2759 .vsync_end = 480 + 38 + 3,
2760 .vtotal = 480 + 38 + 3 + 29,
2761 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2764 static const struct panel_desc logictechno_lttd800480070_l2rt = {
2765 .modes = &logictechno_lttd800480070_l2rt_mode,
2778 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2779 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2780 .connector_type = DRM_MODE_CONNECTOR_DPI,
2783 static const struct drm_display_mode logictechno_lttd800480070_l6wh_rt_mode = {
2786 .hsync_start = 800 + 154,
2787 .hsync_end = 800 + 154 + 3,
2788 .htotal = 800 + 154 + 3 + 43,
2790 .vsync_start = 480 + 47,
2791 .vsync_end = 480 + 47 + 3,
2792 .vtotal = 480 + 47 + 3 + 20,
2793 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2796 static const struct panel_desc logictechno_lttd800480070_l6wh_rt = {
2797 .modes = &logictechno_lttd800480070_l6wh_rt_mode,
2810 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2811 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2812 .connector_type = DRM_MODE_CONNECTOR_DPI,
2815 static const struct drm_display_mode logicpd_type_28_mode = {
2818 .hsync_start = 480 + 3,
2819 .hsync_end = 480 + 3 + 42,
2820 .htotal = 480 + 3 + 42 + 2,
2823 .vsync_start = 272 + 2,
2824 .vsync_end = 272 + 2 + 11,
2825 .vtotal = 272 + 2 + 11 + 3,
2826 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
2829 static const struct panel_desc logicpd_type_28 = {
2830 .modes = &logicpd_type_28_mode,
2843 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2844 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
2845 DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
2846 .connector_type = DRM_MODE_CONNECTOR_DPI,
2849 static const struct drm_display_mode mitsubishi_aa070mc01_mode = {
2852 .hsync_start = 800 + 0,
2853 .hsync_end = 800 + 1,
2854 .htotal = 800 + 0 + 1 + 160,
2856 .vsync_start = 480 + 0,
2857 .vsync_end = 480 + 48 + 1,
2858 .vtotal = 480 + 48 + 1 + 0,
2859 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2862 static const struct panel_desc mitsubishi_aa070mc01 = {
2863 .modes = &mitsubishi_aa070mc01_mode,
2876 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2877 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2878 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2881 static const struct drm_display_mode mitsubishi_aa084xe01_mode = {
2884 .hsync_start = 1024 + 24,
2885 .hsync_end = 1024 + 24 + 63,
2886 .htotal = 1024 + 24 + 63 + 1,
2888 .vsync_start = 768 + 3,
2889 .vsync_end = 768 + 3 + 6,
2890 .vtotal = 768 + 3 + 6 + 1,
2891 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
2894 static const struct panel_desc mitsubishi_aa084xe01 = {
2895 .modes = &mitsubishi_aa084xe01_mode,
2902 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
2903 .connector_type = DRM_MODE_CONNECTOR_DPI,
2904 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2907 static const struct display_timing multi_inno_mi0700s4t_6_timing = {
2908 .pixelclock = { 29000000, 33000000, 38000000 },
2909 .hactive = { 800, 800, 800 },
2910 .hfront_porch = { 180, 210, 240 },
2911 .hback_porch = { 16, 16, 16 },
2912 .hsync_len = { 30, 30, 30 },
2913 .vactive = { 480, 480, 480 },
2914 .vfront_porch = { 12, 22, 32 },
2915 .vback_porch = { 10, 10, 10 },
2916 .vsync_len = { 13, 13, 13 },
2917 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2918 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2919 DISPLAY_FLAGS_SYNC_POSEDGE,
2922 static const struct panel_desc multi_inno_mi0700s4t_6 = {
2923 .timings = &multi_inno_mi0700s4t_6_timing,
2930 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2931 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
2932 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2933 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
2934 .connector_type = DRM_MODE_CONNECTOR_DPI,
2937 static const struct display_timing multi_inno_mi0800ft_9_timing = {
2938 .pixelclock = { 32000000, 40000000, 50000000 },
2939 .hactive = { 800, 800, 800 },
2940 .hfront_porch = { 16, 210, 354 },
2941 .hback_porch = { 6, 26, 45 },
2942 .hsync_len = { 1, 20, 40 },
2943 .vactive = { 600, 600, 600 },
2944 .vfront_porch = { 1, 12, 77 },
2945 .vback_porch = { 3, 13, 22 },
2946 .vsync_len = { 1, 10, 20 },
2947 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2948 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2949 DISPLAY_FLAGS_SYNC_POSEDGE,
2952 static const struct panel_desc multi_inno_mi0800ft_9 = {
2953 .timings = &multi_inno_mi0800ft_9_timing,
2960 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2961 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
2962 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2963 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
2964 .connector_type = DRM_MODE_CONNECTOR_DPI,
2967 static const struct display_timing multi_inno_mi1010ait_1cp_timing = {
2968 .pixelclock = { 68900000, 70000000, 73400000 },
2969 .hactive = { 1280, 1280, 1280 },
2970 .hfront_porch = { 30, 60, 71 },
2971 .hback_porch = { 30, 60, 71 },
2972 .hsync_len = { 10, 10, 48 },
2973 .vactive = { 800, 800, 800 },
2974 .vfront_porch = { 5, 10, 10 },
2975 .vback_porch = { 5, 10, 10 },
2976 .vsync_len = { 5, 6, 13 },
2977 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2978 DISPLAY_FLAGS_DE_HIGH,
2981 static const struct panel_desc multi_inno_mi1010ait_1cp = {
2982 .timings = &multi_inno_mi1010ait_1cp_timing,
2993 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2994 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2995 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2998 static const struct display_timing nec_nl12880bc20_05_timing = {
2999 .pixelclock = { 67000000, 71000000, 75000000 },
3000 .hactive = { 1280, 1280, 1280 },
3001 .hfront_porch = { 2, 30, 30 },
3002 .hback_porch = { 6, 100, 100 },
3003 .hsync_len = { 2, 30, 30 },
3004 .vactive = { 800, 800, 800 },
3005 .vfront_porch = { 5, 5, 5 },
3006 .vback_porch = { 11, 11, 11 },
3007 .vsync_len = { 7, 7, 7 },
3010 static const struct panel_desc nec_nl12880bc20_05 = {
3011 .timings = &nec_nl12880bc20_05_timing,
3022 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3023 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3026 static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
3029 .hsync_start = 480 + 2,
3030 .hsync_end = 480 + 2 + 41,
3031 .htotal = 480 + 2 + 41 + 2,
3033 .vsync_start = 272 + 2,
3034 .vsync_end = 272 + 2 + 4,
3035 .vtotal = 272 + 2 + 4 + 2,
3036 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3039 static const struct panel_desc nec_nl4827hc19_05b = {
3040 .modes = &nec_nl4827hc19_05b_mode,
3047 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3048 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3051 static const struct drm_display_mode netron_dy_e231732_mode = {
3054 .hsync_start = 1024 + 160,
3055 .hsync_end = 1024 + 160 + 70,
3056 .htotal = 1024 + 160 + 70 + 90,
3058 .vsync_start = 600 + 127,
3059 .vsync_end = 600 + 127 + 20,
3060 .vtotal = 600 + 127 + 20 + 3,
3063 static const struct panel_desc netron_dy_e231732 = {
3064 .modes = &netron_dy_e231732_mode,
3070 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3073 static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = {
3076 .hsync_start = 480 + 2,
3077 .hsync_end = 480 + 2 + 41,
3078 .htotal = 480 + 2 + 41 + 2,
3080 .vsync_start = 272 + 2,
3081 .vsync_end = 272 + 2 + 10,
3082 .vtotal = 272 + 2 + 10 + 2,
3083 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3086 static const struct panel_desc newhaven_nhd_43_480272ef_atxl = {
3087 .modes = &newhaven_nhd_43_480272ef_atxl_mode,
3094 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3095 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3096 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3097 .connector_type = DRM_MODE_CONNECTOR_DPI,
3100 static const struct display_timing nlt_nl192108ac18_02d_timing = {
3101 .pixelclock = { 130000000, 148350000, 163000000 },
3102 .hactive = { 1920, 1920, 1920 },
3103 .hfront_porch = { 80, 100, 100 },
3104 .hback_porch = { 100, 120, 120 },
3105 .hsync_len = { 50, 60, 60 },
3106 .vactive = { 1080, 1080, 1080 },
3107 .vfront_porch = { 12, 30, 30 },
3108 .vback_porch = { 4, 10, 10 },
3109 .vsync_len = { 4, 5, 5 },
3112 static const struct panel_desc nlt_nl192108ac18_02d = {
3113 .timings = &nlt_nl192108ac18_02d_timing,
3123 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3124 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3127 static const struct drm_display_mode nvd_9128_mode = {
3130 .hsync_start = 800 + 130,
3131 .hsync_end = 800 + 130 + 98,
3132 .htotal = 800 + 0 + 130 + 98,
3134 .vsync_start = 480 + 10,
3135 .vsync_end = 480 + 10 + 50,
3136 .vtotal = 480 + 0 + 10 + 50,
3139 static const struct panel_desc nvd_9128 = {
3140 .modes = &nvd_9128_mode,
3147 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3148 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3151 static const struct display_timing okaya_rs800480t_7x0gp_timing = {
3152 .pixelclock = { 30000000, 30000000, 40000000 },
3153 .hactive = { 800, 800, 800 },
3154 .hfront_porch = { 40, 40, 40 },
3155 .hback_porch = { 40, 40, 40 },
3156 .hsync_len = { 1, 48, 48 },
3157 .vactive = { 480, 480, 480 },
3158 .vfront_porch = { 13, 13, 13 },
3159 .vback_porch = { 29, 29, 29 },
3160 .vsync_len = { 3, 3, 3 },
3161 .flags = DISPLAY_FLAGS_DE_HIGH,
3164 static const struct panel_desc okaya_rs800480t_7x0gp = {
3165 .timings = &okaya_rs800480t_7x0gp_timing,
3178 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3181 static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = {
3184 .hsync_start = 480 + 5,
3185 .hsync_end = 480 + 5 + 30,
3186 .htotal = 480 + 5 + 30 + 10,
3188 .vsync_start = 272 + 8,
3189 .vsync_end = 272 + 8 + 5,
3190 .vtotal = 272 + 8 + 5 + 3,
3193 static const struct panel_desc olimex_lcd_olinuxino_43ts = {
3194 .modes = &olimex_lcd_olinuxino_43ts_mode,
3200 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3204 * 800x480 CVT. The panel appears to be quite accepting, at least as far as
3205 * pixel clocks, but this is the timing that was being used in the Adafruit
3206 * installation instructions.
3208 static const struct drm_display_mode ontat_yx700wv03_mode = {
3218 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3223 * https://www.adafruit.com/images/product-files/2406/c3163.pdf
3225 static const struct panel_desc ontat_yx700wv03 = {
3226 .modes = &ontat_yx700wv03_mode,
3233 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3236 static const struct drm_display_mode ortustech_com37h3m_mode = {
3239 .hsync_start = 480 + 40,
3240 .hsync_end = 480 + 40 + 10,
3241 .htotal = 480 + 40 + 10 + 40,
3243 .vsync_start = 640 + 4,
3244 .vsync_end = 640 + 4 + 2,
3245 .vtotal = 640 + 4 + 2 + 4,
3246 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3249 static const struct panel_desc ortustech_com37h3m = {
3250 .modes = &ortustech_com37h3m_mode,
3254 .width = 56, /* 56.16mm */
3255 .height = 75, /* 74.88mm */
3257 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3258 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3259 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3262 static const struct drm_display_mode ortustech_com43h4m85ulc_mode = {
3265 .hsync_start = 480 + 10,
3266 .hsync_end = 480 + 10 + 10,
3267 .htotal = 480 + 10 + 10 + 15,
3269 .vsync_start = 800 + 3,
3270 .vsync_end = 800 + 3 + 3,
3271 .vtotal = 800 + 3 + 3 + 3,
3274 static const struct panel_desc ortustech_com43h4m85ulc = {
3275 .modes = &ortustech_com43h4m85ulc_mode,
3282 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3283 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3284 .connector_type = DRM_MODE_CONNECTOR_DPI,
3287 static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = {
3290 .hsync_start = 800 + 210,
3291 .hsync_end = 800 + 210 + 30,
3292 .htotal = 800 + 210 + 30 + 16,
3294 .vsync_start = 480 + 22,
3295 .vsync_end = 480 + 22 + 13,
3296 .vtotal = 480 + 22 + 13 + 10,
3297 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3300 static const struct panel_desc osddisplays_osd070t1718_19ts = {
3301 .modes = &osddisplays_osd070t1718_19ts_mode,
3308 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3309 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3310 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3311 .connector_type = DRM_MODE_CONNECTOR_DPI,
3314 static const struct drm_display_mode pda_91_00156_a0_mode = {
3317 .hsync_start = 800 + 1,
3318 .hsync_end = 800 + 1 + 64,
3319 .htotal = 800 + 1 + 64 + 64,
3321 .vsync_start = 480 + 1,
3322 .vsync_end = 480 + 1 + 23,
3323 .vtotal = 480 + 1 + 23 + 22,
3326 static const struct panel_desc pda_91_00156_a0 = {
3327 .modes = &pda_91_00156_a0_mode,
3333 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3336 static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
3339 .hsync_start = 800 + 54,
3340 .hsync_end = 800 + 54 + 2,
3341 .htotal = 800 + 54 + 2 + 44,
3343 .vsync_start = 480 + 49,
3344 .vsync_end = 480 + 49 + 2,
3345 .vtotal = 480 + 49 + 2 + 22,
3346 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3349 static const struct panel_desc powertip_ph800480t013_idf02 = {
3350 .modes = &powertip_ph800480t013_idf02_mode,
3357 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3358 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3359 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3360 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3361 .connector_type = DRM_MODE_CONNECTOR_DPI,
3364 static const struct drm_display_mode qd43003c0_40_mode = {
3367 .hsync_start = 480 + 8,
3368 .hsync_end = 480 + 8 + 4,
3369 .htotal = 480 + 8 + 4 + 39,
3371 .vsync_start = 272 + 4,
3372 .vsync_end = 272 + 4 + 10,
3373 .vtotal = 272 + 4 + 10 + 2,
3376 static const struct panel_desc qd43003c0_40 = {
3377 .modes = &qd43003c0_40_mode,
3384 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3387 static const struct drm_display_mode qishenglong_gopher2b_lcd_modes[] = {
3391 .hsync_start = 480 + 77,
3392 .hsync_end = 480 + 77 + 41,
3393 .htotal = 480 + 77 + 41 + 2,
3395 .vsync_start = 272 + 16,
3396 .vsync_end = 272 + 16 + 10,
3397 .vtotal = 272 + 16 + 10 + 2,
3398 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3403 .hsync_start = 480 + 17,
3404 .hsync_end = 480 + 17 + 41,
3405 .htotal = 480 + 17 + 41 + 2,
3407 .vsync_start = 272 + 116,
3408 .vsync_end = 272 + 116 + 10,
3409 .vtotal = 272 + 116 + 10 + 2,
3410 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3414 static const struct panel_desc qishenglong_gopher2b_lcd = {
3415 .modes = qishenglong_gopher2b_lcd_modes,
3416 .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_modes),
3422 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3423 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3424 .connector_type = DRM_MODE_CONNECTOR_DPI,
3427 static const struct display_timing rocktech_rk043fn48h_timing = {
3428 .pixelclock = { 6000000, 9000000, 12000000 },
3429 .hactive = { 480, 480, 480 },
3430 .hback_porch = { 8, 43, 43 },
3431 .hfront_porch = { 2, 8, 8 },
3432 .hsync_len = { 1, 1, 1 },
3433 .vactive = { 272, 272, 272 },
3434 .vback_porch = { 2, 12, 12 },
3435 .vfront_porch = { 1, 4, 4 },
3436 .vsync_len = { 1, 10, 10 },
3437 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
3438 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3441 static const struct panel_desc rocktech_rk043fn48h = {
3442 .timings = &rocktech_rk043fn48h_timing,
3449 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3450 .connector_type = DRM_MODE_CONNECTOR_DPI,
3453 static const struct display_timing rocktech_rk070er9427_timing = {
3454 .pixelclock = { 26400000, 33300000, 46800000 },
3455 .hactive = { 800, 800, 800 },
3456 .hfront_porch = { 16, 210, 354 },
3457 .hback_porch = { 46, 46, 46 },
3458 .hsync_len = { 1, 1, 1 },
3459 .vactive = { 480, 480, 480 },
3460 .vfront_porch = { 7, 22, 147 },
3461 .vback_porch = { 23, 23, 23 },
3462 .vsync_len = { 1, 1, 1 },
3463 .flags = DISPLAY_FLAGS_DE_HIGH,
3466 static const struct panel_desc rocktech_rk070er9427 = {
3467 .timings = &rocktech_rk070er9427_timing,
3480 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3483 static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = {
3486 .hsync_start = 1280 + 48,
3487 .hsync_end = 1280 + 48 + 32,
3488 .htotal = 1280 + 48 + 32 + 80,
3490 .vsync_start = 800 + 2,
3491 .vsync_end = 800 + 2 + 5,
3492 .vtotal = 800 + 2 + 5 + 16,
3495 static const struct panel_desc rocktech_rk101ii01d_ct = {
3496 .modes = &rocktech_rk101ii01d_ct_mode,
3507 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3508 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3509 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3512 static const struct display_timing samsung_ltl101al01_timing = {
3513 .pixelclock = { 66663000, 66663000, 66663000 },
3514 .hactive = { 1280, 1280, 1280 },
3515 .hfront_porch = { 18, 18, 18 },
3516 .hback_porch = { 36, 36, 36 },
3517 .hsync_len = { 16, 16, 16 },
3518 .vactive = { 800, 800, 800 },
3519 .vfront_porch = { 4, 4, 4 },
3520 .vback_porch = { 16, 16, 16 },
3521 .vsync_len = { 3, 3, 3 },
3522 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
3525 static const struct panel_desc samsung_ltl101al01 = {
3526 .timings = &samsung_ltl101al01_timing,
3539 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3540 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3543 static const struct drm_display_mode samsung_ltn101nt05_mode = {
3546 .hsync_start = 1024 + 24,
3547 .hsync_end = 1024 + 24 + 136,
3548 .htotal = 1024 + 24 + 136 + 160,
3550 .vsync_start = 600 + 3,
3551 .vsync_end = 600 + 3 + 6,
3552 .vtotal = 600 + 3 + 6 + 61,
3555 static const struct panel_desc samsung_ltn101nt05 = {
3556 .modes = &samsung_ltn101nt05_mode,
3563 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3564 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3565 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3568 static const struct display_timing satoz_sat050at40h12r2_timing = {
3569 .pixelclock = {33300000, 33300000, 50000000},
3570 .hactive = {800, 800, 800},
3571 .hfront_porch = {16, 210, 354},
3572 .hback_porch = {46, 46, 46},
3573 .hsync_len = {1, 1, 40},
3574 .vactive = {480, 480, 480},
3575 .vfront_porch = {7, 22, 147},
3576 .vback_porch = {23, 23, 23},
3577 .vsync_len = {1, 1, 20},
3580 static const struct panel_desc satoz_sat050at40h12r2 = {
3581 .timings = &satoz_sat050at40h12r2_timing,
3588 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3589 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3592 static const struct drm_display_mode sharp_lq070y3dg3b_mode = {
3595 .hsync_start = 800 + 64,
3596 .hsync_end = 800 + 64 + 128,
3597 .htotal = 800 + 64 + 128 + 64,
3599 .vsync_start = 480 + 8,
3600 .vsync_end = 480 + 8 + 2,
3601 .vtotal = 480 + 8 + 2 + 35,
3602 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3605 static const struct panel_desc sharp_lq070y3dg3b = {
3606 .modes = &sharp_lq070y3dg3b_mode,
3610 .width = 152, /* 152.4mm */
3611 .height = 91, /* 91.4mm */
3613 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3614 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3615 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3618 static const struct drm_display_mode sharp_lq035q7db03_mode = {
3621 .hsync_start = 240 + 16,
3622 .hsync_end = 240 + 16 + 7,
3623 .htotal = 240 + 16 + 7 + 5,
3625 .vsync_start = 320 + 9,
3626 .vsync_end = 320 + 9 + 1,
3627 .vtotal = 320 + 9 + 1 + 7,
3630 static const struct panel_desc sharp_lq035q7db03 = {
3631 .modes = &sharp_lq035q7db03_mode,
3638 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3641 static const struct display_timing sharp_lq101k1ly04_timing = {
3642 .pixelclock = { 60000000, 65000000, 80000000 },
3643 .hactive = { 1280, 1280, 1280 },
3644 .hfront_porch = { 20, 20, 20 },
3645 .hback_porch = { 20, 20, 20 },
3646 .hsync_len = { 10, 10, 10 },
3647 .vactive = { 800, 800, 800 },
3648 .vfront_porch = { 4, 4, 4 },
3649 .vback_porch = { 4, 4, 4 },
3650 .vsync_len = { 4, 4, 4 },
3651 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
3654 static const struct panel_desc sharp_lq101k1ly04 = {
3655 .timings = &sharp_lq101k1ly04_timing,
3662 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
3663 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3666 static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = {
3670 .hsync_start = 240 + 58,
3671 .hsync_end = 240 + 58 + 1,
3672 .htotal = 240 + 58 + 1 + 1,
3674 .vsync_start = 160 + 24,
3675 .vsync_end = 160 + 24 + 10,
3676 .vtotal = 160 + 24 + 10 + 6,
3677 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3682 .hsync_start = 240 + 8,
3683 .hsync_end = 240 + 8 + 1,
3684 .htotal = 240 + 8 + 1 + 1,
3686 .vsync_start = 160 + 24,
3687 .vsync_end = 160 + 24 + 10,
3688 .vtotal = 160 + 24 + 10 + 6,
3689 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
3693 static const struct panel_desc sharp_ls020b1dd01d = {
3694 .modes = sharp_ls020b1dd01d_modes,
3695 .num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes),
3701 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
3702 .bus_flags = DRM_BUS_FLAG_DE_HIGH
3703 | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE
3704 | DRM_BUS_FLAG_SHARP_SIGNALS,
3707 static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
3710 .hsync_start = 800 + 1,
3711 .hsync_end = 800 + 1 + 64,
3712 .htotal = 800 + 1 + 64 + 64,
3714 .vsync_start = 480 + 1,
3715 .vsync_end = 480 + 1 + 23,
3716 .vtotal = 480 + 1 + 23 + 22,
3719 static const struct panel_desc shelly_sca07010_bfn_lnn = {
3720 .modes = &shelly_sca07010_bfn_lnn_mode,
3726 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3729 static const struct drm_display_mode starry_kr070pe2t_mode = {
3732 .hsync_start = 800 + 209,
3733 .hsync_end = 800 + 209 + 1,
3734 .htotal = 800 + 209 + 1 + 45,
3736 .vsync_start = 480 + 22,
3737 .vsync_end = 480 + 22 + 1,
3738 .vtotal = 480 + 22 + 1 + 22,
3741 static const struct panel_desc starry_kr070pe2t = {
3742 .modes = &starry_kr070pe2t_mode,
3749 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3750 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
3751 .connector_type = DRM_MODE_CONNECTOR_DPI,
3754 static const struct display_timing startek_kd070wvfpa_mode = {
3755 .pixelclock = { 25200000, 27200000, 30500000 },
3756 .hactive = { 800, 800, 800 },
3757 .hfront_porch = { 19, 44, 115 },
3758 .hback_porch = { 5, 16, 101 },
3759 .hsync_len = { 1, 2, 100 },
3760 .vactive = { 480, 480, 480 },
3761 .vfront_porch = { 5, 43, 67 },
3762 .vback_porch = { 5, 5, 67 },
3763 .vsync_len = { 1, 2, 66 },
3764 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3765 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3766 DISPLAY_FLAGS_SYNC_POSEDGE,
3769 static const struct panel_desc startek_kd070wvfpa = {
3770 .timings = &startek_kd070wvfpa_mode,
3782 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3783 .connector_type = DRM_MODE_CONNECTOR_DPI,
3784 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3785 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3786 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3789 static const struct display_timing tsd_tst043015cmhx_timing = {
3790 .pixelclock = { 5000000, 9000000, 12000000 },
3791 .hactive = { 480, 480, 480 },
3792 .hfront_porch = { 4, 5, 65 },
3793 .hback_porch = { 36, 40, 255 },
3794 .hsync_len = { 1, 1, 1 },
3795 .vactive = { 272, 272, 272 },
3796 .vfront_porch = { 2, 8, 97 },
3797 .vback_porch = { 3, 8, 31 },
3798 .vsync_len = { 1, 1, 1 },
3800 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3801 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3804 static const struct panel_desc tsd_tst043015cmhx = {
3805 .timings = &tsd_tst043015cmhx_timing,
3812 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3813 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3816 static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = {
3819 .hsync_start = 800 + 39,
3820 .hsync_end = 800 + 39 + 47,
3821 .htotal = 800 + 39 + 47 + 39,
3823 .vsync_start = 480 + 13,
3824 .vsync_end = 480 + 13 + 2,
3825 .vtotal = 480 + 13 + 2 + 29,
3828 static const struct panel_desc tfc_s9700rtwv43tr_01b = {
3829 .modes = &tfc_s9700rtwv43tr_01b_mode,
3836 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3837 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3840 static const struct display_timing tianma_tm070jdhg30_timing = {
3841 .pixelclock = { 62600000, 68200000, 78100000 },
3842 .hactive = { 1280, 1280, 1280 },
3843 .hfront_porch = { 15, 64, 159 },
3844 .hback_porch = { 5, 5, 5 },
3845 .hsync_len = { 1, 1, 256 },
3846 .vactive = { 800, 800, 800 },
3847 .vfront_porch = { 3, 40, 99 },
3848 .vback_porch = { 2, 2, 2 },
3849 .vsync_len = { 1, 1, 128 },
3850 .flags = DISPLAY_FLAGS_DE_HIGH,
3853 static const struct panel_desc tianma_tm070jdhg30 = {
3854 .timings = &tianma_tm070jdhg30_timing,
3861 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3862 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3865 static const struct panel_desc tianma_tm070jvhg33 = {
3866 .timings = &tianma_tm070jdhg30_timing,
3873 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3874 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3877 static const struct display_timing tianma_tm070rvhg71_timing = {
3878 .pixelclock = { 27700000, 29200000, 39600000 },
3879 .hactive = { 800, 800, 800 },
3880 .hfront_porch = { 12, 40, 212 },
3881 .hback_porch = { 88, 88, 88 },
3882 .hsync_len = { 1, 1, 40 },
3883 .vactive = { 480, 480, 480 },
3884 .vfront_porch = { 1, 13, 88 },
3885 .vback_porch = { 32, 32, 32 },
3886 .vsync_len = { 1, 1, 3 },
3887 .flags = DISPLAY_FLAGS_DE_HIGH,
3890 static const struct panel_desc tianma_tm070rvhg71 = {
3891 .timings = &tianma_tm070rvhg71_timing,
3898 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3899 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3902 static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = {
3906 .hsync_start = 320 + 50,
3907 .hsync_end = 320 + 50 + 6,
3908 .htotal = 320 + 50 + 6 + 38,
3910 .vsync_start = 240 + 3,
3911 .vsync_end = 240 + 3 + 1,
3912 .vtotal = 240 + 3 + 1 + 17,
3913 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3917 static const struct panel_desc ti_nspire_cx_lcd_panel = {
3918 .modes = ti_nspire_cx_lcd_mode,
3925 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3926 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
3929 static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = {
3933 .hsync_start = 320 + 6,
3934 .hsync_end = 320 + 6 + 6,
3935 .htotal = 320 + 6 + 6 + 6,
3937 .vsync_start = 240 + 0,
3938 .vsync_end = 240 + 0 + 1,
3939 .vtotal = 240 + 0 + 1 + 0,
3940 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3944 static const struct panel_desc ti_nspire_classic_lcd_panel = {
3945 .modes = ti_nspire_classic_lcd_mode,
3947 /* The grayscale panel has 8 bit for the color .. Y (black) */
3953 /* This is the grayscale bus format */
3954 .bus_format = MEDIA_BUS_FMT_Y8_1X8,
3955 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3958 static const struct drm_display_mode toshiba_lt089ac29000_mode = {
3961 .hsync_start = 1280 + 192,
3962 .hsync_end = 1280 + 192 + 128,
3963 .htotal = 1280 + 192 + 128 + 64,
3965 .vsync_start = 768 + 20,
3966 .vsync_end = 768 + 20 + 7,
3967 .vtotal = 768 + 20 + 7 + 3,
3970 static const struct panel_desc toshiba_lt089ac29000 = {
3971 .modes = &toshiba_lt089ac29000_mode,
3977 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
3978 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3979 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3982 static const struct drm_display_mode tpk_f07a_0102_mode = {
3985 .hsync_start = 800 + 40,
3986 .hsync_end = 800 + 40 + 128,
3987 .htotal = 800 + 40 + 128 + 88,
3989 .vsync_start = 480 + 10,
3990 .vsync_end = 480 + 10 + 2,
3991 .vtotal = 480 + 10 + 2 + 33,
3994 static const struct panel_desc tpk_f07a_0102 = {
3995 .modes = &tpk_f07a_0102_mode,
4001 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
4004 static const struct drm_display_mode tpk_f10a_0102_mode = {
4007 .hsync_start = 1024 + 176,
4008 .hsync_end = 1024 + 176 + 5,
4009 .htotal = 1024 + 176 + 5 + 88,
4011 .vsync_start = 600 + 20,
4012 .vsync_end = 600 + 20 + 5,
4013 .vtotal = 600 + 20 + 5 + 25,
4016 static const struct panel_desc tpk_f10a_0102 = {
4017 .modes = &tpk_f10a_0102_mode,
4025 static const struct display_timing urt_umsh_8596md_timing = {
4026 .pixelclock = { 33260000, 33260000, 33260000 },
4027 .hactive = { 800, 800, 800 },
4028 .hfront_porch = { 41, 41, 41 },
4029 .hback_porch = { 216 - 128, 216 - 128, 216 - 128 },
4030 .hsync_len = { 71, 128, 128 },
4031 .vactive = { 480, 480, 480 },
4032 .vfront_porch = { 10, 10, 10 },
4033 .vback_porch = { 35 - 2, 35 - 2, 35 - 2 },
4034 .vsync_len = { 2, 2, 2 },
4035 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
4036 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
4039 static const struct panel_desc urt_umsh_8596md_lvds = {
4040 .timings = &urt_umsh_8596md_timing,
4047 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4048 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4051 static const struct panel_desc urt_umsh_8596md_parallel = {
4052 .timings = &urt_umsh_8596md_timing,
4059 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4062 static const struct drm_display_mode vivax_tpc9150_panel_mode = {
4065 .hsync_start = 1024 + 160,
4066 .hsync_end = 1024 + 160 + 100,
4067 .htotal = 1024 + 160 + 100 + 60,
4069 .vsync_start = 600 + 12,
4070 .vsync_end = 600 + 12 + 10,
4071 .vtotal = 600 + 12 + 10 + 13,
4074 static const struct panel_desc vivax_tpc9150_panel = {
4075 .modes = &vivax_tpc9150_panel_mode,
4082 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4083 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4084 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4087 static const struct drm_display_mode vl050_8048nt_c01_mode = {
4090 .hsync_start = 800 + 210,
4091 .hsync_end = 800 + 210 + 20,
4092 .htotal = 800 + 210 + 20 + 46,
4094 .vsync_start = 480 + 22,
4095 .vsync_end = 480 + 22 + 10,
4096 .vtotal = 480 + 22 + 10 + 23,
4097 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4100 static const struct panel_desc vl050_8048nt_c01 = {
4101 .modes = &vl050_8048nt_c01_mode,
4108 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4109 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4112 static const struct drm_display_mode winstar_wf35ltiacd_mode = {
4115 .hsync_start = 320 + 20,
4116 .hsync_end = 320 + 20 + 30,
4117 .htotal = 320 + 20 + 30 + 38,
4119 .vsync_start = 240 + 4,
4120 .vsync_end = 240 + 4 + 3,
4121 .vtotal = 240 + 4 + 3 + 15,
4122 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4125 static const struct panel_desc winstar_wf35ltiacd = {
4126 .modes = &winstar_wf35ltiacd_mode,
4133 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4136 static const struct drm_display_mode yes_optoelectronics_ytc700tlag_05_201c_mode = {
4139 .hsync_start = 1024 + 100,
4140 .hsync_end = 1024 + 100 + 100,
4141 .htotal = 1024 + 100 + 100 + 120,
4143 .vsync_start = 600 + 10,
4144 .vsync_end = 600 + 10 + 10,
4145 .vtotal = 600 + 10 + 10 + 15,
4146 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4149 static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = {
4150 .modes = &yes_optoelectronics_ytc700tlag_05_201c_mode,
4157 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4158 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4159 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4162 static const struct drm_display_mode arm_rtsm_mode[] = {
4166 .hsync_start = 1024 + 24,
4167 .hsync_end = 1024 + 24 + 136,
4168 .htotal = 1024 + 24 + 136 + 160,
4170 .vsync_start = 768 + 3,
4171 .vsync_end = 768 + 3 + 6,
4172 .vtotal = 768 + 3 + 6 + 29,
4173 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4177 static const struct panel_desc arm_rtsm = {
4178 .modes = arm_rtsm_mode,
4185 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4188 static const struct of_device_id platform_of_match[] = {
4190 .compatible = "ampire,am-1280800n3tzqw-t00h",
4191 .data = &ire_am_1280800n3tzqw_t00h,
4193 .compatible = "ampire,am-480272h3tmqw-t01h",
4194 .data = &ire_am_480272h3tmqw_t01h,
4196 .compatible = "ampire,am-800480l1tmqw-t00h",
4197 .data = &ire_am_800480l1tmqw_t00h,
4199 .compatible = "ampire,am800480r3tmqwa1h",
4200 .data = &ire_am800480r3tmqwa1h,
4202 .compatible = "ampire,am800600p5tmqw-tb8h",
4203 .data = &ire_am800600p5tmqwtb8h,
4205 .compatible = "arm,rtsm-display",
4208 .compatible = "armadeus,st0700-adapt",
4209 .data = &armadeus_st0700_adapt,
4211 .compatible = "auo,b101aw03",
4212 .data = &auo_b101aw03,
4214 .compatible = "auo,b101xtn01",
4215 .data = &auo_b101xtn01,
4217 .compatible = "auo,b116xw03",
4218 .data = &auo_b116xw03,
4220 .compatible = "auo,g070vvn01",
4221 .data = &auo_g070vvn01,
4223 .compatible = "auo,g101evn010",
4224 .data = &auo_g101evn010,
4226 .compatible = "auo,g104sn02",
4227 .data = &auo_g104sn02,
4229 .compatible = "auo,g121ean01",
4230 .data = &auo_g121ean01,
4232 .compatible = "auo,g133han01",
4233 .data = &auo_g133han01,
4235 .compatible = "auo,g156xtn01",
4236 .data = &auo_g156xtn01,
4238 .compatible = "auo,g185han01",
4239 .data = &auo_g185han01,
4241 .compatible = "auo,g190ean01",
4242 .data = &auo_g190ean01,
4244 .compatible = "auo,p320hvn03",
4245 .data = &auo_p320hvn03,
4247 .compatible = "auo,t215hvn01",
4248 .data = &auo_t215hvn01,
4250 .compatible = "avic,tm070ddh03",
4251 .data = &avic_tm070ddh03,
4253 .compatible = "bananapi,s070wv20-ct16",
4254 .data = &bananapi_s070wv20_ct16,
4256 .compatible = "boe,ev121wxm-n10-1850",
4257 .data = &boe_ev121wxm_n10_1850,
4259 .compatible = "boe,hv070wsa-100",
4260 .data = &boe_hv070wsa
4262 .compatible = "cdtech,s043wq26h-ct7",
4263 .data = &cdtech_s043wq26h_ct7,
4265 .compatible = "cdtech,s070pws19hp-fc21",
4266 .data = &cdtech_s070pws19hp_fc21,
4268 .compatible = "cdtech,s070swv29hg-dc44",
4269 .data = &cdtech_s070swv29hg_dc44,
4271 .compatible = "cdtech,s070wv95-ct16",
4272 .data = &cdtech_s070wv95_ct16,
4274 .compatible = "chefree,ch101olhlwh-002",
4275 .data = &chefree_ch101olhlwh_002,
4277 .compatible = "chunghwa,claa070wp03xg",
4278 .data = &chunghwa_claa070wp03xg,
4280 .compatible = "chunghwa,claa101wa01a",
4281 .data = &chunghwa_claa101wa01a
4283 .compatible = "chunghwa,claa101wb01",
4284 .data = &chunghwa_claa101wb01
4286 .compatible = "dataimage,fg040346dsswbg04",
4287 .data = &dataimage_fg040346dsswbg04,
4289 .compatible = "dataimage,fg1001l0dsswmg01",
4290 .data = &dataimage_fg1001l0dsswmg01,
4292 .compatible = "dataimage,scf0700c48ggu18",
4293 .data = &dataimage_scf0700c48ggu18,
4295 .compatible = "dlc,dlc0700yzg-1",
4296 .data = &dlc_dlc0700yzg_1,
4298 .compatible = "dlc,dlc1010gig",
4299 .data = &dlc_dlc1010gig,
4301 .compatible = "edt,et035012dm6",
4302 .data = &edt_et035012dm6,
4304 .compatible = "edt,etm0350g0dh6",
4305 .data = &edt_etm0350g0dh6,
4307 .compatible = "edt,etm043080dh6gp",
4308 .data = &edt_etm043080dh6gp,
4310 .compatible = "edt,etm0430g0dh6",
4311 .data = &edt_etm0430g0dh6,
4313 .compatible = "edt,et057090dhu",
4314 .data = &edt_et057090dhu,
4316 .compatible = "edt,et070080dh6",
4317 .data = &edt_etm0700g0dh6,
4319 .compatible = "edt,etm0700g0dh6",
4320 .data = &edt_etm0700g0dh6,
4322 .compatible = "edt,etm0700g0bdh6",
4323 .data = &edt_etm0700g0bdh6,
4325 .compatible = "edt,etm0700g0edh6",
4326 .data = &edt_etm0700g0bdh6,
4328 .compatible = "edt,etml0700y5dha",
4329 .data = &edt_etml0700y5dha,
4331 .compatible = "edt,etmv570g2dhu",
4332 .data = &edt_etmv570g2dhu,
4334 .compatible = "eink,vb3300-kca",
4335 .data = &eink_vb3300_kca,
4337 .compatible = "evervision,vgg804821",
4338 .data = &evervision_vgg804821,
4340 .compatible = "foxlink,fl500wvr00-a0t",
4341 .data = &foxlink_fl500wvr00_a0t,
4343 .compatible = "frida,frd350h54004",
4344 .data = &frida_frd350h54004,
4346 .compatible = "friendlyarm,hd702e",
4347 .data = &friendlyarm_hd702e,
4349 .compatible = "giantplus,gpg482739qs5",
4350 .data = &giantplus_gpg482739qs5
4352 .compatible = "giantplus,gpm940b0",
4353 .data = &giantplus_gpm940b0,
4355 .compatible = "hannstar,hsd070pww1",
4356 .data = &hannstar_hsd070pww1,
4358 .compatible = "hannstar,hsd100pxn1",
4359 .data = &hannstar_hsd100pxn1,
4361 .compatible = "hannstar,hsd101pww2",
4362 .data = &hannstar_hsd101pww2,
4364 .compatible = "hit,tx23d38vm0caa",
4365 .data = &hitachi_tx23d38vm0caa
4367 .compatible = "innolux,at043tn24",
4368 .data = &innolux_at043tn24,
4370 .compatible = "innolux,at070tn92",
4371 .data = &innolux_at070tn92,
4373 .compatible = "innolux,g070ace-l01",
4374 .data = &innolux_g070ace_l01,
4376 .compatible = "innolux,g070y2-l01",
4377 .data = &innolux_g070y2_l01,
4379 .compatible = "innolux,g070y2-t02",
4380 .data = &innolux_g070y2_t02,
4382 .compatible = "innolux,g101ice-l01",
4383 .data = &innolux_g101ice_l01
4385 .compatible = "innolux,g121i1-l01",
4386 .data = &innolux_g121i1_l01
4388 .compatible = "innolux,g121x1-l03",
4389 .data = &innolux_g121x1_l03,
4391 .compatible = "innolux,g156hce-l01",
4392 .data = &innolux_g156hce_l01,
4394 .compatible = "innolux,n156bge-l21",
4395 .data = &innolux_n156bge_l21,
4397 .compatible = "innolux,zj070na-01p",
4398 .data = &innolux_zj070na_01p,
4400 .compatible = "koe,tx14d24vm1bpa",
4401 .data = &koe_tx14d24vm1bpa,
4403 .compatible = "koe,tx26d202vm0bwa",
4404 .data = &koe_tx26d202vm0bwa,
4406 .compatible = "koe,tx31d200vm0baa",
4407 .data = &koe_tx31d200vm0baa,
4409 .compatible = "kyo,tcg121xglp",
4410 .data = &kyo_tcg121xglp,
4412 .compatible = "lemaker,bl035-rgb-002",
4413 .data = &lemaker_bl035_rgb_002,
4415 .compatible = "lg,lb070wv8",
4416 .data = &lg_lb070wv8,
4418 .compatible = "logicpd,type28",
4419 .data = &logicpd_type_28,
4421 .compatible = "logictechno,lt161010-2nhc",
4422 .data = &logictechno_lt161010_2nh,
4424 .compatible = "logictechno,lt161010-2nhr",
4425 .data = &logictechno_lt161010_2nh,
4427 .compatible = "logictechno,lt170410-2whc",
4428 .data = &logictechno_lt170410_2whc,
4430 .compatible = "logictechno,lttd800480070-l2rt",
4431 .data = &logictechno_lttd800480070_l2rt,
4433 .compatible = "logictechno,lttd800480070-l6wh-rt",
4434 .data = &logictechno_lttd800480070_l6wh_rt,
4436 .compatible = "mitsubishi,aa070mc01-ca1",
4437 .data = &mitsubishi_aa070mc01,
4439 .compatible = "mitsubishi,aa084xe01",
4440 .data = &mitsubishi_aa084xe01,
4442 .compatible = "multi-inno,mi0700s4t-6",
4443 .data = &multi_inno_mi0700s4t_6,
4445 .compatible = "multi-inno,mi0800ft-9",
4446 .data = &multi_inno_mi0800ft_9,
4448 .compatible = "multi-inno,mi1010ait-1cp",
4449 .data = &multi_inno_mi1010ait_1cp,
4451 .compatible = "nec,nl12880bc20-05",
4452 .data = &nec_nl12880bc20_05,
4454 .compatible = "nec,nl4827hc19-05b",
4455 .data = &nec_nl4827hc19_05b,
4457 .compatible = "netron-dy,e231732",
4458 .data = &netron_dy_e231732,
4460 .compatible = "newhaven,nhd-4.3-480272ef-atxl",
4461 .data = &newhaven_nhd_43_480272ef_atxl,
4463 .compatible = "nlt,nl192108ac18-02d",
4464 .data = &nlt_nl192108ac18_02d,
4466 .compatible = "nvd,9128",
4469 .compatible = "okaya,rs800480t-7x0gp",
4470 .data = &okaya_rs800480t_7x0gp,
4472 .compatible = "olimex,lcd-olinuxino-43-ts",
4473 .data = &olimex_lcd_olinuxino_43ts,
4475 .compatible = "ontat,yx700wv03",
4476 .data = &ontat_yx700wv03,
4478 .compatible = "ortustech,com37h3m05dtc",
4479 .data = &ortustech_com37h3m,
4481 .compatible = "ortustech,com37h3m99dtc",
4482 .data = &ortustech_com37h3m,
4484 .compatible = "ortustech,com43h4m85ulc",
4485 .data = &ortustech_com43h4m85ulc,
4487 .compatible = "osddisplays,osd070t1718-19ts",
4488 .data = &osddisplays_osd070t1718_19ts,
4490 .compatible = "pda,91-00156-a0",
4491 .data = &pda_91_00156_a0,
4493 .compatible = "powertip,ph800480t013-idf02",
4494 .data = &powertip_ph800480t013_idf02,
4496 .compatible = "qiaodian,qd43003c0-40",
4497 .data = &qd43003c0_40,
4499 .compatible = "qishenglong,gopher2b-lcd",
4500 .data = &qishenglong_gopher2b_lcd,
4502 .compatible = "rocktech,rk043fn48h",
4503 .data = &rocktech_rk043fn48h,
4505 .compatible = "rocktech,rk070er9427",
4506 .data = &rocktech_rk070er9427,
4508 .compatible = "rocktech,rk101ii01d-ct",
4509 .data = &rocktech_rk101ii01d_ct,
4511 .compatible = "samsung,ltl101al01",
4512 .data = &samsung_ltl101al01,
4514 .compatible = "samsung,ltn101nt05",
4515 .data = &samsung_ltn101nt05,
4517 .compatible = "satoz,sat050at40h12r2",
4518 .data = &satoz_sat050at40h12r2,
4520 .compatible = "sharp,lq035q7db03",
4521 .data = &sharp_lq035q7db03,
4523 .compatible = "sharp,lq070y3dg3b",
4524 .data = &sharp_lq070y3dg3b,
4526 .compatible = "sharp,lq101k1ly04",
4527 .data = &sharp_lq101k1ly04,
4529 .compatible = "sharp,ls020b1dd01d",
4530 .data = &sharp_ls020b1dd01d,
4532 .compatible = "shelly,sca07010-bfn-lnn",
4533 .data = &shelly_sca07010_bfn_lnn,
4535 .compatible = "starry,kr070pe2t",
4536 .data = &starry_kr070pe2t,
4538 .compatible = "startek,kd070wvfpa",
4539 .data = &startek_kd070wvfpa,
4541 .compatible = "team-source-display,tst043015cmhx",
4542 .data = &tsd_tst043015cmhx,
4544 .compatible = "tfc,s9700rtwv43tr-01b",
4545 .data = &tfc_s9700rtwv43tr_01b,
4547 .compatible = "tianma,tm070jdhg30",
4548 .data = &tianma_tm070jdhg30,
4550 .compatible = "tianma,tm070jvhg33",
4551 .data = &tianma_tm070jvhg33,
4553 .compatible = "tianma,tm070rvhg71",
4554 .data = &tianma_tm070rvhg71,
4556 .compatible = "ti,nspire-cx-lcd-panel",
4557 .data = &ti_nspire_cx_lcd_panel,
4559 .compatible = "ti,nspire-classic-lcd-panel",
4560 .data = &ti_nspire_classic_lcd_panel,
4562 .compatible = "toshiba,lt089ac29000",
4563 .data = &toshiba_lt089ac29000,
4565 .compatible = "tpk,f07a-0102",
4566 .data = &tpk_f07a_0102,
4568 .compatible = "tpk,f10a-0102",
4569 .data = &tpk_f10a_0102,
4571 .compatible = "urt,umsh-8596md-t",
4572 .data = &urt_umsh_8596md_parallel,
4574 .compatible = "urt,umsh-8596md-1t",
4575 .data = &urt_umsh_8596md_parallel,
4577 .compatible = "urt,umsh-8596md-7t",
4578 .data = &urt_umsh_8596md_parallel,
4580 .compatible = "urt,umsh-8596md-11t",
4581 .data = &urt_umsh_8596md_lvds,
4583 .compatible = "urt,umsh-8596md-19t",
4584 .data = &urt_umsh_8596md_lvds,
4586 .compatible = "urt,umsh-8596md-20t",
4587 .data = &urt_umsh_8596md_parallel,
4589 .compatible = "vivax,tpc9150-panel",
4590 .data = &vivax_tpc9150_panel,
4592 .compatible = "vxt,vl050-8048nt-c01",
4593 .data = &vl050_8048nt_c01,
4595 .compatible = "winstar,wf35ltiacd",
4596 .data = &winstar_wf35ltiacd,
4598 .compatible = "yes-optoelectronics,ytc700tlag-05-201c",
4599 .data = &yes_optoelectronics_ytc700tlag_05_201c,
4601 /* Must be the last entry */
4602 .compatible = "panel-dpi",
4608 MODULE_DEVICE_TABLE(of, platform_of_match);
4610 static int panel_simple_platform_probe(struct platform_device *pdev)
4612 const struct panel_desc *desc;
4614 desc = of_device_get_match_data(&pdev->dev);
4618 return panel_simple_probe(&pdev->dev, desc);
4621 static void panel_simple_platform_remove(struct platform_device *pdev)
4623 panel_simple_remove(&pdev->dev);
4626 static void panel_simple_platform_shutdown(struct platform_device *pdev)
4628 panel_simple_shutdown(&pdev->dev);
4631 static const struct dev_pm_ops panel_simple_pm_ops = {
4632 SET_RUNTIME_PM_OPS(panel_simple_suspend, panel_simple_resume, NULL)
4633 SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
4634 pm_runtime_force_resume)
4637 static struct platform_driver panel_simple_platform_driver = {
4639 .name = "panel-simple",
4640 .of_match_table = platform_of_match,
4641 .pm = &panel_simple_pm_ops,
4643 .probe = panel_simple_platform_probe,
4644 .remove_new = panel_simple_platform_remove,
4645 .shutdown = panel_simple_platform_shutdown,
4648 struct panel_desc_dsi {
4649 struct panel_desc desc;
4651 unsigned long flags;
4652 enum mipi_dsi_pixel_format format;
4656 static const struct drm_display_mode auo_b080uan01_mode = {
4659 .hsync_start = 1200 + 62,
4660 .hsync_end = 1200 + 62 + 4,
4661 .htotal = 1200 + 62 + 4 + 62,
4663 .vsync_start = 1920 + 9,
4664 .vsync_end = 1920 + 9 + 2,
4665 .vtotal = 1920 + 9 + 2 + 8,
4668 static const struct panel_desc_dsi auo_b080uan01 = {
4670 .modes = &auo_b080uan01_mode,
4677 .connector_type = DRM_MODE_CONNECTOR_DSI,
4679 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4680 .format = MIPI_DSI_FMT_RGB888,
4684 static const struct drm_display_mode boe_tv080wum_nl0_mode = {
4687 .hsync_start = 1200 + 120,
4688 .hsync_end = 1200 + 120 + 20,
4689 .htotal = 1200 + 120 + 20 + 21,
4691 .vsync_start = 1920 + 21,
4692 .vsync_end = 1920 + 21 + 3,
4693 .vtotal = 1920 + 21 + 3 + 18,
4694 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4697 static const struct panel_desc_dsi boe_tv080wum_nl0 = {
4699 .modes = &boe_tv080wum_nl0_mode,
4705 .connector_type = DRM_MODE_CONNECTOR_DSI,
4707 .flags = MIPI_DSI_MODE_VIDEO |
4708 MIPI_DSI_MODE_VIDEO_BURST |
4709 MIPI_DSI_MODE_VIDEO_SYNC_PULSE,
4710 .format = MIPI_DSI_FMT_RGB888,
4714 static const struct drm_display_mode lg_ld070wx3_sl01_mode = {
4717 .hsync_start = 800 + 32,
4718 .hsync_end = 800 + 32 + 1,
4719 .htotal = 800 + 32 + 1 + 57,
4721 .vsync_start = 1280 + 28,
4722 .vsync_end = 1280 + 28 + 1,
4723 .vtotal = 1280 + 28 + 1 + 14,
4726 static const struct panel_desc_dsi lg_ld070wx3_sl01 = {
4728 .modes = &lg_ld070wx3_sl01_mode,
4735 .connector_type = DRM_MODE_CONNECTOR_DSI,
4737 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
4738 .format = MIPI_DSI_FMT_RGB888,
4742 static const struct drm_display_mode lg_lh500wx1_sd03_mode = {
4745 .hsync_start = 720 + 12,
4746 .hsync_end = 720 + 12 + 4,
4747 .htotal = 720 + 12 + 4 + 112,
4749 .vsync_start = 1280 + 8,
4750 .vsync_end = 1280 + 8 + 4,
4751 .vtotal = 1280 + 8 + 4 + 12,
4754 static const struct panel_desc_dsi lg_lh500wx1_sd03 = {
4756 .modes = &lg_lh500wx1_sd03_mode,
4763 .connector_type = DRM_MODE_CONNECTOR_DSI,
4765 .flags = MIPI_DSI_MODE_VIDEO,
4766 .format = MIPI_DSI_FMT_RGB888,
4770 static const struct drm_display_mode panasonic_vvx10f004b00_mode = {
4773 .hsync_start = 1920 + 154,
4774 .hsync_end = 1920 + 154 + 16,
4775 .htotal = 1920 + 154 + 16 + 32,
4777 .vsync_start = 1200 + 17,
4778 .vsync_end = 1200 + 17 + 2,
4779 .vtotal = 1200 + 17 + 2 + 16,
4782 static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
4784 .modes = &panasonic_vvx10f004b00_mode,
4791 .connector_type = DRM_MODE_CONNECTOR_DSI,
4793 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
4794 MIPI_DSI_CLOCK_NON_CONTINUOUS,
4795 .format = MIPI_DSI_FMT_RGB888,
4799 static const struct drm_display_mode lg_acx467akm_7_mode = {
4802 .hsync_start = 1080 + 2,
4803 .hsync_end = 1080 + 2 + 2,
4804 .htotal = 1080 + 2 + 2 + 2,
4806 .vsync_start = 1920 + 2,
4807 .vsync_end = 1920 + 2 + 2,
4808 .vtotal = 1920 + 2 + 2 + 2,
4811 static const struct panel_desc_dsi lg_acx467akm_7 = {
4813 .modes = &lg_acx467akm_7_mode,
4820 .connector_type = DRM_MODE_CONNECTOR_DSI,
4823 .format = MIPI_DSI_FMT_RGB888,
4827 static const struct drm_display_mode osd101t2045_53ts_mode = {
4830 .hsync_start = 1920 + 112,
4831 .hsync_end = 1920 + 112 + 16,
4832 .htotal = 1920 + 112 + 16 + 32,
4834 .vsync_start = 1200 + 16,
4835 .vsync_end = 1200 + 16 + 2,
4836 .vtotal = 1200 + 16 + 2 + 16,
4837 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4840 static const struct panel_desc_dsi osd101t2045_53ts = {
4842 .modes = &osd101t2045_53ts_mode,
4849 .connector_type = DRM_MODE_CONNECTOR_DSI,
4851 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
4852 MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
4853 MIPI_DSI_MODE_NO_EOT_PACKET,
4854 .format = MIPI_DSI_FMT_RGB888,
4858 static const struct of_device_id dsi_of_match[] = {
4860 .compatible = "auo,b080uan01",
4861 .data = &auo_b080uan01
4863 .compatible = "boe,tv080wum-nl0",
4864 .data = &boe_tv080wum_nl0
4866 .compatible = "lg,ld070wx3-sl01",
4867 .data = &lg_ld070wx3_sl01
4869 .compatible = "lg,lh500wx1-sd03",
4870 .data = &lg_lh500wx1_sd03
4872 .compatible = "panasonic,vvx10f004b00",
4873 .data = &panasonic_vvx10f004b00
4875 .compatible = "lg,acx467akm-7",
4876 .data = &lg_acx467akm_7
4878 .compatible = "osddisplays,osd101t2045-53ts",
4879 .data = &osd101t2045_53ts
4884 MODULE_DEVICE_TABLE(of, dsi_of_match);
4886 static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
4888 const struct panel_desc_dsi *desc;
4891 desc = of_device_get_match_data(&dsi->dev);
4895 err = panel_simple_probe(&dsi->dev, &desc->desc);
4899 dsi->mode_flags = desc->flags;
4900 dsi->format = desc->format;
4901 dsi->lanes = desc->lanes;
4903 err = mipi_dsi_attach(dsi);
4905 struct panel_simple *panel = mipi_dsi_get_drvdata(dsi);
4907 drm_panel_remove(&panel->base);
4913 static void panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
4917 err = mipi_dsi_detach(dsi);
4919 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err);
4921 panel_simple_remove(&dsi->dev);
4924 static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi)
4926 panel_simple_shutdown(&dsi->dev);
4929 static struct mipi_dsi_driver panel_simple_dsi_driver = {
4931 .name = "panel-simple-dsi",
4932 .of_match_table = dsi_of_match,
4933 .pm = &panel_simple_pm_ops,
4935 .probe = panel_simple_dsi_probe,
4936 .remove = panel_simple_dsi_remove,
4937 .shutdown = panel_simple_dsi_shutdown,
4940 static int __init panel_simple_init(void)
4944 err = platform_driver_register(&panel_simple_platform_driver);
4948 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
4949 err = mipi_dsi_driver_register(&panel_simple_dsi_driver);
4951 goto err_did_platform_register;
4956 err_did_platform_register:
4957 platform_driver_unregister(&panel_simple_platform_driver);
4961 module_init(panel_simple_init);
4963 static void __exit panel_simple_exit(void)
4965 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI))
4966 mipi_dsi_driver_unregister(&panel_simple_dsi_driver);
4968 platform_driver_unregister(&panel_simple_platform_driver);
4970 module_exit(panel_simple_exit);
4973 MODULE_DESCRIPTION("DRM Driver for Simple Panels");
4974 MODULE_LICENSE("GPL and additional rights");