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_device.h>
30 #include <linux/of_platform.h>
31 #include <linux/platform_device.h>
32 #include <linux/pm_runtime.h>
33 #include <linux/regulator/consumer.h>
35 #include <video/display_timing.h>
36 #include <video/of_display_timing.h>
37 #include <video/videomode.h>
39 #include <drm/drm_crtc.h>
40 #include <drm/drm_device.h>
41 #include <drm/drm_edid.h>
42 #include <drm/drm_mipi_dsi.h>
43 #include <drm/drm_panel.h>
44 #include <drm/drm_of.h>
47 * struct panel_desc - Describes a simple panel.
51 * @modes: Pointer to array of fixed modes appropriate for this panel.
53 * If only one mode then this can just be the address of the mode.
54 * NOTE: cannot be used with "timings" and also if this is specified
55 * then you cannot override the mode in the device tree.
57 const struct drm_display_mode *modes;
59 /** @num_modes: Number of elements in modes array. */
60 unsigned int num_modes;
63 * @timings: Pointer to array of display timings
65 * NOTE: cannot be used with "modes" and also these will be used to
66 * validate a device tree override if one is present.
68 const struct display_timing *timings;
70 /** @num_timings: Number of elements in timings array. */
71 unsigned int num_timings;
73 /** @bpc: Bits per color. */
76 /** @size: Structure containing the physical size of this panel. */
79 * @size.width: Width (in mm) of the active display area.
84 * @size.height: Height (in mm) of the active display area.
89 /** @delay: Structure containing various delay values for this panel. */
92 * @delay.prepare: Time for the panel to become ready.
94 * The time (in milliseconds) that it takes for the panel to
95 * become ready and start receiving video data
100 * @delay.enable: Time for the panel to display a valid frame.
102 * The time (in milliseconds) that it takes for the panel to
103 * display the first valid frame after starting to receive
109 * @delay.disable: Time for the panel to turn the display off.
111 * The time (in milliseconds) that it takes for the panel to
112 * turn the display off (no content is visible).
114 unsigned int disable;
117 * @delay.unprepare: Time to power down completely.
119 * The time (in milliseconds) that it takes for the panel
120 * to power itself down completely.
122 * This time is used to prevent a future "prepare" from
123 * starting until at least this many milliseconds has passed.
124 * If at prepare time less time has passed since unprepare
125 * finished, the driver waits for the remaining time.
127 unsigned int unprepare;
130 /** @bus_format: See MEDIA_BUS_FMT_... defines. */
133 /** @bus_flags: See DRM_BUS_FLAG_... defines. */
136 /** @connector_type: LVDS, eDP, DSI, DPI, etc. */
140 struct panel_desc_dsi {
141 struct panel_desc desc;
144 enum mipi_dsi_pixel_format format;
148 struct panel_simple {
149 struct drm_panel base;
151 ktime_t unprepared_time;
153 const struct panel_desc *desc;
155 struct regulator *supply;
156 struct i2c_adapter *ddc;
158 struct gpio_desc *enable_gpio;
160 const struct drm_edid *drm_edid;
162 struct drm_display_mode override_mode;
164 enum drm_panel_orientation orientation;
167 static inline struct panel_simple *to_panel_simple(struct drm_panel *panel)
169 return container_of(panel, struct panel_simple, base);
172 static unsigned int panel_simple_get_timings_modes(struct panel_simple *panel,
173 struct drm_connector *connector)
175 struct drm_display_mode *mode;
176 unsigned int i, num = 0;
178 for (i = 0; i < panel->desc->num_timings; i++) {
179 const struct display_timing *dt = &panel->desc->timings[i];
182 videomode_from_timing(dt, &vm);
183 mode = drm_mode_create(connector->dev);
185 dev_err(panel->base.dev, "failed to add mode %ux%u\n",
186 dt->hactive.typ, dt->vactive.typ);
190 drm_display_mode_from_videomode(&vm, mode);
192 mode->type |= DRM_MODE_TYPE_DRIVER;
194 if (panel->desc->num_timings == 1)
195 mode->type |= DRM_MODE_TYPE_PREFERRED;
197 drm_mode_probed_add(connector, mode);
204 static unsigned int panel_simple_get_display_modes(struct panel_simple *panel,
205 struct drm_connector *connector)
207 struct drm_display_mode *mode;
208 unsigned int i, num = 0;
210 for (i = 0; i < panel->desc->num_modes; i++) {
211 const struct drm_display_mode *m = &panel->desc->modes[i];
213 mode = drm_mode_duplicate(connector->dev, m);
215 dev_err(panel->base.dev, "failed to add mode %ux%u@%u\n",
216 m->hdisplay, m->vdisplay,
217 drm_mode_vrefresh(m));
221 mode->type |= DRM_MODE_TYPE_DRIVER;
223 if (panel->desc->num_modes == 1)
224 mode->type |= DRM_MODE_TYPE_PREFERRED;
226 drm_mode_set_name(mode);
228 drm_mode_probed_add(connector, mode);
235 static int panel_simple_get_non_edid_modes(struct panel_simple *panel,
236 struct drm_connector *connector)
238 struct drm_display_mode *mode;
239 bool has_override = panel->override_mode.type;
240 unsigned int num = 0;
246 mode = drm_mode_duplicate(connector->dev,
247 &panel->override_mode);
249 drm_mode_probed_add(connector, mode);
252 dev_err(panel->base.dev, "failed to add override mode\n");
256 /* Only add timings if override was not there or failed to validate */
257 if (num == 0 && panel->desc->num_timings)
258 num = panel_simple_get_timings_modes(panel, connector);
261 * Only add fixed modes if timings/override added no mode.
263 * We should only ever have either the display timings specified
264 * or a fixed mode. Anything else is rather bogus.
266 WARN_ON(panel->desc->num_timings && panel->desc->num_modes);
268 num = panel_simple_get_display_modes(panel, connector);
270 connector->display_info.bpc = panel->desc->bpc;
271 connector->display_info.width_mm = panel->desc->size.width;
272 connector->display_info.height_mm = panel->desc->size.height;
273 if (panel->desc->bus_format)
274 drm_display_info_set_bus_formats(&connector->display_info,
275 &panel->desc->bus_format, 1);
276 connector->display_info.bus_flags = panel->desc->bus_flags;
281 static void panel_simple_wait(ktime_t start_ktime, unsigned int min_ms)
283 ktime_t now_ktime, min_ktime;
288 min_ktime = ktime_add(start_ktime, ms_to_ktime(min_ms));
289 now_ktime = ktime_get_boottime();
291 if (ktime_before(now_ktime, min_ktime))
292 msleep(ktime_to_ms(ktime_sub(min_ktime, now_ktime)) + 1);
295 static int panel_simple_disable(struct drm_panel *panel)
297 struct panel_simple *p = to_panel_simple(panel);
299 if (p->desc->delay.disable)
300 msleep(p->desc->delay.disable);
305 static int panel_simple_suspend(struct device *dev)
307 struct panel_simple *p = dev_get_drvdata(dev);
309 gpiod_set_value_cansleep(p->enable_gpio, 0);
310 regulator_disable(p->supply);
311 p->unprepared_time = ktime_get_boottime();
313 drm_edid_free(p->drm_edid);
319 static int panel_simple_unprepare(struct drm_panel *panel)
323 pm_runtime_mark_last_busy(panel->dev);
324 ret = pm_runtime_put_autosuspend(panel->dev);
331 static int panel_simple_resume(struct device *dev)
333 struct panel_simple *p = dev_get_drvdata(dev);
336 panel_simple_wait(p->unprepared_time, p->desc->delay.unprepare);
338 err = regulator_enable(p->supply);
340 dev_err(dev, "failed to enable supply: %d\n", err);
344 gpiod_set_value_cansleep(p->enable_gpio, 1);
346 if (p->desc->delay.prepare)
347 msleep(p->desc->delay.prepare);
352 static int panel_simple_prepare(struct drm_panel *panel)
356 ret = pm_runtime_get_sync(panel->dev);
358 pm_runtime_put_autosuspend(panel->dev);
365 static int panel_simple_enable(struct drm_panel *panel)
367 struct panel_simple *p = to_panel_simple(panel);
369 if (p->desc->delay.enable)
370 msleep(p->desc->delay.enable);
375 static int panel_simple_get_modes(struct drm_panel *panel,
376 struct drm_connector *connector)
378 struct panel_simple *p = to_panel_simple(panel);
381 /* probe EDID if a DDC bus is available */
383 pm_runtime_get_sync(panel->dev);
386 p->drm_edid = drm_edid_read_ddc(connector, p->ddc);
388 drm_edid_connector_update(connector, p->drm_edid);
390 num += drm_edid_connector_add_modes(connector);
392 pm_runtime_mark_last_busy(panel->dev);
393 pm_runtime_put_autosuspend(panel->dev);
396 /* add hard-coded panel modes */
397 num += panel_simple_get_non_edid_modes(p, connector);
400 * TODO: Remove once all drm drivers call
401 * drm_connector_set_orientation_from_panel()
403 drm_connector_set_panel_orientation(connector, p->orientation);
408 static int panel_simple_get_timings(struct drm_panel *panel,
409 unsigned int num_timings,
410 struct display_timing *timings)
412 struct panel_simple *p = to_panel_simple(panel);
415 if (p->desc->num_timings < num_timings)
416 num_timings = p->desc->num_timings;
419 for (i = 0; i < num_timings; i++)
420 timings[i] = p->desc->timings[i];
422 return p->desc->num_timings;
425 static enum drm_panel_orientation panel_simple_get_orientation(struct drm_panel *panel)
427 struct panel_simple *p = to_panel_simple(panel);
429 return p->orientation;
432 static const struct drm_panel_funcs panel_simple_funcs = {
433 .disable = panel_simple_disable,
434 .unprepare = panel_simple_unprepare,
435 .prepare = panel_simple_prepare,
436 .enable = panel_simple_enable,
437 .get_modes = panel_simple_get_modes,
438 .get_orientation = panel_simple_get_orientation,
439 .get_timings = panel_simple_get_timings,
442 static struct panel_desc *panel_dpi_probe(struct device *dev)
444 struct display_timing *timing;
445 const struct device_node *np;
446 struct panel_desc *desc;
447 unsigned int bus_flags;
452 desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL);
454 return ERR_PTR(-ENOMEM);
456 timing = devm_kzalloc(dev, sizeof(*timing), GFP_KERNEL);
458 return ERR_PTR(-ENOMEM);
460 ret = of_get_display_timing(np, "panel-timing", timing);
462 dev_err(dev, "%pOF: no panel-timing node found for \"panel-dpi\" binding\n",
467 desc->timings = timing;
468 desc->num_timings = 1;
470 of_property_read_u32(np, "width-mm", &desc->size.width);
471 of_property_read_u32(np, "height-mm", &desc->size.height);
473 /* Extract bus_flags from display_timing */
475 vm.flags = timing->flags;
476 drm_bus_flags_from_videomode(&vm, &bus_flags);
477 desc->bus_flags = bus_flags;
479 /* We do not know the connector for the DT node, so guess it */
480 desc->connector_type = DRM_MODE_CONNECTOR_DPI;
485 #define PANEL_SIMPLE_BOUNDS_CHECK(to_check, bounds, field) \
486 (to_check->field.typ >= bounds->field.min && \
487 to_check->field.typ <= bounds->field.max)
488 static void panel_simple_parse_panel_timing_node(struct device *dev,
489 struct panel_simple *panel,
490 const struct display_timing *ot)
492 const struct panel_desc *desc = panel->desc;
496 if (WARN_ON(desc->num_modes)) {
497 dev_err(dev, "Reject override mode: panel has a fixed mode\n");
500 if (WARN_ON(!desc->num_timings)) {
501 dev_err(dev, "Reject override mode: no timings specified\n");
505 for (i = 0; i < panel->desc->num_timings; i++) {
506 const struct display_timing *dt = &panel->desc->timings[i];
508 if (!PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hactive) ||
509 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hfront_porch) ||
510 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hback_porch) ||
511 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hsync_len) ||
512 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vactive) ||
513 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vfront_porch) ||
514 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vback_porch) ||
515 !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vsync_len))
518 if (ot->flags != dt->flags)
521 videomode_from_timing(ot, &vm);
522 drm_display_mode_from_videomode(&vm, &panel->override_mode);
523 panel->override_mode.type |= DRM_MODE_TYPE_DRIVER |
524 DRM_MODE_TYPE_PREFERRED;
528 if (WARN_ON(!panel->override_mode.type))
529 dev_err(dev, "Reject override mode: No display_timing found\n");
532 static int panel_simple_override_nondefault_lvds_datamapping(struct device *dev,
533 struct panel_simple *panel)
537 ret = drm_of_lvds_get_data_mapping(dev->of_node);
540 dev_warn(dev, "Ignore invalid data-mapping property\n");
543 * Ignore non-existing or malformatted property, fallback to
544 * default data-mapping, and return 0.
553 case MEDIA_BUS_FMT_RGB888_1X7X4_SPWG:
555 case MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA:
558 case MEDIA_BUS_FMT_RGB666_1X7X3_SPWG:
562 if (panel->desc->bpc != bpc || panel->desc->bus_format != ret) {
563 struct panel_desc *override_desc;
565 override_desc = devm_kmemdup(dev, panel->desc, sizeof(*panel->desc), GFP_KERNEL);
569 override_desc->bus_format = ret;
570 override_desc->bpc = bpc;
571 panel->desc = override_desc;
577 static const struct panel_desc *panel_simple_get_desc(struct device *dev)
579 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI) &&
580 dev_is_mipi_dsi(dev)) {
581 const struct panel_desc_dsi *dsi_desc;
583 dsi_desc = of_device_get_match_data(dev);
585 return ERR_PTR(-ENODEV);
587 return &dsi_desc->desc;
590 if (dev_is_platform(dev)) {
591 const struct panel_desc *desc;
593 desc = of_device_get_match_data(dev);
596 * panel-dpi probes without a descriptor and
597 * panel_dpi_probe() will initialize one for us
598 * based on the device tree.
600 if (of_device_is_compatible(dev->of_node, "panel-dpi"))
601 return panel_dpi_probe(dev);
603 return ERR_PTR(-ENODEV);
609 return ERR_PTR(-ENODEV);
612 static struct panel_simple *panel_simple_probe(struct device *dev)
614 const struct panel_desc *desc;
615 struct panel_simple *panel;
616 struct display_timing dt;
617 struct device_node *ddc;
622 desc = panel_simple_get_desc(dev);
624 return ERR_CAST(desc);
626 panel = devm_drm_panel_alloc(dev, struct panel_simple, base,
627 &panel_simple_funcs, desc->connector_type);
629 return ERR_CAST(panel);
633 panel->supply = devm_regulator_get(dev, "power");
634 if (IS_ERR(panel->supply))
635 return ERR_CAST(panel->supply);
637 panel->enable_gpio = devm_gpiod_get_optional(dev, "enable",
639 if (IS_ERR(panel->enable_gpio))
640 return dev_err_cast_probe(dev, panel->enable_gpio,
641 "failed to request GPIO\n");
643 err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation);
645 dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err);
649 ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0);
651 panel->ddc = of_find_i2c_adapter_by_node(ddc);
655 return ERR_PTR(-EPROBE_DEFER);
658 if (!of_device_is_compatible(dev->of_node, "panel-dpi") &&
659 !of_get_display_timing(dev->of_node, "panel-timing", &dt))
660 panel_simple_parse_panel_timing_node(dev, panel, &dt);
662 if (desc->connector_type == DRM_MODE_CONNECTOR_LVDS) {
663 /* Optional data-mapping property for overriding bus format */
664 err = panel_simple_override_nondefault_lvds_datamapping(dev, panel);
669 connector_type = desc->connector_type;
670 /* Catch common mistakes for panels. */
671 switch (connector_type) {
673 dev_warn(dev, "Specify missing connector_type\n");
674 connector_type = DRM_MODE_CONNECTOR_DPI;
676 case DRM_MODE_CONNECTOR_LVDS:
677 WARN_ON(desc->bus_flags &
678 ~(DRM_BUS_FLAG_DE_LOW |
679 DRM_BUS_FLAG_DE_HIGH |
680 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
681 DRM_BUS_FLAG_DATA_LSB_TO_MSB));
682 WARN_ON(desc->bus_format != MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
683 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_SPWG &&
684 desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA);
685 WARN_ON(desc->bus_format == MEDIA_BUS_FMT_RGB666_1X7X3_SPWG &&
687 WARN_ON((desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG ||
688 desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA) &&
691 case DRM_MODE_CONNECTOR_eDP:
692 dev_warn(dev, "eDP panels moved to panel-edp\n");
695 case DRM_MODE_CONNECTOR_DSI:
696 if (desc->bpc != 6 && desc->bpc != 8)
697 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
699 case DRM_MODE_CONNECTOR_DPI:
700 bus_flags = DRM_BUS_FLAG_DE_LOW |
701 DRM_BUS_FLAG_DE_HIGH |
702 DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE |
703 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
704 DRM_BUS_FLAG_DATA_MSB_TO_LSB |
705 DRM_BUS_FLAG_DATA_LSB_TO_MSB |
706 DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE |
707 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE;
708 if (desc->bus_flags & ~bus_flags)
709 dev_warn(dev, "Unexpected bus_flags(%d)\n", desc->bus_flags & ~bus_flags);
710 if (!(desc->bus_flags & bus_flags))
711 dev_warn(dev, "Specify missing bus_flags\n");
712 if (desc->bus_format == 0)
713 dev_warn(dev, "Specify missing bus_format\n");
714 if (desc->bpc != 6 && desc->bpc != 8)
715 dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc);
718 dev_warn(dev, "Specify a valid connector_type: %d\n", desc->connector_type);
719 connector_type = DRM_MODE_CONNECTOR_DPI;
723 dev_set_drvdata(dev, panel);
726 * We use runtime PM for prepare / unprepare since those power the panel
727 * on and off and those can be very slow operations. This is important
728 * to optimize powering the panel on briefly to read the EDID before
729 * fully enabling the panel.
731 pm_runtime_enable(dev);
732 pm_runtime_set_autosuspend_delay(dev, 1000);
733 pm_runtime_use_autosuspend(dev);
735 err = drm_panel_of_backlight(&panel->base);
737 dev_err_probe(dev, err, "Could not find backlight\n");
738 goto disable_pm_runtime;
741 drm_panel_add(&panel->base);
746 pm_runtime_dont_use_autosuspend(dev);
747 pm_runtime_disable(dev);
750 put_device(&panel->ddc->dev);
755 static void panel_simple_shutdown(struct device *dev)
757 struct panel_simple *panel = dev_get_drvdata(dev);
760 * NOTE: the following two calls don't really belong here. It is the
761 * responsibility of a correctly written DRM modeset driver to call
762 * drm_atomic_helper_shutdown() at shutdown time and that should
763 * cause the panel to be disabled / unprepared if needed. For now,
764 * however, we'll keep these calls due to the sheer number of
765 * different DRM modeset drivers used with panel-simple. Once we've
766 * confirmed that all DRM modeset drivers using this panel properly
767 * call drm_atomic_helper_shutdown() we can simply delete the two
770 * TO BE EXPLICIT: THE CALLS BELOW SHOULDN'T BE COPIED TO ANY NEW
773 * FIXME: If we're still haven't figured out if all DRM modeset
774 * drivers properly call drm_atomic_helper_shutdown() but we _have_
775 * managed to make sure that DRM modeset drivers get their shutdown()
776 * callback before the panel's shutdown() callback (perhaps using
777 * device link), we could add a WARN_ON here to help move forward.
779 if (panel->base.enabled)
780 drm_panel_disable(&panel->base);
781 if (panel->base.prepared)
782 drm_panel_unprepare(&panel->base);
785 static void panel_simple_remove(struct device *dev)
787 struct panel_simple *panel = dev_get_drvdata(dev);
789 drm_panel_remove(&panel->base);
790 panel_simple_shutdown(dev);
792 pm_runtime_dont_use_autosuspend(dev);
793 pm_runtime_disable(dev);
795 put_device(&panel->ddc->dev);
798 static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode = {
801 .hsync_start = 1280 + 40,
802 .hsync_end = 1280 + 40 + 80,
803 .htotal = 1280 + 40 + 80 + 40,
805 .vsync_start = 800 + 3,
806 .vsync_end = 800 + 3 + 10,
807 .vtotal = 800 + 3 + 10 + 10,
808 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
811 static const struct panel_desc ampire_am_1280800n3tzqw_t00h = {
812 .modes = &ire_am_1280800n3tzqw_t00h_mode,
819 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
820 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
821 .connector_type = DRM_MODE_CONNECTOR_LVDS,
824 static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = {
827 .hsync_start = 480 + 2,
828 .hsync_end = 480 + 2 + 41,
829 .htotal = 480 + 2 + 41 + 2,
831 .vsync_start = 272 + 2,
832 .vsync_end = 272 + 2 + 10,
833 .vtotal = 272 + 2 + 10 + 2,
834 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
837 static const struct panel_desc ampire_am_480272h3tmqw_t01h = {
838 .modes = &ire_am_480272h3tmqw_t01h_mode,
845 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
848 static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = {
851 .hsync_start = 800 + 0,
852 .hsync_end = 800 + 0 + 255,
853 .htotal = 800 + 0 + 255 + 0,
855 .vsync_start = 480 + 2,
856 .vsync_end = 480 + 2 + 45,
857 .vtotal = 480 + 2 + 45 + 0,
858 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
861 static const struct display_timing ampire_am_800480l1tmqw_t00h_timing = {
862 .pixelclock = { 29930000, 33260000, 36590000 },
863 .hactive = { 800, 800, 800 },
864 .hfront_porch = { 1, 40, 168 },
865 .hback_porch = { 88, 88, 88 },
866 .hsync_len = { 1, 128, 128 },
867 .vactive = { 480, 480, 480 },
868 .vfront_porch = { 1, 35, 37 },
869 .vback_porch = { 8, 8, 8 },
870 .vsync_len = { 1, 2, 2 },
871 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
872 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
873 DISPLAY_FLAGS_SYNC_POSEDGE,
876 static const struct panel_desc ampire_am_800480l1tmqw_t00h = {
877 .timings = &ire_am_800480l1tmqw_t00h_timing,
884 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
885 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
886 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
887 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
888 .connector_type = DRM_MODE_CONNECTOR_DPI,
891 static const struct panel_desc ampire_am800480r3tmqwa1h = {
892 .modes = &ire_am800480r3tmqwa1h_mode,
899 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
902 static const struct display_timing ampire_am800600p5tmqw_tb8h_timing = {
903 .pixelclock = { 34500000, 39600000, 50400000 },
904 .hactive = { 800, 800, 800 },
905 .hfront_porch = { 12, 112, 312 },
906 .hback_porch = { 87, 87, 48 },
907 .hsync_len = { 1, 1, 40 },
908 .vactive = { 600, 600, 600 },
909 .vfront_porch = { 1, 21, 61 },
910 .vback_porch = { 38, 38, 19 },
911 .vsync_len = { 1, 1, 20 },
912 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
913 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
914 DISPLAY_FLAGS_SYNC_POSEDGE,
917 static const struct panel_desc ampire_am800600p5tmqwtb8h = {
918 .timings = &ire_am800600p5tmqw_tb8h_timing,
925 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
926 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
927 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
928 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
929 .connector_type = DRM_MODE_CONNECTOR_DPI,
932 static const struct display_timing santek_st0700i5y_rbslw_f_timing = {
933 .pixelclock = { 26400000, 33300000, 46800000 },
934 .hactive = { 800, 800, 800 },
935 .hfront_porch = { 16, 210, 354 },
936 .hback_porch = { 45, 36, 6 },
937 .hsync_len = { 1, 10, 40 },
938 .vactive = { 480, 480, 480 },
939 .vfront_porch = { 7, 22, 147 },
940 .vback_porch = { 22, 13, 3 },
941 .vsync_len = { 1, 10, 20 },
942 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
943 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE
946 static const struct panel_desc armadeus_st0700_adapt = {
947 .timings = &santek_st0700i5y_rbslw_f_timing,
954 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
955 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
958 static const struct drm_display_mode auo_b101aw03_mode = {
961 .hsync_start = 1024 + 156,
962 .hsync_end = 1024 + 156 + 8,
963 .htotal = 1024 + 156 + 8 + 156,
965 .vsync_start = 600 + 16,
966 .vsync_end = 600 + 16 + 6,
967 .vtotal = 600 + 16 + 6 + 16,
970 static const struct panel_desc auo_b101aw03 = {
971 .modes = &auo_b101aw03_mode,
978 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
979 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
980 .connector_type = DRM_MODE_CONNECTOR_LVDS,
983 static const struct drm_display_mode auo_b101xtn01_mode = {
986 .hsync_start = 1366 + 20,
987 .hsync_end = 1366 + 20 + 70,
988 .htotal = 1366 + 20 + 70,
990 .vsync_start = 768 + 14,
991 .vsync_end = 768 + 14 + 42,
992 .vtotal = 768 + 14 + 42,
993 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
996 static const struct panel_desc auo_b101xtn01 = {
997 .modes = &auo_b101xtn01_mode,
1006 static const struct drm_display_mode auo_b116xw03_mode = {
1009 .hsync_start = 1366 + 40,
1010 .hsync_end = 1366 + 40 + 40,
1011 .htotal = 1366 + 40 + 40 + 32,
1013 .vsync_start = 768 + 10,
1014 .vsync_end = 768 + 10 + 12,
1015 .vtotal = 768 + 10 + 12 + 6,
1016 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1019 static const struct panel_desc auo_b116xw03 = {
1020 .modes = &auo_b116xw03_mode,
1033 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1034 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1035 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1038 static const struct display_timing auo_g070vvn01_timings = {
1039 .pixelclock = { 33300000, 34209000, 45000000 },
1040 .hactive = { 800, 800, 800 },
1041 .hfront_porch = { 20, 40, 200 },
1042 .hback_porch = { 87, 40, 1 },
1043 .hsync_len = { 1, 48, 87 },
1044 .vactive = { 480, 480, 480 },
1045 .vfront_porch = { 5, 13, 200 },
1046 .vback_porch = { 31, 31, 29 },
1047 .vsync_len = { 1, 1, 3 },
1050 static const struct panel_desc auo_g070vvn01 = {
1051 .timings = &auo_g070vvn01_timings,
1066 static const struct display_timing auo_g101evn010_timing = {
1067 .pixelclock = { 64000000, 68930000, 85000000 },
1068 .hactive = { 1280, 1280, 1280 },
1069 .hfront_porch = { 8, 64, 256 },
1070 .hback_porch = { 8, 64, 256 },
1071 .hsync_len = { 40, 168, 767 },
1072 .vactive = { 800, 800, 800 },
1073 .vfront_porch = { 4, 8, 100 },
1074 .vback_porch = { 4, 8, 100 },
1075 .vsync_len = { 8, 16, 223 },
1078 static const struct panel_desc auo_g101evn010 = {
1079 .timings = &auo_g101evn010_timing,
1086 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1087 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1088 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1091 static const struct drm_display_mode auo_g104sn02_mode = {
1094 .hsync_start = 800 + 40,
1095 .hsync_end = 800 + 40 + 216,
1096 .htotal = 800 + 40 + 216 + 128,
1098 .vsync_start = 600 + 10,
1099 .vsync_end = 600 + 10 + 35,
1100 .vtotal = 600 + 10 + 35 + 2,
1103 static const struct panel_desc auo_g104sn02 = {
1104 .modes = &auo_g104sn02_mode,
1111 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1112 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1115 static const struct drm_display_mode auo_g104stn01_mode = {
1118 .hsync_start = 800 + 40,
1119 .hsync_end = 800 + 40 + 88,
1120 .htotal = 800 + 40 + 88 + 128,
1122 .vsync_start = 600 + 1,
1123 .vsync_end = 600 + 1 + 23,
1124 .vtotal = 600 + 1 + 23 + 4,
1127 static const struct panel_desc auo_g104stn01 = {
1128 .modes = &auo_g104stn01_mode,
1135 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1136 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1139 static const struct display_timing auo_g121ean01_timing = {
1140 .pixelclock = { 60000000, 74400000, 90000000 },
1141 .hactive = { 1280, 1280, 1280 },
1142 .hfront_porch = { 20, 50, 100 },
1143 .hback_porch = { 20, 50, 100 },
1144 .hsync_len = { 30, 100, 200 },
1145 .vactive = { 800, 800, 800 },
1146 .vfront_porch = { 2, 10, 25 },
1147 .vback_porch = { 2, 10, 25 },
1148 .vsync_len = { 4, 18, 50 },
1151 static const struct panel_desc auo_g121ean01 = {
1152 .timings = &auo_g121ean01_timing,
1159 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1160 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1163 static const struct display_timing auo_g133han01_timings = {
1164 .pixelclock = { 134000000, 141200000, 149000000 },
1165 .hactive = { 1920, 1920, 1920 },
1166 .hfront_porch = { 39, 58, 77 },
1167 .hback_porch = { 59, 88, 117 },
1168 .hsync_len = { 28, 42, 56 },
1169 .vactive = { 1080, 1080, 1080 },
1170 .vfront_porch = { 3, 8, 11 },
1171 .vback_porch = { 5, 14, 19 },
1172 .vsync_len = { 4, 14, 19 },
1175 static const struct panel_desc auo_g133han01 = {
1176 .timings = &auo_g133han01_timings,
1189 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1190 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1193 static const struct display_timing auo_g156han04_timings = {
1194 .pixelclock = { 137000000, 141000000, 146000000 },
1195 .hactive = { 1920, 1920, 1920 },
1196 .hfront_porch = { 60, 60, 60 },
1197 .hback_porch = { 90, 92, 111 },
1198 .hsync_len = { 32, 32, 32 },
1199 .vactive = { 1080, 1080, 1080 },
1200 .vfront_porch = { 12, 12, 12 },
1201 .vback_porch = { 24, 36, 56 },
1202 .vsync_len = { 8, 8, 8 },
1205 static const struct panel_desc auo_g156han04 = {
1206 .timings = &auo_g156han04_timings,
1214 .prepare = 50, /* T2 */
1215 .enable = 200, /* T3 */
1216 .disable = 110, /* T10 */
1217 .unprepare = 1000, /* T13 */
1219 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1220 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1221 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1224 static const struct drm_display_mode auo_g156xtn01_mode = {
1227 .hsync_start = 1366 + 33,
1228 .hsync_end = 1366 + 33 + 67,
1231 .vsync_start = 768 + 4,
1232 .vsync_end = 768 + 4 + 4,
1236 static const struct panel_desc auo_g156xtn01 = {
1237 .modes = &auo_g156xtn01_mode,
1244 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1245 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1248 static const struct display_timing auo_g185han01_timings = {
1249 .pixelclock = { 120000000, 144000000, 175000000 },
1250 .hactive = { 1920, 1920, 1920 },
1251 .hfront_porch = { 36, 120, 148 },
1252 .hback_porch = { 24, 88, 108 },
1253 .hsync_len = { 20, 48, 64 },
1254 .vactive = { 1080, 1080, 1080 },
1255 .vfront_porch = { 6, 10, 40 },
1256 .vback_porch = { 2, 5, 20 },
1257 .vsync_len = { 2, 5, 20 },
1260 static const struct panel_desc auo_g185han01 = {
1261 .timings = &auo_g185han01_timings,
1274 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1275 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1278 static const struct display_timing auo_g190ean01_timings = {
1279 .pixelclock = { 90000000, 108000000, 135000000 },
1280 .hactive = { 1280, 1280, 1280 },
1281 .hfront_porch = { 126, 184, 1266 },
1282 .hback_porch = { 84, 122, 844 },
1283 .hsync_len = { 70, 102, 704 },
1284 .vactive = { 1024, 1024, 1024 },
1285 .vfront_porch = { 4, 26, 76 },
1286 .vback_porch = { 2, 8, 25 },
1287 .vsync_len = { 2, 8, 25 },
1290 static const struct panel_desc auo_g190ean01 = {
1291 .timings = &auo_g190ean01_timings,
1304 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1305 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1308 static const struct display_timing auo_p238han01_timings = {
1309 .pixelclock = { 107400000, 142400000, 180000000 },
1310 .hactive = { 1920, 1920, 1920 },
1311 .hfront_porch = { 30, 70, 650 },
1312 .hback_porch = { 30, 70, 650 },
1313 .hsync_len = { 20, 40, 136 },
1314 .vactive = { 1080, 1080, 1080 },
1315 .vfront_porch = { 5, 19, 318 },
1316 .vback_porch = { 5, 19, 318 },
1317 .vsync_len = { 4, 12, 120 },
1320 static const struct panel_desc auo_p238han01 = {
1321 .timings = &auo_p238han01_timings,
1328 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1329 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1332 static const struct display_timing auo_p320hvn03_timings = {
1333 .pixelclock = { 106000000, 148500000, 164000000 },
1334 .hactive = { 1920, 1920, 1920 },
1335 .hfront_porch = { 25, 50, 130 },
1336 .hback_porch = { 25, 50, 130 },
1337 .hsync_len = { 20, 40, 105 },
1338 .vactive = { 1080, 1080, 1080 },
1339 .vfront_porch = { 8, 17, 150 },
1340 .vback_porch = { 8, 17, 150 },
1341 .vsync_len = { 4, 11, 100 },
1344 static const struct panel_desc auo_p320hvn03 = {
1345 .timings = &auo_p320hvn03_timings,
1357 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1358 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1361 static const struct drm_display_mode auo_t215hvn01_mode = {
1364 .hsync_start = 1920 + 88,
1365 .hsync_end = 1920 + 88 + 44,
1366 .htotal = 1920 + 88 + 44 + 148,
1368 .vsync_start = 1080 + 4,
1369 .vsync_end = 1080 + 4 + 5,
1370 .vtotal = 1080 + 4 + 5 + 36,
1373 static const struct panel_desc auo_t215hvn01 = {
1374 .modes = &auo_t215hvn01_mode,
1385 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1386 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1389 static const struct drm_display_mode avic_tm070ddh03_mode = {
1392 .hsync_start = 1024 + 160,
1393 .hsync_end = 1024 + 160 + 4,
1394 .htotal = 1024 + 160 + 4 + 156,
1396 .vsync_start = 600 + 17,
1397 .vsync_end = 600 + 17 + 1,
1398 .vtotal = 600 + 17 + 1 + 17,
1401 static const struct panel_desc avic_tm070ddh03 = {
1402 .modes = &avic_tm070ddh03_mode,
1416 static const struct drm_display_mode bananapi_s070wv20_ct16_mode = {
1419 .hsync_start = 800 + 40,
1420 .hsync_end = 800 + 40 + 48,
1421 .htotal = 800 + 40 + 48 + 40,
1423 .vsync_start = 480 + 13,
1424 .vsync_end = 480 + 13 + 3,
1425 .vtotal = 480 + 13 + 3 + 29,
1428 static const struct panel_desc bananapi_s070wv20_ct16 = {
1429 .modes = &bananapi_s070wv20_ct16_mode,
1438 static const struct display_timing boe_av101hdt_a10_timing = {
1439 .pixelclock = { 74210000, 75330000, 76780000, },
1440 .hactive = { 1280, 1280, 1280, },
1441 .hfront_porch = { 10, 42, 33, },
1442 .hback_porch = { 10, 18, 33, },
1443 .hsync_len = { 30, 10, 30, },
1444 .vactive = { 720, 720, 720, },
1445 .vfront_porch = { 200, 183, 200, },
1446 .vback_porch = { 8, 8, 8, },
1447 .vsync_len = { 2, 19, 2, },
1448 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1451 static const struct panel_desc boe_av101hdt_a10 = {
1452 .timings = &boe_av101hdt_a10_timing,
1463 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1464 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1467 static const struct display_timing boe_av123z7m_n17_timing = {
1468 .pixelclock = { 86600000, 88000000, 90800000, },
1469 .hactive = { 1920, 1920, 1920, },
1470 .hfront_porch = { 10, 10, 10, },
1471 .hback_porch = { 10, 10, 10, },
1472 .hsync_len = { 9, 12, 25, },
1473 .vactive = { 720, 720, 720, },
1474 .vfront_porch = { 7, 10, 13, },
1475 .vback_porch = { 7, 10, 13, },
1476 .vsync_len = { 7, 11, 14, },
1477 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1480 static const struct panel_desc boe_av123z7m_n17 = {
1481 .timings = &boe_av123z7m_n17_timing,
1492 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1493 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1496 static const struct drm_display_mode boe_bp101wx1_100_mode = {
1499 .hsync_start = 1280 + 0,
1500 .hsync_end = 1280 + 0 + 2,
1501 .htotal = 1280 + 62 + 0 + 2,
1503 .vsync_start = 800 + 8,
1504 .vsync_end = 800 + 8 + 2,
1505 .vtotal = 800 + 6 + 8 + 2,
1508 static const struct panel_desc boe_bp082wx1_100 = {
1509 .modes = &boe_bp101wx1_100_mode,
1520 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1521 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1522 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1525 static const struct panel_desc boe_bp101wx1_100 = {
1526 .modes = &boe_bp101wx1_100_mode,
1537 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
1538 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1539 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1542 static const struct display_timing boe_ev121wxm_n10_1850_timing = {
1543 .pixelclock = { 69922000, 71000000, 72293000 },
1544 .hactive = { 1280, 1280, 1280 },
1545 .hfront_porch = { 48, 48, 48 },
1546 .hback_porch = { 80, 80, 80 },
1547 .hsync_len = { 32, 32, 32 },
1548 .vactive = { 800, 800, 800 },
1549 .vfront_porch = { 3, 3, 3 },
1550 .vback_porch = { 14, 14, 14 },
1551 .vsync_len = { 6, 6, 6 },
1554 static const struct panel_desc boe_ev121wxm_n10_1850 = {
1555 .timings = &boe_ev121wxm_n10_1850_timing,
1568 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1569 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1570 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1573 static const struct drm_display_mode boe_hv070wsa_mode = {
1576 .hsync_start = 1024 + 30,
1577 .hsync_end = 1024 + 30 + 30,
1578 .htotal = 1024 + 30 + 30 + 30,
1580 .vsync_start = 600 + 10,
1581 .vsync_end = 600 + 10 + 10,
1582 .vtotal = 600 + 10 + 10 + 10,
1585 static const struct panel_desc boe_hv070wsa = {
1586 .modes = &boe_hv070wsa_mode,
1593 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1594 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1595 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1598 static const struct display_timing cct_cmt430b19n00_timing = {
1599 .pixelclock = { 8000000, 9000000, 12000000 },
1600 .hactive = { 480, 480, 480 },
1601 .hfront_porch = { 2, 8, 75 },
1602 .hback_porch = { 3, 43, 43 },
1603 .hsync_len = { 2, 4, 75 },
1604 .vactive = { 272, 272, 272 },
1605 .vfront_porch = { 2, 8, 37 },
1606 .vback_porch = { 2, 12, 12 },
1607 .vsync_len = { 2, 4, 37 },
1608 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW
1611 static const struct panel_desc cct_cmt430b19n00 = {
1612 .timings = &cct_cmt430b19n00_timing,
1619 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1620 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
1621 .connector_type = DRM_MODE_CONNECTOR_DPI,
1624 static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = {
1627 .hsync_start = 480 + 5,
1628 .hsync_end = 480 + 5 + 5,
1629 .htotal = 480 + 5 + 5 + 40,
1631 .vsync_start = 272 + 8,
1632 .vsync_end = 272 + 8 + 8,
1633 .vtotal = 272 + 8 + 8 + 8,
1634 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1637 static const struct panel_desc cdtech_s043wq26h_ct7 = {
1638 .modes = &cdtech_s043wq26h_ct7_mode,
1645 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1648 /* S070PWS19HP-FC21 2017/04/22 */
1649 static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = {
1652 .hsync_start = 1024 + 160,
1653 .hsync_end = 1024 + 160 + 20,
1654 .htotal = 1024 + 160 + 20 + 140,
1656 .vsync_start = 600 + 12,
1657 .vsync_end = 600 + 12 + 3,
1658 .vtotal = 600 + 12 + 3 + 20,
1659 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1662 static const struct panel_desc cdtech_s070pws19hp_fc21 = {
1663 .modes = &cdtech_s070pws19hp_fc21_mode,
1670 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1671 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1672 .connector_type = DRM_MODE_CONNECTOR_DPI,
1675 /* S070SWV29HG-DC44 2017/09/21 */
1676 static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = {
1679 .hsync_start = 800 + 210,
1680 .hsync_end = 800 + 210 + 2,
1681 .htotal = 800 + 210 + 2 + 44,
1683 .vsync_start = 480 + 22,
1684 .vsync_end = 480 + 22 + 2,
1685 .vtotal = 480 + 22 + 2 + 21,
1686 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1689 static const struct panel_desc cdtech_s070swv29hg_dc44 = {
1690 .modes = &cdtech_s070swv29hg_dc44_mode,
1697 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
1698 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
1699 .connector_type = DRM_MODE_CONNECTOR_DPI,
1702 static const struct drm_display_mode cdtech_s070wv95_ct16_mode = {
1705 .hsync_start = 800 + 40,
1706 .hsync_end = 800 + 40 + 40,
1707 .htotal = 800 + 40 + 40 + 48,
1709 .vsync_start = 480 + 29,
1710 .vsync_end = 480 + 29 + 13,
1711 .vtotal = 480 + 29 + 13 + 3,
1712 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
1715 static const struct panel_desc cdtech_s070wv95_ct16 = {
1716 .modes = &cdtech_s070wv95_ct16_mode,
1725 static const struct display_timing chefree_ch101olhlwh_002_timing = {
1726 .pixelclock = { 68900000, 71100000, 73400000 },
1727 .hactive = { 1280, 1280, 1280 },
1728 .hfront_porch = { 65, 80, 95 },
1729 .hback_porch = { 64, 79, 94 },
1730 .hsync_len = { 1, 1, 1 },
1731 .vactive = { 800, 800, 800 },
1732 .vfront_porch = { 7, 11, 14 },
1733 .vback_porch = { 7, 11, 14 },
1734 .vsync_len = { 1, 1, 1 },
1735 .flags = DISPLAY_FLAGS_DE_HIGH,
1738 static const struct panel_desc chefree_ch101olhlwh_002 = {
1739 .timings = &chefree_ch101olhlwh_002_timing,
1750 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1751 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1752 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1755 static const struct drm_display_mode chunghwa_claa070wp03xg_mode = {
1758 .hsync_start = 800 + 49,
1759 .hsync_end = 800 + 49 + 33,
1760 .htotal = 800 + 49 + 33 + 17,
1762 .vsync_start = 1280 + 1,
1763 .vsync_end = 1280 + 1 + 7,
1764 .vtotal = 1280 + 1 + 7 + 15,
1765 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1768 static const struct panel_desc chunghwa_claa070wp03xg = {
1769 .modes = &chunghwa_claa070wp03xg_mode,
1776 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1777 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1778 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1781 static const struct drm_display_mode chunghwa_claa101wa01a_mode = {
1784 .hsync_start = 1366 + 58,
1785 .hsync_end = 1366 + 58 + 58,
1786 .htotal = 1366 + 58 + 58 + 58,
1788 .vsync_start = 768 + 4,
1789 .vsync_end = 768 + 4 + 4,
1790 .vtotal = 768 + 4 + 4 + 4,
1793 static const struct panel_desc chunghwa_claa101wa01a = {
1794 .modes = &chunghwa_claa101wa01a_mode,
1801 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1802 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1803 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1806 static const struct drm_display_mode chunghwa_claa101wb01_mode = {
1809 .hsync_start = 1366 + 48,
1810 .hsync_end = 1366 + 48 + 32,
1811 .htotal = 1366 + 48 + 32 + 20,
1813 .vsync_start = 768 + 16,
1814 .vsync_end = 768 + 16 + 8,
1815 .vtotal = 768 + 16 + 8 + 16,
1818 static const struct panel_desc chunghwa_claa101wb01 = {
1819 .modes = &chunghwa_claa101wb01_mode,
1826 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1827 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
1828 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1831 static const struct display_timing dataimage_fg040346dsswbg04_timing = {
1832 .pixelclock = { 5000000, 9000000, 12000000 },
1833 .hactive = { 480, 480, 480 },
1834 .hfront_porch = { 12, 12, 12 },
1835 .hback_porch = { 12, 12, 12 },
1836 .hsync_len = { 21, 21, 21 },
1837 .vactive = { 272, 272, 272 },
1838 .vfront_porch = { 4, 4, 4 },
1839 .vback_porch = { 4, 4, 4 },
1840 .vsync_len = { 8, 8, 8 },
1843 static const struct panel_desc dataimage_fg040346dsswbg04 = {
1844 .timings = &dataimage_fg040346dsswbg04_timing,
1851 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1852 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1853 .connector_type = DRM_MODE_CONNECTOR_DPI,
1856 static const struct display_timing dataimage_fg1001l0dsswmg01_timing = {
1857 .pixelclock = { 68900000, 71110000, 73400000 },
1858 .hactive = { 1280, 1280, 1280 },
1859 .vactive = { 800, 800, 800 },
1860 .hback_porch = { 100, 100, 100 },
1861 .hfront_porch = { 100, 100, 100 },
1862 .vback_porch = { 5, 5, 5 },
1863 .vfront_porch = { 5, 5, 5 },
1864 .hsync_len = { 24, 24, 24 },
1865 .vsync_len = { 3, 3, 3 },
1866 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
1867 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
1870 static const struct panel_desc dataimage_fg1001l0dsswmg01 = {
1871 .timings = &dataimage_fg1001l0dsswmg01_timing,
1880 static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = {
1883 .hsync_start = 800 + 40,
1884 .hsync_end = 800 + 40 + 128,
1885 .htotal = 800 + 40 + 128 + 88,
1887 .vsync_start = 480 + 10,
1888 .vsync_end = 480 + 10 + 2,
1889 .vtotal = 480 + 10 + 2 + 33,
1890 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1893 static const struct panel_desc dataimage_scf0700c48ggu18 = {
1894 .modes = &dataimage_scf0700c48ggu18_mode,
1901 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1902 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
1905 static const struct display_timing dlc_dlc0700yzg_1_timing = {
1906 .pixelclock = { 45000000, 51200000, 57000000 },
1907 .hactive = { 1024, 1024, 1024 },
1908 .hfront_porch = { 100, 106, 113 },
1909 .hback_porch = { 100, 106, 113 },
1910 .hsync_len = { 100, 108, 114 },
1911 .vactive = { 600, 600, 600 },
1912 .vfront_porch = { 8, 11, 15 },
1913 .vback_porch = { 8, 11, 15 },
1914 .vsync_len = { 9, 13, 15 },
1915 .flags = DISPLAY_FLAGS_DE_HIGH,
1918 static const struct panel_desc dlc_dlc0700yzg_1 = {
1919 .timings = &dlc_dlc0700yzg_1_timing,
1931 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
1932 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1935 static const struct display_timing dlc_dlc1010gig_timing = {
1936 .pixelclock = { 68900000, 71100000, 73400000 },
1937 .hactive = { 1280, 1280, 1280 },
1938 .hfront_porch = { 43, 53, 63 },
1939 .hback_porch = { 43, 53, 63 },
1940 .hsync_len = { 44, 54, 64 },
1941 .vactive = { 800, 800, 800 },
1942 .vfront_porch = { 5, 8, 11 },
1943 .vback_porch = { 5, 8, 11 },
1944 .vsync_len = { 5, 7, 11 },
1945 .flags = DISPLAY_FLAGS_DE_HIGH,
1948 static const struct panel_desc dlc_dlc1010gig = {
1949 .timings = &dlc_dlc1010gig_timing,
1962 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
1963 .connector_type = DRM_MODE_CONNECTOR_LVDS,
1966 static const struct drm_display_mode edt_et035012dm6_mode = {
1969 .hsync_start = 320 + 20,
1970 .hsync_end = 320 + 20 + 30,
1971 .htotal = 320 + 20 + 68,
1973 .vsync_start = 240 + 4,
1974 .vsync_end = 240 + 4 + 4,
1975 .vtotal = 240 + 4 + 4 + 14,
1976 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
1979 static const struct panel_desc edt_et035012dm6 = {
1980 .modes = &edt_et035012dm6_mode,
1987 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
1988 .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
1991 static const struct drm_display_mode edt_etm0350g0dh6_mode = {
1994 .hsync_start = 320 + 20,
1995 .hsync_end = 320 + 20 + 68,
1996 .htotal = 320 + 20 + 68,
1998 .vsync_start = 240 + 4,
1999 .vsync_end = 240 + 4 + 18,
2000 .vtotal = 240 + 4 + 18,
2001 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2004 static const struct panel_desc edt_etm0350g0dh6 = {
2005 .modes = &edt_etm0350g0dh6_mode,
2012 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2013 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
2014 .connector_type = DRM_MODE_CONNECTOR_DPI,
2017 static const struct drm_display_mode edt_etm043080dh6gp_mode = {
2020 .hsync_start = 480 + 8,
2021 .hsync_end = 480 + 8 + 4,
2022 .htotal = 480 + 8 + 4 + 41,
2025 * IWG22M: Y resolution changed for "dc_linuxfb" module crashing while
2030 .vsync_start = 288 + 2,
2031 .vsync_end = 288 + 2 + 4,
2032 .vtotal = 288 + 2 + 4 + 10,
2035 static const struct panel_desc edt_etm043080dh6gp = {
2036 .modes = &edt_etm043080dh6gp_mode,
2043 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2044 .connector_type = DRM_MODE_CONNECTOR_DPI,
2047 static const struct drm_display_mode edt_etm0430g0dh6_mode = {
2050 .hsync_start = 480 + 2,
2051 .hsync_end = 480 + 2 + 41,
2052 .htotal = 480 + 2 + 41 + 2,
2054 .vsync_start = 272 + 2,
2055 .vsync_end = 272 + 2 + 10,
2056 .vtotal = 272 + 2 + 10 + 2,
2057 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2060 static const struct panel_desc edt_etm0430g0dh6 = {
2061 .modes = &edt_etm0430g0dh6_mode,
2068 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2069 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2070 .connector_type = DRM_MODE_CONNECTOR_DPI,
2073 static const struct drm_display_mode edt_et057090dhu_mode = {
2076 .hsync_start = 640 + 16,
2077 .hsync_end = 640 + 16 + 30,
2078 .htotal = 640 + 16 + 30 + 114,
2080 .vsync_start = 480 + 10,
2081 .vsync_end = 480 + 10 + 3,
2082 .vtotal = 480 + 10 + 3 + 32,
2083 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2086 static const struct panel_desc edt_et057090dhu = {
2087 .modes = &edt_et057090dhu_mode,
2094 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2095 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
2096 .connector_type = DRM_MODE_CONNECTOR_DPI,
2099 static const struct drm_display_mode edt_etm0700g0dh6_mode = {
2102 .hsync_start = 800 + 40,
2103 .hsync_end = 800 + 40 + 128,
2104 .htotal = 800 + 40 + 128 + 88,
2106 .vsync_start = 480 + 10,
2107 .vsync_end = 480 + 10 + 2,
2108 .vtotal = 480 + 10 + 2 + 33,
2109 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2112 static const struct panel_desc edt_etm0700g0dh6 = {
2113 .modes = &edt_etm0700g0dh6_mode,
2120 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2121 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
2122 .connector_type = DRM_MODE_CONNECTOR_DPI,
2125 static const struct panel_desc edt_etm0700g0bdh6 = {
2126 .modes = &edt_etm0700g0dh6_mode,
2133 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
2134 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2135 .connector_type = DRM_MODE_CONNECTOR_DPI,
2138 static const struct display_timing edt_etml0700y5dha_timing = {
2139 .pixelclock = { 40800000, 51200000, 67200000 },
2140 .hactive = { 1024, 1024, 1024 },
2141 .hfront_porch = { 30, 106, 125 },
2142 .hback_porch = { 30, 106, 125 },
2143 .hsync_len = { 30, 108, 126 },
2144 .vactive = { 600, 600, 600 },
2145 .vfront_porch = { 3, 12, 67},
2146 .vback_porch = { 3, 12, 67 },
2147 .vsync_len = { 4, 11, 66 },
2148 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2149 DISPLAY_FLAGS_DE_HIGH,
2152 static const struct panel_desc edt_etml0700y5dha = {
2153 .timings = &edt_etml0700y5dha_timing,
2160 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2161 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2164 static const struct display_timing edt_etml1010g3dra_timing = {
2165 .pixelclock = { 66300000, 72400000, 78900000 },
2166 .hactive = { 1280, 1280, 1280 },
2167 .hfront_porch = { 12, 72, 132 },
2168 .hback_porch = { 86, 86, 86 },
2169 .hsync_len = { 2, 2, 2 },
2170 .vactive = { 800, 800, 800 },
2171 .vfront_porch = { 1, 15, 49 },
2172 .vback_porch = { 21, 21, 21 },
2173 .vsync_len = { 2, 2, 2 },
2174 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
2175 DISPLAY_FLAGS_DE_HIGH,
2178 static const struct panel_desc edt_etml1010g3dra = {
2179 .timings = &edt_etml1010g3dra_timing,
2186 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2187 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2188 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2191 static const struct drm_display_mode edt_etmv570g2dhu_mode = {
2195 .hsync_end = 640 + 16,
2196 .htotal = 640 + 16 + 30 + 114,
2198 .vsync_start = 480 + 10,
2199 .vsync_end = 480 + 10 + 3,
2200 .vtotal = 480 + 10 + 3 + 35,
2201 .flags = DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_PHSYNC,
2204 static const struct panel_desc edt_etmv570g2dhu = {
2205 .modes = &edt_etmv570g2dhu_mode,
2212 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2213 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
2214 .connector_type = DRM_MODE_CONNECTOR_DPI,
2217 static const struct display_timing eink_vb3300_kca_timing = {
2218 .pixelclock = { 40000000, 40000000, 40000000 },
2219 .hactive = { 334, 334, 334 },
2220 .hfront_porch = { 1, 1, 1 },
2221 .hback_porch = { 1, 1, 1 },
2222 .hsync_len = { 1, 1, 1 },
2223 .vactive = { 1405, 1405, 1405 },
2224 .vfront_porch = { 1, 1, 1 },
2225 .vback_porch = { 1, 1, 1 },
2226 .vsync_len = { 1, 1, 1 },
2227 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2228 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
2231 static const struct panel_desc eink_vb3300_kca = {
2232 .timings = &eink_vb3300_kca_timing,
2239 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2240 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2241 .connector_type = DRM_MODE_CONNECTOR_DPI,
2244 static const struct display_timing evervision_vgg644804_timing = {
2245 .pixelclock = { 25175000, 25175000, 25175000 },
2246 .hactive = { 640, 640, 640 },
2247 .hfront_porch = { 16, 16, 16 },
2248 .hback_porch = { 82, 114, 170 },
2249 .hsync_len = { 5, 30, 30 },
2250 .vactive = { 480, 480, 480 },
2251 .vfront_porch = { 10, 10, 10 },
2252 .vback_porch = { 30, 32, 34 },
2253 .vsync_len = { 1, 3, 5 },
2254 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
2255 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
2256 DISPLAY_FLAGS_SYNC_POSEDGE,
2259 static const struct panel_desc evervision_vgg644804 = {
2260 .timings = &evervision_vgg644804_timing,
2267 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2268 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2269 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2272 static const struct display_timing evervision_vgg804821_timing = {
2273 .pixelclock = { 27600000, 33300000, 50000000 },
2274 .hactive = { 800, 800, 800 },
2275 .hfront_porch = { 40, 66, 70 },
2276 .hback_porch = { 40, 67, 70 },
2277 .hsync_len = { 40, 67, 70 },
2278 .vactive = { 480, 480, 480 },
2279 .vfront_porch = { 6, 10, 10 },
2280 .vback_porch = { 7, 11, 11 },
2281 .vsync_len = { 7, 11, 11 },
2282 .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH |
2283 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
2284 DISPLAY_FLAGS_SYNC_NEGEDGE,
2287 static const struct panel_desc evervision_vgg804821 = {
2288 .timings = &evervision_vgg804821_timing,
2295 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2296 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2299 static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = {
2302 .hsync_start = 800 + 168,
2303 .hsync_end = 800 + 168 + 64,
2304 .htotal = 800 + 168 + 64 + 88,
2306 .vsync_start = 480 + 37,
2307 .vsync_end = 480 + 37 + 2,
2308 .vtotal = 480 + 37 + 2 + 8,
2311 static const struct panel_desc foxlink_fl500wvr00_a0t = {
2312 .modes = &foxlink_fl500wvr00_a0t_mode,
2319 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2322 static const struct drm_display_mode frida_frd350h54004_modes[] = {
2326 .hsync_start = 320 + 44,
2327 .hsync_end = 320 + 44 + 16,
2328 .htotal = 320 + 44 + 16 + 20,
2330 .vsync_start = 240 + 2,
2331 .vsync_end = 240 + 2 + 6,
2332 .vtotal = 240 + 2 + 6 + 2,
2333 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2338 .hsync_start = 320 + 56,
2339 .hsync_end = 320 + 56 + 16,
2340 .htotal = 320 + 56 + 16 + 40,
2342 .vsync_start = 240 + 2,
2343 .vsync_end = 240 + 2 + 6,
2344 .vtotal = 240 + 2 + 6 + 2,
2345 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2349 static const struct panel_desc frida_frd350h54004 = {
2350 .modes = frida_frd350h54004_modes,
2351 .num_modes = ARRAY_SIZE(frida_frd350h54004_modes),
2357 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2358 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
2359 .connector_type = DRM_MODE_CONNECTOR_DPI,
2362 static const struct drm_display_mode friendlyarm_hd702e_mode = {
2365 .hsync_start = 800 + 20,
2366 .hsync_end = 800 + 20 + 24,
2367 .htotal = 800 + 20 + 24 + 20,
2369 .vsync_start = 1280 + 4,
2370 .vsync_end = 1280 + 4 + 8,
2371 .vtotal = 1280 + 4 + 8 + 4,
2372 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
2375 static const struct panel_desc friendlyarm_hd702e = {
2376 .modes = &friendlyarm_hd702e_mode,
2384 static const struct drm_display_mode giantplus_gpg482739qs5_mode = {
2387 .hsync_start = 480 + 5,
2388 .hsync_end = 480 + 5 + 1,
2389 .htotal = 480 + 5 + 1 + 40,
2391 .vsync_start = 272 + 8,
2392 .vsync_end = 272 + 8 + 1,
2393 .vtotal = 272 + 8 + 1 + 8,
2396 static const struct panel_desc giantplus_gpg482739qs5 = {
2397 .modes = &giantplus_gpg482739qs5_mode,
2404 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2407 static const struct display_timing giantplus_gpm940b0_timing = {
2408 .pixelclock = { 13500000, 27000000, 27500000 },
2409 .hactive = { 320, 320, 320 },
2410 .hfront_porch = { 14, 686, 718 },
2411 .hback_porch = { 50, 70, 255 },
2412 .hsync_len = { 1, 1, 1 },
2413 .vactive = { 240, 240, 240 },
2414 .vfront_porch = { 1, 1, 179 },
2415 .vback_porch = { 1, 21, 31 },
2416 .vsync_len = { 1, 1, 6 },
2417 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
2420 static const struct panel_desc giantplus_gpm940b0 = {
2421 .timings = &giantplus_gpm940b0_timing,
2428 .bus_format = MEDIA_BUS_FMT_RGB888_3X8,
2429 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
2432 static const struct display_timing hannstar_hsd070pww1_timing = {
2433 .pixelclock = { 64300000, 71100000, 82000000 },
2434 .hactive = { 1280, 1280, 1280 },
2435 .hfront_porch = { 1, 1, 10 },
2436 .hback_porch = { 1, 1, 10 },
2438 * According to the data sheet, the minimum horizontal blanking interval
2439 * is 54 clocks (1 + 52 + 1), but tests with a Nitrogen6X have shown the
2440 * minimum working horizontal blanking interval to be 60 clocks.
2442 .hsync_len = { 58, 158, 661 },
2443 .vactive = { 800, 800, 800 },
2444 .vfront_porch = { 1, 1, 10 },
2445 .vback_porch = { 1, 1, 10 },
2446 .vsync_len = { 1, 21, 203 },
2447 .flags = DISPLAY_FLAGS_DE_HIGH,
2450 static const struct panel_desc hannstar_hsd070pww1 = {
2451 .timings = &hannstar_hsd070pww1_timing,
2458 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2459 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2462 static const struct display_timing hannstar_hsd100pxn1_timing = {
2463 .pixelclock = { 55000000, 65000000, 75000000 },
2464 .hactive = { 1024, 1024, 1024 },
2465 .hfront_porch = { 40, 40, 40 },
2466 .hback_porch = { 220, 220, 220 },
2467 .hsync_len = { 20, 60, 100 },
2468 .vactive = { 768, 768, 768 },
2469 .vfront_porch = { 7, 7, 7 },
2470 .vback_porch = { 21, 21, 21 },
2471 .vsync_len = { 10, 10, 10 },
2472 .flags = DISPLAY_FLAGS_DE_HIGH,
2475 static const struct panel_desc hannstar_hsd100pxn1 = {
2476 .timings = &hannstar_hsd100pxn1_timing,
2483 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2484 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2487 static const struct display_timing hannstar_hsd101pww2_timing = {
2488 .pixelclock = { 64300000, 71100000, 82000000 },
2489 .hactive = { 1280, 1280, 1280 },
2490 .hfront_porch = { 1, 1, 10 },
2491 .hback_porch = { 1, 1, 10 },
2492 .hsync_len = { 58, 158, 661 },
2493 .vactive = { 800, 800, 800 },
2494 .vfront_porch = { 1, 1, 10 },
2495 .vback_porch = { 1, 1, 10 },
2496 .vsync_len = { 1, 21, 203 },
2497 .flags = DISPLAY_FLAGS_DE_HIGH,
2500 static const struct panel_desc hannstar_hsd101pww2 = {
2501 .timings = &hannstar_hsd101pww2_timing,
2508 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2509 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2512 static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = {
2515 .hsync_start = 800 + 85,
2516 .hsync_end = 800 + 85 + 86,
2517 .htotal = 800 + 85 + 86 + 85,
2519 .vsync_start = 480 + 16,
2520 .vsync_end = 480 + 16 + 13,
2521 .vtotal = 480 + 16 + 13 + 16,
2524 static const struct panel_desc hitachi_tx23d38vm0caa = {
2525 .modes = &hitachi_tx23d38vm0caa_mode,
2538 static const struct drm_display_mode innolux_at043tn24_mode = {
2541 .hsync_start = 480 + 2,
2542 .hsync_end = 480 + 2 + 41,
2543 .htotal = 480 + 2 + 41 + 2,
2545 .vsync_start = 272 + 2,
2546 .vsync_end = 272 + 2 + 10,
2547 .vtotal = 272 + 2 + 10 + 2,
2548 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
2551 static const struct panel_desc innolux_at043tn24 = {
2552 .modes = &innolux_at043tn24_mode,
2559 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2560 .connector_type = DRM_MODE_CONNECTOR_DPI,
2561 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2564 static const struct drm_display_mode innolux_at070tn92_mode = {
2567 .hsync_start = 800 + 210,
2568 .hsync_end = 800 + 210 + 20,
2569 .htotal = 800 + 210 + 20 + 46,
2571 .vsync_start = 480 + 22,
2572 .vsync_end = 480 + 22 + 10,
2573 .vtotal = 480 + 22 + 23 + 10,
2576 static const struct panel_desc innolux_at070tn92 = {
2577 .modes = &innolux_at070tn92_mode,
2583 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2586 static const struct display_timing innolux_g070ace_l01_timing = {
2587 .pixelclock = { 25200000, 35000000, 35700000 },
2588 .hactive = { 800, 800, 800 },
2589 .hfront_porch = { 30, 32, 87 },
2590 .hback_porch = { 30, 32, 87 },
2591 .hsync_len = { 1, 1, 1 },
2592 .vactive = { 480, 480, 480 },
2593 .vfront_porch = { 3, 3, 3 },
2594 .vback_porch = { 13, 13, 13 },
2595 .vsync_len = { 1, 1, 4 },
2596 .flags = DISPLAY_FLAGS_DE_HIGH,
2599 static const struct panel_desc innolux_g070ace_l01 = {
2600 .timings = &innolux_g070ace_l01_timing,
2613 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2614 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2615 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2618 static const struct display_timing innolux_g070y2_l01_timing = {
2619 .pixelclock = { 28000000, 29500000, 32000000 },
2620 .hactive = { 800, 800, 800 },
2621 .hfront_porch = { 61, 91, 141 },
2622 .hback_porch = { 60, 90, 140 },
2623 .hsync_len = { 12, 12, 12 },
2624 .vactive = { 480, 480, 480 },
2625 .vfront_porch = { 4, 9, 30 },
2626 .vback_porch = { 4, 8, 28 },
2627 .vsync_len = { 2, 2, 2 },
2628 .flags = DISPLAY_FLAGS_DE_HIGH,
2631 static const struct panel_desc innolux_g070y2_l01 = {
2632 .timings = &innolux_g070y2_l01_timing,
2645 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2646 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2647 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2650 static const struct display_timing innolux_g070ace_lh3_timing = {
2651 .pixelclock = { 25200000, 25400000, 35700000 },
2652 .hactive = { 800, 800, 800 },
2653 .hfront_porch = { 30, 32, 87 },
2654 .hback_porch = { 29, 31, 86 },
2655 .hsync_len = { 1, 1, 1 },
2656 .vactive = { 480, 480, 480 },
2657 .vfront_porch = { 4, 5, 65 },
2658 .vback_porch = { 3, 4, 65 },
2659 .vsync_len = { 1, 1, 1 },
2660 .flags = DISPLAY_FLAGS_DE_HIGH,
2663 static const struct panel_desc innolux_g070ace_lh3 = {
2664 .timings = &innolux_g070ace_lh3_timing,
2677 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2678 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2679 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2682 static const struct drm_display_mode innolux_g070y2_t02_mode = {
2685 .hsync_start = 800 + 210,
2686 .hsync_end = 800 + 210 + 20,
2687 .htotal = 800 + 210 + 20 + 46,
2689 .vsync_start = 480 + 22,
2690 .vsync_end = 480 + 22 + 10,
2691 .vtotal = 480 + 22 + 23 + 10,
2694 static const struct panel_desc innolux_g070y2_t02 = {
2695 .modes = &innolux_g070y2_t02_mode,
2702 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
2703 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
2704 .connector_type = DRM_MODE_CONNECTOR_DPI,
2707 static const struct display_timing innolux_g101ice_l01_timing = {
2708 .pixelclock = { 60400000, 71100000, 74700000 },
2709 .hactive = { 1280, 1280, 1280 },
2710 .hfront_porch = { 30, 60, 70 },
2711 .hback_porch = { 30, 60, 70 },
2712 .hsync_len = { 22, 40, 60 },
2713 .vactive = { 800, 800, 800 },
2714 .vfront_porch = { 3, 8, 14 },
2715 .vback_porch = { 3, 8, 14 },
2716 .vsync_len = { 4, 7, 12 },
2717 .flags = DISPLAY_FLAGS_DE_HIGH,
2720 static const struct panel_desc innolux_g101ice_l01 = {
2721 .timings = &innolux_g101ice_l01_timing,
2732 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2733 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2734 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2737 static const struct display_timing innolux_g121i1_l01_timing = {
2738 .pixelclock = { 67450000, 71000000, 74550000 },
2739 .hactive = { 1280, 1280, 1280 },
2740 .hfront_porch = { 40, 80, 160 },
2741 .hback_porch = { 39, 79, 159 },
2742 .hsync_len = { 1, 1, 1 },
2743 .vactive = { 800, 800, 800 },
2744 .vfront_porch = { 5, 11, 100 },
2745 .vback_porch = { 4, 11, 99 },
2746 .vsync_len = { 1, 1, 1 },
2749 static const struct panel_desc innolux_g121i1_l01 = {
2750 .timings = &innolux_g121i1_l01_timing,
2761 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2762 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2765 static const struct display_timing innolux_g121x1_l03_timings = {
2766 .pixelclock = { 57500000, 64900000, 74400000 },
2767 .hactive = { 1024, 1024, 1024 },
2768 .hfront_porch = { 90, 140, 190 },
2769 .hback_porch = { 90, 140, 190 },
2770 .hsync_len = { 36, 40, 60 },
2771 .vactive = { 768, 768, 768 },
2772 .vfront_porch = { 2, 15, 30 },
2773 .vback_porch = { 2, 15, 30 },
2774 .vsync_len = { 2, 8, 20 },
2775 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
2778 static const struct panel_desc innolux_g121x1_l03 = {
2779 .timings = &innolux_g121x1_l03_timings,
2791 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2792 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2793 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2796 static const struct panel_desc innolux_g121xce_l01 = {
2797 .timings = &innolux_g121x1_l03_timings,
2809 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2810 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2811 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2814 static const struct display_timing innolux_g156hce_l01_timings = {
2815 .pixelclock = { 120000000, 141860000, 150000000 },
2816 .hactive = { 1920, 1920, 1920 },
2817 .hfront_porch = { 80, 90, 100 },
2818 .hback_porch = { 80, 90, 100 },
2819 .hsync_len = { 20, 30, 30 },
2820 .vactive = { 1080, 1080, 1080 },
2821 .vfront_porch = { 3, 10, 20 },
2822 .vback_porch = { 3, 10, 20 },
2823 .vsync_len = { 4, 10, 10 },
2826 static const struct panel_desc innolux_g156hce_l01 = {
2827 .timings = &innolux_g156hce_l01_timings,
2835 .prepare = 1, /* T1+T2 */
2836 .enable = 450, /* T5 */
2837 .disable = 200, /* T6 */
2838 .unprepare = 10, /* T3+T7 */
2840 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2841 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2842 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2845 static const struct drm_display_mode innolux_n156bge_l21_mode = {
2848 .hsync_start = 1366 + 16,
2849 .hsync_end = 1366 + 16 + 34,
2850 .htotal = 1366 + 16 + 34 + 50,
2852 .vsync_start = 768 + 2,
2853 .vsync_end = 768 + 2 + 6,
2854 .vtotal = 768 + 2 + 6 + 12,
2857 static const struct panel_desc innolux_n156bge_l21 = {
2858 .modes = &innolux_n156bge_l21_mode,
2865 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2866 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2867 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2870 static const struct drm_display_mode innolux_zj070na_01p_mode = {
2873 .hsync_start = 1024 + 128,
2874 .hsync_end = 1024 + 128 + 64,
2875 .htotal = 1024 + 128 + 64 + 128,
2877 .vsync_start = 600 + 16,
2878 .vsync_end = 600 + 16 + 4,
2879 .vtotal = 600 + 16 + 4 + 16,
2882 static const struct panel_desc innolux_zj070na_01p = {
2883 .modes = &innolux_zj070na_01p_mode,
2892 static const struct display_timing koe_tx14d24vm1bpa_timing = {
2893 .pixelclock = { 5580000, 5850000, 6200000 },
2894 .hactive = { 320, 320, 320 },
2895 .hfront_porch = { 30, 30, 30 },
2896 .hback_porch = { 30, 30, 30 },
2897 .hsync_len = { 1, 5, 17 },
2898 .vactive = { 240, 240, 240 },
2899 .vfront_porch = { 6, 6, 6 },
2900 .vback_porch = { 5, 5, 5 },
2901 .vsync_len = { 1, 2, 11 },
2902 .flags = DISPLAY_FLAGS_DE_HIGH,
2905 static const struct panel_desc koe_tx14d24vm1bpa = {
2906 .timings = &koe_tx14d24vm1bpa_timing,
2915 static const struct display_timing koe_tx26d202vm0bwa_timing = {
2916 .pixelclock = { 151820000, 156720000, 159780000 },
2917 .hactive = { 1920, 1920, 1920 },
2918 .hfront_porch = { 105, 130, 142 },
2919 .hback_porch = { 45, 70, 82 },
2920 .hsync_len = { 30, 30, 30 },
2921 .vactive = { 1200, 1200, 1200},
2922 .vfront_porch = { 3, 5, 10 },
2923 .vback_porch = { 2, 5, 10 },
2924 .vsync_len = { 5, 5, 5 },
2925 .flags = DISPLAY_FLAGS_DE_HIGH,
2928 static const struct panel_desc koe_tx26d202vm0bwa = {
2929 .timings = &koe_tx26d202vm0bwa_timing,
2942 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2943 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
2944 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2947 static const struct display_timing koe_tx31d200vm0baa_timing = {
2948 .pixelclock = { 39600000, 43200000, 48000000 },
2949 .hactive = { 1280, 1280, 1280 },
2950 .hfront_porch = { 16, 36, 56 },
2951 .hback_porch = { 16, 36, 56 },
2952 .hsync_len = { 8, 8, 8 },
2953 .vactive = { 480, 480, 480 },
2954 .vfront_porch = { 6, 21, 33 },
2955 .vback_porch = { 6, 21, 33 },
2956 .vsync_len = { 8, 8, 8 },
2957 .flags = DISPLAY_FLAGS_DE_HIGH,
2960 static const struct panel_desc koe_tx31d200vm0baa = {
2961 .timings = &koe_tx31d200vm0baa_timing,
2968 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
2969 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2972 static const struct display_timing kyo_tcg121xglp_timing = {
2973 .pixelclock = { 52000000, 65000000, 71000000 },
2974 .hactive = { 1024, 1024, 1024 },
2975 .hfront_porch = { 2, 2, 2 },
2976 .hback_porch = { 2, 2, 2 },
2977 .hsync_len = { 86, 124, 244 },
2978 .vactive = { 768, 768, 768 },
2979 .vfront_porch = { 2, 2, 2 },
2980 .vback_porch = { 2, 2, 2 },
2981 .vsync_len = { 6, 34, 73 },
2982 .flags = DISPLAY_FLAGS_DE_HIGH,
2985 static const struct panel_desc kyo_tcg121xglp = {
2986 .timings = &kyo_tcg121xglp_timing,
2993 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
2994 .connector_type = DRM_MODE_CONNECTOR_LVDS,
2997 static const struct drm_display_mode lemaker_bl035_rgb_002_mode = {
3000 .hsync_start = 320 + 20,
3001 .hsync_end = 320 + 20 + 30,
3002 .htotal = 320 + 20 + 30 + 38,
3004 .vsync_start = 240 + 4,
3005 .vsync_end = 240 + 4 + 3,
3006 .vtotal = 240 + 4 + 3 + 15,
3009 static const struct panel_desc lemaker_bl035_rgb_002 = {
3010 .modes = &lemaker_bl035_rgb_002_mode,
3016 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3017 .bus_flags = DRM_BUS_FLAG_DE_LOW,
3020 static const struct display_timing lg_lb070wv8_timing = {
3021 .pixelclock = { 31950000, 33260000, 34600000 },
3022 .hactive = { 800, 800, 800 },
3023 .hfront_porch = { 88, 88, 88 },
3024 .hback_porch = { 88, 88, 88 },
3025 .hsync_len = { 80, 80, 80 },
3026 .vactive = { 480, 480, 480 },
3027 .vfront_porch = { 10, 10, 10 },
3028 .vback_porch = { 10, 10, 10 },
3029 .vsync_len = { 25, 25, 25 },
3032 static const struct panel_desc lg_lb070wv8 = {
3033 .timings = &lg_lb070wv8_timing,
3040 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3041 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3044 static const struct drm_display_mode lincolntech_lcd185_101ct_mode = {
3047 .hsync_start = 1920 + 128,
3048 .hsync_end = 1920 + 128 + 20,
3049 .htotal = 1920 + 128 + 20 + 12,
3051 .vsync_start = 1200 + 19,
3052 .vsync_end = 1200 + 19 + 4,
3053 .vtotal = 1200 + 19 + 4 + 20,
3056 static const struct panel_desc lincolntech_lcd185_101ct = {
3057 .modes = &lincolntech_lcd185_101ct_mode,
3068 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3069 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3070 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3073 static const struct display_timing logictechno_lt161010_2nh_timing = {
3074 .pixelclock = { 26400000, 33300000, 46800000 },
3075 .hactive = { 800, 800, 800 },
3076 .hfront_porch = { 16, 210, 354 },
3077 .hback_porch = { 46, 46, 46 },
3078 .hsync_len = { 1, 20, 40 },
3079 .vactive = { 480, 480, 480 },
3080 .vfront_porch = { 7, 22, 147 },
3081 .vback_porch = { 23, 23, 23 },
3082 .vsync_len = { 1, 10, 20 },
3083 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3084 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3085 DISPLAY_FLAGS_SYNC_POSEDGE,
3088 static const struct panel_desc logictechno_lt161010_2nh = {
3089 .timings = &logictechno_lt161010_2nh_timing,
3096 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3097 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3098 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3099 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3100 .connector_type = DRM_MODE_CONNECTOR_DPI,
3103 static const struct display_timing logictechno_lt170410_2whc_timing = {
3104 .pixelclock = { 68900000, 71100000, 73400000 },
3105 .hactive = { 1280, 1280, 1280 },
3106 .hfront_porch = { 23, 60, 71 },
3107 .hback_porch = { 23, 60, 71 },
3108 .hsync_len = { 15, 40, 47 },
3109 .vactive = { 800, 800, 800 },
3110 .vfront_porch = { 5, 7, 10 },
3111 .vback_porch = { 5, 7, 10 },
3112 .vsync_len = { 6, 9, 12 },
3113 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3114 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3115 DISPLAY_FLAGS_SYNC_POSEDGE,
3118 static const struct panel_desc logictechno_lt170410_2whc = {
3119 .timings = &logictechno_lt170410_2whc_timing,
3126 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3127 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3128 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3131 static const struct drm_display_mode logictechno_lttd800480070_l2rt_mode = {
3134 .hsync_start = 800 + 112,
3135 .hsync_end = 800 + 112 + 3,
3136 .htotal = 800 + 112 + 3 + 85,
3138 .vsync_start = 480 + 38,
3139 .vsync_end = 480 + 38 + 3,
3140 .vtotal = 480 + 38 + 3 + 29,
3141 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3144 static const struct panel_desc logictechno_lttd800480070_l2rt = {
3145 .modes = &logictechno_lttd800480070_l2rt_mode,
3158 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3159 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3160 .connector_type = DRM_MODE_CONNECTOR_DPI,
3163 static const struct drm_display_mode logictechno_lttd800480070_l6wh_rt_mode = {
3166 .hsync_start = 800 + 154,
3167 .hsync_end = 800 + 154 + 3,
3168 .htotal = 800 + 154 + 3 + 43,
3170 .vsync_start = 480 + 47,
3171 .vsync_end = 480 + 47 + 3,
3172 .vtotal = 480 + 47 + 3 + 20,
3173 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3176 static const struct panel_desc logictechno_lttd800480070_l6wh_rt = {
3177 .modes = &logictechno_lttd800480070_l6wh_rt_mode,
3190 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3191 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3192 .connector_type = DRM_MODE_CONNECTOR_DPI,
3195 static const struct drm_display_mode logicpd_type_28_mode = {
3198 .hsync_start = 480 + 3,
3199 .hsync_end = 480 + 3 + 42,
3200 .htotal = 480 + 3 + 42 + 2,
3203 .vsync_start = 272 + 2,
3204 .vsync_end = 272 + 2 + 11,
3205 .vtotal = 272 + 2 + 11 + 3,
3206 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3209 static const struct panel_desc logicpd_type_28 = {
3210 .modes = &logicpd_type_28_mode,
3223 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3224 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3225 DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE,
3226 .connector_type = DRM_MODE_CONNECTOR_DPI,
3229 static const struct drm_display_mode microtips_mf_101hiebcaf0_c_mode = {
3232 .hsync_start = 1920 + 32,
3233 .hsync_end = 1920 + 32 + 52,
3234 .htotal = 1920 + 32 + 52 + 24,
3236 .vsync_start = 1200 + 24,
3237 .vsync_end = 1200 + 24 + 8,
3238 .vtotal = 1200 + 24 + 8 + 3,
3241 static const struct panel_desc microtips_mf_101hiebcaf0_c = {
3242 .modes = µtips_mf_101hiebcaf0_c_mode,
3253 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3254 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3255 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3258 static const struct drm_display_mode microtips_mf_103hieb0ga0_mode = {
3261 .hsync_start = 1920 + 72,
3262 .hsync_end = 1920 + 72 + 72,
3263 .htotal = 1920 + 72 + 72 + 72,
3265 .vsync_start = 720 + 3,
3266 .vsync_end = 720 + 3 + 3,
3267 .vtotal = 720 + 3 + 3 + 2,
3270 static const struct panel_desc microtips_mf_103hieb0ga0 = {
3271 .modes = µtips_mf_103hieb0ga0_mode,
3282 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3283 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3284 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3287 static const struct drm_display_mode mitsubishi_aa070mc01_mode = {
3290 .hsync_start = 800 + 0,
3291 .hsync_end = 800 + 1,
3292 .htotal = 800 + 0 + 1 + 160,
3294 .vsync_start = 480 + 0,
3295 .vsync_end = 480 + 48 + 1,
3296 .vtotal = 480 + 48 + 1 + 0,
3297 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
3300 static const struct panel_desc mitsubishi_aa070mc01 = {
3301 .modes = &mitsubishi_aa070mc01_mode,
3314 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3315 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3316 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3319 static const struct drm_display_mode mitsubishi_aa084xe01_mode = {
3322 .hsync_start = 1024 + 24,
3323 .hsync_end = 1024 + 24 + 63,
3324 .htotal = 1024 + 24 + 63 + 1,
3326 .vsync_start = 768 + 3,
3327 .vsync_end = 768 + 3 + 6,
3328 .vtotal = 768 + 3 + 6 + 1,
3329 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3332 static const struct panel_desc mitsubishi_aa084xe01 = {
3333 .modes = &mitsubishi_aa084xe01_mode,
3340 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
3341 .connector_type = DRM_MODE_CONNECTOR_DPI,
3342 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3345 static const struct display_timing multi_inno_mi0700a2t_30_timing = {
3346 .pixelclock = { 26400000, 33000000, 46800000 },
3347 .hactive = { 800, 800, 800 },
3348 .hfront_porch = { 16, 204, 354 },
3349 .hback_porch = { 46, 46, 46 },
3350 .hsync_len = { 1, 6, 40 },
3351 .vactive = { 480, 480, 480 },
3352 .vfront_porch = { 7, 22, 147 },
3353 .vback_porch = { 23, 23, 23 },
3354 .vsync_len = { 1, 3, 20 },
3355 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3356 DISPLAY_FLAGS_DE_HIGH,
3359 static const struct panel_desc multi_inno_mi0700a2t_30 = {
3360 .timings = &multi_inno_mi0700a2t_30_timing,
3367 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3368 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3369 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3372 static const struct display_timing multi_inno_mi0700s4t_6_timing = {
3373 .pixelclock = { 29000000, 33000000, 38000000 },
3374 .hactive = { 800, 800, 800 },
3375 .hfront_porch = { 180, 210, 240 },
3376 .hback_porch = { 16, 16, 16 },
3377 .hsync_len = { 30, 30, 30 },
3378 .vactive = { 480, 480, 480 },
3379 .vfront_porch = { 12, 22, 32 },
3380 .vback_porch = { 10, 10, 10 },
3381 .vsync_len = { 13, 13, 13 },
3382 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3383 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3384 DISPLAY_FLAGS_SYNC_POSEDGE,
3387 static const struct panel_desc multi_inno_mi0700s4t_6 = {
3388 .timings = &multi_inno_mi0700s4t_6_timing,
3395 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3396 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3397 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3398 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3399 .connector_type = DRM_MODE_CONNECTOR_DPI,
3402 static const struct display_timing multi_inno_mi0800ft_9_timing = {
3403 .pixelclock = { 32000000, 40000000, 50000000 },
3404 .hactive = { 800, 800, 800 },
3405 .hfront_porch = { 16, 210, 354 },
3406 .hback_porch = { 6, 26, 45 },
3407 .hsync_len = { 1, 20, 40 },
3408 .vactive = { 600, 600, 600 },
3409 .vfront_porch = { 1, 12, 77 },
3410 .vback_porch = { 3, 13, 22 },
3411 .vsync_len = { 1, 10, 20 },
3412 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3413 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
3414 DISPLAY_FLAGS_SYNC_POSEDGE,
3417 static const struct panel_desc multi_inno_mi0800ft_9 = {
3418 .timings = &multi_inno_mi0800ft_9_timing,
3425 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3426 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3427 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3428 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3429 .connector_type = DRM_MODE_CONNECTOR_DPI,
3432 static const struct display_timing multi_inno_mi1010ait_1cp_timing = {
3433 .pixelclock = { 68900000, 70000000, 73400000 },
3434 .hactive = { 1280, 1280, 1280 },
3435 .hfront_porch = { 30, 60, 71 },
3436 .hback_porch = { 30, 60, 71 },
3437 .hsync_len = { 10, 10, 48 },
3438 .vactive = { 800, 800, 800 },
3439 .vfront_porch = { 5, 10, 10 },
3440 .vback_porch = { 5, 10, 10 },
3441 .vsync_len = { 5, 6, 13 },
3442 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3443 DISPLAY_FLAGS_DE_HIGH,
3446 static const struct panel_desc multi_inno_mi1010ait_1cp = {
3447 .timings = &multi_inno_mi1010ait_1cp_timing,
3458 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3459 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3460 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3463 static const struct display_timing multi_inno_mi1010z1t_1cp11_timing = {
3464 .pixelclock = { 40800000, 51200000, 67200000 },
3465 .hactive = { 1024, 1024, 1024 },
3466 .hfront_porch = { 30, 110, 130 },
3467 .hback_porch = { 30, 110, 130 },
3468 .hsync_len = { 30, 100, 116 },
3469 .vactive = { 600, 600, 600 },
3470 .vfront_porch = { 4, 13, 80 },
3471 .vback_porch = { 4, 13, 80 },
3472 .vsync_len = { 2, 9, 40 },
3473 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3474 DISPLAY_FLAGS_DE_HIGH,
3477 static const struct panel_desc multi_inno_mi1010z1t_1cp11 = {
3478 .timings = &multi_inno_mi1010z1t_1cp11_timing,
3485 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
3486 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3487 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3490 static const struct display_timing nec_nl12880bc20_05_timing = {
3491 .pixelclock = { 67000000, 71000000, 75000000 },
3492 .hactive = { 1280, 1280, 1280 },
3493 .hfront_porch = { 2, 30, 30 },
3494 .hback_porch = { 6, 100, 100 },
3495 .hsync_len = { 2, 30, 30 },
3496 .vactive = { 800, 800, 800 },
3497 .vfront_porch = { 5, 5, 5 },
3498 .vback_porch = { 11, 11, 11 },
3499 .vsync_len = { 7, 7, 7 },
3502 static const struct panel_desc nec_nl12880bc20_05 = {
3503 .timings = &nec_nl12880bc20_05_timing,
3514 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3515 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3518 static const struct drm_display_mode nec_nl4827hc19_05b_mode = {
3521 .hsync_start = 480 + 2,
3522 .hsync_end = 480 + 2 + 41,
3523 .htotal = 480 + 2 + 41 + 2,
3525 .vsync_start = 272 + 2,
3526 .vsync_end = 272 + 2 + 4,
3527 .vtotal = 272 + 2 + 4 + 2,
3528 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3531 static const struct panel_desc nec_nl4827hc19_05b = {
3532 .modes = &nec_nl4827hc19_05b_mode,
3539 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3540 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3543 static const struct drm_display_mode netron_dy_e231732_mode = {
3546 .hsync_start = 1024 + 160,
3547 .hsync_end = 1024 + 160 + 70,
3548 .htotal = 1024 + 160 + 70 + 90,
3550 .vsync_start = 600 + 127,
3551 .vsync_end = 600 + 127 + 20,
3552 .vtotal = 600 + 127 + 20 + 3,
3555 static const struct panel_desc netron_dy_e231732 = {
3556 .modes = &netron_dy_e231732_mode,
3562 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3565 static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = {
3568 .hsync_start = 480 + 2,
3569 .hsync_end = 480 + 2 + 41,
3570 .htotal = 480 + 2 + 41 + 2,
3572 .vsync_start = 272 + 2,
3573 .vsync_end = 272 + 2 + 10,
3574 .vtotal = 272 + 2 + 10 + 2,
3575 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3578 static const struct panel_desc newhaven_nhd_43_480272ef_atxl = {
3579 .modes = &newhaven_nhd_43_480272ef_atxl_mode,
3586 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3587 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3588 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3589 .connector_type = DRM_MODE_CONNECTOR_DPI,
3592 static const struct drm_display_mode nlt_nl13676bc25_03f_mode = {
3595 .hsync_start = 1366 + 14,
3596 .hsync_end = 1366 + 14 + 56,
3597 .htotal = 1366 + 14 + 56 + 64,
3599 .vsync_start = 768 + 1,
3600 .vsync_end = 768 + 1 + 3,
3601 .vtotal = 768 + 1 + 3 + 22,
3604 static const struct panel_desc nlt_nl13676bc25_03f = {
3605 .modes = &nlt_nl13676bc25_03f_mode,
3612 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3613 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3616 static const struct display_timing nlt_nl192108ac18_02d_timing = {
3617 .pixelclock = { 130000000, 148350000, 163000000 },
3618 .hactive = { 1920, 1920, 1920 },
3619 .hfront_porch = { 80, 100, 100 },
3620 .hback_porch = { 100, 120, 120 },
3621 .hsync_len = { 50, 60, 60 },
3622 .vactive = { 1080, 1080, 1080 },
3623 .vfront_porch = { 12, 30, 30 },
3624 .vback_porch = { 4, 10, 10 },
3625 .vsync_len = { 4, 5, 5 },
3628 static const struct panel_desc nlt_nl192108ac18_02d = {
3629 .timings = &nlt_nl192108ac18_02d_timing,
3639 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3640 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3643 static const struct drm_display_mode nvd_9128_mode = {
3646 .hsync_start = 800 + 130,
3647 .hsync_end = 800 + 130 + 98,
3648 .htotal = 800 + 0 + 130 + 98,
3650 .vsync_start = 480 + 10,
3651 .vsync_end = 480 + 10 + 50,
3652 .vtotal = 480 + 0 + 10 + 50,
3655 static const struct panel_desc nvd_9128 = {
3656 .modes = &nvd_9128_mode,
3663 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3664 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3667 static const struct display_timing okaya_rs800480t_7x0gp_timing = {
3668 .pixelclock = { 30000000, 30000000, 40000000 },
3669 .hactive = { 800, 800, 800 },
3670 .hfront_porch = { 40, 40, 40 },
3671 .hback_porch = { 40, 40, 40 },
3672 .hsync_len = { 1, 48, 48 },
3673 .vactive = { 480, 480, 480 },
3674 .vfront_porch = { 13, 13, 13 },
3675 .vback_porch = { 29, 29, 29 },
3676 .vsync_len = { 3, 3, 3 },
3677 .flags = DISPLAY_FLAGS_DE_HIGH,
3680 static const struct panel_desc okaya_rs800480t_7x0gp = {
3681 .timings = &okaya_rs800480t_7x0gp_timing,
3694 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3697 static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = {
3700 .hsync_start = 480 + 5,
3701 .hsync_end = 480 + 5 + 30,
3702 .htotal = 480 + 5 + 30 + 10,
3704 .vsync_start = 272 + 8,
3705 .vsync_end = 272 + 8 + 5,
3706 .vtotal = 272 + 8 + 5 + 3,
3709 static const struct panel_desc olimex_lcd_olinuxino_43ts = {
3710 .modes = &olimex_lcd_olinuxino_43ts_mode,
3716 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3719 static const struct display_timing ontat_kd50g21_40nt_a1_timing = {
3720 .pixelclock = { 30000000, 30000000, 50000000 },
3721 .hactive = { 800, 800, 800 },
3722 .hfront_porch = { 1, 40, 255 },
3723 .hback_porch = { 1, 40, 87 },
3724 .hsync_len = { 1, 48, 87 },
3725 .vactive = { 480, 480, 480 },
3726 .vfront_porch = { 1, 13, 255 },
3727 .vback_porch = { 1, 29, 29 },
3728 .vsync_len = { 3, 3, 31 },
3729 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
3730 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
3733 static const struct panel_desc ontat_kd50g21_40nt_a1 = {
3734 .timings = &ontat_kd50g21_40nt_a1_timing,
3742 .prepare = 147, /* 5 VSDs */
3743 .enable = 147, /* 5 VSDs */
3744 .disable = 88, /* 3 VSDs */
3745 .unprepare = 117, /* 4 VSDs */
3747 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3748 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
3749 .connector_type = DRM_MODE_CONNECTOR_DPI,
3753 * 800x480 CVT. The panel appears to be quite accepting, at least as far as
3754 * pixel clocks, but this is the timing that was being used in the Adafruit
3755 * installation instructions.
3757 static const struct drm_display_mode ontat_yx700wv03_mode = {
3767 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3772 * https://www.adafruit.com/images/product-files/2406/c3163.pdf
3774 static const struct panel_desc ontat_yx700wv03 = {
3775 .modes = &ontat_yx700wv03_mode,
3782 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3785 static const struct drm_display_mode ortustech_com37h3m_mode = {
3788 .hsync_start = 480 + 40,
3789 .hsync_end = 480 + 40 + 10,
3790 .htotal = 480 + 40 + 10 + 40,
3792 .vsync_start = 640 + 4,
3793 .vsync_end = 640 + 4 + 2,
3794 .vtotal = 640 + 4 + 2 + 4,
3795 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3798 static const struct panel_desc ortustech_com37h3m = {
3799 .modes = &ortustech_com37h3m_mode,
3803 .width = 56, /* 56.16mm */
3804 .height = 75, /* 74.88mm */
3806 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3807 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3808 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3811 static const struct drm_display_mode ortustech_com43h4m85ulc_mode = {
3814 .hsync_start = 480 + 10,
3815 .hsync_end = 480 + 10 + 10,
3816 .htotal = 480 + 10 + 10 + 15,
3818 .vsync_start = 800 + 3,
3819 .vsync_end = 800 + 3 + 3,
3820 .vtotal = 800 + 3 + 3 + 3,
3823 static const struct panel_desc ortustech_com43h4m85ulc = {
3824 .modes = &ortustech_com43h4m85ulc_mode,
3831 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3832 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
3833 .connector_type = DRM_MODE_CONNECTOR_DPI,
3836 static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = {
3839 .hsync_start = 800 + 210,
3840 .hsync_end = 800 + 210 + 30,
3841 .htotal = 800 + 210 + 30 + 16,
3843 .vsync_start = 480 + 22,
3844 .vsync_end = 480 + 22 + 13,
3845 .vtotal = 480 + 22 + 13 + 10,
3846 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3849 static const struct panel_desc osddisplays_osd070t1718_19ts = {
3850 .modes = &osddisplays_osd070t1718_19ts_mode,
3857 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3858 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE |
3859 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
3860 .connector_type = DRM_MODE_CONNECTOR_DPI,
3863 static const struct drm_display_mode pda_91_00156_a0_mode = {
3866 .hsync_start = 800 + 1,
3867 .hsync_end = 800 + 1 + 64,
3868 .htotal = 800 + 1 + 64 + 64,
3870 .vsync_start = 480 + 1,
3871 .vsync_end = 480 + 1 + 23,
3872 .vtotal = 480 + 1 + 23 + 22,
3875 static const struct panel_desc pda_91_00156_a0 = {
3876 .modes = &pda_91_00156_a0_mode,
3882 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3885 static const struct drm_display_mode powertip_ph128800t004_zza01_mode = {
3888 .hsync_start = 1280 + 48,
3889 .hsync_end = 1280 + 48 + 32,
3890 .htotal = 1280 + 48 + 32 + 80,
3892 .vsync_start = 800 + 9,
3893 .vsync_end = 800 + 9 + 8,
3894 .vtotal = 800 + 9 + 8 + 6,
3895 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3898 static const struct panel_desc powertip_ph128800t004_zza01 = {
3899 .modes = &powertip_ph128800t004_zza01_mode,
3906 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3907 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3908 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3911 static const struct drm_display_mode powertip_ph128800t006_zhc01_mode = {
3914 .hsync_start = 1280 + 12,
3915 .hsync_end = 1280 + 12 + 20,
3916 .htotal = 1280 + 12 + 20 + 56,
3918 .vsync_start = 800 + 1,
3919 .vsync_end = 800 + 1 + 3,
3920 .vtotal = 800 + 1 + 3 + 20,
3921 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
3924 static const struct panel_desc powertip_ph128800t006_zhc01 = {
3925 .modes = &powertip_ph128800t006_zhc01_mode,
3932 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
3933 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
3934 .connector_type = DRM_MODE_CONNECTOR_LVDS,
3937 static const struct drm_display_mode powertip_ph800480t013_idf02_mode = {
3940 .hsync_start = 800 + 54,
3941 .hsync_end = 800 + 54 + 2,
3942 .htotal = 800 + 54 + 2 + 44,
3944 .vsync_start = 480 + 49,
3945 .vsync_end = 480 + 49 + 2,
3946 .vtotal = 480 + 49 + 2 + 22,
3947 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
3950 static const struct panel_desc powertip_ph800480t013_idf02 = {
3951 .modes = &powertip_ph800480t013_idf02_mode,
3958 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
3959 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
3960 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
3961 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
3962 .connector_type = DRM_MODE_CONNECTOR_DPI,
3965 static const struct drm_display_mode primeview_pm070wl4_mode = {
3968 .hsync_start = 800 + 42,
3969 .hsync_end = 800 + 42 + 128,
3970 .htotal = 800 + 42 + 128 + 86,
3972 .vsync_start = 480 + 10,
3973 .vsync_end = 480 + 10 + 2,
3974 .vtotal = 480 + 10 + 2 + 33,
3975 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
3978 static const struct panel_desc primeview_pm070wl4 = {
3979 .modes = &primeview_pm070wl4_mode,
3986 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
3987 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
3988 .connector_type = DRM_MODE_CONNECTOR_DPI,
3991 static const struct drm_display_mode qd43003c0_40_mode = {
3994 .hsync_start = 480 + 8,
3995 .hsync_end = 480 + 8 + 4,
3996 .htotal = 480 + 8 + 4 + 39,
3998 .vsync_start = 272 + 4,
3999 .vsync_end = 272 + 4 + 10,
4000 .vtotal = 272 + 4 + 10 + 2,
4003 static const struct panel_desc qd43003c0_40 = {
4004 .modes = &qd43003c0_40_mode,
4011 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4014 static const struct drm_display_mode qishenglong_gopher2b_lcd_modes[] = {
4018 .hsync_start = 480 + 77,
4019 .hsync_end = 480 + 77 + 41,
4020 .htotal = 480 + 77 + 41 + 2,
4022 .vsync_start = 272 + 16,
4023 .vsync_end = 272 + 16 + 10,
4024 .vtotal = 272 + 16 + 10 + 2,
4025 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4030 .hsync_start = 480 + 17,
4031 .hsync_end = 480 + 17 + 41,
4032 .htotal = 480 + 17 + 41 + 2,
4034 .vsync_start = 272 + 116,
4035 .vsync_end = 272 + 116 + 10,
4036 .vtotal = 272 + 116 + 10 + 2,
4037 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4041 static const struct panel_desc qishenglong_gopher2b_lcd = {
4042 .modes = qishenglong_gopher2b_lcd_modes,
4043 .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_modes),
4049 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4050 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4051 .connector_type = DRM_MODE_CONNECTOR_DPI,
4054 static const struct display_timing rocktech_rk043fn48h_timing = {
4055 .pixelclock = { 6000000, 9000000, 12000000 },
4056 .hactive = { 480, 480, 480 },
4057 .hback_porch = { 8, 43, 43 },
4058 .hfront_porch = { 2, 8, 10 },
4059 .hsync_len = { 1, 1, 1 },
4060 .vactive = { 272, 272, 272 },
4061 .vback_porch = { 2, 12, 26 },
4062 .vfront_porch = { 1, 4, 4 },
4063 .vsync_len = { 1, 10, 10 },
4064 .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW |
4065 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
4066 DISPLAY_FLAGS_SYNC_POSEDGE,
4069 static const struct panel_desc rocktech_rk043fn48h = {
4070 .timings = &rocktech_rk043fn48h_timing,
4077 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4078 .connector_type = DRM_MODE_CONNECTOR_DPI,
4081 static const struct display_timing rocktech_rk070er9427_timing = {
4082 .pixelclock = { 26400000, 33300000, 46800000 },
4083 .hactive = { 800, 800, 800 },
4084 .hfront_porch = { 16, 210, 354 },
4085 .hback_porch = { 46, 46, 46 },
4086 .hsync_len = { 1, 1, 1 },
4087 .vactive = { 480, 480, 480 },
4088 .vfront_porch = { 7, 22, 147 },
4089 .vback_porch = { 23, 23, 23 },
4090 .vsync_len = { 1, 1, 1 },
4091 .flags = DISPLAY_FLAGS_DE_HIGH,
4094 static const struct panel_desc rocktech_rk070er9427 = {
4095 .timings = &rocktech_rk070er9427_timing,
4108 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4111 static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = {
4114 .hsync_start = 1280 + 48,
4115 .hsync_end = 1280 + 48 + 32,
4116 .htotal = 1280 + 48 + 32 + 80,
4118 .vsync_start = 800 + 2,
4119 .vsync_end = 800 + 2 + 5,
4120 .vtotal = 800 + 2 + 5 + 16,
4123 static const struct panel_desc rocktech_rk101ii01d_ct = {
4124 .modes = &rocktech_rk101ii01d_ct_mode,
4135 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4136 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4137 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4140 static const struct display_timing samsung_ltl101al01_timing = {
4141 .pixelclock = { 66663000, 66663000, 66663000 },
4142 .hactive = { 1280, 1280, 1280 },
4143 .hfront_porch = { 18, 18, 18 },
4144 .hback_porch = { 36, 36, 36 },
4145 .hsync_len = { 16, 16, 16 },
4146 .vactive = { 800, 800, 800 },
4147 .vfront_porch = { 4, 4, 4 },
4148 .vback_porch = { 16, 16, 16 },
4149 .vsync_len = { 3, 3, 3 },
4150 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
4153 static const struct panel_desc samsung_ltl101al01 = {
4154 .timings = &samsung_ltl101al01_timing,
4167 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4168 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4171 static const struct drm_display_mode samsung_ltn101nt05_mode = {
4174 .hsync_start = 1024 + 24,
4175 .hsync_end = 1024 + 24 + 136,
4176 .htotal = 1024 + 24 + 136 + 160,
4178 .vsync_start = 600 + 3,
4179 .vsync_end = 600 + 3 + 6,
4180 .vtotal = 600 + 3 + 6 + 61,
4183 static const struct panel_desc samsung_ltn101nt05 = {
4184 .modes = &samsung_ltn101nt05_mode,
4191 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4192 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4193 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4196 static const struct display_timing satoz_sat050at40h12r2_timing = {
4197 .pixelclock = {33300000, 33300000, 50000000},
4198 .hactive = {800, 800, 800},
4199 .hfront_porch = {16, 210, 354},
4200 .hback_porch = {46, 46, 46},
4201 .hsync_len = {1, 1, 40},
4202 .vactive = {480, 480, 480},
4203 .vfront_porch = {7, 22, 147},
4204 .vback_porch = {23, 23, 23},
4205 .vsync_len = {1, 1, 20},
4208 static const struct panel_desc satoz_sat050at40h12r2 = {
4209 .timings = &satoz_sat050at40h12r2_timing,
4216 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4217 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4220 static const struct drm_display_mode sharp_lq070y3dg3b_mode = {
4223 .hsync_start = 800 + 64,
4224 .hsync_end = 800 + 64 + 128,
4225 .htotal = 800 + 64 + 128 + 64,
4227 .vsync_start = 480 + 8,
4228 .vsync_end = 480 + 8 + 2,
4229 .vtotal = 480 + 8 + 2 + 35,
4230 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
4233 static const struct panel_desc sharp_lq070y3dg3b = {
4234 .modes = &sharp_lq070y3dg3b_mode,
4238 .width = 152, /* 152.4mm */
4239 .height = 91, /* 91.4mm */
4241 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4242 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
4243 DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE,
4246 static const struct drm_display_mode sharp_lq035q7db03_mode = {
4249 .hsync_start = 240 + 16,
4250 .hsync_end = 240 + 16 + 7,
4251 .htotal = 240 + 16 + 7 + 5,
4253 .vsync_start = 320 + 9,
4254 .vsync_end = 320 + 9 + 1,
4255 .vtotal = 320 + 9 + 1 + 7,
4258 static const struct panel_desc sharp_lq035q7db03 = {
4259 .modes = &sharp_lq035q7db03_mode,
4266 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4269 static const struct display_timing sharp_lq101k1ly04_timing = {
4270 .pixelclock = { 60000000, 65000000, 80000000 },
4271 .hactive = { 1280, 1280, 1280 },
4272 .hfront_porch = { 20, 20, 20 },
4273 .hback_porch = { 20, 20, 20 },
4274 .hsync_len = { 10, 10, 10 },
4275 .vactive = { 800, 800, 800 },
4276 .vfront_porch = { 4, 4, 4 },
4277 .vback_porch = { 4, 4, 4 },
4278 .vsync_len = { 4, 4, 4 },
4279 .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE,
4282 static const struct panel_desc sharp_lq101k1ly04 = {
4283 .timings = &sharp_lq101k1ly04_timing,
4290 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4291 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4294 static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = {
4298 .hsync_start = 240 + 58,
4299 .hsync_end = 240 + 58 + 1,
4300 .htotal = 240 + 58 + 1 + 1,
4302 .vsync_start = 160 + 24,
4303 .vsync_end = 160 + 24 + 10,
4304 .vtotal = 160 + 24 + 10 + 6,
4305 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
4310 .hsync_start = 240 + 8,
4311 .hsync_end = 240 + 8 + 1,
4312 .htotal = 240 + 8 + 1 + 1,
4314 .vsync_start = 160 + 24,
4315 .vsync_end = 160 + 24 + 10,
4316 .vtotal = 160 + 24 + 10 + 6,
4317 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC,
4321 static const struct panel_desc sharp_ls020b1dd01d = {
4322 .modes = sharp_ls020b1dd01d_modes,
4323 .num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes),
4329 .bus_format = MEDIA_BUS_FMT_RGB565_1X16,
4330 .bus_flags = DRM_BUS_FLAG_DE_HIGH
4331 | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE
4332 | DRM_BUS_FLAG_SHARP_SIGNALS,
4335 static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = {
4338 .hsync_start = 800 + 1,
4339 .hsync_end = 800 + 1 + 64,
4340 .htotal = 800 + 1 + 64 + 64,
4342 .vsync_start = 480 + 1,
4343 .vsync_end = 480 + 1 + 23,
4344 .vtotal = 480 + 1 + 23 + 22,
4347 static const struct panel_desc shelly_sca07010_bfn_lnn = {
4348 .modes = &shelly_sca07010_bfn_lnn_mode,
4354 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4357 static const struct drm_display_mode starry_kr070pe2t_mode = {
4360 .hsync_start = 800 + 209,
4361 .hsync_end = 800 + 209 + 1,
4362 .htotal = 800 + 209 + 1 + 45,
4364 .vsync_start = 480 + 22,
4365 .vsync_end = 480 + 22 + 1,
4366 .vtotal = 480 + 22 + 1 + 22,
4369 static const struct panel_desc starry_kr070pe2t = {
4370 .modes = &starry_kr070pe2t_mode,
4377 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4378 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE,
4379 .connector_type = DRM_MODE_CONNECTOR_DPI,
4382 static const struct display_timing startek_kd070wvfpa_mode = {
4383 .pixelclock = { 25200000, 27200000, 30500000 },
4384 .hactive = { 800, 800, 800 },
4385 .hfront_porch = { 19, 44, 115 },
4386 .hback_porch = { 5, 16, 101 },
4387 .hsync_len = { 1, 2, 100 },
4388 .vactive = { 480, 480, 480 },
4389 .vfront_porch = { 5, 43, 67 },
4390 .vback_porch = { 5, 5, 67 },
4391 .vsync_len = { 1, 2, 66 },
4392 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
4393 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
4394 DISPLAY_FLAGS_SYNC_POSEDGE,
4397 static const struct panel_desc startek_kd070wvfpa = {
4398 .timings = &startek_kd070wvfpa_mode,
4410 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4411 .connector_type = DRM_MODE_CONNECTOR_DPI,
4412 .bus_flags = DRM_BUS_FLAG_DE_HIGH |
4413 DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE |
4414 DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE,
4417 static const struct display_timing tsd_tst043015cmhx_timing = {
4418 .pixelclock = { 5000000, 9000000, 12000000 },
4419 .hactive = { 480, 480, 480 },
4420 .hfront_porch = { 4, 5, 65 },
4421 .hback_porch = { 36, 40, 255 },
4422 .hsync_len = { 1, 1, 1 },
4423 .vactive = { 272, 272, 272 },
4424 .vfront_porch = { 2, 8, 97 },
4425 .vback_porch = { 3, 8, 31 },
4426 .vsync_len = { 1, 1, 1 },
4428 .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW |
4429 DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE,
4432 static const struct panel_desc tsd_tst043015cmhx = {
4433 .timings = &tsd_tst043015cmhx_timing,
4440 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4441 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4444 static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = {
4447 .hsync_start = 800 + 39,
4448 .hsync_end = 800 + 39 + 47,
4449 .htotal = 800 + 39 + 47 + 39,
4451 .vsync_start = 480 + 13,
4452 .vsync_end = 480 + 13 + 2,
4453 .vtotal = 480 + 13 + 2 + 29,
4456 static const struct panel_desc tfc_s9700rtwv43tr_01b = {
4457 .modes = &tfc_s9700rtwv43tr_01b_mode,
4464 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4465 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4468 static const struct display_timing tianma_tm070jdhg30_timing = {
4469 .pixelclock = { 62600000, 68200000, 78100000 },
4470 .hactive = { 1280, 1280, 1280 },
4471 .hfront_porch = { 15, 64, 159 },
4472 .hback_porch = { 5, 5, 5 },
4473 .hsync_len = { 1, 1, 256 },
4474 .vactive = { 800, 800, 800 },
4475 .vfront_porch = { 3, 40, 99 },
4476 .vback_porch = { 2, 2, 2 },
4477 .vsync_len = { 1, 1, 128 },
4478 .flags = DISPLAY_FLAGS_DE_HIGH,
4481 static const struct panel_desc tianma_tm070jdhg30 = {
4482 .timings = &tianma_tm070jdhg30_timing,
4489 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4490 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4491 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4494 static const struct panel_desc tianma_tm070jvhg33 = {
4495 .timings = &tianma_tm070jdhg30_timing,
4502 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4503 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4504 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4508 * The TM070JDHG34-00 datasheet computes total blanking as back porch +
4509 * front porch, not including sync pulse width. This is for both H and
4510 * V. To make the total blanking and period correct, subtract the pulse
4511 * width from the front porch.
4513 * This works well for the Min and Typ values, but for Max values the sync
4514 * pulse width is higher than back porch + front porch, so work around that
4515 * by reducing the Max sync length value to 1 and then treating the Max
4516 * porches as in the Min and Typ cases.
4518 * Exact datasheet values are added as a comment where they differ from the
4519 * ones implemented for the above reason.
4521 * The P0700WXF1MBAA datasheet is even less detailed, only listing period
4522 * and total blanking time, however the resulting values are the same as
4523 * the TM070JDHG34-00.
4525 static const struct display_timing tianma_tm070jdhg34_00_timing = {
4526 .pixelclock = { 68400000, 71900000, 78100000 },
4527 .hactive = { 1280, 1280, 1280 },
4528 .hfront_porch = { 130, 138, 158 }, /* 131, 139, 159 */
4529 .hback_porch = { 5, 5, 5 },
4530 .hsync_len = { 1, 1, 1 }, /* 1, 1, 256 */
4531 .vactive = { 800, 800, 800 },
4532 .vfront_porch = { 2, 39, 98 }, /* 3, 40, 99 */
4533 .vback_porch = { 2, 2, 2 },
4534 .vsync_len = { 1, 1, 1 }, /* 1, 1, 128 */
4535 .flags = DISPLAY_FLAGS_DE_HIGH,
4538 static const struct panel_desc tianma_tm070jdhg34_00 = {
4539 .timings = &tianma_tm070jdhg34_00_timing,
4543 .width = 150, /* 149.76 */
4544 .height = 94, /* 93.60 */
4547 .prepare = 15, /* Tp1 */
4548 .enable = 150, /* Tp2 */
4549 .disable = 150, /* Tp4 */
4550 .unprepare = 120, /* Tp3 */
4552 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4553 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4556 static const struct panel_desc tianma_p0700wxf1mbaa = {
4557 .timings = &tianma_tm070jdhg34_00_timing,
4561 .width = 150, /* 149.76 */
4562 .height = 94, /* 93.60 */
4565 .prepare = 18, /* Tr + Tp1 */
4566 .enable = 152, /* Tp2 + Tp5 */
4567 .disable = 152, /* Tp6 + Tp4 */
4568 .unprepare = 120, /* Tp3 */
4570 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4571 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4574 static const struct display_timing tianma_tm070rvhg71_timing = {
4575 .pixelclock = { 27700000, 29200000, 39600000 },
4576 .hactive = { 800, 800, 800 },
4577 .hfront_porch = { 12, 40, 212 },
4578 .hback_porch = { 88, 88, 88 },
4579 .hsync_len = { 1, 1, 40 },
4580 .vactive = { 480, 480, 480 },
4581 .vfront_porch = { 1, 13, 88 },
4582 .vback_porch = { 32, 32, 32 },
4583 .vsync_len = { 1, 1, 3 },
4584 .flags = DISPLAY_FLAGS_DE_HIGH,
4587 static const struct panel_desc tianma_tm070rvhg71 = {
4588 .timings = &tianma_tm070rvhg71_timing,
4595 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4596 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4599 static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = {
4603 .hsync_start = 320 + 50,
4604 .hsync_end = 320 + 50 + 6,
4605 .htotal = 320 + 50 + 6 + 38,
4607 .vsync_start = 240 + 3,
4608 .vsync_end = 240 + 3 + 1,
4609 .vtotal = 240 + 3 + 1 + 17,
4610 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4614 static const struct panel_desc ti_nspire_cx_lcd_panel = {
4615 .modes = ti_nspire_cx_lcd_mode,
4622 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4623 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE,
4626 static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = {
4630 .hsync_start = 320 + 6,
4631 .hsync_end = 320 + 6 + 6,
4632 .htotal = 320 + 6 + 6 + 6,
4634 .vsync_start = 240 + 0,
4635 .vsync_end = 240 + 0 + 1,
4636 .vtotal = 240 + 0 + 1 + 0,
4637 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4641 static const struct panel_desc ti_nspire_classic_lcd_panel = {
4642 .modes = ti_nspire_classic_lcd_mode,
4644 /* The grayscale panel has 8 bit for the color .. Y (black) */
4650 /* This is the grayscale bus format */
4651 .bus_format = MEDIA_BUS_FMT_Y8_1X8,
4652 .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4655 static const struct display_timing topland_tian_g07017_01_timing = {
4656 .pixelclock = { 44900000, 51200000, 63000000 },
4657 .hactive = { 1024, 1024, 1024 },
4658 .hfront_porch = { 16, 160, 216 },
4659 .hback_porch = { 160, 160, 160 },
4660 .hsync_len = { 1, 1, 140 },
4661 .vactive = { 600, 600, 600 },
4662 .vfront_porch = { 1, 12, 127 },
4663 .vback_porch = { 23, 23, 23 },
4664 .vsync_len = { 1, 1, 20 },
4667 static const struct panel_desc topland_tian_g07017_01 = {
4668 .timings = &topland_tian_g07017_01_timing,
4676 .prepare = 1, /* 6.5 - 150µs PLL wake-up time */
4677 .enable = 100, /* 6.4 - Power on: 6 VSyncs */
4678 .disable = 84, /* 6.4 - Power off: 5 Vsyncs */
4679 .unprepare = 50, /* 6.4 - Power off: 3 Vsyncs */
4681 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4682 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4683 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4686 static const struct drm_display_mode toshiba_lt089ac29000_mode = {
4689 .hsync_start = 1280 + 192,
4690 .hsync_end = 1280 + 192 + 128,
4691 .htotal = 1280 + 192 + 128 + 64,
4693 .vsync_start = 768 + 20,
4694 .vsync_end = 768 + 20 + 7,
4695 .vtotal = 768 + 20 + 7 + 3,
4698 static const struct panel_desc toshiba_lt089ac29000 = {
4699 .modes = &toshiba_lt089ac29000_mode,
4705 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4706 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4707 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4710 static const struct drm_display_mode tpk_f07a_0102_mode = {
4713 .hsync_start = 800 + 40,
4714 .hsync_end = 800 + 40 + 128,
4715 .htotal = 800 + 40 + 128 + 88,
4717 .vsync_start = 480 + 10,
4718 .vsync_end = 480 + 10 + 2,
4719 .vtotal = 480 + 10 + 2 + 33,
4722 static const struct panel_desc tpk_f07a_0102 = {
4723 .modes = &tpk_f07a_0102_mode,
4729 .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE,
4732 static const struct drm_display_mode tpk_f10a_0102_mode = {
4735 .hsync_start = 1024 + 176,
4736 .hsync_end = 1024 + 176 + 5,
4737 .htotal = 1024 + 176 + 5 + 88,
4739 .vsync_start = 600 + 20,
4740 .vsync_end = 600 + 20 + 5,
4741 .vtotal = 600 + 20 + 5 + 25,
4744 static const struct panel_desc tpk_f10a_0102 = {
4745 .modes = &tpk_f10a_0102_mode,
4753 static const struct display_timing urt_umsh_8596md_timing = {
4754 .pixelclock = { 33260000, 33260000, 33260000 },
4755 .hactive = { 800, 800, 800 },
4756 .hfront_porch = { 41, 41, 41 },
4757 .hback_porch = { 216 - 128, 216 - 128, 216 - 128 },
4758 .hsync_len = { 71, 128, 128 },
4759 .vactive = { 480, 480, 480 },
4760 .vfront_porch = { 10, 10, 10 },
4761 .vback_porch = { 35 - 2, 35 - 2, 35 - 2 },
4762 .vsync_len = { 2, 2, 2 },
4763 .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE |
4764 DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW,
4767 static const struct panel_desc urt_umsh_8596md_lvds = {
4768 .timings = &urt_umsh_8596md_timing,
4775 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4776 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4779 static const struct panel_desc urt_umsh_8596md_parallel = {
4780 .timings = &urt_umsh_8596md_timing,
4787 .bus_format = MEDIA_BUS_FMT_RGB666_1X18,
4790 static const struct drm_display_mode vivax_tpc9150_panel_mode = {
4793 .hsync_start = 1024 + 160,
4794 .hsync_end = 1024 + 160 + 100,
4795 .htotal = 1024 + 160 + 100 + 60,
4797 .vsync_start = 600 + 12,
4798 .vsync_end = 600 + 12 + 10,
4799 .vtotal = 600 + 12 + 10 + 13,
4802 static const struct panel_desc vivax_tpc9150_panel = {
4803 .modes = &vivax_tpc9150_panel_mode,
4810 .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG,
4811 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4812 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4815 static const struct drm_display_mode vl050_8048nt_c01_mode = {
4818 .hsync_start = 800 + 210,
4819 .hsync_end = 800 + 210 + 20,
4820 .htotal = 800 + 210 + 20 + 46,
4822 .vsync_start = 480 + 22,
4823 .vsync_end = 480 + 22 + 10,
4824 .vtotal = 480 + 22 + 10 + 23,
4825 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
4828 static const struct panel_desc vl050_8048nt_c01 = {
4829 .modes = &vl050_8048nt_c01_mode,
4836 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4837 .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE,
4840 static const struct drm_display_mode winstar_wf35ltiacd_mode = {
4843 .hsync_start = 320 + 20,
4844 .hsync_end = 320 + 20 + 30,
4845 .htotal = 320 + 20 + 30 + 38,
4847 .vsync_start = 240 + 4,
4848 .vsync_end = 240 + 4 + 3,
4849 .vtotal = 240 + 4 + 3 + 15,
4850 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4853 static const struct panel_desc winstar_wf35ltiacd = {
4854 .modes = &winstar_wf35ltiacd_mode,
4861 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4864 static const struct drm_display_mode yes_optoelectronics_ytc700tlag_05_201c_mode = {
4867 .hsync_start = 1024 + 100,
4868 .hsync_end = 1024 + 100 + 100,
4869 .htotal = 1024 + 100 + 100 + 120,
4871 .vsync_start = 600 + 10,
4872 .vsync_end = 600 + 10 + 10,
4873 .vtotal = 600 + 10 + 10 + 15,
4874 .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC,
4877 static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = {
4878 .modes = &yes_optoelectronics_ytc700tlag_05_201c_mode,
4885 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4886 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
4887 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4890 static const struct drm_display_mode mchp_ac69t88a_mode = {
4893 .hsync_start = 800 + 88,
4894 .hsync_end = 800 + 88 + 5,
4895 .htotal = 800 + 88 + 5 + 40,
4897 .vsync_start = 480 + 23,
4898 .vsync_end = 480 + 23 + 5,
4899 .vtotal = 480 + 23 + 5 + 1,
4902 static const struct panel_desc mchp_ac69t88a = {
4903 .modes = &mchp_ac69t88a_mode,
4910 .bus_flags = DRM_BUS_FLAG_DE_HIGH,
4911 .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA,
4912 .connector_type = DRM_MODE_CONNECTOR_LVDS,
4915 static const struct drm_display_mode arm_rtsm_mode[] = {
4919 .hsync_start = 1024 + 24,
4920 .hsync_end = 1024 + 24 + 136,
4921 .htotal = 1024 + 24 + 136 + 160,
4923 .vsync_start = 768 + 3,
4924 .vsync_end = 768 + 3 + 6,
4925 .vtotal = 768 + 3 + 6 + 29,
4926 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
4930 static const struct panel_desc arm_rtsm = {
4931 .modes = arm_rtsm_mode,
4938 .bus_format = MEDIA_BUS_FMT_RGB888_1X24,
4941 static const struct of_device_id platform_of_match[] = {
4943 .compatible = "ampire,am-1280800n3tzqw-t00h",
4944 .data = &ire_am_1280800n3tzqw_t00h,
4946 .compatible = "ampire,am-480272h3tmqw-t01h",
4947 .data = &ire_am_480272h3tmqw_t01h,
4949 .compatible = "ampire,am-800480l1tmqw-t00h",
4950 .data = &ire_am_800480l1tmqw_t00h,
4952 .compatible = "ampire,am800480r3tmqwa1h",
4953 .data = &ire_am800480r3tmqwa1h,
4955 .compatible = "ampire,am800600p5tmqw-tb8h",
4956 .data = &ire_am800600p5tmqwtb8h,
4958 .compatible = "arm,rtsm-display",
4961 .compatible = "armadeus,st0700-adapt",
4962 .data = &armadeus_st0700_adapt,
4964 .compatible = "auo,b101aw03",
4965 .data = &auo_b101aw03,
4967 .compatible = "auo,b101xtn01",
4968 .data = &auo_b101xtn01,
4970 .compatible = "auo,b116xw03",
4971 .data = &auo_b116xw03,
4973 .compatible = "auo,g070vvn01",
4974 .data = &auo_g070vvn01,
4976 .compatible = "auo,g101evn010",
4977 .data = &auo_g101evn010,
4979 .compatible = "auo,g104sn02",
4980 .data = &auo_g104sn02,
4982 .compatible = "auo,g104stn01",
4983 .data = &auo_g104stn01,
4985 .compatible = "auo,g121ean01",
4986 .data = &auo_g121ean01,
4988 .compatible = "auo,g133han01",
4989 .data = &auo_g133han01,
4991 .compatible = "auo,g156han04",
4992 .data = &auo_g156han04,
4994 .compatible = "auo,g156xtn01",
4995 .data = &auo_g156xtn01,
4997 .compatible = "auo,g185han01",
4998 .data = &auo_g185han01,
5000 .compatible = "auo,g190ean01",
5001 .data = &auo_g190ean01,
5003 .compatible = "auo,p238han01",
5004 .data = &auo_p238han01,
5006 .compatible = "auo,p320hvn03",
5007 .data = &auo_p320hvn03,
5009 .compatible = "auo,t215hvn01",
5010 .data = &auo_t215hvn01,
5012 .compatible = "avic,tm070ddh03",
5013 .data = &avic_tm070ddh03,
5015 .compatible = "bananapi,s070wv20-ct16",
5016 .data = &bananapi_s070wv20_ct16,
5018 .compatible = "boe,av101hdt-a10",
5019 .data = &boe_av101hdt_a10,
5021 .compatible = "boe,av123z7m-n17",
5022 .data = &boe_av123z7m_n17,
5024 .compatible = "boe,bp082wx1-100",
5025 .data = &boe_bp082wx1_100,
5027 .compatible = "boe,bp101wx1-100",
5028 .data = &boe_bp101wx1_100,
5030 .compatible = "boe,ev121wxm-n10-1850",
5031 .data = &boe_ev121wxm_n10_1850,
5033 .compatible = "boe,hv070wsa-100",
5034 .data = &boe_hv070wsa
5036 .compatible = "cct,cmt430b19n00",
5037 .data = &cct_cmt430b19n00,
5039 .compatible = "cdtech,s043wq26h-ct7",
5040 .data = &cdtech_s043wq26h_ct7,
5042 .compatible = "cdtech,s070pws19hp-fc21",
5043 .data = &cdtech_s070pws19hp_fc21,
5045 .compatible = "cdtech,s070swv29hg-dc44",
5046 .data = &cdtech_s070swv29hg_dc44,
5048 .compatible = "cdtech,s070wv95-ct16",
5049 .data = &cdtech_s070wv95_ct16,
5051 .compatible = "chefree,ch101olhlwh-002",
5052 .data = &chefree_ch101olhlwh_002,
5054 .compatible = "chunghwa,claa070wp03xg",
5055 .data = &chunghwa_claa070wp03xg,
5057 .compatible = "chunghwa,claa101wa01a",
5058 .data = &chunghwa_claa101wa01a
5060 .compatible = "chunghwa,claa101wb01",
5061 .data = &chunghwa_claa101wb01
5063 .compatible = "dataimage,fg040346dsswbg04",
5064 .data = &dataimage_fg040346dsswbg04,
5066 .compatible = "dataimage,fg1001l0dsswmg01",
5067 .data = &dataimage_fg1001l0dsswmg01,
5069 .compatible = "dataimage,scf0700c48ggu18",
5070 .data = &dataimage_scf0700c48ggu18,
5072 .compatible = "dlc,dlc0700yzg-1",
5073 .data = &dlc_dlc0700yzg_1,
5075 .compatible = "dlc,dlc1010gig",
5076 .data = &dlc_dlc1010gig,
5078 .compatible = "edt,et035012dm6",
5079 .data = &edt_et035012dm6,
5081 .compatible = "edt,etm0350g0dh6",
5082 .data = &edt_etm0350g0dh6,
5084 .compatible = "edt,etm043080dh6gp",
5085 .data = &edt_etm043080dh6gp,
5087 .compatible = "edt,etm0430g0dh6",
5088 .data = &edt_etm0430g0dh6,
5090 .compatible = "edt,et057090dhu",
5091 .data = &edt_et057090dhu,
5093 .compatible = "edt,et070080dh6",
5094 .data = &edt_etm0700g0dh6,
5096 .compatible = "edt,etm0700g0dh6",
5097 .data = &edt_etm0700g0dh6,
5099 .compatible = "edt,etm0700g0bdh6",
5100 .data = &edt_etm0700g0bdh6,
5102 .compatible = "edt,etm0700g0edh6",
5103 .data = &edt_etm0700g0bdh6,
5105 .compatible = "edt,etml0700y5dha",
5106 .data = &edt_etml0700y5dha,
5108 .compatible = "edt,etml1010g3dra",
5109 .data = &edt_etml1010g3dra,
5111 .compatible = "edt,etmv570g2dhu",
5112 .data = &edt_etmv570g2dhu,
5114 .compatible = "eink,vb3300-kca",
5115 .data = &eink_vb3300_kca,
5117 .compatible = "evervision,vgg644804",
5118 .data = &evervision_vgg644804,
5120 .compatible = "evervision,vgg804821",
5121 .data = &evervision_vgg804821,
5123 .compatible = "foxlink,fl500wvr00-a0t",
5124 .data = &foxlink_fl500wvr00_a0t,
5126 .compatible = "frida,frd350h54004",
5127 .data = &frida_frd350h54004,
5129 .compatible = "friendlyarm,hd702e",
5130 .data = &friendlyarm_hd702e,
5132 .compatible = "giantplus,gpg482739qs5",
5133 .data = &giantplus_gpg482739qs5
5135 .compatible = "giantplus,gpm940b0",
5136 .data = &giantplus_gpm940b0,
5138 .compatible = "hannstar,hsd070pww1",
5139 .data = &hannstar_hsd070pww1,
5141 .compatible = "hannstar,hsd100pxn1",
5142 .data = &hannstar_hsd100pxn1,
5144 .compatible = "hannstar,hsd101pww2",
5145 .data = &hannstar_hsd101pww2,
5147 .compatible = "hit,tx23d38vm0caa",
5148 .data = &hitachi_tx23d38vm0caa
5150 .compatible = "innolux,at043tn24",
5151 .data = &innolux_at043tn24,
5153 .compatible = "innolux,at070tn92",
5154 .data = &innolux_at070tn92,
5156 .compatible = "innolux,g070ace-l01",
5157 .data = &innolux_g070ace_l01,
5159 .compatible = "innolux,g070ace-lh3",
5160 .data = &innolux_g070ace_lh3,
5162 .compatible = "innolux,g070y2-l01",
5163 .data = &innolux_g070y2_l01,
5165 .compatible = "innolux,g070y2-t02",
5166 .data = &innolux_g070y2_t02,
5168 .compatible = "innolux,g101ice-l01",
5169 .data = &innolux_g101ice_l01
5171 .compatible = "innolux,g121i1-l01",
5172 .data = &innolux_g121i1_l01
5174 .compatible = "innolux,g121x1-l03",
5175 .data = &innolux_g121x1_l03,
5177 .compatible = "innolux,g121xce-l01",
5178 .data = &innolux_g121xce_l01,
5180 .compatible = "innolux,g156hce-l01",
5181 .data = &innolux_g156hce_l01,
5183 .compatible = "innolux,n156bge-l21",
5184 .data = &innolux_n156bge_l21,
5186 .compatible = "innolux,zj070na-01p",
5187 .data = &innolux_zj070na_01p,
5189 .compatible = "koe,tx14d24vm1bpa",
5190 .data = &koe_tx14d24vm1bpa,
5192 .compatible = "koe,tx26d202vm0bwa",
5193 .data = &koe_tx26d202vm0bwa,
5195 .compatible = "koe,tx31d200vm0baa",
5196 .data = &koe_tx31d200vm0baa,
5198 .compatible = "kyo,tcg121xglp",
5199 .data = &kyo_tcg121xglp,
5201 .compatible = "lemaker,bl035-rgb-002",
5202 .data = &lemaker_bl035_rgb_002,
5204 .compatible = "lg,lb070wv8",
5205 .data = &lg_lb070wv8,
5207 .compatible = "lincolntech,lcd185-101ct",
5208 .data = &lincolntech_lcd185_101ct,
5210 .compatible = "logicpd,type28",
5211 .data = &logicpd_type_28,
5213 .compatible = "logictechno,lt161010-2nhc",
5214 .data = &logictechno_lt161010_2nh,
5216 .compatible = "logictechno,lt161010-2nhr",
5217 .data = &logictechno_lt161010_2nh,
5219 .compatible = "logictechno,lt170410-2whc",
5220 .data = &logictechno_lt170410_2whc,
5222 .compatible = "logictechno,lttd800480070-l2rt",
5223 .data = &logictechno_lttd800480070_l2rt,
5225 .compatible = "logictechno,lttd800480070-l6wh-rt",
5226 .data = &logictechno_lttd800480070_l6wh_rt,
5228 .compatible = "microtips,mf-101hiebcaf0",
5229 .data = µtips_mf_101hiebcaf0_c,
5231 .compatible = "microtips,mf-103hieb0ga0",
5232 .data = µtips_mf_103hieb0ga0,
5234 .compatible = "mitsubishi,aa070mc01-ca1",
5235 .data = &mitsubishi_aa070mc01,
5237 .compatible = "mitsubishi,aa084xe01",
5238 .data = &mitsubishi_aa084xe01,
5240 .compatible = "multi-inno,mi0700a2t-30",
5241 .data = &multi_inno_mi0700a2t_30,
5243 .compatible = "multi-inno,mi0700s4t-6",
5244 .data = &multi_inno_mi0700s4t_6,
5246 .compatible = "multi-inno,mi0800ft-9",
5247 .data = &multi_inno_mi0800ft_9,
5249 .compatible = "multi-inno,mi1010ait-1cp",
5250 .data = &multi_inno_mi1010ait_1cp,
5252 .compatible = "multi-inno,mi1010z1t-1cp11",
5253 .data = &multi_inno_mi1010z1t_1cp11,
5255 .compatible = "nec,nl12880bc20-05",
5256 .data = &nec_nl12880bc20_05,
5258 .compatible = "nec,nl4827hc19-05b",
5259 .data = &nec_nl4827hc19_05b,
5261 .compatible = "netron-dy,e231732",
5262 .data = &netron_dy_e231732,
5264 .compatible = "newhaven,nhd-4.3-480272ef-atxl",
5265 .data = &newhaven_nhd_43_480272ef_atxl,
5267 .compatible = "nlt,nl13676bc25-03f",
5268 .data = &nlt_nl13676bc25_03f,
5270 .compatible = "nlt,nl192108ac18-02d",
5271 .data = &nlt_nl192108ac18_02d,
5273 .compatible = "nvd,9128",
5276 .compatible = "okaya,rs800480t-7x0gp",
5277 .data = &okaya_rs800480t_7x0gp,
5279 .compatible = "olimex,lcd-olinuxino-43-ts",
5280 .data = &olimex_lcd_olinuxino_43ts,
5282 .compatible = "ontat,kd50g21-40nt-a1",
5283 .data = &ontat_kd50g21_40nt_a1,
5285 .compatible = "ontat,yx700wv03",
5286 .data = &ontat_yx700wv03,
5288 .compatible = "ortustech,com37h3m05dtc",
5289 .data = &ortustech_com37h3m,
5291 .compatible = "ortustech,com37h3m99dtc",
5292 .data = &ortustech_com37h3m,
5294 .compatible = "ortustech,com43h4m85ulc",
5295 .data = &ortustech_com43h4m85ulc,
5297 .compatible = "osddisplays,osd070t1718-19ts",
5298 .data = &osddisplays_osd070t1718_19ts,
5300 .compatible = "pda,91-00156-a0",
5301 .data = &pda_91_00156_a0,
5303 .compatible = "powertip,ph128800t004-zza01",
5304 .data = &powertip_ph128800t004_zza01,
5306 .compatible = "powertip,ph128800t006-zhc01",
5307 .data = &powertip_ph128800t006_zhc01,
5309 .compatible = "powertip,ph800480t013-idf02",
5310 .data = &powertip_ph800480t013_idf02,
5312 .compatible = "primeview,pm070wl4",
5313 .data = &primeview_pm070wl4,
5315 .compatible = "qiaodian,qd43003c0-40",
5316 .data = &qd43003c0_40,
5318 .compatible = "qishenglong,gopher2b-lcd",
5319 .data = &qishenglong_gopher2b_lcd,
5321 .compatible = "rocktech,rk043fn48h",
5322 .data = &rocktech_rk043fn48h,
5324 .compatible = "rocktech,rk070er9427",
5325 .data = &rocktech_rk070er9427,
5327 .compatible = "rocktech,rk101ii01d-ct",
5328 .data = &rocktech_rk101ii01d_ct,
5330 .compatible = "samsung,ltl101al01",
5331 .data = &samsung_ltl101al01,
5333 .compatible = "samsung,ltn101nt05",
5334 .data = &samsung_ltn101nt05,
5336 .compatible = "satoz,sat050at40h12r2",
5337 .data = &satoz_sat050at40h12r2,
5339 .compatible = "sharp,lq035q7db03",
5340 .data = &sharp_lq035q7db03,
5342 .compatible = "sharp,lq070y3dg3b",
5343 .data = &sharp_lq070y3dg3b,
5345 .compatible = "sharp,lq101k1ly04",
5346 .data = &sharp_lq101k1ly04,
5348 .compatible = "sharp,ls020b1dd01d",
5349 .data = &sharp_ls020b1dd01d,
5351 .compatible = "shelly,sca07010-bfn-lnn",
5352 .data = &shelly_sca07010_bfn_lnn,
5354 .compatible = "starry,kr070pe2t",
5355 .data = &starry_kr070pe2t,
5357 .compatible = "startek,kd070wvfpa",
5358 .data = &startek_kd070wvfpa,
5360 .compatible = "team-source-display,tst043015cmhx",
5361 .data = &tsd_tst043015cmhx,
5363 .compatible = "tfc,s9700rtwv43tr-01b",
5364 .data = &tfc_s9700rtwv43tr_01b,
5366 .compatible = "tianma,p0700wxf1mbaa",
5367 .data = &tianma_p0700wxf1mbaa,
5369 .compatible = "tianma,tm070jdhg30",
5370 .data = &tianma_tm070jdhg30,
5372 .compatible = "tianma,tm070jdhg34-00",
5373 .data = &tianma_tm070jdhg34_00,
5375 .compatible = "tianma,tm070jvhg33",
5376 .data = &tianma_tm070jvhg33,
5378 .compatible = "tianma,tm070rvhg71",
5379 .data = &tianma_tm070rvhg71,
5381 .compatible = "ti,nspire-cx-lcd-panel",
5382 .data = &ti_nspire_cx_lcd_panel,
5384 .compatible = "ti,nspire-classic-lcd-panel",
5385 .data = &ti_nspire_classic_lcd_panel,
5387 .compatible = "toshiba,lt089ac29000",
5388 .data = &toshiba_lt089ac29000,
5390 .compatible = "topland,tian-g07017-01",
5391 .data = &topland_tian_g07017_01,
5393 .compatible = "tpk,f07a-0102",
5394 .data = &tpk_f07a_0102,
5396 .compatible = "tpk,f10a-0102",
5397 .data = &tpk_f10a_0102,
5399 .compatible = "urt,umsh-8596md-t",
5400 .data = &urt_umsh_8596md_parallel,
5402 .compatible = "urt,umsh-8596md-1t",
5403 .data = &urt_umsh_8596md_parallel,
5405 .compatible = "urt,umsh-8596md-7t",
5406 .data = &urt_umsh_8596md_parallel,
5408 .compatible = "urt,umsh-8596md-11t",
5409 .data = &urt_umsh_8596md_lvds,
5411 .compatible = "urt,umsh-8596md-19t",
5412 .data = &urt_umsh_8596md_lvds,
5414 .compatible = "urt,umsh-8596md-20t",
5415 .data = &urt_umsh_8596md_parallel,
5417 .compatible = "vivax,tpc9150-panel",
5418 .data = &vivax_tpc9150_panel,
5420 .compatible = "vxt,vl050-8048nt-c01",
5421 .data = &vl050_8048nt_c01,
5423 .compatible = "winstar,wf35ltiacd",
5424 .data = &winstar_wf35ltiacd,
5426 .compatible = "yes-optoelectronics,ytc700tlag-05-201c",
5427 .data = &yes_optoelectronics_ytc700tlag_05_201c,
5429 .compatible = "microchip,ac69t88a",
5430 .data = &mchp_ac69t88a,
5432 /* Must be the last entry */
5433 .compatible = "panel-dpi",
5436 * Explicitly NULL, the panel_desc structure will be
5437 * allocated by panel_dpi_probe().
5444 MODULE_DEVICE_TABLE(of, platform_of_match);
5446 static int panel_simple_platform_probe(struct platform_device *pdev)
5448 struct panel_simple *panel;
5450 panel = panel_simple_probe(&pdev->dev);
5452 return PTR_ERR(panel);
5457 static void panel_simple_platform_remove(struct platform_device *pdev)
5459 panel_simple_remove(&pdev->dev);
5462 static void panel_simple_platform_shutdown(struct platform_device *pdev)
5464 panel_simple_shutdown(&pdev->dev);
5467 static const struct dev_pm_ops panel_simple_pm_ops = {
5468 SET_RUNTIME_PM_OPS(panel_simple_suspend, panel_simple_resume, NULL)
5469 SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
5470 pm_runtime_force_resume)
5473 static struct platform_driver panel_simple_platform_driver = {
5475 .name = "panel-simple",
5476 .of_match_table = platform_of_match,
5477 .pm = &panel_simple_pm_ops,
5479 .probe = panel_simple_platform_probe,
5480 .remove = panel_simple_platform_remove,
5481 .shutdown = panel_simple_platform_shutdown,
5484 static const struct drm_display_mode auo_b080uan01_mode = {
5487 .hsync_start = 1200 + 62,
5488 .hsync_end = 1200 + 62 + 4,
5489 .htotal = 1200 + 62 + 4 + 62,
5491 .vsync_start = 1920 + 9,
5492 .vsync_end = 1920 + 9 + 2,
5493 .vtotal = 1920 + 9 + 2 + 8,
5496 static const struct panel_desc_dsi auo_b080uan01 = {
5498 .modes = &auo_b080uan01_mode,
5505 .connector_type = DRM_MODE_CONNECTOR_DSI,
5507 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
5508 .format = MIPI_DSI_FMT_RGB888,
5512 static const struct drm_display_mode boe_tv080wum_nl0_mode = {
5515 .hsync_start = 1200 + 120,
5516 .hsync_end = 1200 + 120 + 20,
5517 .htotal = 1200 + 120 + 20 + 21,
5519 .vsync_start = 1920 + 21,
5520 .vsync_end = 1920 + 21 + 3,
5521 .vtotal = 1920 + 21 + 3 + 18,
5522 .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC,
5525 static const struct panel_desc_dsi boe_tv080wum_nl0 = {
5527 .modes = &boe_tv080wum_nl0_mode,
5533 .connector_type = DRM_MODE_CONNECTOR_DSI,
5535 .flags = MIPI_DSI_MODE_VIDEO |
5536 MIPI_DSI_MODE_VIDEO_BURST |
5537 MIPI_DSI_MODE_VIDEO_SYNC_PULSE,
5538 .format = MIPI_DSI_FMT_RGB888,
5542 static const struct drm_display_mode lg_ld070wx3_sl01_mode = {
5545 .hsync_start = 800 + 32,
5546 .hsync_end = 800 + 32 + 1,
5547 .htotal = 800 + 32 + 1 + 57,
5549 .vsync_start = 1280 + 28,
5550 .vsync_end = 1280 + 28 + 1,
5551 .vtotal = 1280 + 28 + 1 + 14,
5554 static const struct panel_desc_dsi lg_ld070wx3_sl01 = {
5556 .modes = &lg_ld070wx3_sl01_mode,
5563 .connector_type = DRM_MODE_CONNECTOR_DSI,
5565 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS,
5566 .format = MIPI_DSI_FMT_RGB888,
5570 static const struct drm_display_mode lg_lh500wx1_sd03_mode = {
5573 .hsync_start = 720 + 12,
5574 .hsync_end = 720 + 12 + 4,
5575 .htotal = 720 + 12 + 4 + 112,
5577 .vsync_start = 1280 + 8,
5578 .vsync_end = 1280 + 8 + 4,
5579 .vtotal = 1280 + 8 + 4 + 12,
5582 static const struct panel_desc_dsi lg_lh500wx1_sd03 = {
5584 .modes = &lg_lh500wx1_sd03_mode,
5591 .connector_type = DRM_MODE_CONNECTOR_DSI,
5593 .flags = MIPI_DSI_MODE_VIDEO,
5594 .format = MIPI_DSI_FMT_RGB888,
5598 static const struct drm_display_mode panasonic_vvx10f004b00_mode = {
5601 .hsync_start = 1920 + 154,
5602 .hsync_end = 1920 + 154 + 16,
5603 .htotal = 1920 + 154 + 16 + 32,
5605 .vsync_start = 1200 + 17,
5606 .vsync_end = 1200 + 17 + 2,
5607 .vtotal = 1200 + 17 + 2 + 16,
5610 static const struct panel_desc_dsi panasonic_vvx10f004b00 = {
5612 .modes = &panasonic_vvx10f004b00_mode,
5619 .connector_type = DRM_MODE_CONNECTOR_DSI,
5621 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
5622 MIPI_DSI_CLOCK_NON_CONTINUOUS,
5623 .format = MIPI_DSI_FMT_RGB888,
5627 static const struct drm_display_mode lg_acx467akm_7_mode = {
5630 .hsync_start = 1080 + 2,
5631 .hsync_end = 1080 + 2 + 2,
5632 .htotal = 1080 + 2 + 2 + 2,
5634 .vsync_start = 1920 + 2,
5635 .vsync_end = 1920 + 2 + 2,
5636 .vtotal = 1920 + 2 + 2 + 2,
5639 static const struct panel_desc_dsi lg_acx467akm_7 = {
5641 .modes = &lg_acx467akm_7_mode,
5648 .connector_type = DRM_MODE_CONNECTOR_DSI,
5651 .format = MIPI_DSI_FMT_RGB888,
5655 static const struct drm_display_mode osd101t2045_53ts_mode = {
5658 .hsync_start = 1920 + 112,
5659 .hsync_end = 1920 + 112 + 16,
5660 .htotal = 1920 + 112 + 16 + 32,
5662 .vsync_start = 1200 + 16,
5663 .vsync_end = 1200 + 16 + 2,
5664 .vtotal = 1200 + 16 + 2 + 16,
5665 .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC,
5668 static const struct panel_desc_dsi osd101t2045_53ts = {
5670 .modes = &osd101t2045_53ts_mode,
5677 .connector_type = DRM_MODE_CONNECTOR_DSI,
5679 .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST |
5680 MIPI_DSI_MODE_VIDEO_SYNC_PULSE |
5681 MIPI_DSI_MODE_NO_EOT_PACKET,
5682 .format = MIPI_DSI_FMT_RGB888,
5686 static const struct of_device_id dsi_of_match[] = {
5688 .compatible = "auo,b080uan01",
5689 .data = &auo_b080uan01
5691 .compatible = "boe,tv080wum-nl0",
5692 .data = &boe_tv080wum_nl0
5694 .compatible = "lg,ld070wx3-sl01",
5695 .data = &lg_ld070wx3_sl01
5697 .compatible = "lg,lh500wx1-sd03",
5698 .data = &lg_lh500wx1_sd03
5700 .compatible = "panasonic,vvx10f004b00",
5701 .data = &panasonic_vvx10f004b00
5703 .compatible = "lg,acx467akm-7",
5704 .data = &lg_acx467akm_7
5706 .compatible = "osddisplays,osd101t2045-53ts",
5707 .data = &osd101t2045_53ts
5712 MODULE_DEVICE_TABLE(of, dsi_of_match);
5714 static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi)
5716 const struct panel_desc_dsi *desc;
5717 struct panel_simple *panel;
5720 panel = panel_simple_probe(&dsi->dev);
5722 return PTR_ERR(panel);
5724 desc = container_of(panel->desc, struct panel_desc_dsi, desc);
5725 dsi->mode_flags = desc->flags;
5726 dsi->format = desc->format;
5727 dsi->lanes = desc->lanes;
5729 err = mipi_dsi_attach(dsi);
5731 struct panel_simple *panel = mipi_dsi_get_drvdata(dsi);
5733 drm_panel_remove(&panel->base);
5739 static void panel_simple_dsi_remove(struct mipi_dsi_device *dsi)
5743 err = mipi_dsi_detach(dsi);
5745 dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err);
5747 panel_simple_remove(&dsi->dev);
5750 static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi)
5752 panel_simple_shutdown(&dsi->dev);
5755 static struct mipi_dsi_driver panel_simple_dsi_driver = {
5757 .name = "panel-simple-dsi",
5758 .of_match_table = dsi_of_match,
5759 .pm = &panel_simple_pm_ops,
5761 .probe = panel_simple_dsi_probe,
5762 .remove = panel_simple_dsi_remove,
5763 .shutdown = panel_simple_dsi_shutdown,
5766 static int __init panel_simple_init(void)
5770 err = platform_driver_register(&panel_simple_platform_driver);
5774 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) {
5775 err = mipi_dsi_driver_register(&panel_simple_dsi_driver);
5777 goto err_did_platform_register;
5782 err_did_platform_register:
5783 platform_driver_unregister(&panel_simple_platform_driver);
5787 module_init(panel_simple_init);
5789 static void __exit panel_simple_exit(void)
5791 if (IS_ENABLED(CONFIG_DRM_MIPI_DSI))
5792 mipi_dsi_driver_unregister(&panel_simple_dsi_driver);
5794 platform_driver_unregister(&panel_simple_platform_driver);
5796 module_exit(panel_simple_exit);
5798 MODULE_AUTHOR("Thierry Reding <treding@nvidia.com>");
5799 MODULE_DESCRIPTION("DRM Driver for Simple Panels");
5800 MODULE_LICENSE("GPL and additional rights");