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;
142 ktime_t unprepared_time;
144 const struct panel_desc *desc;
146 struct regulator *supply;
147 struct i2c_adapter *ddc;
149 struct gpio_desc *enable_gpio;
151 const struct drm_edid *drm_edid;
153 struct drm_display_mode override_mode;
155 enum drm_panel_orientation orientation;
158 static inline struct panel_simple *to_panel_simple(struct drm_panel *panel)
160 return container_of(panel, struct panel_simple, base);
163 static unsigned int panel_simple_get_timings_modes(struct panel_simple *panel,
164 struct drm_connector *connector)
166 struct drm_display_mode *mode;
167 unsigned int i, num = 0;
169 for (i = 0; i < panel->desc->num_timings; i++) {
170 const struct display_timing *dt = &panel->desc->timings[i];
173 videomode_from_timing(dt, &vm);
174 mode = drm_mode_create(connector->dev);
176 dev_err(panel->base.dev, "failed to add mode %ux%u\n",
177 dt->hactive.typ, dt->vactive.typ);
181 drm_display_mode_from_videomode(&vm, mode);
183 mode->type |= DRM_MODE_TYPE_DRIVER;
185 if (panel->desc->num_timings == 1)
186 mode->type |= DRM_MODE_TYPE_PREFERRED;
188 drm_mode_probed_add(connector, mode);
195 static unsigned int panel_simple_get_display_modes(struct panel_simple *panel,
196 struct drm_connector *connector)
198 struct drm_display_mode *mode;
199 unsigned int i, num = 0;
201 for (i = 0; i < panel->desc->num_modes; i++) {
202 const struct drm_display_mode *m = &panel->desc->modes[i];
204 mode = drm_mode_duplicate(connector->dev, m);
206 dev_err(panel->base.dev, "failed to add mode %ux%u@%u\n",
207 m->hdisplay, m->vdisplay,
208 drm_mode_vrefresh(m));
212 mode->type |= DRM_MODE_TYPE_DRIVER;
214 if (panel->desc->num_modes == 1)
215 mode->type |= DRM_MODE_TYPE_PREFERRED;
217 drm_mode_set_name(mode);
219 drm_mode_probed_add(connector, mode);
226 static int panel_simple_get_non_edid_modes(struct panel_simple *panel,
227 struct drm_connector *connector)
229 struct drm_display_mode *mode;
230 bool has_override = panel->override_mode.type;
231 unsigned int num = 0;
237 mode = drm_mode_duplicate(connector->dev,
238 &panel->override_mode);
240 drm_mode_probed_add(connector, mode);
243 dev_err(panel->base.dev, "failed to add override mode\n");
247 /* Only add timings if override was not there or failed to validate */
248 if (num == 0 && panel->desc->num_timings)
249 num = panel_simple_get_timings_modes(panel, connector);
252 * Only add fixed modes if timings/override added no mode.
254 * We should only ever have either the display timings specified
255 * or a fixed mode. Anything else is rather bogus.
257 WARN_ON(panel->desc->num_timings && panel->desc->num_modes);
259 num = panel_simple_get_display_modes(panel, connector);
261 connector->display_info.bpc = panel->desc->bpc;
262 connector->display_info.width_mm = panel->desc->size.width;
263 connector->display_info.height_mm = panel->desc->size.height;
264 if (panel->desc->bus_format)
265 drm_display_info_set_bus_formats(&connector->display_info,
266 &panel->desc->bus_format, 1);
267 connector->display_info.bus_flags = panel->desc->bus_flags;
272 static void panel_simple_wait(ktime_t start_ktime, unsigned int min_ms)
274 ktime_t now_ktime, min_ktime;
279 min_ktime = ktime_add(start_ktime, ms_to_ktime(min_ms));
280 now_ktime = ktime_get_boottime();
282 if (ktime_before(now_ktime, min_ktime))
283 msleep(ktime_to_ms(ktime_sub(min_ktime, now_ktime)) + 1);
286 static int panel_simple_disable(struct drm_panel *panel)
288 struct panel_simple *p = to_panel_simple(panel);
290 if (p->desc->delay.disable)
291 msleep(p->desc->delay.disable);
296 static int panel_simple_suspend(struct device *dev)
298 struct panel_simple *p = dev_get_drvdata(dev);
300 gpiod_set_value_cansleep(p->enable_gpio, 0);
301 regulator_disable(p->supply);
302 p->unprepared_time = ktime_get_boottime();
304 drm_edid_free(p->drm_edid);
310 static int panel_simple_unprepare(struct drm_panel *panel)
314 pm_runtime_mark_last_busy(panel->dev);
315 ret = pm_runtime_put_autosuspend(panel->dev);
322 static int panel_simple_resume(struct device *dev)
324 struct panel_simple *p = dev_get_drvdata(dev);
327 panel_simple_wait(p->unprepared_time, p->desc->delay.unprepare);
329 err = regulator_enable(p->supply);
331 dev_err(dev, "failed to enable supply: %d\n", err);
335 gpiod_set_value_cansleep(p->enable_gpio, 1);
337 if (p->desc->delay.prepare)
338 msleep(p->desc->delay.prepare);
343 static int panel_simple_prepare(struct drm_panel *panel)
347 ret = pm_runtime_get_sync(panel->dev);
349 pm_runtime_put_autosuspend(panel->dev);
356 static int panel_simple_enable(struct drm_panel *panel)
358 struct panel_simple *p = to_panel_simple(panel);
360 if (p->desc->delay.enable)
361 msleep(p->desc->delay.enable);
366 static int panel_simple_get_modes(struct drm_panel *panel,
367 struct drm_connector *connector)
369 struct panel_simple *p = to_panel_simple(panel);
372 /* probe EDID if a DDC bus is available */
374 pm_runtime_get_sync(panel->dev);
377 p->drm_edid = drm_edid_read_ddc(connector, p->ddc);
379 drm_edid_connector_update(connector, p->drm_edid);
381 num += drm_edid_connector_add_modes(connector);
383 pm_runtime_mark_last_busy(panel->dev);
384 pm_runtime_put_autosuspend(panel->dev);
387 /* add hard-coded panel modes */
388 num += panel_simple_get_non_edid_modes(p, connector);
391 * TODO: Remove once all drm drivers call
392 * drm_connector_set_orientation_from_panel()
394 drm_connector_set_panel_orientation(connector, p->orientation);
399 static int panel_simple_get_timings(struct drm_panel *panel,
400 unsigned int num_timings,
401 struct display_timing *timings)
403 struct panel_simple *p = to_panel_simple(panel);
406 if (p->desc->num_timings < num_timings)
407 num_timings = p->desc->num_timings;
410 for (i = 0; i < num_timings; i++)
411 timings[i] = p->desc->timings[i];
413 return p->desc->num_timings;
416 static enum drm_panel_orientation panel_simple_get_orientation(struct drm_panel *panel)
418 struct panel_simple *p = to_panel_simple(panel);
420 return p->orientation;
423 static const struct drm_panel_funcs panel_simple_funcs = {
424 .disable = panel_simple_disable,
425 .unprepare = panel_simple_unprepare,
426 .prepare = panel_simple_prepare,
427 .enable = panel_simple_enable,
428 .get_modes = panel_simple_get_modes,
429 .get_orientation = panel_simple_get_orientation,
430 .get_timings = panel_simple_get_timings,
433 static struct panel_desc panel_dpi;
435 static int panel_dpi_probe(struct device *dev,
436 struct panel_simple *panel)
438 struct display_timing *timing;
439 const struct device_node *np;
440 struct panel_desc *desc;
441 unsigned int bus_flags;
446 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL);
450 timing = devm_kzalloc(dev, sizeof(*timing), GFP_KERNEL);
454 ret = of_get_display_timing(np, "panel-timing", timing);
456 dev_err(dev, "%pOF: no panel-timing node found for \"panel-dpi\" binding\n",
461 desc->timings = timing;
462 desc->num_timings = 1;
464 of_property_read_u32(np, "width-mm", &desc->size.width);
465 of_property_read_u32(np, "height-mm", &desc->size.height);
467 /* Extract bus_flags from display_timing */
469 vm.flags = timing->flags;
470 drm_bus_flags_from_videomode(&vm, &bus_flags);
471 desc->bus_flags = bus_flags;
473 /* We do not know the connector for the DT node, so guess it */
474 desc->connector_type = DRM_MODE_CONNECTOR_DPI;
481 #define PANEL_SIMPLE_BOUNDS_CHECK(to_check, bounds, field) \
482 (to_check->field.typ >= bounds->field.min && \
483 to_check->field.typ <= bounds->field.max)
484 static void panel_simple_parse_panel_timing_node(struct device *dev,
485 struct panel_simple *panel,
486 const struct display_timing *ot)
488 const struct panel_desc *desc = panel->desc;
492 if (WARN_ON(desc->num_modes)) {
493 dev_err(dev, "Reject override mode: panel has a fixed mode\n");
496 if (WARN_ON(!desc->num_timings)) {
497 dev_err(dev, "Reject override mode: no timings specified\n");
501 for (i = 0; i < panel->desc->num_timings; i++) {
502 const struct display_timing *dt = &panel->desc->timings[i];
504 if (!PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hactive) ||
505 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hfront_porch) ||
506 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hback_porch) ||
507 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hsync_len) ||
508 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vactive) ||
509 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vfront_porch) ||
510 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vback_porch) ||
511 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vsync_len))
514 if (ot->flags != dt->flags)
517 videomode_from_timing(ot, &vm);
518 drm_display_mode_from_videomode(&vm, &panel->override_mode);
519 panel->override_mode.type |= DRM_MODE_TYPE_DRIVER |
520 DRM_MODE_TYPE_PREFERRED;
524 if (WARN_ON(!panel->override_mode.type))
525 dev_err(dev, "Reject override mode: No display_timing found\n");
528 static int panel_simple_override_nondefault_lvds_datamapping(struct device *dev,
529 struct panel_simple *panel)
533 ret = drm_of_lvds_get_data_mapping(dev->of_node);
536 dev_warn(dev, "Ignore invalid data-mapping property\n");
539 * Ignore non-existing or malformatted property, fallback to
540 * default data-mapping, and return 0.
549 case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
551 case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
554 case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG:
558 if (panel->desc->bpc != bpc || panel->desc->bus_format != ret) {
559 struct panel_desc *override_desc;
561 override_desc = devm_kmemdup(dev, panel->desc, sizeof(*panel->desc), GFP_KERNEL);
565 override_desc->bus_format = ret;
566 override_desc->bpc = bpc;
567 panel->desc = override_desc;
573 static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
575 struct panel_simple *panel;
576 struct display_timing dt;
577 struct device_node *ddc;
582 panel = devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL);
588 panel->supply = devm_regulator_get(dev, "power");
589 if (IS_ERR(panel->supply))
590 return PTR_ERR(panel->supply);
592 panel->enable_gpio = devm_gpiod_get_optional(dev, "enable",
594 if (IS_ERR(panel->enable_gpio))
595 return dev_err_probe(dev, PTR_ERR(panel->enable_gpio),
596 "failed to request GPIO\n");
598 err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
600 dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
604 ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
606 panel->ddc = of_find_i2c_adapter_by_node(ddc);
610 return -EPROBE_DEFER;
613 if (desc == &panel_dpi) {
614 /* Handle the generic panel-dpi binding */
615 err = panel_dpi_probe(dev, panel);
620 if (!of_get_display_timing(dev->of_node, "panel-timing", &dt))
621 panel_simple_parse_panel_timing_node(dev, panel, &dt);
624 if (desc->connector_type == DRM_MODE_CONNECTOR_LVDS) {
625 /* Optional data-mapping property for overriding bus format */
626 err = panel_simple_override_nondefault_lvds_datamapping(dev, panel);
631 connector_type = desc->connector_type;
632 /* Catch common mistakes for panels. */
633 switch (connector_type) {
635 dev_warn(dev, "Specify missing connector_type\n");
636 connector_type = DRM_MODE_CONNECTOR_DPI;
638 case DRM_MODE_CONNECTOR_LVDS:
639 WARN_ON(desc->bus_flags &
640 ~(DRM_BUS_FLAG_DE_LOW |
641 DRM_BUS_FLAG_DE_HIGH |
642 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
643 DRM_BUS_FLAG_DATA_LSB_TO_MSB));
644 WARN_ON(desc->bus_format != MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
645 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_SPWG &&
646 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA);
647 WARN_ON(desc->bus_format == MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
649 WARN_ON((desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG ||
650 desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA) &&
653 case DRM_MODE_CONNECTOR_eDP:
654 dev_warn(dev, "eDP panels moved to panel-edp\n");
657 case DRM_MODE_CONNECTOR_DSI:
658 if (desc->bpc != 6 && desc->bpc != 8)
659 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
661 case DRM_MODE_CONNECTOR_DPI:
662 bus_flags = DRM_BUS_FLAG_DE_LOW |
663 DRM_BUS_FLAG_DE_HIGH |
664 DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE |
665 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
666 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
667 DRM_BUS_FLAG_DATA_LSB_TO_MSB |
668 DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE |
669 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE;
670 if (desc->bus_flags & ~bus_flags)
671 dev_warn(dev, "Unexpected bus_flags(%d)\n", desc->bus_flags & ~bus_flags);
672 if (!(desc->bus_flags & bus_flags))
673 dev_warn(dev, "Specify missing bus_flags\n");
674 if (desc->bus_format == 0)
675 dev_warn(dev, "Specify missing bus_format\n");
676 if (desc->bpc != 6 && desc->bpc != 8)
677 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
680 dev_warn(dev, "Specify a valid connector_type: %d\n", desc->connector_type);
681 connector_type = DRM_MODE_CONNECTOR_DPI;
685 dev_set_drvdata(dev, panel);
688 * We use runtime PM for prepare / unprepare since those power the panel
689 * on and off and those can be very slow operations. This is important
690 * to optimize powering the panel on briefly to read the EDID before
691 * fully enabling the panel.
693 pm_runtime_enable(dev);
694 pm_runtime_set_autosuspend_delay(dev, 1000);
695 pm_runtime_use_autosuspend(dev);
697 drm_panel_init(&panel->base, dev, &panel_simple_funcs, connector_type);
699 err = drm_panel_of_backlight(&panel->base);
701 dev_err_probe(dev, err, "Could not find backlight\n");
702 goto disable_pm_runtime;
705 drm_panel_add(&panel->base);
710 pm_runtime_dont_use_autosuspend(dev);
711 pm_runtime_disable(dev);
714 put_device(&panel->ddc->dev);
719 static void panel_simple_shutdown(struct device *dev)
721 struct panel_simple *panel = dev_get_drvdata(dev);
724 * NOTE: the following two calls don't really belong here. It is the
725 * responsibility of a correctly written DRM modeset driver to call
726 * drm_atomic_helper_shutdown() at shutdown time and that should
727 * cause the panel to be disabled / unprepared if needed. For now,
728 * however, we'll keep these calls due to the sheer number of
729 * different DRM modeset drivers used with panel-simple. Once we've
730 * confirmed that all DRM modeset drivers using this panel properly
731 * call drm_atomic_helper_shutdown() we can simply delete the two
734 * TO BE EXPLICIT: THE CALLS BELOW SHOULDN'T BE COPIED TO ANY NEW
737 * FIXME: If we're still haven't figured out if all DRM modeset
738 * drivers properly call drm_atomic_helper_shutdown() but we _have_
739 * managed to make sure that DRM modeset drivers get their shutdown()
740 * callback before the panel's shutdown() callback (perhaps using
741 * device link), we could add a WARN_ON here to help move forward.
743 if (panel->base.enabled)
744 drm_panel_disable(&panel->base);
745 if (panel->base.prepared)
746 drm_panel_unprepare(&panel->base);
749 static void panel_simple_remove(struct device *dev)
751 struct panel_simple *panel = dev_get_drvdata(dev);
753 drm_panel_remove(&panel->base);
754 panel_simple_shutdown(dev);
756 pm_runtime_dont_use_autosuspend(dev);
757 pm_runtime_disable(dev);
759 put_device(&panel->ddc->dev);
762 static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode = {
765 .hsync_start = 1280 + 40,
766 .hsync_end = 1280 + 40 + 80,
767 .htotal = 1280 + 40 + 80 + 40,
769 .vsync_start = 800 + 3,
770 .vsync_end = 800 + 3 + 10,
771 .vtotal = 800 + 3 + 10 + 10,
772 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
775 static const struct panel_desc ampire_am_1280800n3tzqw_t00h = {
776 .modes = &ire_am_1280800n3tzqw_t00h_mode,
783 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
784 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
785 .connector_type = DRM_MODE_CONNECTOR_LVDS,
788 static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = {
791 .hsync_start = 480 + 2,
792 .hsync_end = 480 + 2 + 41,
793 .htotal = 480 + 2 + 41 + 2,
795 .vsync_start = 272 + 2,
796 .vsync_end = 272 + 2 + 10,
797 .vtotal = 272 + 2 + 10 + 2,
798 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
801 static const struct panel_desc ampire_am_480272h3tmqw_t01h = {
802 .modes = &ire_am_480272h3tmqw_t01h_mode,
809 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
812 static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = {
815 .hsync_start = 800 + 0,
816 .hsync_end = 800 + 0 + 255,
817 .htotal = 800 + 0 + 255 + 0,
819 .vsync_start = 480 + 2,
820 .vsync_end = 480 + 2 + 45,
821 .vtotal = 480 + 2 + 45 + 0,
822 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
825 static const struct display_timing ampire_am_800480l1tmqw_t00h_timing = {
826 .pixelclock = { 29930000, 33260000, 36590000 },
827 .hactive = { 800, 800, 800 },
828 .hfront_porch = { 1, 40, 168 },
829 .hback_porch = { 88, 88, 88 },
830 .hsync_len = { 1, 128, 128 },
831 .vactive = { 480, 480, 480 },
832 .vfront_porch = { 1, 35, 37 },
833 .vback_porch = { 8, 8, 8 },
834 .vsync_len = { 1, 2, 2 },
835 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
836 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
837 DISPLAY_FLAGS_SYNC_POSEDGE,
840 static const struct panel_desc ampire_am_800480l1tmqw_t00h = {
841 .timings = &ire_am_800480l1tmqw_t00h_timing,
848 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
849 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
850 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
851 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
852 .connector_type = DRM_MODE_CONNECTOR_DPI,
855 static const struct panel_desc ampire_am800480r3tmqwa1h = {
856 .modes = &ire_am800480r3tmqwa1h_mode,
863 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
866 static const struct display_timing ampire_am800600p5tmqw_tb8h_timing = {
867 .pixelclock = { 34500000, 39600000, 50400000 },
868 .hactive = { 800, 800, 800 },
869 .hfront_porch = { 12, 112, 312 },
870 .hback_porch = { 87, 87, 48 },
871 .hsync_len = { 1, 1, 40 },
872 .vactive = { 600, 600, 600 },
873 .vfront_porch = { 1, 21, 61 },
874 .vback_porch = { 38, 38, 19 },
875 .vsync_len = { 1, 1, 20 },
876 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
877 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
878 DISPLAY_FLAGS_SYNC_POSEDGE,
881 static const struct panel_desc ampire_am800600p5tmqwtb8h = {
882 .timings = &ire_am800600p5tmqw_tb8h_timing,
889 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
890 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
891 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
892 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
893 .connector_type = DRM_MODE_CONNECTOR_DPI,
896 static const struct display_timing santek_st0700i5y_rbslw_f_timing = {
897 .pixelclock = { 26400000, 33300000, 46800000 },
898 .hactive = { 800, 800, 800 },
899 .hfront_porch = { 16, 210, 354 },
900 .hback_porch = { 45, 36, 6 },
901 .hsync_len = { 1, 10, 40 },
902 .vactive = { 480, 480, 480 },
903 .vfront_porch = { 7, 22, 147 },
904 .vback_porch = { 22, 13, 3 },
905 .vsync_len = { 1, 10, 20 },
906 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
907 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE
910 static const struct panel_desc armadeus_st0700_adapt = {
911 .timings = &santek_st0700i5y_rbslw_f_timing,
918 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
919 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
922 static const struct drm_display_mode auo_b101aw03_mode = {
925 .hsync_start = 1024 + 156,
926 .hsync_end = 1024 + 156 + 8,
927 .htotal = 1024 + 156 + 8 + 156,
929 .vsync_start = 600 + 16,
930 .vsync_end = 600 + 16 + 6,
931 .vtotal = 600 + 16 + 6 + 16,
934 static const struct panel_desc auo_b101aw03 = {
935 .modes = &auo_b101aw03_mode,
942 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
943 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
944 .connector_type = DRM_MODE_CONNECTOR_LVDS,
947 static const struct drm_display_mode auo_b101xtn01_mode = {
950 .hsync_start = 1366 + 20,
951 .hsync_end = 1366 + 20 + 70,
952 .htotal = 1366 + 20 + 70,
954 .vsync_start = 768 + 14,
955 .vsync_end = 768 + 14 + 42,
956 .vtotal = 768 + 14 + 42,
957 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
960 static const struct panel_desc auo_b101xtn01 = {
961 .modes = &auo_b101xtn01_mode,
970 static const struct drm_display_mode auo_b116xw03_mode = {
973 .hsync_start = 1366 + 40,
974 .hsync_end = 1366 + 40 + 40,
975 .htotal = 1366 + 40 + 40 + 32,
977 .vsync_start = 768 + 10,
978 .vsync_end = 768 + 10 + 12,
979 .vtotal = 768 + 10 + 12 + 6,
980 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
983 static const struct panel_desc auo_b116xw03 = {
984 .modes = &auo_b116xw03_mode,
997 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
998 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
999 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1002 static const struct display_timing auo_g070vvn01_timings = {
1003 .pixelclock = { 33300000, 34209000, 45000000 },
1004 .hactive = { 800, 800, 800 },
1005 .hfront_porch = { 20, 40, 200 },
1006 .hback_porch = { 87, 40, 1 },
1007 .hsync_len = { 1, 48, 87 },
1008 .vactive = { 480, 480, 480 },
1009 .vfront_porch = { 5, 13, 200 },
1010 .vback_porch = { 31, 31, 29 },
1011 .vsync_len = { 1, 1, 3 },
1014 static const struct panel_desc auo_g070vvn01 = {
1015 .timings = &auo_g070vvn01_timings,
1030 static const struct drm_display_mode auo_g101evn010_mode = {
1033 .hsync_start = 1280 + 82,
1034 .hsync_end = 1280 + 82 + 2,
1035 .htotal = 1280 + 82 + 2 + 84,
1037 .vsync_start = 800 + 8,
1038 .vsync_end = 800 + 8 + 2,
1039 .vtotal = 800 + 8 + 2 + 6,
1042 static const struct panel_desc auo_g101evn010 = {
1043 .modes = &auo_g101evn010_mode,
1050 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1051 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1054 static const struct drm_display_mode auo_g104sn02_mode = {
1057 .hsync_start = 800 + 40,
1058 .hsync_end = 800 + 40 + 216,
1059 .htotal = 800 + 40 + 216 + 128,
1061 .vsync_start = 600 + 10,
1062 .vsync_end = 600 + 10 + 35,
1063 .vtotal = 600 + 10 + 35 + 2,
1066 static const struct panel_desc auo_g104sn02 = {
1067 .modes = &auo_g104sn02_mode,
1074 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1075 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1078 static const struct drm_display_mode auo_g104stn01_mode = {
1081 .hsync_start = 800 + 40,
1082 .hsync_end = 800 + 40 + 88,
1083 .htotal = 800 + 40 + 88 + 128,
1085 .vsync_start = 600 + 1,
1086 .vsync_end = 600 + 1 + 23,
1087 .vtotal = 600 + 1 + 23 + 4,
1090 static const struct panel_desc auo_g104stn01 = {
1091 .modes = &auo_g104stn01_mode,
1098 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1099 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1102 static const struct display_timing auo_g121ean01_timing = {
1103 .pixelclock = { 60000000, 74400000, 90000000 },
1104 .hactive = { 1280, 1280, 1280 },
1105 .hfront_porch = { 20, 50, 100 },
1106 .hback_porch = { 20, 50, 100 },
1107 .hsync_len = { 30, 100, 200 },
1108 .vactive = { 800, 800, 800 },
1109 .vfront_porch = { 2, 10, 25 },
1110 .vback_porch = { 2, 10, 25 },
1111 .vsync_len = { 4, 18, 50 },
1114 static const struct panel_desc auo_g121ean01 = {
1115 .timings = &auo_g121ean01_timing,
1122 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1123 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1126 static const struct display_timing auo_g133han01_timings = {
1127 .pixelclock = { 134000000, 141200000, 149000000 },
1128 .hactive = { 1920, 1920, 1920 },
1129 .hfront_porch = { 39, 58, 77 },
1130 .hback_porch = { 59, 88, 117 },
1131 .hsync_len = { 28, 42, 56 },
1132 .vactive = { 1080, 1080, 1080 },
1133 .vfront_porch = { 3, 8, 11 },
1134 .vback_porch = { 5, 14, 19 },
1135 .vsync_len = { 4, 14, 19 },
1138 static const struct panel_desc auo_g133han01 = {
1139 .timings = &auo_g133han01_timings,
1152 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1153 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1156 static const struct display_timing auo_g156han04_timings = {
1157 .pixelclock = { 137000000, 141000000, 146000000 },
1158 .hactive = { 1920, 1920, 1920 },
1159 .hfront_porch = { 60, 60, 60 },
1160 .hback_porch = { 90, 92, 111 },
1161 .hsync_len = { 32, 32, 32 },
1162 .vactive = { 1080, 1080, 1080 },
1163 .vfront_porch = { 12, 12, 12 },
1164 .vback_porch = { 24, 36, 56 },
1165 .vsync_len = { 8, 8, 8 },
1168 static const struct panel_desc auo_g156han04 = {
1169 .timings = &auo_g156han04_timings,
1177 .prepare = 50, /* T2 */
1178 .enable = 200, /* T3 */
1179 .disable = 110, /* T10 */
1180 .unprepare = 1000, /* T13 */
1182 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1183 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1184 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1187 static const struct drm_display_mode auo_g156xtn01_mode = {
1190 .hsync_start = 1366 + 33,
1191 .hsync_end = 1366 + 33 + 67,
1194 .vsync_start = 768 + 4,
1195 .vsync_end = 768 + 4 + 4,
1199 static const struct panel_desc auo_g156xtn01 = {
1200 .modes = &auo_g156xtn01_mode,
1207 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1208 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1211 static const struct display_timing auo_g185han01_timings = {
1212 .pixelclock = { 120000000, 144000000, 175000000 },
1213 .hactive = { 1920, 1920, 1920 },
1214 .hfront_porch = { 36, 120, 148 },
1215 .hback_porch = { 24, 88, 108 },
1216 .hsync_len = { 20, 48, 64 },
1217 .vactive = { 1080, 1080, 1080 },
1218 .vfront_porch = { 6, 10, 40 },
1219 .vback_porch = { 2, 5, 20 },
1220 .vsync_len = { 2, 5, 20 },
1223 static const struct panel_desc auo_g185han01 = {
1224 .timings = &auo_g185han01_timings,
1237 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1238 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1241 static const struct display_timing auo_g190ean01_timings = {
1242 .pixelclock = { 90000000, 108000000, 135000000 },
1243 .hactive = { 1280, 1280, 1280 },
1244 .hfront_porch = { 126, 184, 1266 },
1245 .hback_porch = { 84, 122, 844 },
1246 .hsync_len = { 70, 102, 704 },
1247 .vactive = { 1024, 1024, 1024 },
1248 .vfront_porch = { 4, 26, 76 },
1249 .vback_porch = { 2, 8, 25 },
1250 .vsync_len = { 2, 8, 25 },
1253 static const struct panel_desc auo_g190ean01 = {
1254 .timings = &auo_g190ean01_timings,
1267 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1268 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1271 static const struct display_timing auo_p320hvn03_timings = {
1272 .pixelclock = { 106000000, 148500000, 164000000 },
1273 .hactive = { 1920, 1920, 1920 },
1274 .hfront_porch = { 25, 50, 130 },
1275 .hback_porch = { 25, 50, 130 },
1276 .hsync_len = { 20, 40, 105 },
1277 .vactive = { 1080, 1080, 1080 },
1278 .vfront_porch = { 8, 17, 150 },
1279 .vback_porch = { 8, 17, 150 },
1280 .vsync_len = { 4, 11, 100 },
1283 static const struct panel_desc auo_p320hvn03 = {
1284 .timings = &auo_p320hvn03_timings,
1296 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1297 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1300 static const struct drm_display_mode auo_t215hvn01_mode = {
1303 .hsync_start = 1920 + 88,
1304 .hsync_end = 1920 + 88 + 44,
1305 .htotal = 1920 + 88 + 44 + 148,
1307 .vsync_start = 1080 + 4,
1308 .vsync_end = 1080 + 4 + 5,
1309 .vtotal = 1080 + 4 + 5 + 36,
1312 static const struct panel_desc auo_t215hvn01 = {
1313 .modes = &auo_t215hvn01_mode,
1324 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1325 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1328 static const struct drm_display_mode avic_tm070ddh03_mode = {
1331 .hsync_start = 1024 + 160,
1332 .hsync_end = 1024 + 160 + 4,
1333 .htotal = 1024 + 160 + 4 + 156,
1335 .vsync_start = 600 + 17,
1336 .vsync_end = 600 + 17 + 1,
1337 .vtotal = 600 + 17 + 1 + 17,
1340 static const struct panel_desc avic_tm070ddh03 = {
1341 .modes = &avic_tm070ddh03_mode,
1355 static const struct drm_display_mode bananapi_s070wv20_ct16_mode = {
1358 .hsync_start = 800 + 40,
1359 .hsync_end = 800 + 40 + 48,
1360 .htotal = 800 + 40 + 48 + 40,
1362 .vsync_start = 480 + 13,
1363 .vsync_end = 480 + 13 + 3,
1364 .vtotal = 480 + 13 + 3 + 29,
1367 static const struct panel_desc bananapi_s070wv20_ct16 = {
1368 .modes = &bananapi_s070wv20_ct16_mode,
1377 static const struct drm_display_mode boe_bp101wx1_100_mode = {
1380 .hsync_start = 1280 + 0,
1381 .hsync_end = 1280 + 0 + 2,
1382 .htotal = 1280 + 62 + 0 + 2,
1384 .vsync_start = 800 + 8,
1385 .vsync_end = 800 + 8 + 2,
1386 .vtotal = 800 + 6 + 8 + 2,
1389 static const struct panel_desc boe_bp082wx1_100 = {
1390 .modes = &boe_bp101wx1_100_mode,
1401 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1402 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1403 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1406 static const struct panel_desc boe_bp101wx1_100 = {
1407 .modes = &boe_bp101wx1_100_mode,
1418 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1419 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1420 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1423 static const struct display_timing boe_ev121wxm_n10_1850_timing = {
1424 .pixelclock = { 69922000, 71000000, 72293000 },
1425 .hactive = { 1280, 1280, 1280 },
1426 .hfront_porch = { 48, 48, 48 },
1427 .hback_porch = { 80, 80, 80 },
1428 .hsync_len = { 32, 32, 32 },
1429 .vactive = { 800, 800, 800 },
1430 .vfront_porch = { 3, 3, 3 },
1431 .vback_porch = { 14, 14, 14 },
1432 .vsync_len = { 6, 6, 6 },
1435 static const struct panel_desc boe_ev121wxm_n10_1850 = {
1436 .timings = &boe_ev121wxm_n10_1850_timing,
1449 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1450 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1451 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1454 static const struct drm_display_mode boe_hv070wsa_mode = {
1457 .hsync_start = 1024 + 30,
1458 .hsync_end = 1024 + 30 + 30,
1459 .htotal = 1024 + 30 + 30 + 30,
1461 .vsync_start = 600 + 10,
1462 .vsync_end = 600 + 10 + 10,
1463 .vtotal = 600 + 10 + 10 + 10,
1466 static const struct panel_desc boe_hv070wsa = {
1467 .modes = &boe_hv070wsa_mode,
1474 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1475 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1476 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1479 static const struct display_timing cct_cmt430b19n00_timing = {
1480 .pixelclock = { 8000000, 9000000, 12000000 },
1481 .hactive = { 480, 480, 480 },
1482 .hfront_porch = { 2, 8, 75 },
1483 .hback_porch = { 3, 43, 43 },
1484 .hsync_len = { 2, 4, 75 },
1485 .vactive = { 272, 272, 272 },
1486 .vfront_porch = { 2, 8, 37 },
1487 .vback_porch = { 2, 12, 12 },
1488 .vsync_len = { 2, 4, 37 },
1489 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW
1492 static const struct panel_desc cct_cmt430b19n00 = {
1493 .timings = &cct_cmt430b19n00_timing,
1500 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1501 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1502 .connector_type = DRM_MODE_CONNECTOR_DPI,
1505 static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = {
1508 .hsync_start = 480 + 5,
1509 .hsync_end = 480 + 5 + 5,
1510 .htotal = 480 + 5 + 5 + 40,
1512 .vsync_start = 272 + 8,
1513 .vsync_end = 272 + 8 + 8,
1514 .vtotal = 272 + 8 + 8 + 8,
1515 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1518 static const struct panel_desc cdtech_s043wq26h_ct7 = {
1519 .modes = &cdtech_s043wq26h_ct7_mode,
1526 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1529 /* S070PWS19HP-FC21 2017/04/22 */
1530 static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = {
1533 .hsync_start = 1024 + 160,
1534 .hsync_end = 1024 + 160 + 20,
1535 .htotal = 1024 + 160 + 20 + 140,
1537 .vsync_start = 600 + 12,
1538 .vsync_end = 600 + 12 + 3,
1539 .vtotal = 600 + 12 + 3 + 20,
1540 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1543 static const struct panel_desc cdtech_s070pws19hp_fc21 = {
1544 .modes = &cdtech_s070pws19hp_fc21_mode,
1551 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1552 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1553 .connector_type = DRM_MODE_CONNECTOR_DPI,
1556 /* S070SWV29HG-DC44 2017/09/21 */
1557 static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = {
1560 .hsync_start = 800 + 210,
1561 .hsync_end = 800 + 210 + 2,
1562 .htotal = 800 + 210 + 2 + 44,
1564 .vsync_start = 480 + 22,
1565 .vsync_end = 480 + 22 + 2,
1566 .vtotal = 480 + 22 + 2 + 21,
1567 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1570 static const struct panel_desc cdtech_s070swv29hg_dc44 = {
1571 .modes = &cdtech_s070swv29hg_dc44_mode,
1578 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1579 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1580 .connector_type = DRM_MODE_CONNECTOR_DPI,
1583 static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
1586 .hsync_start = 800 + 40,
1587 .hsync_end = 800 + 40 + 40,
1588 .htotal = 800 + 40 + 40 + 48,
1590 .vsync_start = 480 + 29,
1591 .vsync_end = 480 + 29 + 13,
1592 .vtotal = 480 + 29 + 13 + 3,
1593 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1596 static const struct panel_desc cdtech_s070wv95_ct16 = {
1597 .modes = &cdtech_s070wv95_ct16_mode,
1606 static const struct display_timing chefree_ch101olhlwh_002_timing = {
1607 .pixelclock = { 68900000, 71100000, 73400000 },
1608 .hactive = { 1280, 1280, 1280 },
1609 .hfront_porch = { 65, 80, 95 },
1610 .hback_porch = { 64, 79, 94 },
1611 .hsync_len = { 1, 1, 1 },
1612 .vactive = { 800, 800, 800 },
1613 .vfront_porch = { 7, 11, 14 },
1614 .vback_porch = { 7, 11, 14 },
1615 .vsync_len = { 1, 1, 1 },
1616 .flags = DISPLAY_FLAGS_DE_HIGH,
1619 static const struct panel_desc chefree_ch101olhlwh_002 = {
1620 .timings = &chefree_ch101olhlwh_002_timing,
1631 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1632 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1633 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1636 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
1639 .hsync_start = 800 + 49,
1640 .hsync_end = 800 + 49 + 33,
1641 .htotal = 800 + 49 + 33 + 17,
1643 .vsync_start = 1280 + 1,
1644 .vsync_end = 1280 + 1 + 7,
1645 .vtotal = 1280 + 1 + 7 + 15,
1646 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1649 static const struct panel_desc chunghwa_claa070wp03xg = {
1650 .modes = &chunghwa_claa070wp03xg_mode,
1657 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1658 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1659 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1662 static const struct drm_display_mode chunghwa_claa101wa01a_mode = {
1665 .hsync_start = 1366 + 58,
1666 .hsync_end = 1366 + 58 + 58,
1667 .htotal = 1366 + 58 + 58 + 58,
1669 .vsync_start = 768 + 4,
1670 .vsync_end = 768 + 4 + 4,
1671 .vtotal = 768 + 4 + 4 + 4,
1674 static const struct panel_desc chunghwa_claa101wa01a = {
1675 .modes = &chunghwa_claa101wa01a_mode,
1682 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1683 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1684 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1687 static const struct drm_display_mode chunghwa_claa101wb01_mode = {
1690 .hsync_start = 1366 + 48,
1691 .hsync_end = 1366 + 48 + 32,
1692 .htotal = 1366 + 48 + 32 + 20,
1694 .vsync_start = 768 + 16,
1695 .vsync_end = 768 + 16 + 8,
1696 .vtotal = 768 + 16 + 8 + 16,
1699 static const struct panel_desc chunghwa_claa101wb01 = {
1700 .modes = &chunghwa_claa101wb01_mode,
1707 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1708 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1709 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1712 static const struct display_timing dataimage_fg040346dsswbg04_timing = {
1713 .pixelclock = { 5000000, 9000000, 12000000 },
1714 .hactive = { 480, 480, 480 },
1715 .hfront_porch = { 12, 12, 12 },
1716 .hback_porch = { 12, 12, 12 },
1717 .hsync_len = { 21, 21, 21 },
1718 .vactive = { 272, 272, 272 },
1719 .vfront_porch = { 4, 4, 4 },
1720 .vback_porch = { 4, 4, 4 },
1721 .vsync_len = { 8, 8, 8 },
1724 static const struct panel_desc dataimage_fg040346dsswbg04 = {
1725 .timings = &dataimage_fg040346dsswbg04_timing,
1732 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1733 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1734 .connector_type = DRM_MODE_CONNECTOR_DPI,
1737 static const struct display_timing dataimage_fg1001l0dsswmg01_timing = {
1738 .pixelclock = { 68900000, 71110000, 73400000 },
1739 .hactive = { 1280, 1280, 1280 },
1740 .vactive = { 800, 800, 800 },
1741 .hback_porch = { 100, 100, 100 },
1742 .hfront_porch = { 100, 100, 100 },
1743 .vback_porch = { 5, 5, 5 },
1744 .vfront_porch = { 5, 5, 5 },
1745 .hsync_len = { 24, 24, 24 },
1746 .vsync_len = { 3, 3, 3 },
1747 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
1748 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1751 static const struct panel_desc dataimage_fg1001l0dsswmg01 = {
1752 .timings = &dataimage_fg1001l0dsswmg01_timing,
1761 static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = {
1764 .hsync_start = 800 + 40,
1765 .hsync_end = 800 + 40 + 128,
1766 .htotal = 800 + 40 + 128 + 88,
1768 .vsync_start = 480 + 10,
1769 .vsync_end = 480 + 10 + 2,
1770 .vtotal = 480 + 10 + 2 + 33,
1771 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1774 static const struct panel_desc dataimage_scf0700c48ggu18 = {
1775 .modes = &dataimage_scf0700c48ggu18_mode,
1782 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1783 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1786 static const struct display_timing dlc_dlc0700yzg_1_timing = {
1787 .pixelclock = { 45000000, 51200000, 57000000 },
1788 .hactive = { 1024, 1024, 1024 },
1789 .hfront_porch = { 100, 106, 113 },
1790 .hback_porch = { 100, 106, 113 },
1791 .hsync_len = { 100, 108, 114 },
1792 .vactive = { 600, 600, 600 },
1793 .vfront_porch = { 8, 11, 15 },
1794 .vback_porch = { 8, 11, 15 },
1795 .vsync_len = { 9, 13, 15 },
1796 .flags = DISPLAY_FLAGS_DE_HIGH,
1799 static const struct panel_desc dlc_dlc0700yzg_1 = {
1800 .timings = &dlc_dlc0700yzg_1_timing,
1812 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1813 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1816 static const struct display_timing dlc_dlc1010gig_timing = {
1817 .pixelclock = { 68900000, 71100000, 73400000 },
1818 .hactive = { 1280, 1280, 1280 },
1819 .hfront_porch = { 43, 53, 63 },
1820 .hback_porch = { 43, 53, 63 },
1821 .hsync_len = { 44, 54, 64 },
1822 .vactive = { 800, 800, 800 },
1823 .vfront_porch = { 5, 8, 11 },
1824 .vback_porch = { 5, 8, 11 },
1825 .vsync_len = { 5, 7, 11 },
1826 .flags = DISPLAY_FLAGS_DE_HIGH,
1829 static const struct panel_desc dlc_dlc1010gig = {
1830 .timings = &dlc_dlc1010gig_timing,
1843 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1844 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1847 static const struct drm_display_mode edt_et035012dm6_mode = {
1850 .hsync_start = 320 + 20,
1851 .hsync_end = 320 + 20 + 30,
1852 .htotal = 320 + 20 + 68,
1854 .vsync_start = 240 + 4,
1855 .vsync_end = 240 + 4 + 4,
1856 .vtotal = 240 + 4 + 4 + 14,
1857 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1860 static const struct panel_desc edt_et035012dm6 = {
1861 .modes = &edt_et035012dm6_mode,
1868 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1869 .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1872 static const struct drm_display_mode edt_etm0350g0dh6_mode = {
1875 .hsync_start = 320 + 20,
1876 .hsync_end = 320 + 20 + 68,
1877 .htotal = 320 + 20 + 68,
1879 .vsync_start = 240 + 4,
1880 .vsync_end = 240 + 4 + 18,
1881 .vtotal = 240 + 4 + 18,
1882 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1885 static const struct panel_desc edt_etm0350g0dh6 = {
1886 .modes = &edt_etm0350g0dh6_mode,
1893 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1894 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1895 .connector_type = DRM_MODE_CONNECTOR_DPI,
1898 static const struct drm_display_mode edt_etm043080dh6gp_mode = {
1901 .hsync_start = 480 + 8,
1902 .hsync_end = 480 + 8 + 4,
1903 .htotal = 480 + 8 + 4 + 41,
1906 * IWG22M: Y resolution changed for "dc_linuxfb" module crashing while
1911 .vsync_start = 288 + 2,
1912 .vsync_end = 288 + 2 + 4,
1913 .vtotal = 288 + 2 + 4 + 10,
1916 static const struct panel_desc edt_etm043080dh6gp = {
1917 .modes = &edt_etm043080dh6gp_mode,
1924 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1925 .connector_type = DRM_MODE_CONNECTOR_DPI,
1928 static const struct drm_display_mode edt_etm0430g0dh6_mode = {
1931 .hsync_start = 480 + 2,
1932 .hsync_end = 480 + 2 + 41,
1933 .htotal = 480 + 2 + 41 + 2,
1935 .vsync_start = 272 + 2,
1936 .vsync_end = 272 + 2 + 10,
1937 .vtotal = 272 + 2 + 10 + 2,
1938 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1941 static const struct panel_desc edt_etm0430g0dh6 = {
1942 .modes = &edt_etm0430g0dh6_mode,
1949 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1950 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1951 .connector_type = DRM_MODE_CONNECTOR_DPI,
1954 static const struct drm_display_mode edt_et057090dhu_mode = {
1957 .hsync_start = 640 + 16,
1958 .hsync_end = 640 + 16 + 30,
1959 .htotal = 640 + 16 + 30 + 114,
1961 .vsync_start = 480 + 10,
1962 .vsync_end = 480 + 10 + 3,
1963 .vtotal = 480 + 10 + 3 + 32,
1964 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1967 static const struct panel_desc edt_et057090dhu = {
1968 .modes = &edt_et057090dhu_mode,
1975 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1976 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1977 .connector_type = DRM_MODE_CONNECTOR_DPI,
1980 static const struct drm_display_mode edt_etm0700g0dh6_mode = {
1983 .hsync_start = 800 + 40,
1984 .hsync_end = 800 + 40 + 128,
1985 .htotal = 800 + 40 + 128 + 88,
1987 .vsync_start = 480 + 10,
1988 .vsync_end = 480 + 10 + 2,
1989 .vtotal = 480 + 10 + 2 + 33,
1990 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1993 static const struct panel_desc edt_etm0700g0dh6 = {
1994 .modes = &edt_etm0700g0dh6_mode,
2001 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2002 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
2003 .connector_type = DRM_MODE_CONNECTOR_DPI,
2006 static const struct panel_desc edt_etm0700g0bdh6 = {
2007 .modes = &edt_etm0700g0dh6_mode,
2014 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2015 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2016 .connector_type = DRM_MODE_CONNECTOR_DPI,
2019 static const struct display_timing edt_etml0700y5dha_timing = {
2020 .pixelclock = { 40800000, 51200000, 67200000 },
2021 .hactive = { 1024, 1024, 1024 },
2022 .hfront_porch = { 30, 106, 125 },
2023 .hback_porch = { 30, 106, 125 },
2024 .hsync_len = { 30, 108, 126 },
2025 .vactive = { 600, 600, 600 },
2026 .vfront_porch = { 3, 12, 67},
2027 .vback_porch = { 3, 12, 67 },
2028 .vsync_len = { 4, 11, 66 },
2029 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2030 DISPLAY_FLAGS_DE_HIGH,
2033 static const struct panel_desc edt_etml0700y5dha = {
2034 .timings = &edt_etml0700y5dha_timing,
2041 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2042 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2045 static const struct display_timing edt_etml1010g3dra_timing = {
2046 .pixelclock = { 66300000, 72400000, 78900000 },
2047 .hactive = { 1280, 1280, 1280 },
2048 .hfront_porch = { 12, 72, 132 },
2049 .hback_porch = { 86, 86, 86 },
2050 .hsync_len = { 2, 2, 2 },
2051 .vactive = { 800, 800, 800 },
2052 .vfront_porch = { 1, 15, 49 },
2053 .vback_porch = { 21, 21, 21 },
2054 .vsync_len = { 2, 2, 2 },
2055 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
2056 DISPLAY_FLAGS_DE_HIGH,
2059 static const struct panel_desc edt_etml1010g3dra = {
2060 .timings = &edt_etml1010g3dra_timing,
2067 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2068 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2069 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2072 static const struct drm_display_mode edt_etmv570g2dhu_mode = {
2076 .hsync_end = 640 + 16,
2077 .htotal = 640 + 16 + 30 + 114,
2079 .vsync_start = 480 + 10,
2080 .vsync_end = 480 + 10 + 3,
2081 .vtotal = 480 + 10 + 3 + 35,
2082 .flags = DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_PHSYNC,
2085 static const struct panel_desc edt_etmv570g2dhu = {
2086 .modes = &edt_etmv570g2dhu_mode,
2093 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2094 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
2095 .connector_type = DRM_MODE_CONNECTOR_DPI,
2098 static const struct display_timing eink_vb3300_kca_timing = {
2099 .pixelclock = { 40000000, 40000000, 40000000 },
2100 .hactive = { 334, 334, 334 },
2101 .hfront_porch = { 1, 1, 1 },
2102 .hback_porch = { 1, 1, 1 },
2103 .hsync_len = { 1, 1, 1 },
2104 .vactive = { 1405, 1405, 1405 },
2105 .vfront_porch = { 1, 1, 1 },
2106 .vback_porch = { 1, 1, 1 },
2107 .vsync_len = { 1, 1, 1 },
2108 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2109 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
2112 static const struct panel_desc eink_vb3300_kca = {
2113 .timings = &eink_vb3300_kca_timing,
2120 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2121 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2122 .connector_type = DRM_MODE_CONNECTOR_DPI,
2125 static const struct display_timing evervision_vgg644804_timing = {
2126 .pixelclock = { 25175000, 25175000, 25175000 },
2127 .hactive = { 640, 640, 640 },
2128 .hfront_porch = { 16, 16, 16 },
2129 .hback_porch = { 82, 114, 170 },
2130 .hsync_len = { 5, 30, 30 },
2131 .vactive = { 480, 480, 480 },
2132 .vfront_porch = { 10, 10, 10 },
2133 .vback_porch = { 30, 32, 34 },
2134 .vsync_len = { 1, 3, 5 },
2135 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2136 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2137 DISPLAY_FLAGS_SYNC_POSEDGE,
2140 static const struct panel_desc evervision_vgg644804 = {
2141 .timings = &evervision_vgg644804_timing,
2148 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2149 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2152 static const struct display_timing evervision_vgg804821_timing = {
2153 .pixelclock = { 27600000, 33300000, 50000000 },
2154 .hactive = { 800, 800, 800 },
2155 .hfront_porch = { 40, 66, 70 },
2156 .hback_porch = { 40, 67, 70 },
2157 .hsync_len = { 40, 67, 70 },
2158 .vactive = { 480, 480, 480 },
2159 .vfront_porch = { 6, 10, 10 },
2160 .vback_porch = { 7, 11, 11 },
2161 .vsync_len = { 7, 11, 11 },
2162 .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH |
2163 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
2164 DISPLAY_FLAGS_SYNC_NEGEDGE,
2167 static const struct panel_desc evervision_vgg804821 = {
2168 .timings = &evervision_vgg804821_timing,
2175 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2176 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2179 static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = {
2182 .hsync_start = 800 + 168,
2183 .hsync_end = 800 + 168 + 64,
2184 .htotal = 800 + 168 + 64 + 88,
2186 .vsync_start = 480 + 37,
2187 .vsync_end = 480 + 37 + 2,
2188 .vtotal = 480 + 37 + 2 + 8,
2191 static const struct panel_desc foxlink_fl500wvr00_a0t = {
2192 .modes = &foxlink_fl500wvr00_a0t_mode,
2199 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2202 static const struct drm_display_mode frida_frd350h54004_modes[] = {
2206 .hsync_start = 320 + 44,
2207 .hsync_end = 320 + 44 + 16,
2208 .htotal = 320 + 44 + 16 + 20,
2210 .vsync_start = 240 + 2,
2211 .vsync_end = 240 + 2 + 6,
2212 .vtotal = 240 + 2 + 6 + 2,
2213 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2218 .hsync_start = 320 + 56,
2219 .hsync_end = 320 + 56 + 16,
2220 .htotal = 320 + 56 + 16 + 40,
2222 .vsync_start = 240 + 2,
2223 .vsync_end = 240 + 2 + 6,
2224 .vtotal = 240 + 2 + 6 + 2,
2225 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2229 static const struct panel_desc frida_frd350h54004 = {
2230 .modes = frida_frd350h54004_modes,
2231 .num_modes = ARRAY_SIZE(frida_frd350h54004_modes),
2237 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2238 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2239 .connector_type = DRM_MODE_CONNECTOR_DPI,
2242 static const struct drm_display_mode friendlyarm_hd702e_mode = {
2245 .hsync_start = 800 + 20,
2246 .hsync_end = 800 + 20 + 24,
2247 .htotal = 800 + 20 + 24 + 20,
2249 .vsync_start = 1280 + 4,
2250 .vsync_end = 1280 + 4 + 8,
2251 .vtotal = 1280 + 4 + 8 + 4,
2252 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2255 static const struct panel_desc friendlyarm_hd702e = {
2256 .modes = &friendlyarm_hd702e_mode,
2264 static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
2267 .hsync_start = 480 + 5,
2268 .hsync_end = 480 + 5 + 1,
2269 .htotal = 480 + 5 + 1 + 40,
2271 .vsync_start = 272 + 8,
2272 .vsync_end = 272 + 8 + 1,
2273 .vtotal = 272 + 8 + 1 + 8,
2276 static const struct panel_desc giantplus_gpg482739qs5 = {
2277 .modes = &giantplus_gpg482739qs5_mode,
2284 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2287 static const struct display_timing giantplus_gpm940b0_timing = {
2288 .pixelclock = { 13500000, 27000000, 27500000 },
2289 .hactive = { 320, 320, 320 },
2290 .hfront_porch = { 14, 686, 718 },
2291 .hback_porch = { 50, 70, 255 },
2292 .hsync_len = { 1, 1, 1 },
2293 .vactive = { 240, 240, 240 },
2294 .vfront_porch = { 1, 1, 179 },
2295 .vback_porch = { 1, 21, 31 },
2296 .vsync_len = { 1, 1, 6 },
2297 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
2300 static const struct panel_desc giantplus_gpm940b0 = {
2301 .timings = &giantplus_gpm940b0_timing,
2308 .bus_format = MEDIA_BUS_FMT_RGB888_3X8,
2309 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2312 static const struct display_timing hannstar_hsd070pww1_timing = {
2313 .pixelclock = { 64300000, 71100000, 82000000 },
2314 .hactive = { 1280, 1280, 1280 },
2315 .hfront_porch = { 1, 1, 10 },
2316 .hback_porch = { 1, 1, 10 },
2318 * According to the data sheet, the minimum horizontal blanking interval
2319 * is 54 clocks (1 + 52 + 1), but tests with a Nitrogen6X have shown the
2320 * minimum working horizontal blanking interval to be 60 clocks.
2322 .hsync_len = { 58, 158, 661 },
2323 .vactive = { 800, 800, 800 },
2324 .vfront_porch = { 1, 1, 10 },
2325 .vback_porch = { 1, 1, 10 },
2326 .vsync_len = { 1, 21, 203 },
2327 .flags = DISPLAY_FLAGS_DE_HIGH,
2330 static const struct panel_desc hannstar_hsd070pww1 = {
2331 .timings = &hannstar_hsd070pww1_timing,
2338 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2339 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2342 static const struct display_timing hannstar_hsd100pxn1_timing = {
2343 .pixelclock = { 55000000, 65000000, 75000000 },
2344 .hactive = { 1024, 1024, 1024 },
2345 .hfront_porch = { 40, 40, 40 },
2346 .hback_porch = { 220, 220, 220 },
2347 .hsync_len = { 20, 60, 100 },
2348 .vactive = { 768, 768, 768 },
2349 .vfront_porch = { 7, 7, 7 },
2350 .vback_porch = { 21, 21, 21 },
2351 .vsync_len = { 10, 10, 10 },
2352 .flags = DISPLAY_FLAGS_DE_HIGH,
2355 static const struct panel_desc hannstar_hsd100pxn1 = {
2356 .timings = &hannstar_hsd100pxn1_timing,
2363 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2364 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2367 static const struct display_timing hannstar_hsd101pww2_timing = {
2368 .pixelclock = { 64300000, 71100000, 82000000 },
2369 .hactive = { 1280, 1280, 1280 },
2370 .hfront_porch = { 1, 1, 10 },
2371 .hback_porch = { 1, 1, 10 },
2372 .hsync_len = { 58, 158, 661 },
2373 .vactive = { 800, 800, 800 },
2374 .vfront_porch = { 1, 1, 10 },
2375 .vback_porch = { 1, 1, 10 },
2376 .vsync_len = { 1, 21, 203 },
2377 .flags = DISPLAY_FLAGS_DE_HIGH,
2380 static const struct panel_desc hannstar_hsd101pww2 = {
2381 .timings = &hannstar_hsd101pww2_timing,
2388 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2389 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2392 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
2395 .hsync_start = 800 + 85,
2396 .hsync_end = 800 + 85 + 86,
2397 .htotal = 800 + 85 + 86 + 85,
2399 .vsync_start = 480 + 16,
2400 .vsync_end = 480 + 16 + 13,
2401 .vtotal = 480 + 16 + 13 + 16,
2404 static const struct panel_desc hitachi_tx23d38vm0caa = {
2405 .modes = &hitachi_tx23d38vm0caa_mode,
2418 static const struct drm_display_mode innolux_at043tn24_mode = {
2421 .hsync_start = 480 + 2,
2422 .hsync_end = 480 + 2 + 41,
2423 .htotal = 480 + 2 + 41 + 2,
2425 .vsync_start = 272 + 2,
2426 .vsync_end = 272 + 2 + 10,
2427 .vtotal = 272 + 2 + 10 + 2,
2428 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2431 static const struct panel_desc innolux_at043tn24 = {
2432 .modes = &innolux_at043tn24_mode,
2439 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2440 .connector_type = DRM_MODE_CONNECTOR_DPI,
2441 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2444 static const struct drm_display_mode innolux_at070tn92_mode = {
2447 .hsync_start = 800 + 210,
2448 .hsync_end = 800 + 210 + 20,
2449 .htotal = 800 + 210 + 20 + 46,
2451 .vsync_start = 480 + 22,
2452 .vsync_end = 480 + 22 + 10,
2453 .vtotal = 480 + 22 + 23 + 10,
2456 static const struct panel_desc innolux_at070tn92 = {
2457 .modes = &innolux_at070tn92_mode,
2463 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2466 static const struct display_timing innolux_g070ace_l01_timing = {
2467 .pixelclock = { 25200000, 35000000, 35700000 },
2468 .hactive = { 800, 800, 800 },
2469 .hfront_porch = { 30, 32, 87 },
2470 .hback_porch = { 30, 32, 87 },
2471 .hsync_len = { 1, 1, 1 },
2472 .vactive = { 480, 480, 480 },
2473 .vfront_porch = { 3, 3, 3 },
2474 .vback_porch = { 13, 13, 13 },
2475 .vsync_len = { 1, 1, 4 },
2476 .flags = DISPLAY_FLAGS_DE_HIGH,
2479 static const struct panel_desc innolux_g070ace_l01 = {
2480 .timings = &innolux_g070ace_l01_timing,
2493 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2494 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2495 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2498 static const struct display_timing innolux_g070y2_l01_timing = {
2499 .pixelclock = { 28000000, 29500000, 32000000 },
2500 .hactive = { 800, 800, 800 },
2501 .hfront_porch = { 61, 91, 141 },
2502 .hback_porch = { 60, 90, 140 },
2503 .hsync_len = { 12, 12, 12 },
2504 .vactive = { 480, 480, 480 },
2505 .vfront_porch = { 4, 9, 30 },
2506 .vback_porch = { 4, 8, 28 },
2507 .vsync_len = { 2, 2, 2 },
2508 .flags = DISPLAY_FLAGS_DE_HIGH,
2511 static const struct panel_desc innolux_g070y2_l01 = {
2512 .timings = &innolux_g070y2_l01_timing,
2525 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2526 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2527 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2530 static const struct display_timing innolux_g070ace_lh3_timing = {
2531 .pixelclock = { 25200000, 25400000, 35700000 },
2532 .hactive = { 800, 800, 800 },
2533 .hfront_porch = { 30, 32, 87 },
2534 .hback_porch = { 29, 31, 86 },
2535 .hsync_len = { 1, 1, 1 },
2536 .vactive = { 480, 480, 480 },
2537 .vfront_porch = { 4, 5, 65 },
2538 .vback_porch = { 3, 4, 65 },
2539 .vsync_len = { 1, 1, 1 },
2540 .flags = DISPLAY_FLAGS_DE_HIGH,
2543 static const struct panel_desc innolux_g070ace_lh3 = {
2544 .timings = &innolux_g070ace_lh3_timing,
2557 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2558 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2559 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2562 static const struct drm_display_mode innolux_g070y2_t02_mode = {
2565 .hsync_start = 800 + 210,
2566 .hsync_end = 800 + 210 + 20,
2567 .htotal = 800 + 210 + 20 + 46,
2569 .vsync_start = 480 + 22,
2570 .vsync_end = 480 + 22 + 10,
2571 .vtotal = 480 + 22 + 23 + 10,
2574 static const struct panel_desc innolux_g070y2_t02 = {
2575 .modes = &innolux_g070y2_t02_mode,
2582 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2583 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2584 .connector_type = DRM_MODE_CONNECTOR_DPI,
2587 static const struct display_timing innolux_g101ice_l01_timing = {
2588 .pixelclock = { 60400000, 71100000, 74700000 },
2589 .hactive = { 1280, 1280, 1280 },
2590 .hfront_porch = { 30, 60, 70 },
2591 .hback_porch = { 30, 60, 70 },
2592 .hsync_len = { 22, 40, 60 },
2593 .vactive = { 800, 800, 800 },
2594 .vfront_porch = { 3, 8, 14 },
2595 .vback_porch = { 3, 8, 14 },
2596 .vsync_len = { 4, 7, 12 },
2597 .flags = DISPLAY_FLAGS_DE_HIGH,
2600 static const struct panel_desc innolux_g101ice_l01 = {
2601 .timings = &innolux_g101ice_l01_timing,
2612 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2613 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2614 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2617 static const struct display_timing innolux_g121i1_l01_timing = {
2618 .pixelclock = { 67450000, 71000000, 74550000 },
2619 .hactive = { 1280, 1280, 1280 },
2620 .hfront_porch = { 40, 80, 160 },
2621 .hback_porch = { 39, 79, 159 },
2622 .hsync_len = { 1, 1, 1 },
2623 .vactive = { 800, 800, 800 },
2624 .vfront_porch = { 5, 11, 100 },
2625 .vback_porch = { 4, 11, 99 },
2626 .vsync_len = { 1, 1, 1 },
2629 static const struct panel_desc innolux_g121i1_l01 = {
2630 .timings = &innolux_g121i1_l01_timing,
2641 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2642 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2645 static const struct display_timing innolux_g121x1_l03_timings = {
2646 .pixelclock = { 57500000, 64900000, 74400000 },
2647 .hactive = { 1024, 1024, 1024 },
2648 .hfront_porch = { 90, 140, 190 },
2649 .hback_porch = { 90, 140, 190 },
2650 .hsync_len = { 36, 40, 60 },
2651 .vactive = { 768, 768, 768 },
2652 .vfront_porch = { 2, 15, 30 },
2653 .vback_porch = { 2, 15, 30 },
2654 .vsync_len = { 2, 8, 20 },
2655 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
2658 static const struct panel_desc innolux_g121x1_l03 = {
2659 .timings = &innolux_g121x1_l03_timings,
2671 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2672 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2673 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2676 static const struct panel_desc innolux_g121xce_l01 = {
2677 .timings = &innolux_g121x1_l03_timings,
2689 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2690 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2691 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2694 static const struct display_timing innolux_g156hce_l01_timings = {
2695 .pixelclock = { 120000000, 141860000, 150000000 },
2696 .hactive = { 1920, 1920, 1920 },
2697 .hfront_porch = { 80, 90, 100 },
2698 .hback_porch = { 80, 90, 100 },
2699 .hsync_len = { 20, 30, 30 },
2700 .vactive = { 1080, 1080, 1080 },
2701 .vfront_porch = { 3, 10, 20 },
2702 .vback_porch = { 3, 10, 20 },
2703 .vsync_len = { 4, 10, 10 },
2706 static const struct panel_desc innolux_g156hce_l01 = {
2707 .timings = &innolux_g156hce_l01_timings,
2715 .prepare = 1, /* T1+T2 */
2716 .enable = 450, /* T5 */
2717 .disable = 200, /* T6 */
2718 .unprepare = 10, /* T3+T7 */
2720 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2721 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2722 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2725 static const struct drm_display_mode innolux_n156bge_l21_mode = {
2728 .hsync_start = 1366 + 16,
2729 .hsync_end = 1366 + 16 + 34,
2730 .htotal = 1366 + 16 + 34 + 50,
2732 .vsync_start = 768 + 2,
2733 .vsync_end = 768 + 2 + 6,
2734 .vtotal = 768 + 2 + 6 + 12,
2737 static const struct panel_desc innolux_n156bge_l21 = {
2738 .modes = &innolux_n156bge_l21_mode,
2745 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2746 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2747 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2750 static const struct drm_display_mode innolux_zj070na_01p_mode = {
2753 .hsync_start = 1024 + 128,
2754 .hsync_end = 1024 + 128 + 64,
2755 .htotal = 1024 + 128 + 64 + 128,
2757 .vsync_start = 600 + 16,
2758 .vsync_end = 600 + 16 + 4,
2759 .vtotal = 600 + 16 + 4 + 16,
2762 static const struct panel_desc innolux_zj070na_01p = {
2763 .modes = &innolux_zj070na_01p_mode,
2772 static const struct display_timing koe_tx14d24vm1bpa_timing = {
2773 .pixelclock = { 5580000, 5850000, 6200000 },
2774 .hactive = { 320, 320, 320 },
2775 .hfront_porch = { 30, 30, 30 },
2776 .hback_porch = { 30, 30, 30 },
2777 .hsync_len = { 1, 5, 17 },
2778 .vactive = { 240, 240, 240 },
2779 .vfront_porch = { 6, 6, 6 },
2780 .vback_porch = { 5, 5, 5 },
2781 .vsync_len = { 1, 2, 11 },
2782 .flags = DISPLAY_FLAGS_DE_HIGH,
2785 static const struct panel_desc koe_tx14d24vm1bpa = {
2786 .timings = &koe_tx14d24vm1bpa_timing,
2795 static const struct display_timing koe_tx26d202vm0bwa_timing = {
2796 .pixelclock = { 151820000, 156720000, 159780000 },
2797 .hactive = { 1920, 1920, 1920 },
2798 .hfront_porch = { 105, 130, 142 },
2799 .hback_porch = { 45, 70, 82 },
2800 .hsync_len = { 30, 30, 30 },
2801 .vactive = { 1200, 1200, 1200},
2802 .vfront_porch = { 3, 5, 10 },
2803 .vback_porch = { 2, 5, 10 },
2804 .vsync_len = { 5, 5, 5 },
2805 .flags = DISPLAY_FLAGS_DE_HIGH,
2808 static const struct panel_desc koe_tx26d202vm0bwa = {
2809 .timings = &koe_tx26d202vm0bwa_timing,
2822 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2823 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2824 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2827 static const struct display_timing koe_tx31d200vm0baa_timing = {
2828 .pixelclock = { 39600000, 43200000, 48000000 },
2829 .hactive = { 1280, 1280, 1280 },
2830 .hfront_porch = { 16, 36, 56 },
2831 .hback_porch = { 16, 36, 56 },
2832 .hsync_len = { 8, 8, 8 },
2833 .vactive = { 480, 480, 480 },
2834 .vfront_porch = { 6, 21, 33 },
2835 .vback_porch = { 6, 21, 33 },
2836 .vsync_len = { 8, 8, 8 },
2837 .flags = DISPLAY_FLAGS_DE_HIGH,
2840 static const struct panel_desc koe_tx31d200vm0baa = {
2841 .timings = &koe_tx31d200vm0baa_timing,
2848 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2849 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2852 static const struct display_timing kyo_tcg121xglp_timing = {
2853 .pixelclock = { 52000000, 65000000, 71000000 },
2854 .hactive = { 1024, 1024, 1024 },
2855 .hfront_porch = { 2, 2, 2 },
2856 .hback_porch = { 2, 2, 2 },
2857 .hsync_len = { 86, 124, 244 },
2858 .vactive = { 768, 768, 768 },
2859 .vfront_porch = { 2, 2, 2 },
2860 .vback_porch = { 2, 2, 2 },
2861 .vsync_len = { 6, 34, 73 },
2862 .flags = DISPLAY_FLAGS_DE_HIGH,
2865 static const struct panel_desc kyo_tcg121xglp = {
2866 .timings = &kyo_tcg121xglp_timing,
2873 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2874 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2877 static const struct drm_display_mode lemaker_bl035_rgb_002_mode = {
2880 .hsync_start = 320 + 20,
2881 .hsync_end = 320 + 20 + 30,
2882 .htotal = 320 + 20 + 30 + 38,
2884 .vsync_start = 240 + 4,
2885 .vsync_end = 240 + 4 + 3,
2886 .vtotal = 240 + 4 + 3 + 15,
2889 static const struct panel_desc lemaker_bl035_rgb_002 = {
2890 .modes = &lemaker_bl035_rgb_002_mode,
2896 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2897 .bus_flags = DRM_BUS_FLAG_DE_LOW,
2900 static const struct display_timing lg_lb070wv8_timing = {
2901 .pixelclock = { 31950000, 33260000, 34600000 },
2902 .hactive = { 800, 800, 800 },
2903 .hfront_porch = { 88, 88, 88 },
2904 .hback_porch = { 88, 88, 88 },
2905 .hsync_len = { 80, 80, 80 },
2906 .vactive = { 480, 480, 480 },
2907 .vfront_porch = { 10, 10, 10 },
2908 .vback_porch = { 10, 10, 10 },
2909 .vsync_len = { 25, 25, 25 },
2912 static const struct panel_desc lg_lb070wv8 = {
2913 .timings = &lg_lb070wv8_timing,
2920 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2921 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2924 static const struct drm_display_mode lincolntech_lcd185_101ct_mode = {
2927 .hsync_start = 1920 + 128,
2928 .hsync_end = 1920 + 128 + 20,
2929 .htotal = 1920 + 128 + 20 + 12,
2931 .vsync_start = 1200 + 19,
2932 .vsync_end = 1200 + 19 + 4,
2933 .vtotal = 1200 + 19 + 4 + 20,
2936 static const struct panel_desc lincolntech_lcd185_101ct = {
2937 .modes = &lincolntech_lcd185_101ct_mode,
2948 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2949 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2950 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2953 static const struct display_timing logictechno_lt161010_2nh_timing = {
2954 .pixelclock = { 26400000, 33300000, 46800000 },
2955 .hactive = { 800, 800, 800 },
2956 .hfront_porch = { 16, 210, 354 },
2957 .hback_porch = { 46, 46, 46 },
2958 .hsync_len = { 1, 20, 40 },
2959 .vactive = { 480, 480, 480 },
2960 .vfront_porch = { 7, 22, 147 },
2961 .vback_porch = { 23, 23, 23 },
2962 .vsync_len = { 1, 10, 20 },
2963 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2964 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2965 DISPLAY_FLAGS_SYNC_POSEDGE,
2968 static const struct panel_desc logictechno_lt161010_2nh = {
2969 .timings = &logictechno_lt161010_2nh_timing,
2976 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2977 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
2978 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
2979 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
2980 .connector_type = DRM_MODE_CONNECTOR_DPI,
2983 static const struct display_timing logictechno_lt170410_2whc_timing = {
2984 .pixelclock = { 68900000, 71100000, 73400000 },
2985 .hactive = { 1280, 1280, 1280 },
2986 .hfront_porch = { 23, 60, 71 },
2987 .hback_porch = { 23, 60, 71 },
2988 .hsync_len = { 15, 40, 47 },
2989 .vactive = { 800, 800, 800 },
2990 .vfront_porch = { 5, 7, 10 },
2991 .vback_porch = { 5, 7, 10 },
2992 .vsync_len = { 6, 9, 12 },
2993 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2994 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2995 DISPLAY_FLAGS_SYNC_POSEDGE,
2998 static const struct panel_desc logictechno_lt170410_2whc = {
2999 .timings = &logictechno_lt170410_2whc_timing,
3006 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3007 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3008 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3011 static const struct drm_display_mode logictechno_lttd800480070_l2rt_mode = {
3014 .hsync_start = 800 + 112,
3015 .hsync_end = 800 + 112 + 3,
3016 .htotal = 800 + 112 + 3 + 85,
3018 .vsync_start = 480 + 38,
3019 .vsync_end = 480 + 38 + 3,
3020 .vtotal = 480 + 38 + 3 + 29,
3021 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3024 static const struct panel_desc logictechno_lttd800480070_l2rt = {
3025 .modes = &logictechno_lttd800480070_l2rt_mode,
3038 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3039 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3040 .connector_type = DRM_MODE_CONNECTOR_DPI,
3043 static const struct drm_display_mode logictechno_lttd800480070_l6wh_rt_mode = {
3046 .hsync_start = 800 + 154,
3047 .hsync_end = 800 + 154 + 3,
3048 .htotal = 800 + 154 + 3 + 43,
3050 .vsync_start = 480 + 47,
3051 .vsync_end = 480 + 47 + 3,
3052 .vtotal = 480 + 47 + 3 + 20,
3053 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3056 static const struct panel_desc logictechno_lttd800480070_l6wh_rt = {
3057 .modes = &logictechno_lttd800480070_l6wh_rt_mode,
3070 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3071 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3072 .connector_type = DRM_MODE_CONNECTOR_DPI,
3075 static const struct drm_display_mode logicpd_type_28_mode = {
3078 .hsync_start = 480 + 3,
3079 .hsync_end = 480 + 3 + 42,
3080 .htotal = 480 + 3 + 42 + 2,
3083 .vsync_start = 272 + 2,
3084 .vsync_end = 272 + 2 + 11,
3085 .vtotal = 272 + 2 + 11 + 3,
3086 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3089 static const struct panel_desc logicpd_type_28 = {
3090 .modes = &logicpd_type_28_mode,
3103 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3104 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3105 DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
3106 .connector_type = DRM_MODE_CONNECTOR_DPI,
3109 static const struct drm_display_mode microtips_mf_101hiebcaf0_c_mode = {
3112 .hsync_start = 1920 + 32,
3113 .hsync_end = 1920 + 32 + 52,
3114 .htotal = 1920 + 32 + 52 + 24,
3116 .vsync_start = 1200 + 24,
3117 .vsync_end = 1200 + 24 + 8,
3118 .vtotal = 1200 + 24 + 8 + 3,
3121 static const struct panel_desc microtips_mf_101hiebcaf0_c = {
3122 .modes = µtips_mf_101hiebcaf0_c_mode,
3133 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3134 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3135 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3138 static const struct drm_display_mode microtips_mf_103hieb0ga0_mode = {
3141 .hsync_start = 1920 + 72,
3142 .hsync_end = 1920 + 72 + 72,
3143 .htotal = 1920 + 72 + 72 + 72,
3145 .vsync_start = 720 + 3,
3146 .vsync_end = 720 + 3 + 3,
3147 .vtotal = 720 + 3 + 3 + 2,
3150 static const struct panel_desc microtips_mf_103hieb0ga0 = {
3151 .modes = µtips_mf_103hieb0ga0_mode,
3162 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3163 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3164 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3167 static const struct drm_display_mode mitsubishi_aa070mc01_mode = {
3170 .hsync_start = 800 + 0,
3171 .hsync_end = 800 + 1,
3172 .htotal = 800 + 0 + 1 + 160,
3174 .vsync_start = 480 + 0,
3175 .vsync_end = 480 + 48 + 1,
3176 .vtotal = 480 + 48 + 1 + 0,
3177 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
3180 static const struct panel_desc mitsubishi_aa070mc01 = {
3181 .modes = &mitsubishi_aa070mc01_mode,
3194 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3195 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3196 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3199 static const struct drm_display_mode mitsubishi_aa084xe01_mode = {
3202 .hsync_start = 1024 + 24,
3203 .hsync_end = 1024 + 24 + 63,
3204 .htotal = 1024 + 24 + 63 + 1,
3206 .vsync_start = 768 + 3,
3207 .vsync_end = 768 + 3 + 6,
3208 .vtotal = 768 + 3 + 6 + 1,
3209 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3212 static const struct panel_desc mitsubishi_aa084xe01 = {
3213 .modes = &mitsubishi_aa084xe01_mode,
3220 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
3221 .connector_type = DRM_MODE_CONNECTOR_DPI,
3222 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3225 static const struct display_timing multi_inno_mi0700a2t_30_timing = {
3226 .pixelclock = { 26400000, 33000000, 46800000 },
3227 .hactive = { 800, 800, 800 },
3228 .hfront_porch = { 16, 204, 354 },
3229 .hback_porch = { 46, 46, 46 },
3230 .hsync_len = { 1, 6, 40 },
3231 .vactive = { 480, 480, 480 },
3232 .vfront_porch = { 7, 22, 147 },
3233 .vback_porch = { 23, 23, 23 },
3234 .vsync_len = { 1, 3, 20 },
3235 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3236 DISPLAY_FLAGS_DE_HIGH,
3239 static const struct panel_desc multi_inno_mi0700a2t_30 = {
3240 .timings = &multi_inno_mi0700a2t_30_timing,
3247 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3248 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3249 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3252 static const struct display_timing multi_inno_mi0700s4t_6_timing = {
3253 .pixelclock = { 29000000, 33000000, 38000000 },
3254 .hactive = { 800, 800, 800 },
3255 .hfront_porch = { 180, 210, 240 },
3256 .hback_porch = { 16, 16, 16 },
3257 .hsync_len = { 30, 30, 30 },
3258 .vactive = { 480, 480, 480 },
3259 .vfront_porch = { 12, 22, 32 },
3260 .vback_porch = { 10, 10, 10 },
3261 .vsync_len = { 13, 13, 13 },
3262 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3263 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3264 DISPLAY_FLAGS_SYNC_POSEDGE,
3267 static const struct panel_desc multi_inno_mi0700s4t_6 = {
3268 .timings = &multi_inno_mi0700s4t_6_timing,
3275 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3276 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3277 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3278 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3279 .connector_type = DRM_MODE_CONNECTOR_DPI,
3282 static const struct display_timing multi_inno_mi0800ft_9_timing = {
3283 .pixelclock = { 32000000, 40000000, 50000000 },
3284 .hactive = { 800, 800, 800 },
3285 .hfront_porch = { 16, 210, 354 },
3286 .hback_porch = { 6, 26, 45 },
3287 .hsync_len = { 1, 20, 40 },
3288 .vactive = { 600, 600, 600 },
3289 .vfront_porch = { 1, 12, 77 },
3290 .vback_porch = { 3, 13, 22 },
3291 .vsync_len = { 1, 10, 20 },
3292 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3293 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3294 DISPLAY_FLAGS_SYNC_POSEDGE,
3297 static const struct panel_desc multi_inno_mi0800ft_9 = {
3298 .timings = &multi_inno_mi0800ft_9_timing,
3305 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3306 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3307 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3308 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3309 .connector_type = DRM_MODE_CONNECTOR_DPI,
3312 static const struct display_timing multi_inno_mi1010ait_1cp_timing = {
3313 .pixelclock = { 68900000, 70000000, 73400000 },
3314 .hactive = { 1280, 1280, 1280 },
3315 .hfront_porch = { 30, 60, 71 },
3316 .hback_porch = { 30, 60, 71 },
3317 .hsync_len = { 10, 10, 48 },
3318 .vactive = { 800, 800, 800 },
3319 .vfront_porch = { 5, 10, 10 },
3320 .vback_porch = { 5, 10, 10 },
3321 .vsync_len = { 5, 6, 13 },
3322 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3323 DISPLAY_FLAGS_DE_HIGH,
3326 static const struct panel_desc multi_inno_mi1010ait_1cp = {
3327 .timings = &multi_inno_mi1010ait_1cp_timing,
3338 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3339 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3340 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3343 static const struct display_timing multi_inno_mi1010z1t_1cp11_timing = {
3344 .pixelclock = { 40800000, 51200000, 67200000 },
3345 .hactive = { 1024, 1024, 1024 },
3346 .hfront_porch = { 30, 110, 130 },
3347 .hback_porch = { 30, 110, 130 },
3348 .hsync_len = { 30, 100, 116 },
3349 .vactive = { 600, 600, 600 },
3350 .vfront_porch = { 4, 13, 80 },
3351 .vback_porch = { 4, 13, 80 },
3352 .vsync_len = { 2, 9, 40 },
3353 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3354 DISPLAY_FLAGS_DE_HIGH,
3357 static const struct panel_desc multi_inno_mi1010z1t_1cp11 = {
3358 .timings = &multi_inno_mi1010z1t_1cp11_timing,
3365 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3366 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3367 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3370 static const struct display_timing nec_nl12880bc20_05_timing = {
3371 .pixelclock = { 67000000, 71000000, 75000000 },
3372 .hactive = { 1280, 1280, 1280 },
3373 .hfront_porch = { 2, 30, 30 },
3374 .hback_porch = { 6, 100, 100 },
3375 .hsync_len = { 2, 30, 30 },
3376 .vactive = { 800, 800, 800 },
3377 .vfront_porch = { 5, 5, 5 },
3378 .vback_porch = { 11, 11, 11 },
3379 .vsync_len = { 7, 7, 7 },
3382 static const struct panel_desc nec_nl12880bc20_05 = {
3383 .timings = &nec_nl12880bc20_05_timing,
3394 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3395 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3398 static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
3401 .hsync_start = 480 + 2,
3402 .hsync_end = 480 + 2 + 41,
3403 .htotal = 480 + 2 + 41 + 2,
3405 .vsync_start = 272 + 2,
3406 .vsync_end = 272 + 2 + 4,
3407 .vtotal = 272 + 2 + 4 + 2,
3408 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3411 static const struct panel_desc nec_nl4827hc19_05b = {
3412 .modes = &nec_nl4827hc19_05b_mode,
3419 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3420 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3423 static const struct drm_display_mode netron_dy_e231732_mode = {
3426 .hsync_start = 1024 + 160,
3427 .hsync_end = 1024 + 160 + 70,
3428 .htotal = 1024 + 160 + 70 + 90,
3430 .vsync_start = 600 + 127,
3431 .vsync_end = 600 + 127 + 20,
3432 .vtotal = 600 + 127 + 20 + 3,
3435 static const struct panel_desc netron_dy_e231732 = {
3436 .modes = &netron_dy_e231732_mode,
3442 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3445 static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = {
3448 .hsync_start = 480 + 2,
3449 .hsync_end = 480 + 2 + 41,
3450 .htotal = 480 + 2 + 41 + 2,
3452 .vsync_start = 272 + 2,
3453 .vsync_end = 272 + 2 + 10,
3454 .vtotal = 272 + 2 + 10 + 2,
3455 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3458 static const struct panel_desc newhaven_nhd_43_480272ef_atxl = {
3459 .modes = &newhaven_nhd_43_480272ef_atxl_mode,
3466 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3467 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3468 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3469 .connector_type = DRM_MODE_CONNECTOR_DPI,
3472 static const struct display_timing nlt_nl192108ac18_02d_timing = {
3473 .pixelclock = { 130000000, 148350000, 163000000 },
3474 .hactive = { 1920, 1920, 1920 },
3475 .hfront_porch = { 80, 100, 100 },
3476 .hback_porch = { 100, 120, 120 },
3477 .hsync_len = { 50, 60, 60 },
3478 .vactive = { 1080, 1080, 1080 },
3479 .vfront_porch = { 12, 30, 30 },
3480 .vback_porch = { 4, 10, 10 },
3481 .vsync_len = { 4, 5, 5 },
3484 static const struct panel_desc nlt_nl192108ac18_02d = {
3485 .timings = &nlt_nl192108ac18_02d_timing,
3495 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3496 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3499 static const struct drm_display_mode nvd_9128_mode = {
3502 .hsync_start = 800 + 130,
3503 .hsync_end = 800 + 130 + 98,
3504 .htotal = 800 + 0 + 130 + 98,
3506 .vsync_start = 480 + 10,
3507 .vsync_end = 480 + 10 + 50,
3508 .vtotal = 480 + 0 + 10 + 50,
3511 static const struct panel_desc nvd_9128 = {
3512 .modes = &nvd_9128_mode,
3519 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3520 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3523 static const struct display_timing okaya_rs800480t_7x0gp_timing = {
3524 .pixelclock = { 30000000, 30000000, 40000000 },
3525 .hactive = { 800, 800, 800 },
3526 .hfront_porch = { 40, 40, 40 },
3527 .hback_porch = { 40, 40, 40 },
3528 .hsync_len = { 1, 48, 48 },
3529 .vactive = { 480, 480, 480 },
3530 .vfront_porch = { 13, 13, 13 },
3531 .vback_porch = { 29, 29, 29 },
3532 .vsync_len = { 3, 3, 3 },
3533 .flags = DISPLAY_FLAGS_DE_HIGH,
3536 static const struct panel_desc okaya_rs800480t_7x0gp = {
3537 .timings = &okaya_rs800480t_7x0gp_timing,
3550 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3553 static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = {
3556 .hsync_start = 480 + 5,
3557 .hsync_end = 480 + 5 + 30,
3558 .htotal = 480 + 5 + 30 + 10,
3560 .vsync_start = 272 + 8,
3561 .vsync_end = 272 + 8 + 5,
3562 .vtotal = 272 + 8 + 5 + 3,
3565 static const struct panel_desc olimex_lcd_olinuxino_43ts = {
3566 .modes = &olimex_lcd_olinuxino_43ts_mode,
3572 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3575 static const struct display_timing ontat_kd50g21_40nt_a1_timing = {
3576 .pixelclock = { 30000000, 30000000, 50000000 },
3577 .hactive = { 800, 800, 800 },
3578 .hfront_porch = { 1, 40, 255 },
3579 .hback_porch = { 1, 40, 87 },
3580 .hsync_len = { 1, 48, 87 },
3581 .vactive = { 480, 480, 480 },
3582 .vfront_porch = { 1, 13, 255 },
3583 .vback_porch = { 1, 29, 29 },
3584 .vsync_len = { 3, 3, 31 },
3585 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3586 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3589 static const struct panel_desc ontat_kd50g21_40nt_a1 = {
3590 .timings = &ontat_kd50g21_40nt_a1_timing,
3598 .prepare = 147, /* 5 VSDs */
3599 .enable = 147, /* 5 VSDs */
3600 .disable = 88, /* 3 VSDs */
3601 .unprepare = 117, /* 4 VSDs */
3603 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3604 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3605 .connector_type = DRM_MODE_CONNECTOR_DPI,
3609 * 800x480 CVT. The panel appears to be quite accepting, at least as far as
3610 * pixel clocks, but this is the timing that was being used in the Adafruit
3611 * installation instructions.
3613 static const struct drm_display_mode ontat_yx700wv03_mode = {
3623 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3628 * https://www.adafruit.com/images/product-files/2406/c3163.pdf
3630 static const struct panel_desc ontat_yx700wv03 = {
3631 .modes = &ontat_yx700wv03_mode,
3638 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3641 static const struct drm_display_mode ortustech_com37h3m_mode = {
3644 .hsync_start = 480 + 40,
3645 .hsync_end = 480 + 40 + 10,
3646 .htotal = 480 + 40 + 10 + 40,
3648 .vsync_start = 640 + 4,
3649 .vsync_end = 640 + 4 + 2,
3650 .vtotal = 640 + 4 + 2 + 4,
3651 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3654 static const struct panel_desc ortustech_com37h3m = {
3655 .modes = &ortustech_com37h3m_mode,
3659 .width = 56, /* 56.16mm */
3660 .height = 75, /* 74.88mm */
3662 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3663 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3664 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3667 static const struct drm_display_mode ortustech_com43h4m85ulc_mode = {
3670 .hsync_start = 480 + 10,
3671 .hsync_end = 480 + 10 + 10,
3672 .htotal = 480 + 10 + 10 + 15,
3674 .vsync_start = 800 + 3,
3675 .vsync_end = 800 + 3 + 3,
3676 .vtotal = 800 + 3 + 3 + 3,
3679 static const struct panel_desc ortustech_com43h4m85ulc = {
3680 .modes = &ortustech_com43h4m85ulc_mode,
3687 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3688 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3689 .connector_type = DRM_MODE_CONNECTOR_DPI,
3692 static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = {
3695 .hsync_start = 800 + 210,
3696 .hsync_end = 800 + 210 + 30,
3697 .htotal = 800 + 210 + 30 + 16,
3699 .vsync_start = 480 + 22,
3700 .vsync_end = 480 + 22 + 13,
3701 .vtotal = 480 + 22 + 13 + 10,
3702 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3705 static const struct panel_desc osddisplays_osd070t1718_19ts = {
3706 .modes = &osddisplays_osd070t1718_19ts_mode,
3713 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3714 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3715 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3716 .connector_type = DRM_MODE_CONNECTOR_DPI,
3719 static const struct drm_display_mode pda_91_00156_a0_mode = {
3722 .hsync_start = 800 + 1,
3723 .hsync_end = 800 + 1 + 64,
3724 .htotal = 800 + 1 + 64 + 64,
3726 .vsync_start = 480 + 1,
3727 .vsync_end = 480 + 1 + 23,
3728 .vtotal = 480 + 1 + 23 + 22,
3731 static const struct panel_desc pda_91_00156_a0 = {
3732 .modes = &pda_91_00156_a0_mode,
3738 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3741 static const struct drm_display_mode powertip_ph128800t006_zhc01_mode = {
3744 .hsync_start = 1280 + 12,
3745 .hsync_end = 1280 + 12 + 20,
3746 .htotal = 1280 + 12 + 20 + 56,
3748 .vsync_start = 800 + 1,
3749 .vsync_end = 800 + 1 + 3,
3750 .vtotal = 800 + 1 + 3 + 20,
3751 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3754 static const struct panel_desc powertip_ph128800t006_zhc01 = {
3755 .modes = &powertip_ph128800t006_zhc01_mode,
3762 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3763 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3764 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3767 static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
3770 .hsync_start = 800 + 54,
3771 .hsync_end = 800 + 54 + 2,
3772 .htotal = 800 + 54 + 2 + 44,
3774 .vsync_start = 480 + 49,
3775 .vsync_end = 480 + 49 + 2,
3776 .vtotal = 480 + 49 + 2 + 22,
3777 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3780 static const struct panel_desc powertip_ph800480t013_idf02 = {
3781 .modes = &powertip_ph800480t013_idf02_mode,
3788 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3789 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3790 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3791 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3792 .connector_type = DRM_MODE_CONNECTOR_DPI,
3795 static const struct drm_display_mode primeview_pm070wl4_mode = {
3798 .hsync_start = 800 + 42,
3799 .hsync_end = 800 + 42 + 128,
3800 .htotal = 800 + 42 + 128 + 86,
3802 .vsync_start = 480 + 10,
3803 .vsync_end = 480 + 10 + 2,
3804 .vtotal = 480 + 10 + 2 + 33,
3805 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
3808 static const struct panel_desc primeview_pm070wl4 = {
3809 .modes = &primeview_pm070wl4_mode,
3816 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
3817 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3818 .connector_type = DRM_MODE_CONNECTOR_DPI,
3821 static const struct drm_display_mode qd43003c0_40_mode = {
3824 .hsync_start = 480 + 8,
3825 .hsync_end = 480 + 8 + 4,
3826 .htotal = 480 + 8 + 4 + 39,
3828 .vsync_start = 272 + 4,
3829 .vsync_end = 272 + 4 + 10,
3830 .vtotal = 272 + 4 + 10 + 2,
3833 static const struct panel_desc qd43003c0_40 = {
3834 .modes = &qd43003c0_40_mode,
3841 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3844 static const struct drm_display_mode qishenglong_gopher2b_lcd_modes[] = {
3848 .hsync_start = 480 + 77,
3849 .hsync_end = 480 + 77 + 41,
3850 .htotal = 480 + 77 + 41 + 2,
3852 .vsync_start = 272 + 16,
3853 .vsync_end = 272 + 16 + 10,
3854 .vtotal = 272 + 16 + 10 + 2,
3855 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3860 .hsync_start = 480 + 17,
3861 .hsync_end = 480 + 17 + 41,
3862 .htotal = 480 + 17 + 41 + 2,
3864 .vsync_start = 272 + 116,
3865 .vsync_end = 272 + 116 + 10,
3866 .vtotal = 272 + 116 + 10 + 2,
3867 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3871 static const struct panel_desc qishenglong_gopher2b_lcd = {
3872 .modes = qishenglong_gopher2b_lcd_modes,
3873 .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_modes),
3879 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3880 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3881 .connector_type = DRM_MODE_CONNECTOR_DPI,
3884 static const struct display_timing rocktech_rk043fn48h_timing = {
3885 .pixelclock = { 6000000, 9000000, 12000000 },
3886 .hactive = { 480, 480, 480 },
3887 .hback_porch = { 8, 43, 43 },
3888 .hfront_porch = { 2, 8, 10 },
3889 .hsync_len = { 1, 1, 1 },
3890 .vactive = { 272, 272, 272 },
3891 .vback_porch = { 2, 12, 26 },
3892 .vfront_porch = { 1, 4, 4 },
3893 .vsync_len = { 1, 10, 10 },
3894 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
3895 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3896 DISPLAY_FLAGS_SYNC_POSEDGE,
3899 static const struct panel_desc rocktech_rk043fn48h = {
3900 .timings = &rocktech_rk043fn48h_timing,
3907 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3908 .connector_type = DRM_MODE_CONNECTOR_DPI,
3911 static const struct display_timing rocktech_rk070er9427_timing = {
3912 .pixelclock = { 26400000, 33300000, 46800000 },
3913 .hactive = { 800, 800, 800 },
3914 .hfront_porch = { 16, 210, 354 },
3915 .hback_porch = { 46, 46, 46 },
3916 .hsync_len = { 1, 1, 1 },
3917 .vactive = { 480, 480, 480 },
3918 .vfront_porch = { 7, 22, 147 },
3919 .vback_porch = { 23, 23, 23 },
3920 .vsync_len = { 1, 1, 1 },
3921 .flags = DISPLAY_FLAGS_DE_HIGH,
3924 static const struct panel_desc rocktech_rk070er9427 = {
3925 .timings = &rocktech_rk070er9427_timing,
3938 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3941 static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = {
3944 .hsync_start = 1280 + 48,
3945 .hsync_end = 1280 + 48 + 32,
3946 .htotal = 1280 + 48 + 32 + 80,
3948 .vsync_start = 800 + 2,
3949 .vsync_end = 800 + 2 + 5,
3950 .vtotal = 800 + 2 + 5 + 16,
3953 static const struct panel_desc rocktech_rk101ii01d_ct = {
3954 .modes = &rocktech_rk101ii01d_ct_mode,
3965 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3966 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3967 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3970 static const struct display_timing samsung_ltl101al01_timing = {
3971 .pixelclock = { 66663000, 66663000, 66663000 },
3972 .hactive = { 1280, 1280, 1280 },
3973 .hfront_porch = { 18, 18, 18 },
3974 .hback_porch = { 36, 36, 36 },
3975 .hsync_len = { 16, 16, 16 },
3976 .vactive = { 800, 800, 800 },
3977 .vfront_porch = { 4, 4, 4 },
3978 .vback_porch = { 16, 16, 16 },
3979 .vsync_len = { 3, 3, 3 },
3980 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
3983 static const struct panel_desc samsung_ltl101al01 = {
3984 .timings = &samsung_ltl101al01_timing,
3997 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3998 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4001 static const struct drm_display_mode samsung_ltn101nt05_mode = {
4004 .hsync_start = 1024 + 24,
4005 .hsync_end = 1024 + 24 + 136,
4006 .htotal = 1024 + 24 + 136 + 160,
4008 .vsync_start = 600 + 3,
4009 .vsync_end = 600 + 3 + 6,
4010 .vtotal = 600 + 3 + 6 + 61,
4013 static const struct panel_desc samsung_ltn101nt05 = {
4014 .modes = &samsung_ltn101nt05_mode,
4021 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4022 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4023 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4026 static const struct display_timing satoz_sat050at40h12r2_timing = {
4027 .pixelclock = {33300000, 33300000, 50000000},
4028 .hactive = {800, 800, 800},
4029 .hfront_porch = {16, 210, 354},
4030 .hback_porch = {46, 46, 46},
4031 .hsync_len = {1, 1, 40},
4032 .vactive = {480, 480, 480},
4033 .vfront_porch = {7, 22, 147},
4034 .vback_porch = {23, 23, 23},
4035 .vsync_len = {1, 1, 20},
4038 static const struct panel_desc satoz_sat050at40h12r2 = {
4039 .timings = &satoz_sat050at40h12r2_timing,
4046 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4047 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4050 static const struct drm_display_mode sharp_lq070y3dg3b_mode = {
4053 .hsync_start = 800 + 64,
4054 .hsync_end = 800 + 64 + 128,
4055 .htotal = 800 + 64 + 128 + 64,
4057 .vsync_start = 480 + 8,
4058 .vsync_end = 480 + 8 + 2,
4059 .vtotal = 480 + 8 + 2 + 35,
4060 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
4063 static const struct panel_desc sharp_lq070y3dg3b = {
4064 .modes = &sharp_lq070y3dg3b_mode,
4068 .width = 152, /* 152.4mm */
4069 .height = 91, /* 91.4mm */
4071 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4072 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
4073 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
4076 static const struct drm_display_mode sharp_lq035q7db03_mode = {
4079 .hsync_start = 240 + 16,
4080 .hsync_end = 240 + 16 + 7,
4081 .htotal = 240 + 16 + 7 + 5,
4083 .vsync_start = 320 + 9,
4084 .vsync_end = 320 + 9 + 1,
4085 .vtotal = 320 + 9 + 1 + 7,
4088 static const struct panel_desc sharp_lq035q7db03 = {
4089 .modes = &sharp_lq035q7db03_mode,
4096 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4099 static const struct display_timing sharp_lq101k1ly04_timing = {
4100 .pixelclock = { 60000000, 65000000, 80000000 },
4101 .hactive = { 1280, 1280, 1280 },
4102 .hfront_porch = { 20, 20, 20 },
4103 .hback_porch = { 20, 20, 20 },
4104 .hsync_len = { 10, 10, 10 },
4105 .vactive = { 800, 800, 800 },
4106 .vfront_porch = { 4, 4, 4 },
4107 .vback_porch = { 4, 4, 4 },
4108 .vsync_len = { 4, 4, 4 },
4109 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
4112 static const struct panel_desc sharp_lq101k1ly04 = {
4113 .timings = &sharp_lq101k1ly04_timing,
4120 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4121 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4124 static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = {
4128 .hsync_start = 240 + 58,
4129 .hsync_end = 240 + 58 + 1,
4130 .htotal = 240 + 58 + 1 + 1,
4132 .vsync_start = 160 + 24,
4133 .vsync_end = 160 + 24 + 10,
4134 .vtotal = 160 + 24 + 10 + 6,
4135 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
4140 .hsync_start = 240 + 8,
4141 .hsync_end = 240 + 8 + 1,
4142 .htotal = 240 + 8 + 1 + 1,
4144 .vsync_start = 160 + 24,
4145 .vsync_end = 160 + 24 + 10,
4146 .vtotal = 160 + 24 + 10 + 6,
4147 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
4151 static const struct panel_desc sharp_ls020b1dd01d = {
4152 .modes = sharp_ls020b1dd01d_modes,
4153 .num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes),
4159 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
4160 .bus_flags = DRM_BUS_FLAG_DE_HIGH
4161 | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE
4162 | DRM_BUS_FLAG_SHARP_SIGNALS,
4165 static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
4168 .hsync_start = 800 + 1,
4169 .hsync_end = 800 + 1 + 64,
4170 .htotal = 800 + 1 + 64 + 64,
4172 .vsync_start = 480 + 1,
4173 .vsync_end = 480 + 1 + 23,
4174 .vtotal = 480 + 1 + 23 + 22,
4177 static const struct panel_desc shelly_sca07010_bfn_lnn = {
4178 .modes = &shelly_sca07010_bfn_lnn_mode,
4184 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4187 static const struct drm_display_mode starry_kr070pe2t_mode = {
4190 .hsync_start = 800 + 209,
4191 .hsync_end = 800 + 209 + 1,
4192 .htotal = 800 + 209 + 1 + 45,
4194 .vsync_start = 480 + 22,
4195 .vsync_end = 480 + 22 + 1,
4196 .vtotal = 480 + 22 + 1 + 22,
4199 static const struct panel_desc starry_kr070pe2t = {
4200 .modes = &starry_kr070pe2t_mode,
4207 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4208 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
4209 .connector_type = DRM_MODE_CONNECTOR_DPI,
4212 static const struct display_timing startek_kd070wvfpa_mode = {
4213 .pixelclock = { 25200000, 27200000, 30500000 },
4214 .hactive = { 800, 800, 800 },
4215 .hfront_porch = { 19, 44, 115 },
4216 .hback_porch = { 5, 16, 101 },
4217 .hsync_len = { 1, 2, 100 },
4218 .vactive = { 480, 480, 480 },
4219 .vfront_porch = { 5, 43, 67 },
4220 .vback_porch = { 5, 5, 67 },
4221 .vsync_len = { 1, 2, 66 },
4222 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
4223 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
4224 DISPLAY_FLAGS_SYNC_POSEDGE,
4227 static const struct panel_desc startek_kd070wvfpa = {
4228 .timings = &startek_kd070wvfpa_mode,
4240 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4241 .connector_type = DRM_MODE_CONNECTOR_DPI,
4242 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
4243 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
4244 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
4247 static const struct display_timing tsd_tst043015cmhx_timing = {
4248 .pixelclock = { 5000000, 9000000, 12000000 },
4249 .hactive = { 480, 480, 480 },
4250 .hfront_porch = { 4, 5, 65 },
4251 .hback_porch = { 36, 40, 255 },
4252 .hsync_len = { 1, 1, 1 },
4253 .vactive = { 272, 272, 272 },
4254 .vfront_porch = { 2, 8, 97 },
4255 .vback_porch = { 3, 8, 31 },
4256 .vsync_len = { 1, 1, 1 },
4258 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
4259 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
4262 static const struct panel_desc tsd_tst043015cmhx = {
4263 .timings = &tsd_tst043015cmhx_timing,
4270 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4271 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4274 static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = {
4277 .hsync_start = 800 + 39,
4278 .hsync_end = 800 + 39 + 47,
4279 .htotal = 800 + 39 + 47 + 39,
4281 .vsync_start = 480 + 13,
4282 .vsync_end = 480 + 13 + 2,
4283 .vtotal = 480 + 13 + 2 + 29,
4286 static const struct panel_desc tfc_s9700rtwv43tr_01b = {
4287 .modes = &tfc_s9700rtwv43tr_01b_mode,
4294 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4295 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4298 static const struct display_timing tianma_tm070jdhg30_timing = {
4299 .pixelclock = { 62600000, 68200000, 78100000 },
4300 .hactive = { 1280, 1280, 1280 },
4301 .hfront_porch = { 15, 64, 159 },
4302 .hback_porch = { 5, 5, 5 },
4303 .hsync_len = { 1, 1, 256 },
4304 .vactive = { 800, 800, 800 },
4305 .vfront_porch = { 3, 40, 99 },
4306 .vback_porch = { 2, 2, 2 },
4307 .vsync_len = { 1, 1, 128 },
4308 .flags = DISPLAY_FLAGS_DE_HIGH,
4311 static const struct panel_desc tianma_tm070jdhg30 = {
4312 .timings = &tianma_tm070jdhg30_timing,
4319 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4320 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4321 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4324 static const struct panel_desc tianma_tm070jvhg33 = {
4325 .timings = &tianma_tm070jdhg30_timing,
4332 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4333 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4334 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4338 * The datasheet computes total blanking as back porch + front porch, not
4339 * including sync pulse width. This is for both H and V. To make the total
4340 * blanking and period correct, subtract the pulse width from the front
4343 * This works well for the Min and Typ values, but for Max values the sync
4344 * pulse width is higher than back porch + front porch, so work around that
4345 * by reducing the Max sync length value to 1 and then treating the Max
4346 * porches as in the Min and Typ cases.
4348 * Exact datasheet values are added as a comment where they differ from the
4349 * ones implemented for the above reason.
4351 static const struct display_timing tianma_tm070jdhg34_00_timing = {
4352 .pixelclock = { 68400000, 71900000, 78100000 },
4353 .hactive = { 1280, 1280, 1280 },
4354 .hfront_porch = { 130, 138, 158 }, /* 131, 139, 159 */
4355 .hback_porch = { 5, 5, 5 },
4356 .hsync_len = { 1, 1, 1 }, /* 1, 1, 256 */
4357 .vactive = { 800, 800, 800 },
4358 .vfront_porch = { 2, 39, 98 }, /* 3, 40, 99 */
4359 .vback_porch = { 2, 2, 2 },
4360 .vsync_len = { 1, 1, 1 }, /* 1, 1, 128 */
4361 .flags = DISPLAY_FLAGS_DE_HIGH,
4364 static const struct panel_desc tianma_tm070jdhg34_00 = {
4365 .timings = &tianma_tm070jdhg34_00_timing,
4369 .width = 150, /* 149.76 */
4370 .height = 94, /* 93.60 */
4372 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4373 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4376 static const struct display_timing tianma_tm070rvhg71_timing = {
4377 .pixelclock = { 27700000, 29200000, 39600000 },
4378 .hactive = { 800, 800, 800 },
4379 .hfront_porch = { 12, 40, 212 },
4380 .hback_porch = { 88, 88, 88 },
4381 .hsync_len = { 1, 1, 40 },
4382 .vactive = { 480, 480, 480 },
4383 .vfront_porch = { 1, 13, 88 },
4384 .vback_porch = { 32, 32, 32 },
4385 .vsync_len = { 1, 1, 3 },
4386 .flags = DISPLAY_FLAGS_DE_HIGH,
4389 static const struct panel_desc tianma_tm070rvhg71 = {
4390 .timings = &tianma_tm070rvhg71_timing,
4397 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4398 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4401 static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = {
4405 .hsync_start = 320 + 50,
4406 .hsync_end = 320 + 50 + 6,
4407 .htotal = 320 + 50 + 6 + 38,
4409 .vsync_start = 240 + 3,
4410 .vsync_end = 240 + 3 + 1,
4411 .vtotal = 240 + 3 + 1 + 17,
4412 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4416 static const struct panel_desc ti_nspire_cx_lcd_panel = {
4417 .modes = ti_nspire_cx_lcd_mode,
4424 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4425 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
4428 static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = {
4432 .hsync_start = 320 + 6,
4433 .hsync_end = 320 + 6 + 6,
4434 .htotal = 320 + 6 + 6 + 6,
4436 .vsync_start = 240 + 0,
4437 .vsync_end = 240 + 0 + 1,
4438 .vtotal = 240 + 0 + 1 + 0,
4439 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4443 static const struct panel_desc ti_nspire_classic_lcd_panel = {
4444 .modes = ti_nspire_classic_lcd_mode,
4446 /* The grayscale panel has 8 bit for the color .. Y (black) */
4452 /* This is the grayscale bus format */
4453 .bus_format = MEDIA_BUS_FMT_Y8_1X8,
4454 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4457 static const struct display_timing topland_tian_g07017_01_timing = {
4458 .pixelclock = { 44900000, 51200000, 63000000 },
4459 .hactive = { 1024, 1024, 1024 },
4460 .hfront_porch = { 16, 160, 216 },
4461 .hback_porch = { 160, 160, 160 },
4462 .hsync_len = { 1, 1, 140 },
4463 .vactive = { 600, 600, 600 },
4464 .vfront_porch = { 1, 12, 127 },
4465 .vback_porch = { 23, 23, 23 },
4466 .vsync_len = { 1, 1, 20 },
4469 static const struct panel_desc topland_tian_g07017_01 = {
4470 .timings = &topland_tian_g07017_01_timing,
4478 .prepare = 1, /* 6.5 - 150µs PLL wake-up time */
4479 .enable = 100, /* 6.4 - Power on: 6 VSyncs */
4480 .disable = 84, /* 6.4 - Power off: 5 Vsyncs */
4481 .unprepare = 50, /* 6.4 - Power off: 3 Vsyncs */
4483 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4484 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4485 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4488 static const struct drm_display_mode toshiba_lt089ac29000_mode = {
4491 .hsync_start = 1280 + 192,
4492 .hsync_end = 1280 + 192 + 128,
4493 .htotal = 1280 + 192 + 128 + 64,
4495 .vsync_start = 768 + 20,
4496 .vsync_end = 768 + 20 + 7,
4497 .vtotal = 768 + 20 + 7 + 3,
4500 static const struct panel_desc toshiba_lt089ac29000 = {
4501 .modes = &toshiba_lt089ac29000_mode,
4507 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4508 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4509 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4512 static const struct drm_display_mode tpk_f07a_0102_mode = {
4515 .hsync_start = 800 + 40,
4516 .hsync_end = 800 + 40 + 128,
4517 .htotal = 800 + 40 + 128 + 88,
4519 .vsync_start = 480 + 10,
4520 .vsync_end = 480 + 10 + 2,
4521 .vtotal = 480 + 10 + 2 + 33,
4524 static const struct panel_desc tpk_f07a_0102 = {
4525 .modes = &tpk_f07a_0102_mode,
4531 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
4534 static const struct drm_display_mode tpk_f10a_0102_mode = {
4537 .hsync_start = 1024 + 176,
4538 .hsync_end = 1024 + 176 + 5,
4539 .htotal = 1024 + 176 + 5 + 88,
4541 .vsync_start = 600 + 20,
4542 .vsync_end = 600 + 20 + 5,
4543 .vtotal = 600 + 20 + 5 + 25,
4546 static const struct panel_desc tpk_f10a_0102 = {
4547 .modes = &tpk_f10a_0102_mode,
4555 static const struct display_timing urt_umsh_8596md_timing = {
4556 .pixelclock = { 33260000, 33260000, 33260000 },
4557 .hactive = { 800, 800, 800 },
4558 .hfront_porch = { 41, 41, 41 },
4559 .hback_porch = { 216 - 128, 216 - 128, 216 - 128 },
4560 .hsync_len = { 71, 128, 128 },
4561 .vactive = { 480, 480, 480 },
4562 .vfront_porch = { 10, 10, 10 },
4563 .vback_porch = { 35 - 2, 35 - 2, 35 - 2 },
4564 .vsync_len = { 2, 2, 2 },
4565 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
4566 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
4569 static const struct panel_desc urt_umsh_8596md_lvds = {
4570 .timings = &urt_umsh_8596md_timing,
4577 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4578 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4581 static const struct panel_desc urt_umsh_8596md_parallel = {
4582 .timings = &urt_umsh_8596md_timing,
4589 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4592 static const struct drm_display_mode vivax_tpc9150_panel_mode = {
4595 .hsync_start = 1024 + 160,
4596 .hsync_end = 1024 + 160 + 100,
4597 .htotal = 1024 + 160 + 100 + 60,
4599 .vsync_start = 600 + 12,
4600 .vsync_end = 600 + 12 + 10,
4601 .vtotal = 600 + 12 + 10 + 13,
4604 static const struct panel_desc vivax_tpc9150_panel = {
4605 .modes = &vivax_tpc9150_panel_mode,
4612 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4613 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4614 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4617 static const struct drm_display_mode vl050_8048nt_c01_mode = {
4620 .hsync_start = 800 + 210,
4621 .hsync_end = 800 + 210 + 20,
4622 .htotal = 800 + 210 + 20 + 46,
4624 .vsync_start = 480 + 22,
4625 .vsync_end = 480 + 22 + 10,
4626 .vtotal = 480 + 22 + 10 + 23,
4627 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4630 static const struct panel_desc vl050_8048nt_c01 = {
4631 .modes = &vl050_8048nt_c01_mode,
4638 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4639 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4642 static const struct drm_display_mode winstar_wf35ltiacd_mode = {
4645 .hsync_start = 320 + 20,
4646 .hsync_end = 320 + 20 + 30,
4647 .htotal = 320 + 20 + 30 + 38,
4649 .vsync_start = 240 + 4,
4650 .vsync_end = 240 + 4 + 3,
4651 .vtotal = 240 + 4 + 3 + 15,
4652 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4655 static const struct panel_desc winstar_wf35ltiacd = {
4656 .modes = &winstar_wf35ltiacd_mode,
4663 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4666 static const struct drm_display_mode yes_optoelectronics_ytc700tlag_05_201c_mode = {
4669 .hsync_start = 1024 + 100,
4670 .hsync_end = 1024 + 100 + 100,
4671 .htotal = 1024 + 100 + 100 + 120,
4673 .vsync_start = 600 + 10,
4674 .vsync_end = 600 + 10 + 10,
4675 .vtotal = 600 + 10 + 10 + 15,
4676 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4679 static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = {
4680 .modes = &yes_optoelectronics_ytc700tlag_05_201c_mode,
4687 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4688 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4689 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4692 static const struct drm_display_mode mchp_ac69t88a_mode = {
4695 .hsync_start = 800 + 88,
4696 .hsync_end = 800 + 88 + 5,
4697 .htotal = 800 + 88 + 5 + 40,
4699 .vsync_start = 480 + 23,
4700 .vsync_end = 480 + 23 + 5,
4701 .vtotal = 480 + 23 + 5 + 1,
4704 static const struct panel_desc mchp_ac69t88a = {
4705 .modes = &mchp_ac69t88a_mode,
4712 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4713 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4714 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4717 static const struct drm_display_mode arm_rtsm_mode[] = {
4721 .hsync_start = 1024 + 24,
4722 .hsync_end = 1024 + 24 + 136,
4723 .htotal = 1024 + 24 + 136 + 160,
4725 .vsync_start = 768 + 3,
4726 .vsync_end = 768 + 3 + 6,
4727 .vtotal = 768 + 3 + 6 + 29,
4728 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4732 static const struct panel_desc arm_rtsm = {
4733 .modes = arm_rtsm_mode,
4740 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4743 static const struct of_device_id platform_of_match[] = {
4745 .compatible = "ampire,am-1280800n3tzqw-t00h",
4746 .data = &ire_am_1280800n3tzqw_t00h,
4748 .compatible = "ampire,am-480272h3tmqw-t01h",
4749 .data = &ire_am_480272h3tmqw_t01h,
4751 .compatible = "ampire,am-800480l1tmqw-t00h",
4752 .data = &ire_am_800480l1tmqw_t00h,
4754 .compatible = "ampire,am800480r3tmqwa1h",
4755 .data = &ire_am800480r3tmqwa1h,
4757 .compatible = "ampire,am800600p5tmqw-tb8h",
4758 .data = &ire_am800600p5tmqwtb8h,
4760 .compatible = "arm,rtsm-display",
4763 .compatible = "armadeus,st0700-adapt",
4764 .data = &armadeus_st0700_adapt,
4766 .compatible = "auo,b101aw03",
4767 .data = &auo_b101aw03,
4769 .compatible = "auo,b101xtn01",
4770 .data = &auo_b101xtn01,
4772 .compatible = "auo,b116xw03",
4773 .data = &auo_b116xw03,
4775 .compatible = "auo,g070vvn01",
4776 .data = &auo_g070vvn01,
4778 .compatible = "auo,g101evn010",
4779 .data = &auo_g101evn010,
4781 .compatible = "auo,g104sn02",
4782 .data = &auo_g104sn02,
4784 .compatible = "auo,g104stn01",
4785 .data = &auo_g104stn01,
4787 .compatible = "auo,g121ean01",
4788 .data = &auo_g121ean01,
4790 .compatible = "auo,g133han01",
4791 .data = &auo_g133han01,
4793 .compatible = "auo,g156han04",
4794 .data = &auo_g156han04,
4796 .compatible = "auo,g156xtn01",
4797 .data = &auo_g156xtn01,
4799 .compatible = "auo,g185han01",
4800 .data = &auo_g185han01,
4802 .compatible = "auo,g190ean01",
4803 .data = &auo_g190ean01,
4805 .compatible = "auo,p320hvn03",
4806 .data = &auo_p320hvn03,
4808 .compatible = "auo,t215hvn01",
4809 .data = &auo_t215hvn01,
4811 .compatible = "avic,tm070ddh03",
4812 .data = &avic_tm070ddh03,
4814 .compatible = "bananapi,s070wv20-ct16",
4815 .data = &bananapi_s070wv20_ct16,
4817 .compatible = "boe,bp082wx1-100",
4818 .data = &boe_bp082wx1_100,
4820 .compatible = "boe,bp101wx1-100",
4821 .data = &boe_bp101wx1_100,
4823 .compatible = "boe,ev121wxm-n10-1850",
4824 .data = &boe_ev121wxm_n10_1850,
4826 .compatible = "boe,hv070wsa-100",
4827 .data = &boe_hv070wsa
4829 .compatible = "cct,cmt430b19n00",
4830 .data = &cct_cmt430b19n00,
4832 .compatible = "cdtech,s043wq26h-ct7",
4833 .data = &cdtech_s043wq26h_ct7,
4835 .compatible = "cdtech,s070pws19hp-fc21",
4836 .data = &cdtech_s070pws19hp_fc21,
4838 .compatible = "cdtech,s070swv29hg-dc44",
4839 .data = &cdtech_s070swv29hg_dc44,
4841 .compatible = "cdtech,s070wv95-ct16",
4842 .data = &cdtech_s070wv95_ct16,
4844 .compatible = "chefree,ch101olhlwh-002",
4845 .data = &chefree_ch101olhlwh_002,
4847 .compatible = "chunghwa,claa070wp03xg",
4848 .data = &chunghwa_claa070wp03xg,
4850 .compatible = "chunghwa,claa101wa01a",
4851 .data = &chunghwa_claa101wa01a
4853 .compatible = "chunghwa,claa101wb01",
4854 .data = &chunghwa_claa101wb01
4856 .compatible = "dataimage,fg040346dsswbg04",
4857 .data = &dataimage_fg040346dsswbg04,
4859 .compatible = "dataimage,fg1001l0dsswmg01",
4860 .data = &dataimage_fg1001l0dsswmg01,
4862 .compatible = "dataimage,scf0700c48ggu18",
4863 .data = &dataimage_scf0700c48ggu18,
4865 .compatible = "dlc,dlc0700yzg-1",
4866 .data = &dlc_dlc0700yzg_1,
4868 .compatible = "dlc,dlc1010gig",
4869 .data = &dlc_dlc1010gig,
4871 .compatible = "edt,et035012dm6",
4872 .data = &edt_et035012dm6,
4874 .compatible = "edt,etm0350g0dh6",
4875 .data = &edt_etm0350g0dh6,
4877 .compatible = "edt,etm043080dh6gp",
4878 .data = &edt_etm043080dh6gp,
4880 .compatible = "edt,etm0430g0dh6",
4881 .data = &edt_etm0430g0dh6,
4883 .compatible = "edt,et057090dhu",
4884 .data = &edt_et057090dhu,
4886 .compatible = "edt,et070080dh6",
4887 .data = &edt_etm0700g0dh6,
4889 .compatible = "edt,etm0700g0dh6",
4890 .data = &edt_etm0700g0dh6,
4892 .compatible = "edt,etm0700g0bdh6",
4893 .data = &edt_etm0700g0bdh6,
4895 .compatible = "edt,etm0700g0edh6",
4896 .data = &edt_etm0700g0bdh6,
4898 .compatible = "edt,etml0700y5dha",
4899 .data = &edt_etml0700y5dha,
4901 .compatible = "edt,etml1010g3dra",
4902 .data = &edt_etml1010g3dra,
4904 .compatible = "edt,etmv570g2dhu",
4905 .data = &edt_etmv570g2dhu,
4907 .compatible = "eink,vb3300-kca",
4908 .data = &eink_vb3300_kca,
4910 .compatible = "evervision,vgg644804",
4911 .data = &evervision_vgg644804,
4913 .compatible = "evervision,vgg804821",
4914 .data = &evervision_vgg804821,
4916 .compatible = "foxlink,fl500wvr00-a0t",
4917 .data = &foxlink_fl500wvr00_a0t,
4919 .compatible = "frida,frd350h54004",
4920 .data = &frida_frd350h54004,
4922 .compatible = "friendlyarm,hd702e",
4923 .data = &friendlyarm_hd702e,
4925 .compatible = "giantplus,gpg482739qs5",
4926 .data = &giantplus_gpg482739qs5
4928 .compatible = "giantplus,gpm940b0",
4929 .data = &giantplus_gpm940b0,
4931 .compatible = "hannstar,hsd070pww1",
4932 .data = &hannstar_hsd070pww1,
4934 .compatible = "hannstar,hsd100pxn1",
4935 .data = &hannstar_hsd100pxn1,
4937 .compatible = "hannstar,hsd101pww2",
4938 .data = &hannstar_hsd101pww2,
4940 .compatible = "hit,tx23d38vm0caa",
4941 .data = &hitachi_tx23d38vm0caa
4943 .compatible = "innolux,at043tn24",
4944 .data = &innolux_at043tn24,
4946 .compatible = "innolux,at070tn92",
4947 .data = &innolux_at070tn92,
4949 .compatible = "innolux,g070ace-l01",
4950 .data = &innolux_g070ace_l01,
4952 .compatible = "innolux,g070ace-lh3",
4953 .data = &innolux_g070ace_lh3,
4955 .compatible = "innolux,g070y2-l01",
4956 .data = &innolux_g070y2_l01,
4958 .compatible = "innolux,g070y2-t02",
4959 .data = &innolux_g070y2_t02,
4961 .compatible = "innolux,g101ice-l01",
4962 .data = &innolux_g101ice_l01
4964 .compatible = "innolux,g121i1-l01",
4965 .data = &innolux_g121i1_l01
4967 .compatible = "innolux,g121x1-l03",
4968 .data = &innolux_g121x1_l03,
4970 .compatible = "innolux,g121xce-l01",
4971 .data = &innolux_g121xce_l01,
4973 .compatible = "innolux,g156hce-l01",
4974 .data = &innolux_g156hce_l01,
4976 .compatible = "innolux,n156bge-l21",
4977 .data = &innolux_n156bge_l21,
4979 .compatible = "innolux,zj070na-01p",
4980 .data = &innolux_zj070na_01p,
4982 .compatible = "koe,tx14d24vm1bpa",
4983 .data = &koe_tx14d24vm1bpa,
4985 .compatible = "koe,tx26d202vm0bwa",
4986 .data = &koe_tx26d202vm0bwa,
4988 .compatible = "koe,tx31d200vm0baa",
4989 .data = &koe_tx31d200vm0baa,
4991 .compatible = "kyo,tcg121xglp",
4992 .data = &kyo_tcg121xglp,
4994 .compatible = "lemaker,bl035-rgb-002",
4995 .data = &lemaker_bl035_rgb_002,
4997 .compatible = "lg,lb070wv8",
4998 .data = &lg_lb070wv8,
5000 .compatible = "lincolntech,lcd185-101ct",
5001 .data = &lincolntech_lcd185_101ct,
5003 .compatible = "logicpd,type28",
5004 .data = &logicpd_type_28,
5006 .compatible = "logictechno,lt161010-2nhc",
5007 .data = &logictechno_lt161010_2nh,
5009 .compatible = "logictechno,lt161010-2nhr",
5010 .data = &logictechno_lt161010_2nh,
5012 .compatible = "logictechno,lt170410-2whc",
5013 .data = &logictechno_lt170410_2whc,
5015 .compatible = "logictechno,lttd800480070-l2rt",
5016 .data = &logictechno_lttd800480070_l2rt,
5018 .compatible = "logictechno,lttd800480070-l6wh-rt",
5019 .data = &logictechno_lttd800480070_l6wh_rt,
5021 .compatible = "microtips,mf-101hiebcaf0",
5022 .data = µtips_mf_101hiebcaf0_c,
5024 .compatible = "microtips,mf-103hieb0ga0",
5025 .data = µtips_mf_103hieb0ga0,
5027 .compatible = "mitsubishi,aa070mc01-ca1",
5028 .data = &mitsubishi_aa070mc01,
5030 .compatible = "mitsubishi,aa084xe01",
5031 .data = &mitsubishi_aa084xe01,
5033 .compatible = "multi-inno,mi0700a2t-30",
5034 .data = &multi_inno_mi0700a2t_30,
5036 .compatible = "multi-inno,mi0700s4t-6",
5037 .data = &multi_inno_mi0700s4t_6,
5039 .compatible = "multi-inno,mi0800ft-9",
5040 .data = &multi_inno_mi0800ft_9,
5042 .compatible = "multi-inno,mi1010ait-1cp",
5043 .data = &multi_inno_mi1010ait_1cp,
5045 .compatible = "multi-inno,mi1010z1t-1cp11",
5046 .data = &multi_inno_mi1010z1t_1cp11,
5048 .compatible = "nec,nl12880bc20-05",
5049 .data = &nec_nl12880bc20_05,
5051 .compatible = "nec,nl4827hc19-05b",
5052 .data = &nec_nl4827hc19_05b,
5054 .compatible = "netron-dy,e231732",
5055 .data = &netron_dy_e231732,
5057 .compatible = "newhaven,nhd-4.3-480272ef-atxl",
5058 .data = &newhaven_nhd_43_480272ef_atxl,
5060 .compatible = "nlt,nl192108ac18-02d",
5061 .data = &nlt_nl192108ac18_02d,
5063 .compatible = "nvd,9128",
5066 .compatible = "okaya,rs800480t-7x0gp",
5067 .data = &okaya_rs800480t_7x0gp,
5069 .compatible = "olimex,lcd-olinuxino-43-ts",
5070 .data = &olimex_lcd_olinuxino_43ts,
5072 .compatible = "ontat,kd50g21-40nt-a1",
5073 .data = &ontat_kd50g21_40nt_a1,
5075 .compatible = "ontat,yx700wv03",
5076 .data = &ontat_yx700wv03,
5078 .compatible = "ortustech,com37h3m05dtc",
5079 .data = &ortustech_com37h3m,
5081 .compatible = "ortustech,com37h3m99dtc",
5082 .data = &ortustech_com37h3m,
5084 .compatible = "ortustech,com43h4m85ulc",
5085 .data = &ortustech_com43h4m85ulc,
5087 .compatible = "osddisplays,osd070t1718-19ts",
5088 .data = &osddisplays_osd070t1718_19ts,
5090 .compatible = "pda,91-00156-a0",
5091 .data = &pda_91_00156_a0,
5093 .compatible = "powertip,ph128800t006-zhc01",
5094 .data = &powertip_ph128800t006_zhc01,
5096 .compatible = "powertip,ph800480t013-idf02",
5097 .data = &powertip_ph800480t013_idf02,
5099 .compatible = "primeview,pm070wl4",
5100 .data = &primeview_pm070wl4,
5102 .compatible = "qiaodian,qd43003c0-40",
5103 .data = &qd43003c0_40,
5105 .compatible = "qishenglong,gopher2b-lcd",
5106 .data = &qishenglong_gopher2b_lcd,
5108 .compatible = "rocktech,rk043fn48h",
5109 .data = &rocktech_rk043fn48h,
5111 .compatible = "rocktech,rk070er9427",
5112 .data = &rocktech_rk070er9427,
5114 .compatible = "rocktech,rk101ii01d-ct",
5115 .data = &rocktech_rk101ii01d_ct,
5117 .compatible = "samsung,ltl101al01",
5118 .data = &samsung_ltl101al01,
5120 .compatible = "samsung,ltn101nt05",
5121 .data = &samsung_ltn101nt05,
5123 .compatible = "satoz,sat050at40h12r2",
5124 .data = &satoz_sat050at40h12r2,
5126 .compatible = "sharp,lq035q7db03",
5127 .data = &sharp_lq035q7db03,
5129 .compatible = "sharp,lq070y3dg3b",
5130 .data = &sharp_lq070y3dg3b,
5132 .compatible = "sharp,lq101k1ly04",
5133 .data = &sharp_lq101k1ly04,
5135 .compatible = "sharp,ls020b1dd01d",
5136 .data = &sharp_ls020b1dd01d,
5138 .compatible = "shelly,sca07010-bfn-lnn",
5139 .data = &shelly_sca07010_bfn_lnn,
5141 .compatible = "starry,kr070pe2t",
5142 .data = &starry_kr070pe2t,
5144 .compatible = "startek,kd070wvfpa",
5145 .data = &startek_kd070wvfpa,
5147 .compatible = "team-source-display,tst043015cmhx",
5148 .data = &tsd_tst043015cmhx,
5150 .compatible = "tfc,s9700rtwv43tr-01b",
5151 .data = &tfc_s9700rtwv43tr_01b,
5153 .compatible = "tianma,tm070jdhg30",
5154 .data = &tianma_tm070jdhg30,
5156 .compatible = "tianma,tm070jdhg34-00",
5157 .data = &tianma_tm070jdhg34_00,
5159 .compatible = "tianma,tm070jvhg33",
5160 .data = &tianma_tm070jvhg33,
5162 .compatible = "tianma,tm070rvhg71",
5163 .data = &tianma_tm070rvhg71,
5165 .compatible = "ti,nspire-cx-lcd-panel",
5166 .data = &ti_nspire_cx_lcd_panel,
5168 .compatible = "ti,nspire-classic-lcd-panel",
5169 .data = &ti_nspire_classic_lcd_panel,
5171 .compatible = "toshiba,lt089ac29000",
5172 .data = &toshiba_lt089ac29000,
5174 .compatible = "topland,tian-g07017-01",
5175 .data = &topland_tian_g07017_01,
5177 .compatible = "tpk,f07a-0102",
5178 .data = &tpk_f07a_0102,
5180 .compatible = "tpk,f10a-0102",
5181 .data = &tpk_f10a_0102,
5183 .compatible = "urt,umsh-8596md-t",
5184 .data = &urt_umsh_8596md_parallel,
5186 .compatible = "urt,umsh-8596md-1t",
5187 .data = &urt_umsh_8596md_parallel,
5189 .compatible = "urt,umsh-8596md-7t",
5190 .data = &urt_umsh_8596md_parallel,
5192 .compatible = "urt,umsh-8596md-11t",
5193 .data = &urt_umsh_8596md_lvds,
5195 .compatible = "urt,umsh-8596md-19t",
5196 .data = &urt_umsh_8596md_lvds,
5198 .compatible = "urt,umsh-8596md-20t",
5199 .data = &urt_umsh_8596md_parallel,
5201 .compatible = "vivax,tpc9150-panel",
5202 .data = &vivax_tpc9150_panel,
5204 .compatible = "vxt,vl050-8048nt-c01",
5205 .data = &vl050_8048nt_c01,
5207 .compatible = "winstar,wf35ltiacd",
5208 .data = &winstar_wf35ltiacd,
5210 .compatible = "yes-optoelectronics,ytc700tlag-05-201c",
5211 .data = &yes_optoelectronics_ytc700tlag_05_201c,
5213 .compatible = "microchip,ac69t88a",
5214 .data = &mchp_ac69t88a,
5216 /* Must be the last entry */
5217 .compatible = "panel-dpi",
5223 MODULE_DEVICE_TABLE(of, platform_of_match);
5225 static int panel_simple_platform_probe(struct platform_device *pdev)
5227 const struct panel_desc *desc;
5229 desc = of_device_get_match_data(&pdev->dev);
5233 return panel_simple_probe(&pdev->dev, desc);
5236 static void panel_simple_platform_remove(struct platform_device *pdev)
5238 panel_simple_remove(&pdev->dev);
5241 static void panel_simple_platform_shutdown(struct platform_device *pdev)
5243 panel_simple_shutdown(&pdev->dev);
5246 static const struct dev_pm_ops panel_simple_pm_ops = {
5247 SET_RUNTIME_PM_OPS(panel_simple_suspend, panel_simple_resume, NULL)
5248 SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
5249 pm_runtime_force_resume)
5252 static struct platform_driver panel_simple_platform_driver = {
5254 .name = "panel-simple",
5255 .of_match_table = platform_of_match,
5256 .pm = &panel_simple_pm_ops,
5258 .probe = panel_simple_platform_probe,
5259 .remove = panel_simple_platform_remove,
5260 .shutdown = panel_simple_platform_shutdown,
5263 struct panel_desc_dsi {
5264 struct panel_desc desc;
5266 unsigned long flags;
5267 enum mipi_dsi_pixel_format format;
5271 static const struct drm_display_mode auo_b080uan01_mode = {
5274 .hsync_start = 1200 + 62,
5275 .hsync_end = 1200 + 62 + 4,
5276 .htotal = 1200 + 62 + 4 + 62,
5278 .vsync_start = 1920 + 9,
5279 .vsync_end = 1920 + 9 + 2,
5280 .vtotal = 1920 + 9 + 2 + 8,
5283 static const struct panel_desc_dsi auo_b080uan01 = {
5285 .modes = &auo_b080uan01_mode,
5292 .connector_type = DRM_MODE_CONNECTOR_DSI,
5294 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
5295 .format = MIPI_DSI_FMT_RGB888,
5299 static const struct drm_display_mode boe_tv080wum_nl0_mode = {
5302 .hsync_start = 1200 + 120,
5303 .hsync_end = 1200 + 120 + 20,
5304 .htotal = 1200 + 120 + 20 + 21,
5306 .vsync_start = 1920 + 21,
5307 .vsync_end = 1920 + 21 + 3,
5308 .vtotal = 1920 + 21 + 3 + 18,
5309 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
5312 static const struct panel_desc_dsi boe_tv080wum_nl0 = {
5314 .modes = &boe_tv080wum_nl0_mode,
5320 .connector_type = DRM_MODE_CONNECTOR_DSI,
5322 .flags = MIPI_DSI_MODE_VIDEO |
5323 MIPI_DSI_MODE_VIDEO_BURST |
5324 MIPI_DSI_MODE_VIDEO_SYNC_PULSE,
5325 .format = MIPI_DSI_FMT_RGB888,
5329 static const struct drm_display_mode lg_ld070wx3_sl01_mode = {
5332 .hsync_start = 800 + 32,
5333 .hsync_end = 800 + 32 + 1,
5334 .htotal = 800 + 32 + 1 + 57,
5336 .vsync_start = 1280 + 28,
5337 .vsync_end = 1280 + 28 + 1,
5338 .vtotal = 1280 + 28 + 1 + 14,
5341 static const struct panel_desc_dsi lg_ld070wx3_sl01 = {
5343 .modes = &lg_ld070wx3_sl01_mode,
5350 .connector_type = DRM_MODE_CONNECTOR_DSI,
5352 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
5353 .format = MIPI_DSI_FMT_RGB888,
5357 static const struct drm_display_mode lg_lh500wx1_sd03_mode = {
5360 .hsync_start = 720 + 12,
5361 .hsync_end = 720 + 12 + 4,
5362 .htotal = 720 + 12 + 4 + 112,
5364 .vsync_start = 1280 + 8,
5365 .vsync_end = 1280 + 8 + 4,
5366 .vtotal = 1280 + 8 + 4 + 12,
5369 static const struct panel_desc_dsi lg_lh500wx1_sd03 = {
5371 .modes = &lg_lh500wx1_sd03_mode,
5378 .connector_type = DRM_MODE_CONNECTOR_DSI,
5380 .flags = MIPI_DSI_MODE_VIDEO,
5381 .format = MIPI_DSI_FMT_RGB888,
5385 static const struct drm_display_mode panasonic_vvx10f004b00_mode = {
5388 .hsync_start = 1920 + 154,
5389 .hsync_end = 1920 + 154 + 16,
5390 .htotal = 1920 + 154 + 16 + 32,
5392 .vsync_start = 1200 + 17,
5393 .vsync_end = 1200 + 17 + 2,
5394 .vtotal = 1200 + 17 + 2 + 16,
5397 static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
5399 .modes = &panasonic_vvx10f004b00_mode,
5406 .connector_type = DRM_MODE_CONNECTOR_DSI,
5408 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
5409 MIPI_DSI_CLOCK_NON_CONTINUOUS,
5410 .format = MIPI_DSI_FMT_RGB888,
5414 static const struct drm_display_mode lg_acx467akm_7_mode = {
5417 .hsync_start = 1080 + 2,
5418 .hsync_end = 1080 + 2 + 2,
5419 .htotal = 1080 + 2 + 2 + 2,
5421 .vsync_start = 1920 + 2,
5422 .vsync_end = 1920 + 2 + 2,
5423 .vtotal = 1920 + 2 + 2 + 2,
5426 static const struct panel_desc_dsi lg_acx467akm_7 = {
5428 .modes = &lg_acx467akm_7_mode,
5435 .connector_type = DRM_MODE_CONNECTOR_DSI,
5438 .format = MIPI_DSI_FMT_RGB888,
5442 static const struct drm_display_mode osd101t2045_53ts_mode = {
5445 .hsync_start = 1920 + 112,
5446 .hsync_end = 1920 + 112 + 16,
5447 .htotal = 1920 + 112 + 16 + 32,
5449 .vsync_start = 1200 + 16,
5450 .vsync_end = 1200 + 16 + 2,
5451 .vtotal = 1200 + 16 + 2 + 16,
5452 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
5455 static const struct panel_desc_dsi osd101t2045_53ts = {
5457 .modes = &osd101t2045_53ts_mode,
5464 .connector_type = DRM_MODE_CONNECTOR_DSI,
5466 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
5467 MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
5468 MIPI_DSI_MODE_NO_EOT_PACKET,
5469 .format = MIPI_DSI_FMT_RGB888,
5473 static const struct of_device_id dsi_of_match[] = {
5475 .compatible = "auo,b080uan01",
5476 .data = &auo_b080uan01
5478 .compatible = "boe,tv080wum-nl0",
5479 .data = &boe_tv080wum_nl0
5481 .compatible = "lg,ld070wx3-sl01",
5482 .data = &lg_ld070wx3_sl01
5484 .compatible = "lg,lh500wx1-sd03",
5485 .data = &lg_lh500wx1_sd03
5487 .compatible = "panasonic,vvx10f004b00",
5488 .data = &panasonic_vvx10f004b00
5490 .compatible = "lg,acx467akm-7",
5491 .data = &lg_acx467akm_7
5493 .compatible = "osddisplays,osd101t2045-53ts",
5494 .data = &osd101t2045_53ts
5499 MODULE_DEVICE_TABLE(of, dsi_of_match);
5501 static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
5503 const struct panel_desc_dsi *desc;
5506 desc = of_device_get_match_data(&dsi->dev);
5510 err = panel_simple_probe(&dsi->dev, &desc->desc);
5514 dsi->mode_flags = desc->flags;
5515 dsi->format = desc->format;
5516 dsi->lanes = desc->lanes;
5518 err = mipi_dsi_attach(dsi);
5520 struct panel_simple *panel = mipi_dsi_get_drvdata(dsi);
5522 drm_panel_remove(&panel->base);
5528 static void panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
5532 err = mipi_dsi_detach(dsi);
5534 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err);
5536 panel_simple_remove(&dsi->dev);
5539 static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi)
5541 panel_simple_shutdown(&dsi->dev);
5544 static struct mipi_dsi_driver panel_simple_dsi_driver = {
5546 .name = "panel-simple-dsi",
5547 .of_match_table = dsi_of_match,
5548 .pm = &panel_simple_pm_ops,
5550 .probe = panel_simple_dsi_probe,
5551 .remove = panel_simple_dsi_remove,
5552 .shutdown = panel_simple_dsi_shutdown,
5555 static int __init panel_simple_init(void)
5559 err = platform_driver_register(&panel_simple_platform_driver);
5563 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
5564 err = mipi_dsi_driver_register(&panel_simple_dsi_driver);
5566 goto err_did_platform_register;
5571 err_did_platform_register:
5572 platform_driver_unregister(&panel_simple_platform_driver);
5576 module_init(panel_simple_init);
5578 static void __exit panel_simple_exit(void)
5580 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI))
5581 mipi_dsi_driver_unregister(&panel_simple_dsi_driver);
5583 platform_driver_unregister(&panel_simple_platform_driver);
5585 module_exit(panel_simple_exit);
5588 MODULE_DESCRIPTION("DRM Driver for Simple Panels");
5589 MODULE_LICENSE("GPL and additional rights");