Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013, NVIDIA Corporation. All rights reserved. |
| 3 | * |
| 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: |
| 10 | * |
| 11 | * The above copyright notice and this permission notice (including the |
| 12 | * next paragraph) shall be included in all copies or substantial portions |
| 13 | * of the Software. |
| 14 | * |
| 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. |
| 22 | */ |
| 23 | |
Sam Ravnborg | cb23eae | 2019-05-26 20:05:32 +0200 | [diff] [blame] | 24 | #include <linux/delay.h> |
Alexandre Courbot | cfdf054 | 2014-03-01 14:00:58 +0900 | [diff] [blame] | 25 | #include <linux/gpio/consumer.h> |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 26 | #include <linux/iopoll.h> |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 27 | #include <linux/module.h> |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 28 | #include <linux/of_platform.h> |
| 29 | #include <linux/platform_device.h> |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 30 | #include <linux/pm_runtime.h> |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 31 | #include <linux/regulator/consumer.h> |
| 32 | |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 33 | #include <video/display_timing.h> |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 34 | #include <video/of_display_timing.h> |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 35 | #include <video/videomode.h> |
| 36 | |
Sam Ravnborg | cb23eae | 2019-05-26 20:05:32 +0200 | [diff] [blame] | 37 | #include <drm/drm_crtc.h> |
| 38 | #include <drm/drm_device.h> |
Douglas Anderson | 74c06c2 | 2021-06-11 10:17:41 -0700 | [diff] [blame] | 39 | #include <drm/drm_dp_aux_bus.h> |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 40 | #include <drm/drm_dp_helper.h> |
Sam Ravnborg | cb23eae | 2019-05-26 20:05:32 +0200 | [diff] [blame] | 41 | #include <drm/drm_mipi_dsi.h> |
| 42 | #include <drm/drm_panel.h> |
| 43 | |
Douglas Anderson | e362cc6 | 2019-07-12 09:33:33 -0700 | [diff] [blame] | 44 | /** |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 45 | * struct panel_desc - Describes a simple panel. |
Douglas Anderson | e362cc6 | 2019-07-12 09:33:33 -0700 | [diff] [blame] | 46 | */ |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 47 | struct panel_desc { |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 48 | /** |
| 49 | * @modes: Pointer to array of fixed modes appropriate for this panel. |
| 50 | * |
| 51 | * If only one mode then this can just be the address of the mode. |
| 52 | * NOTE: cannot be used with "timings" and also if this is specified |
| 53 | * then you cannot override the mode in the device tree. |
| 54 | */ |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 55 | const struct drm_display_mode *modes; |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 56 | |
| 57 | /** @num_modes: Number of elements in modes array. */ |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 58 | unsigned int num_modes; |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 59 | |
| 60 | /** |
| 61 | * @timings: Pointer to array of display timings |
| 62 | * |
| 63 | * NOTE: cannot be used with "modes" and also these will be used to |
| 64 | * validate a device tree override if one is present. |
| 65 | */ |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 66 | const struct display_timing *timings; |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 67 | |
| 68 | /** @num_timings: Number of elements in timings array. */ |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 69 | unsigned int num_timings; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 70 | |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 71 | /** @bpc: Bits per color. */ |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 72 | unsigned int bpc; |
| 73 | |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 74 | /** @size: Structure containing the physical size of this panel. */ |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 75 | struct { |
Douglas Anderson | 131f909 | 2020-11-09 17:00:55 -0800 | [diff] [blame] | 76 | /** |
| 77 | * @size.width: Width (in mm) of the active display area. |
| 78 | */ |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 79 | unsigned int width; |
Douglas Anderson | 131f909 | 2020-11-09 17:00:55 -0800 | [diff] [blame] | 80 | |
| 81 | /** |
| 82 | * @size.height: Height (in mm) of the active display area. |
| 83 | */ |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 84 | unsigned int height; |
| 85 | } size; |
Ajay Kumar | f673c37 | 2014-07-31 23:12:11 +0530 | [diff] [blame] | 86 | |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 87 | /** @delay: Structure containing various delay values for this panel. */ |
Ajay Kumar | f673c37 | 2014-07-31 23:12:11 +0530 | [diff] [blame] | 88 | struct { |
Douglas Anderson | 131f909 | 2020-11-09 17:00:55 -0800 | [diff] [blame] | 89 | /** |
| 90 | * @delay.prepare: Time for the panel to become ready. |
| 91 | * |
| 92 | * The time (in milliseconds) that it takes for the panel to |
| 93 | * become ready and start receiving video data |
| 94 | */ |
Ajay Kumar | f673c37 | 2014-07-31 23:12:11 +0530 | [diff] [blame] | 95 | unsigned int prepare; |
Douglas Anderson | 131f909 | 2020-11-09 17:00:55 -0800 | [diff] [blame] | 96 | |
| 97 | /** |
| 98 | * @delay.hpd_absent_delay: Time to wait if HPD isn't hooked up. |
| 99 | * |
| 100 | * Add this to the prepare delay if we know Hot Plug Detect |
| 101 | * isn't used. |
| 102 | */ |
Douglas Anderson | 2ed3e95 | 2018-10-25 15:21:30 -0700 | [diff] [blame] | 103 | unsigned int hpd_absent_delay; |
Douglas Anderson | 131f909 | 2020-11-09 17:00:55 -0800 | [diff] [blame] | 104 | |
| 105 | /** |
Douglas Anderson | 4beb04b | 2020-11-09 17:00:57 -0800 | [diff] [blame] | 106 | * @delay.prepare_to_enable: Time between prepare and enable. |
| 107 | * |
| 108 | * The minimum time, in milliseconds, that needs to have passed |
| 109 | * between when prepare finished and enable may begin. If at |
| 110 | * enable time less time has passed since prepare finished, |
| 111 | * the driver waits for the remaining time. |
| 112 | * |
| 113 | * If a fixed enable delay is also specified, we'll start |
| 114 | * counting before delaying for the fixed delay. |
| 115 | * |
| 116 | * If a fixed prepare delay is also specified, we won't start |
| 117 | * counting until after the fixed delay. We can't overlap this |
| 118 | * fixed delay with the min time because the fixed delay |
| 119 | * doesn't happen at the end of the function if a HPD GPIO was |
| 120 | * specified. |
| 121 | * |
| 122 | * In other words: |
| 123 | * prepare() |
| 124 | * ... |
| 125 | * // do fixed prepare delay |
| 126 | * // wait for HPD GPIO if applicable |
| 127 | * // start counting for prepare_to_enable |
| 128 | * |
| 129 | * enable() |
| 130 | * // do fixed enable delay |
| 131 | * // enforce prepare_to_enable min time |
| 132 | */ |
| 133 | unsigned int prepare_to_enable; |
| 134 | |
| 135 | /** |
Douglas Anderson | 131f909 | 2020-11-09 17:00:55 -0800 | [diff] [blame] | 136 | * @delay.enable: Time for the panel to display a valid frame. |
| 137 | * |
| 138 | * The time (in milliseconds) that it takes for the panel to |
| 139 | * display the first valid frame after starting to receive |
| 140 | * video data. |
| 141 | */ |
Ajay Kumar | f673c37 | 2014-07-31 23:12:11 +0530 | [diff] [blame] | 142 | unsigned int enable; |
Douglas Anderson | 131f909 | 2020-11-09 17:00:55 -0800 | [diff] [blame] | 143 | |
| 144 | /** |
| 145 | * @delay.disable: Time for the panel to turn the display off. |
| 146 | * |
| 147 | * The time (in milliseconds) that it takes for the panel to |
| 148 | * turn the display off (no content is visible). |
| 149 | */ |
Ajay Kumar | f673c37 | 2014-07-31 23:12:11 +0530 | [diff] [blame] | 150 | unsigned int disable; |
Douglas Anderson | 131f909 | 2020-11-09 17:00:55 -0800 | [diff] [blame] | 151 | |
| 152 | /** |
| 153 | * @delay.unprepare: Time to power down completely. |
| 154 | * |
| 155 | * The time (in milliseconds) that it takes for the panel |
| 156 | * to power itself down completely. |
Douglas Anderson | e5e30df | 2020-11-09 17:00:56 -0800 | [diff] [blame] | 157 | * |
| 158 | * This time is used to prevent a future "prepare" from |
| 159 | * starting until at least this many milliseconds has passed. |
| 160 | * If at prepare time less time has passed since unprepare |
| 161 | * finished, the driver waits for the remaining time. |
Douglas Anderson | 131f909 | 2020-11-09 17:00:55 -0800 | [diff] [blame] | 162 | */ |
Ajay Kumar | f673c37 | 2014-07-31 23:12:11 +0530 | [diff] [blame] | 163 | unsigned int unprepare; |
| 164 | } delay; |
Boris Brezillon | 795f7ab | 2014-07-22 13:33:59 +0200 | [diff] [blame] | 165 | |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 166 | /** @bus_format: See MEDIA_BUS_FMT_... defines. */ |
Boris Brezillon | 795f7ab | 2014-07-22 13:33:59 +0200 | [diff] [blame] | 167 | u32 bus_format; |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 168 | |
| 169 | /** @bus_flags: See DRM_BUS_FLAG_... defines. */ |
Stefan Agner | f0aa083 | 2016-02-08 11:38:14 -0800 | [diff] [blame] | 170 | u32 bus_flags; |
Douglas Anderson | a00fa42 | 2020-12-01 12:59:12 -0800 | [diff] [blame] | 171 | |
| 172 | /** @connector_type: LVDS, eDP, DSI, DPI, etc. */ |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 173 | int connector_type; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 174 | }; |
| 175 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 176 | struct panel_simple { |
| 177 | struct drm_panel base; |
| 178 | bool enabled; |
Douglas Anderson | 2ed3e95 | 2018-10-25 15:21:30 -0700 | [diff] [blame] | 179 | bool no_hpd; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 180 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 181 | bool prepared; |
| 182 | |
Douglas Anderson | 4beb04b | 2020-11-09 17:00:57 -0800 | [diff] [blame] | 183 | ktime_t prepared_time; |
Douglas Anderson | e5e30df | 2020-11-09 17:00:56 -0800 | [diff] [blame] | 184 | ktime_t unprepared_time; |
| 185 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 186 | const struct panel_desc *desc; |
| 187 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 188 | struct regulator *supply; |
| 189 | struct i2c_adapter *ddc; |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 190 | struct drm_dp_aux *aux; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 191 | |
Alexandre Courbot | cfdf054 | 2014-03-01 14:00:58 +0900 | [diff] [blame] | 192 | struct gpio_desc *enable_gpio; |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 193 | struct gpio_desc *hpd_gpio; |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 194 | |
Douglas Anderson | 63358e2 | 2021-04-23 09:59:04 -0700 | [diff] [blame] | 195 | struct edid *edid; |
| 196 | |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 197 | struct drm_display_mode override_mode; |
Dmitry Osipenko | 5759c96 | 2020-08-14 00:56:09 +0300 | [diff] [blame] | 198 | |
| 199 | enum drm_panel_orientation orientation; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 200 | }; |
| 201 | |
| 202 | static inline struct panel_simple *to_panel_simple(struct drm_panel *panel) |
| 203 | { |
| 204 | return container_of(panel, struct panel_simple, base); |
| 205 | } |
| 206 | |
Sam Ravnborg | 0ce8ddd | 2019-12-07 15:03:33 +0100 | [diff] [blame] | 207 | static unsigned int panel_simple_get_timings_modes(struct panel_simple *panel, |
| 208 | struct drm_connector *connector) |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 209 | { |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 210 | struct drm_display_mode *mode; |
| 211 | unsigned int i, num = 0; |
| 212 | |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 213 | for (i = 0; i < panel->desc->num_timings; i++) { |
| 214 | const struct display_timing *dt = &panel->desc->timings[i]; |
| 215 | struct videomode vm; |
| 216 | |
| 217 | videomode_from_timing(dt, &vm); |
Sam Ravnborg | aa6c436 | 2019-12-07 15:03:35 +0100 | [diff] [blame] | 218 | mode = drm_mode_create(connector->dev); |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 219 | if (!mode) { |
Sam Ravnborg | aa6c436 | 2019-12-07 15:03:35 +0100 | [diff] [blame] | 220 | dev_err(panel->base.dev, "failed to add mode %ux%u\n", |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 221 | dt->hactive.typ, dt->vactive.typ); |
| 222 | continue; |
| 223 | } |
| 224 | |
| 225 | drm_display_mode_from_videomode(&vm, mode); |
Boris Brezillon | cda5537 | 2016-04-15 18:23:33 +0200 | [diff] [blame] | 226 | |
| 227 | mode->type |= DRM_MODE_TYPE_DRIVER; |
| 228 | |
Chen-Yu Tsai | 230c5b4 | 2016-10-24 21:21:15 +0800 | [diff] [blame] | 229 | if (panel->desc->num_timings == 1) |
Boris Brezillon | cda5537 | 2016-04-15 18:23:33 +0200 | [diff] [blame] | 230 | mode->type |= DRM_MODE_TYPE_PREFERRED; |
| 231 | |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 232 | drm_mode_probed_add(connector, mode); |
| 233 | num++; |
| 234 | } |
| 235 | |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 236 | return num; |
| 237 | } |
| 238 | |
Sam Ravnborg | 0ce8ddd | 2019-12-07 15:03:33 +0100 | [diff] [blame] | 239 | static unsigned int panel_simple_get_display_modes(struct panel_simple *panel, |
| 240 | struct drm_connector *connector) |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 241 | { |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 242 | struct drm_display_mode *mode; |
| 243 | unsigned int i, num = 0; |
| 244 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 245 | for (i = 0; i < panel->desc->num_modes; i++) { |
| 246 | const struct drm_display_mode *m = &panel->desc->modes[i]; |
| 247 | |
Sam Ravnborg | aa6c436 | 2019-12-07 15:03:35 +0100 | [diff] [blame] | 248 | mode = drm_mode_duplicate(connector->dev, m); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 249 | if (!mode) { |
Sam Ravnborg | aa6c436 | 2019-12-07 15:03:35 +0100 | [diff] [blame] | 250 | dev_err(panel->base.dev, "failed to add mode %ux%u@%u\n", |
Ville Syrjälä | 0425662 | 2020-04-28 20:19:27 +0300 | [diff] [blame] | 251 | m->hdisplay, m->vdisplay, |
| 252 | drm_mode_vrefresh(m)); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 253 | continue; |
| 254 | } |
| 255 | |
Boris Brezillon | cda5537 | 2016-04-15 18:23:33 +0200 | [diff] [blame] | 256 | mode->type |= DRM_MODE_TYPE_DRIVER; |
| 257 | |
| 258 | if (panel->desc->num_modes == 1) |
| 259 | mode->type |= DRM_MODE_TYPE_PREFERRED; |
| 260 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 261 | drm_mode_set_name(mode); |
| 262 | |
| 263 | drm_mode_probed_add(connector, mode); |
| 264 | num++; |
| 265 | } |
| 266 | |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 267 | return num; |
| 268 | } |
| 269 | |
Sam Ravnborg | 0ce8ddd | 2019-12-07 15:03:33 +0100 | [diff] [blame] | 270 | static int panel_simple_get_non_edid_modes(struct panel_simple *panel, |
| 271 | struct drm_connector *connector) |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 272 | { |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 273 | struct drm_display_mode *mode; |
| 274 | bool has_override = panel->override_mode.type; |
| 275 | unsigned int num = 0; |
| 276 | |
| 277 | if (!panel->desc) |
| 278 | return 0; |
| 279 | |
| 280 | if (has_override) { |
Sam Ravnborg | aa6c436 | 2019-12-07 15:03:35 +0100 | [diff] [blame] | 281 | mode = drm_mode_duplicate(connector->dev, |
| 282 | &panel->override_mode); |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 283 | if (mode) { |
| 284 | drm_mode_probed_add(connector, mode); |
| 285 | num = 1; |
| 286 | } else { |
Sam Ravnborg | aa6c436 | 2019-12-07 15:03:35 +0100 | [diff] [blame] | 287 | dev_err(panel->base.dev, "failed to add override mode\n"); |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 288 | } |
| 289 | } |
| 290 | |
| 291 | /* Only add timings if override was not there or failed to validate */ |
| 292 | if (num == 0 && panel->desc->num_timings) |
Sam Ravnborg | 0ce8ddd | 2019-12-07 15:03:33 +0100 | [diff] [blame] | 293 | num = panel_simple_get_timings_modes(panel, connector); |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 294 | |
| 295 | /* |
| 296 | * Only add fixed modes if timings/override added no mode. |
| 297 | * |
| 298 | * We should only ever have either the display timings specified |
| 299 | * or a fixed mode. Anything else is rather bogus. |
| 300 | */ |
| 301 | WARN_ON(panel->desc->num_timings && panel->desc->num_modes); |
| 302 | if (num == 0) |
Sam Ravnborg | 0ce8ddd | 2019-12-07 15:03:33 +0100 | [diff] [blame] | 303 | num = panel_simple_get_display_modes(panel, connector); |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 304 | |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 305 | connector->display_info.bpc = panel->desc->bpc; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 306 | connector->display_info.width_mm = panel->desc->size.width; |
| 307 | connector->display_info.height_mm = panel->desc->size.height; |
Boris Brezillon | 795f7ab | 2014-07-22 13:33:59 +0200 | [diff] [blame] | 308 | if (panel->desc->bus_format) |
| 309 | drm_display_info_set_bus_formats(&connector->display_info, |
| 310 | &panel->desc->bus_format, 1); |
Stefan Agner | f0aa083 | 2016-02-08 11:38:14 -0800 | [diff] [blame] | 311 | connector->display_info.bus_flags = panel->desc->bus_flags; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 312 | |
| 313 | return num; |
| 314 | } |
| 315 | |
Douglas Anderson | e5e30df | 2020-11-09 17:00:56 -0800 | [diff] [blame] | 316 | static void panel_simple_wait(ktime_t start_ktime, unsigned int min_ms) |
| 317 | { |
| 318 | ktime_t now_ktime, min_ktime; |
| 319 | |
| 320 | if (!min_ms) |
| 321 | return; |
| 322 | |
| 323 | min_ktime = ktime_add(start_ktime, ms_to_ktime(min_ms)); |
| 324 | now_ktime = ktime_get(); |
| 325 | |
| 326 | if (ktime_before(now_ktime, min_ktime)) |
| 327 | msleep(ktime_to_ms(ktime_sub(min_ktime, now_ktime)) + 1); |
| 328 | } |
| 329 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 330 | static int panel_simple_disable(struct drm_panel *panel) |
| 331 | { |
| 332 | struct panel_simple *p = to_panel_simple(panel); |
| 333 | |
| 334 | if (!p->enabled) |
| 335 | return 0; |
| 336 | |
Ajay Kumar | f673c37 | 2014-07-31 23:12:11 +0530 | [diff] [blame] | 337 | if (p->desc->delay.disable) |
| 338 | msleep(p->desc->delay.disable); |
| 339 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 340 | p->enabled = false; |
| 341 | |
| 342 | return 0; |
| 343 | } |
| 344 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 345 | static int panel_simple_suspend(struct device *dev) |
| 346 | { |
| 347 | struct panel_simple *p = dev_get_drvdata(dev); |
| 348 | |
| 349 | gpiod_set_value_cansleep(p->enable_gpio, 0); |
| 350 | regulator_disable(p->supply); |
| 351 | p->unprepared_time = ktime_get(); |
| 352 | |
Douglas Anderson | 63358e2 | 2021-04-23 09:59:04 -0700 | [diff] [blame] | 353 | kfree(p->edid); |
| 354 | p->edid = NULL; |
| 355 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 356 | return 0; |
| 357 | } |
| 358 | |
Ajay Kumar | c0e1d17 | 2014-07-31 23:12:04 +0530 | [diff] [blame] | 359 | static int panel_simple_unprepare(struct drm_panel *panel) |
| 360 | { |
Ajay Kumar | 613a633 | 2014-07-31 23:12:10 +0530 | [diff] [blame] | 361 | struct panel_simple *p = to_panel_simple(panel); |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 362 | int ret; |
Ajay Kumar | 613a633 | 2014-07-31 23:12:10 +0530 | [diff] [blame] | 363 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 364 | /* Unpreparing when already unprepared is a no-op */ |
| 365 | if (!p->prepared) |
Ajay Kumar | 613a633 | 2014-07-31 23:12:10 +0530 | [diff] [blame] | 366 | return 0; |
| 367 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 368 | pm_runtime_mark_last_busy(panel->dev); |
| 369 | ret = pm_runtime_put_autosuspend(panel->dev); |
| 370 | if (ret < 0) |
| 371 | return ret; |
| 372 | p->prepared = false; |
Ajay Kumar | 613a633 | 2014-07-31 23:12:10 +0530 | [diff] [blame] | 373 | |
Ajay Kumar | c0e1d17 | 2014-07-31 23:12:04 +0530 | [diff] [blame] | 374 | return 0; |
| 375 | } |
| 376 | |
Douglas Anderson | 5c4381e | 2021-04-23 09:58:56 -0700 | [diff] [blame] | 377 | static int panel_simple_get_hpd_gpio(struct device *dev, struct panel_simple *p) |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 378 | { |
| 379 | int err; |
| 380 | |
| 381 | p->hpd_gpio = devm_gpiod_get_optional(dev, "hpd", GPIOD_IN); |
| 382 | if (IS_ERR(p->hpd_gpio)) { |
| 383 | err = PTR_ERR(p->hpd_gpio); |
| 384 | |
Douglas Anderson | 5c4381e | 2021-04-23 09:58:56 -0700 | [diff] [blame] | 385 | if (err != -EPROBE_DEFER) |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 386 | dev_err(dev, "failed to get 'hpd' GPIO: %d\n", err); |
Douglas Anderson | 5c4381e | 2021-04-23 09:58:56 -0700 | [diff] [blame] | 387 | |
| 388 | return err; |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 389 | } |
| 390 | |
| 391 | return 0; |
| 392 | } |
| 393 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 394 | static int panel_simple_prepare_once(struct panel_simple *p) |
Ajay Kumar | c0e1d17 | 2014-07-31 23:12:04 +0530 | [diff] [blame] | 395 | { |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 396 | struct device *dev = p->base.dev; |
Douglas Anderson | 2ed3e95 | 2018-10-25 15:21:30 -0700 | [diff] [blame] | 397 | unsigned int delay; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 398 | int err; |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 399 | int hpd_asserted; |
Douglas Anderson | 6ec5262 | 2021-01-15 14:44:17 -0800 | [diff] [blame] | 400 | unsigned long hpd_wait_us; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 401 | |
Douglas Anderson | e5e30df | 2020-11-09 17:00:56 -0800 | [diff] [blame] | 402 | panel_simple_wait(p->unprepared_time, p->desc->delay.unprepare); |
| 403 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 404 | err = regulator_enable(p->supply); |
| 405 | if (err < 0) { |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 406 | dev_err(dev, "failed to enable supply: %d\n", err); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 407 | return err; |
| 408 | } |
| 409 | |
Fabio Estevam | 756b918 | 2017-07-16 21:05:39 -0300 | [diff] [blame] | 410 | gpiod_set_value_cansleep(p->enable_gpio, 1); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 411 | |
Douglas Anderson | 2ed3e95 | 2018-10-25 15:21:30 -0700 | [diff] [blame] | 412 | delay = p->desc->delay.prepare; |
| 413 | if (p->no_hpd) |
| 414 | delay += p->desc->delay.hpd_absent_delay; |
| 415 | if (delay) |
| 416 | msleep(delay); |
Ajay Kumar | f673c37 | 2014-07-31 23:12:11 +0530 | [diff] [blame] | 417 | |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 418 | if (p->hpd_gpio) { |
Douglas Anderson | 6ec5262 | 2021-01-15 14:44:17 -0800 | [diff] [blame] | 419 | if (p->desc->delay.hpd_absent_delay) |
| 420 | hpd_wait_us = p->desc->delay.hpd_absent_delay * 1000UL; |
| 421 | else |
| 422 | hpd_wait_us = 2000000; |
| 423 | |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 424 | err = readx_poll_timeout(gpiod_get_value_cansleep, p->hpd_gpio, |
| 425 | hpd_asserted, hpd_asserted, |
Douglas Anderson | 6ec5262 | 2021-01-15 14:44:17 -0800 | [diff] [blame] | 426 | 1000, hpd_wait_us); |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 427 | if (hpd_asserted < 0) |
| 428 | err = hpd_asserted; |
| 429 | |
| 430 | if (err) { |
Douglas Anderson | 87b4971 | 2021-01-15 14:44:18 -0800 | [diff] [blame] | 431 | if (err != -ETIMEDOUT) |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 432 | dev_err(dev, |
Douglas Anderson | 87b4971 | 2021-01-15 14:44:18 -0800 | [diff] [blame] | 433 | "error waiting for hpd GPIO: %d\n", err); |
Douglas Anderson | 5e7222a | 2021-01-15 14:44:16 -0800 | [diff] [blame] | 434 | goto error; |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 435 | } |
| 436 | } |
| 437 | |
Douglas Anderson | 4beb04b | 2020-11-09 17:00:57 -0800 | [diff] [blame] | 438 | p->prepared_time = ktime_get(); |
Ajay Kumar | 613a633 | 2014-07-31 23:12:10 +0530 | [diff] [blame] | 439 | |
| 440 | return 0; |
Douglas Anderson | 5e7222a | 2021-01-15 14:44:16 -0800 | [diff] [blame] | 441 | |
| 442 | error: |
| 443 | gpiod_set_value_cansleep(p->enable_gpio, 0); |
| 444 | regulator_disable(p->supply); |
| 445 | p->unprepared_time = ktime_get(); |
| 446 | |
| 447 | return err; |
Ajay Kumar | 613a633 | 2014-07-31 23:12:10 +0530 | [diff] [blame] | 448 | } |
| 449 | |
Douglas Anderson | 87b4971 | 2021-01-15 14:44:18 -0800 | [diff] [blame] | 450 | /* |
| 451 | * Some panels simply don't always come up and need to be power cycled to |
| 452 | * work properly. We'll allow for a handful of retries. |
| 453 | */ |
| 454 | #define MAX_PANEL_PREPARE_TRIES 5 |
| 455 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 456 | static int panel_simple_resume(struct device *dev) |
Douglas Anderson | 87b4971 | 2021-01-15 14:44:18 -0800 | [diff] [blame] | 457 | { |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 458 | struct panel_simple *p = dev_get_drvdata(dev); |
Douglas Anderson | 87b4971 | 2021-01-15 14:44:18 -0800 | [diff] [blame] | 459 | int ret; |
| 460 | int try; |
| 461 | |
| 462 | for (try = 0; try < MAX_PANEL_PREPARE_TRIES; try++) { |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 463 | ret = panel_simple_prepare_once(p); |
Douglas Anderson | 87b4971 | 2021-01-15 14:44:18 -0800 | [diff] [blame] | 464 | if (ret != -ETIMEDOUT) |
| 465 | break; |
| 466 | } |
| 467 | |
| 468 | if (ret == -ETIMEDOUT) |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 469 | dev_err(dev, "Prepare timeout after %d tries\n", try); |
Douglas Anderson | 87b4971 | 2021-01-15 14:44:18 -0800 | [diff] [blame] | 470 | else if (try) |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 471 | dev_warn(dev, "Prepare needed %d retries\n", try); |
Douglas Anderson | 87b4971 | 2021-01-15 14:44:18 -0800 | [diff] [blame] | 472 | |
| 473 | return ret; |
| 474 | } |
| 475 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 476 | static int panel_simple_prepare(struct drm_panel *panel) |
| 477 | { |
| 478 | struct panel_simple *p = to_panel_simple(panel); |
| 479 | int ret; |
| 480 | |
| 481 | /* Preparing when already prepared is a no-op */ |
| 482 | if (p->prepared) |
| 483 | return 0; |
| 484 | |
| 485 | ret = pm_runtime_get_sync(panel->dev); |
| 486 | if (ret < 0) { |
| 487 | pm_runtime_put_autosuspend(panel->dev); |
| 488 | return ret; |
| 489 | } |
| 490 | |
| 491 | p->prepared = true; |
| 492 | |
| 493 | return 0; |
| 494 | } |
| 495 | |
Ajay Kumar | 613a633 | 2014-07-31 23:12:10 +0530 | [diff] [blame] | 496 | static int panel_simple_enable(struct drm_panel *panel) |
| 497 | { |
| 498 | struct panel_simple *p = to_panel_simple(panel); |
| 499 | |
| 500 | if (p->enabled) |
| 501 | return 0; |
| 502 | |
Ajay Kumar | f673c37 | 2014-07-31 23:12:11 +0530 | [diff] [blame] | 503 | if (p->desc->delay.enable) |
| 504 | msleep(p->desc->delay.enable); |
| 505 | |
Douglas Anderson | 4beb04b | 2020-11-09 17:00:57 -0800 | [diff] [blame] | 506 | panel_simple_wait(p->prepared_time, p->desc->delay.prepare_to_enable); |
| 507 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 508 | p->enabled = true; |
| 509 | |
| 510 | return 0; |
| 511 | } |
| 512 | |
Sam Ravnborg | 0ce8ddd | 2019-12-07 15:03:33 +0100 | [diff] [blame] | 513 | static int panel_simple_get_modes(struct drm_panel *panel, |
| 514 | struct drm_connector *connector) |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 515 | { |
| 516 | struct panel_simple *p = to_panel_simple(panel); |
| 517 | int num = 0; |
| 518 | |
| 519 | /* probe EDID if a DDC bus is available */ |
| 520 | if (p->ddc) { |
Douglas Anderson | 31e2539 | 2021-04-23 09:59:03 -0700 | [diff] [blame] | 521 | pm_runtime_get_sync(panel->dev); |
| 522 | |
Douglas Anderson | 63358e2 | 2021-04-23 09:59:04 -0700 | [diff] [blame] | 523 | if (!p->edid) |
| 524 | p->edid = drm_get_edid(connector, p->ddc); |
| 525 | |
| 526 | if (p->edid) |
| 527 | num += drm_add_edid_modes(connector, p->edid); |
Douglas Anderson | 31e2539 | 2021-04-23 09:59:03 -0700 | [diff] [blame] | 528 | |
| 529 | pm_runtime_mark_last_busy(panel->dev); |
| 530 | pm_runtime_put_autosuspend(panel->dev); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 531 | } |
| 532 | |
| 533 | /* add hard-coded panel modes */ |
Sam Ravnborg | 0ce8ddd | 2019-12-07 15:03:33 +0100 | [diff] [blame] | 534 | num += panel_simple_get_non_edid_modes(p, connector); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 535 | |
Dmitry Osipenko | 5759c96 | 2020-08-14 00:56:09 +0300 | [diff] [blame] | 536 | /* set up connector's "panel orientation" property */ |
| 537 | drm_connector_set_panel_orientation(connector, p->orientation); |
| 538 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 539 | return num; |
| 540 | } |
| 541 | |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 542 | static int panel_simple_get_timings(struct drm_panel *panel, |
| 543 | unsigned int num_timings, |
| 544 | struct display_timing *timings) |
| 545 | { |
| 546 | struct panel_simple *p = to_panel_simple(panel); |
| 547 | unsigned int i; |
| 548 | |
| 549 | if (p->desc->num_timings < num_timings) |
| 550 | num_timings = p->desc->num_timings; |
| 551 | |
| 552 | if (timings) |
| 553 | for (i = 0; i < num_timings; i++) |
| 554 | timings[i] = p->desc->timings[i]; |
| 555 | |
| 556 | return p->desc->num_timings; |
| 557 | } |
| 558 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 559 | static const struct drm_panel_funcs panel_simple_funcs = { |
| 560 | .disable = panel_simple_disable, |
Ajay Kumar | c0e1d17 | 2014-07-31 23:12:04 +0530 | [diff] [blame] | 561 | .unprepare = panel_simple_unprepare, |
| 562 | .prepare = panel_simple_prepare, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 563 | .enable = panel_simple_enable, |
| 564 | .get_modes = panel_simple_get_modes, |
Philipp Zabel | a5d3e62 | 2014-12-11 18:32:45 +0100 | [diff] [blame] | 565 | .get_timings = panel_simple_get_timings, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 566 | }; |
| 567 | |
Sam Ravnborg | 4a1d0db | 2020-02-16 19:15:13 +0100 | [diff] [blame] | 568 | static struct panel_desc panel_dpi; |
| 569 | |
| 570 | static int panel_dpi_probe(struct device *dev, |
| 571 | struct panel_simple *panel) |
| 572 | { |
| 573 | struct display_timing *timing; |
| 574 | const struct device_node *np; |
| 575 | struct panel_desc *desc; |
| 576 | unsigned int bus_flags; |
| 577 | struct videomode vm; |
Sam Ravnborg | 4a1d0db | 2020-02-16 19:15:13 +0100 | [diff] [blame] | 578 | int ret; |
| 579 | |
| 580 | np = dev->of_node; |
| 581 | desc = devm_kzalloc(dev, sizeof(*desc), GFP_KERNEL); |
| 582 | if (!desc) |
| 583 | return -ENOMEM; |
| 584 | |
| 585 | timing = devm_kzalloc(dev, sizeof(*timing), GFP_KERNEL); |
| 586 | if (!timing) |
| 587 | return -ENOMEM; |
| 588 | |
| 589 | ret = of_get_display_timing(np, "panel-timing", timing); |
| 590 | if (ret < 0) { |
| 591 | dev_err(dev, "%pOF: no panel-timing node found for \"panel-dpi\" binding\n", |
| 592 | np); |
| 593 | return ret; |
| 594 | } |
| 595 | |
| 596 | desc->timings = timing; |
| 597 | desc->num_timings = 1; |
| 598 | |
| 599 | of_property_read_u32(np, "width-mm", &desc->size.width); |
| 600 | of_property_read_u32(np, "height-mm", &desc->size.height); |
| 601 | |
Sam Ravnborg | 4a1d0db | 2020-02-16 19:15:13 +0100 | [diff] [blame] | 602 | /* Extract bus_flags from display_timing */ |
| 603 | bus_flags = 0; |
| 604 | vm.flags = timing->flags; |
| 605 | drm_bus_flags_from_videomode(&vm, &bus_flags); |
| 606 | desc->bus_flags = bus_flags; |
| 607 | |
| 608 | /* We do not know the connector for the DT node, so guess it */ |
| 609 | desc->connector_type = DRM_MODE_CONNECTOR_DPI; |
| 610 | |
| 611 | panel->desc = desc; |
| 612 | |
| 613 | return 0; |
| 614 | } |
| 615 | |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 616 | #define PANEL_SIMPLE_BOUNDS_CHECK(to_check, bounds, field) \ |
| 617 | (to_check->field.typ >= bounds->field.min && \ |
| 618 | to_check->field.typ <= bounds->field.max) |
Douglas Anderson | e362cc6 | 2019-07-12 09:33:33 -0700 | [diff] [blame] | 619 | static void panel_simple_parse_panel_timing_node(struct device *dev, |
| 620 | struct panel_simple *panel, |
| 621 | const struct display_timing *ot) |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 622 | { |
| 623 | const struct panel_desc *desc = panel->desc; |
| 624 | struct videomode vm; |
| 625 | unsigned int i; |
| 626 | |
| 627 | if (WARN_ON(desc->num_modes)) { |
| 628 | dev_err(dev, "Reject override mode: panel has a fixed mode\n"); |
| 629 | return; |
| 630 | } |
| 631 | if (WARN_ON(!desc->num_timings)) { |
| 632 | dev_err(dev, "Reject override mode: no timings specified\n"); |
| 633 | return; |
| 634 | } |
| 635 | |
| 636 | for (i = 0; i < panel->desc->num_timings; i++) { |
| 637 | const struct display_timing *dt = &panel->desc->timings[i]; |
| 638 | |
| 639 | if (!PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hactive) || |
| 640 | !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hfront_porch) || |
| 641 | !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hback_porch) || |
| 642 | !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, hsync_len) || |
| 643 | !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vactive) || |
| 644 | !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vfront_porch) || |
| 645 | !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vback_porch) || |
| 646 | !PANEL_SIMPLE_BOUNDS_CHECK(ot, dt, vsync_len)) |
| 647 | continue; |
| 648 | |
| 649 | if (ot->flags != dt->flags) |
| 650 | continue; |
| 651 | |
| 652 | videomode_from_timing(ot, &vm); |
| 653 | drm_display_mode_from_videomode(&vm, &panel->override_mode); |
| 654 | panel->override_mode.type |= DRM_MODE_TYPE_DRIVER | |
| 655 | DRM_MODE_TYPE_PREFERRED; |
| 656 | break; |
| 657 | } |
| 658 | |
| 659 | if (WARN_ON(!panel->override_mode.type)) |
| 660 | dev_err(dev, "Reject override mode: No display_timing found\n"); |
| 661 | } |
| 662 | |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 663 | static int panel_simple_probe(struct device *dev, const struct panel_desc *desc, |
| 664 | struct drm_dp_aux *aux) |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 665 | { |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 666 | struct panel_simple *panel; |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 667 | struct display_timing dt; |
Sam Ravnborg | 0fe1564 | 2019-12-07 15:03:31 +0100 | [diff] [blame] | 668 | struct device_node *ddc; |
Sam Ravnborg | 9f069c6 | 2020-07-26 22:33:11 +0200 | [diff] [blame] | 669 | int connector_type; |
Sam Ravnborg | ddb8e85 | 2020-07-26 22:33:10 +0200 | [diff] [blame] | 670 | u32 bus_flags; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 671 | int err; |
| 672 | |
| 673 | panel = devm_kzalloc(dev, sizeof(*panel), GFP_KERNEL); |
| 674 | if (!panel) |
| 675 | return -ENOMEM; |
| 676 | |
| 677 | panel->enabled = false; |
Douglas Anderson | 4beb04b | 2020-11-09 17:00:57 -0800 | [diff] [blame] | 678 | panel->prepared_time = 0; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 679 | panel->desc = desc; |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 680 | panel->aux = aux; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 681 | |
Douglas Anderson | 2ed3e95 | 2018-10-25 15:21:30 -0700 | [diff] [blame] | 682 | panel->no_hpd = of_property_read_bool(dev->of_node, "no-hpd"); |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 683 | if (!panel->no_hpd) { |
Douglas Anderson | 5c4381e | 2021-04-23 09:58:56 -0700 | [diff] [blame] | 684 | err = panel_simple_get_hpd_gpio(dev, panel); |
Douglas Anderson | 48834e6 | 2020-05-07 14:34:57 -0700 | [diff] [blame] | 685 | if (err) |
| 686 | return err; |
| 687 | } |
Douglas Anderson | 2ed3e95 | 2018-10-25 15:21:30 -0700 | [diff] [blame] | 688 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 689 | panel->supply = devm_regulator_get(dev, "power"); |
| 690 | if (IS_ERR(panel->supply)) |
| 691 | return PTR_ERR(panel->supply); |
| 692 | |
Alexandre Courbot | a61400d | 2014-10-23 17:16:58 +0900 | [diff] [blame] | 693 | panel->enable_gpio = devm_gpiod_get_optional(dev, "enable", |
| 694 | GPIOD_OUT_LOW); |
Alexandre Courbot | cfdf054 | 2014-03-01 14:00:58 +0900 | [diff] [blame] | 695 | if (IS_ERR(panel->enable_gpio)) { |
| 696 | err = PTR_ERR(panel->enable_gpio); |
Fabio Estevam | b8e9380 | 2017-06-30 18:14:46 -0300 | [diff] [blame] | 697 | if (err != -EPROBE_DEFER) |
| 698 | dev_err(dev, "failed to request GPIO: %d\n", err); |
Alexandre Courbot | 9746c61 | 2014-07-25 23:47:25 +0900 | [diff] [blame] | 699 | return err; |
| 700 | } |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 701 | |
Dmitry Osipenko | 5759c96 | 2020-08-14 00:56:09 +0300 | [diff] [blame] | 702 | err = of_drm_get_panel_orientation(dev->of_node, &panel->orientation); |
| 703 | if (err) { |
| 704 | dev_err(dev, "%pOF: failed to get orientation %d\n", dev->of_node, err); |
| 705 | return err; |
| 706 | } |
| 707 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 708 | ddc = of_parse_phandle(dev->of_node, "ddc-i2c-bus", 0); |
| 709 | if (ddc) { |
| 710 | panel->ddc = of_find_i2c_adapter_by_node(ddc); |
| 711 | of_node_put(ddc); |
| 712 | |
Sam Ravnborg | 0fe1564 | 2019-12-07 15:03:31 +0100 | [diff] [blame] | 713 | if (!panel->ddc) |
| 714 | return -EPROBE_DEFER; |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 715 | } else if (aux) { |
| 716 | panel->ddc = &aux->ddc; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 717 | } |
| 718 | |
Sam Ravnborg | 4a1d0db | 2020-02-16 19:15:13 +0100 | [diff] [blame] | 719 | if (desc == &panel_dpi) { |
| 720 | /* Handle the generic panel-dpi binding */ |
| 721 | err = panel_dpi_probe(dev, panel); |
| 722 | if (err) |
| 723 | goto free_ddc; |
| 724 | } else { |
| 725 | if (!of_get_display_timing(dev->of_node, "panel-timing", &dt)) |
| 726 | panel_simple_parse_panel_timing_node(dev, panel, &dt); |
| 727 | } |
Sean Paul | b8a2948 | 2019-07-11 13:34:53 -0700 | [diff] [blame] | 728 | |
Sam Ravnborg | 9f069c6 | 2020-07-26 22:33:11 +0200 | [diff] [blame] | 729 | connector_type = desc->connector_type; |
Sam Ravnborg | ddb8e85 | 2020-07-26 22:33:10 +0200 | [diff] [blame] | 730 | /* Catch common mistakes for panels. */ |
Sam Ravnborg | 9f069c6 | 2020-07-26 22:33:11 +0200 | [diff] [blame] | 731 | switch (connector_type) { |
Sam Ravnborg | ddb8e85 | 2020-07-26 22:33:10 +0200 | [diff] [blame] | 732 | case 0: |
| 733 | dev_warn(dev, "Specify missing connector_type\n"); |
Sam Ravnborg | 9f069c6 | 2020-07-26 22:33:11 +0200 | [diff] [blame] | 734 | connector_type = DRM_MODE_CONNECTOR_DPI; |
Sam Ravnborg | ddb8e85 | 2020-07-26 22:33:10 +0200 | [diff] [blame] | 735 | break; |
| 736 | case DRM_MODE_CONNECTOR_LVDS: |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 737 | WARN_ON(desc->bus_flags & |
| 738 | ~(DRM_BUS_FLAG_DE_LOW | |
| 739 | DRM_BUS_FLAG_DE_HIGH | |
| 740 | DRM_BUS_FLAG_DATA_MSB_TO_LSB | |
| 741 | DRM_BUS_FLAG_DATA_LSB_TO_MSB)); |
Laurent Pinchart | 1185c40 | 2020-06-30 02:33:20 +0300 | [diff] [blame] | 742 | WARN_ON(desc->bus_format != MEDIA_BUS_FMT_RGB666_1X7X3_SPWG && |
| 743 | desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_SPWG && |
| 744 | desc->bus_format != MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA); |
| 745 | WARN_ON(desc->bus_format == MEDIA_BUS_FMT_RGB666_1X7X3_SPWG && |
| 746 | desc->bpc != 6); |
| 747 | WARN_ON((desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_SPWG || |
| 748 | desc->bus_format == MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA) && |
| 749 | desc->bpc != 8); |
Sam Ravnborg | ddb8e85 | 2020-07-26 22:33:10 +0200 | [diff] [blame] | 750 | break; |
| 751 | case DRM_MODE_CONNECTOR_eDP: |
Rajeev Nandan | 13aceea | 2021-06-26 22:21:06 +0530 | [diff] [blame] | 752 | if (desc->bpc != 6 && desc->bpc != 8 && desc->bpc != 10) |
| 753 | dev_warn(dev, "Expected bpc in {6,8,10} but got: %u\n", desc->bpc); |
Sam Ravnborg | ddb8e85 | 2020-07-26 22:33:10 +0200 | [diff] [blame] | 754 | break; |
| 755 | case DRM_MODE_CONNECTOR_DSI: |
| 756 | if (desc->bpc != 6 && desc->bpc != 8) |
| 757 | dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc); |
| 758 | break; |
| 759 | case DRM_MODE_CONNECTOR_DPI: |
| 760 | bus_flags = DRM_BUS_FLAG_DE_LOW | |
| 761 | DRM_BUS_FLAG_DE_HIGH | |
| 762 | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE | |
| 763 | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE | |
| 764 | DRM_BUS_FLAG_DATA_MSB_TO_LSB | |
| 765 | DRM_BUS_FLAG_DATA_LSB_TO_MSB | |
| 766 | DRM_BUS_FLAG_SYNC_SAMPLE_POSEDGE | |
| 767 | DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE; |
| 768 | if (desc->bus_flags & ~bus_flags) |
| 769 | dev_warn(dev, "Unexpected bus_flags(%d)\n", desc->bus_flags & ~bus_flags); |
| 770 | if (!(desc->bus_flags & bus_flags)) |
| 771 | dev_warn(dev, "Specify missing bus_flags\n"); |
| 772 | if (desc->bus_format == 0) |
| 773 | dev_warn(dev, "Specify missing bus_format\n"); |
| 774 | if (desc->bpc != 6 && desc->bpc != 8) |
| 775 | dev_warn(dev, "Expected bpc in {6,8} but got: %u\n", desc->bpc); |
| 776 | break; |
| 777 | default: |
| 778 | dev_warn(dev, "Specify a valid connector_type: %d\n", desc->connector_type); |
Sam Ravnborg | 9f069c6 | 2020-07-26 22:33:11 +0200 | [diff] [blame] | 779 | connector_type = DRM_MODE_CONNECTOR_DPI; |
Sam Ravnborg | ddb8e85 | 2020-07-26 22:33:10 +0200 | [diff] [blame] | 780 | break; |
Laurent Pinchart | 1185c40 | 2020-06-30 02:33:20 +0300 | [diff] [blame] | 781 | } |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 782 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 783 | dev_set_drvdata(dev, panel); |
| 784 | |
| 785 | /* |
| 786 | * We use runtime PM for prepare / unprepare since those power the panel |
| 787 | * on and off and those can be very slow operations. This is important |
| 788 | * to optimize powering the panel on briefly to read the EDID before |
| 789 | * fully enabling the panel. |
| 790 | */ |
| 791 | pm_runtime_enable(dev); |
| 792 | pm_runtime_set_autosuspend_delay(dev, 1000); |
| 793 | pm_runtime_use_autosuspend(dev); |
| 794 | |
Sam Ravnborg | 9f069c6 | 2020-07-26 22:33:11 +0200 | [diff] [blame] | 795 | drm_panel_init(&panel->base, dev, &panel_simple_funcs, connector_type); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 796 | |
Sam Ravnborg | 0fe1564 | 2019-12-07 15:03:31 +0100 | [diff] [blame] | 797 | err = drm_panel_of_backlight(&panel->base); |
| 798 | if (err) |
Douglas Anderson | 70e1256 | 2021-04-23 09:58:47 -0700 | [diff] [blame] | 799 | goto disable_pm_runtime; |
Sam Ravnborg | 0fe1564 | 2019-12-07 15:03:31 +0100 | [diff] [blame] | 800 | |
Rajeev Nandan | bfd4514 | 2021-06-26 22:21:04 +0530 | [diff] [blame] | 801 | if (!panel->base.backlight && panel->aux) { |
Douglas Anderson | 5ead9b5 | 2021-07-14 09:33:50 -0700 | [diff] [blame] | 802 | pm_runtime_get_sync(dev); |
Rajeev Nandan | bfd4514 | 2021-06-26 22:21:04 +0530 | [diff] [blame] | 803 | err = drm_panel_dp_aux_backlight(&panel->base, panel->aux); |
Douglas Anderson | 5ead9b5 | 2021-07-14 09:33:50 -0700 | [diff] [blame] | 804 | pm_runtime_mark_last_busy(dev); |
| 805 | pm_runtime_put_autosuspend(dev); |
Rajeev Nandan | bfd4514 | 2021-06-26 22:21:04 +0530 | [diff] [blame] | 806 | if (err) |
| 807 | goto disable_pm_runtime; |
| 808 | } |
| 809 | |
Bernard Zhao | c3ee8c6 | 2020-08-01 20:02:13 +0800 | [diff] [blame] | 810 | drm_panel_add(&panel->base); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 811 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 812 | return 0; |
| 813 | |
Douglas Anderson | 70e1256 | 2021-04-23 09:58:47 -0700 | [diff] [blame] | 814 | disable_pm_runtime: |
Douglas Anderson | a596fcd | 2021-05-17 13:08:58 -0700 | [diff] [blame] | 815 | pm_runtime_dont_use_autosuspend(dev); |
Douglas Anderson | 70e1256 | 2021-04-23 09:58:47 -0700 | [diff] [blame] | 816 | pm_runtime_disable(dev); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 817 | free_ddc: |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 818 | if (panel->ddc && (!panel->aux || panel->ddc != &panel->aux->ddc)) |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 819 | put_device(&panel->ddc->dev); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 820 | |
| 821 | return err; |
| 822 | } |
| 823 | |
| 824 | static int panel_simple_remove(struct device *dev) |
| 825 | { |
| 826 | struct panel_simple *panel = dev_get_drvdata(dev); |
| 827 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 828 | drm_panel_remove(&panel->base); |
Sam Ravnborg | 0fe1564 | 2019-12-07 15:03:31 +0100 | [diff] [blame] | 829 | drm_panel_disable(&panel->base); |
| 830 | drm_panel_unprepare(&panel->base); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 831 | |
Douglas Anderson | a596fcd | 2021-05-17 13:08:58 -0700 | [diff] [blame] | 832 | pm_runtime_dont_use_autosuspend(dev); |
Douglas Anderson | 70e1256 | 2021-04-23 09:58:47 -0700 | [diff] [blame] | 833 | pm_runtime_disable(dev); |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 834 | if (panel->ddc && (!panel->aux || panel->ddc != &panel->aux->ddc)) |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 835 | put_device(&panel->ddc->dev); |
| 836 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 837 | return 0; |
| 838 | } |
| 839 | |
Thierry Reding | d02fd93 | 2014-04-29 17:21:21 +0200 | [diff] [blame] | 840 | static void panel_simple_shutdown(struct device *dev) |
| 841 | { |
| 842 | struct panel_simple *panel = dev_get_drvdata(dev); |
| 843 | |
Sam Ravnborg | 0fe1564 | 2019-12-07 15:03:31 +0100 | [diff] [blame] | 844 | drm_panel_disable(&panel->base); |
| 845 | drm_panel_unprepare(&panel->base); |
Thierry Reding | d02fd93 | 2014-04-29 17:21:21 +0200 | [diff] [blame] | 846 | } |
| 847 | |
Jagan Teki | bca684e | 2020-08-29 22:03:28 +0530 | [diff] [blame] | 848 | static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode = { |
| 849 | .clock = 71100, |
| 850 | .hdisplay = 1280, |
| 851 | .hsync_start = 1280 + 40, |
| 852 | .hsync_end = 1280 + 40 + 80, |
| 853 | .htotal = 1280 + 40 + 80 + 40, |
| 854 | .vdisplay = 800, |
| 855 | .vsync_start = 800 + 3, |
| 856 | .vsync_end = 800 + 3 + 10, |
| 857 | .vtotal = 800 + 3 + 10 + 10, |
| 858 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, |
| 859 | }; |
| 860 | |
| 861 | static const struct panel_desc ampire_am_1280800n3tzqw_t00h = { |
| 862 | .modes = &ire_am_1280800n3tzqw_t00h_mode, |
| 863 | .num_modes = 1, |
| 864 | .bpc = 6, |
| 865 | .size = { |
| 866 | .width = 217, |
| 867 | .height = 136, |
| 868 | }, |
| 869 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
| 870 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 871 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 872 | }; |
| 873 | |
Yannick Fertre | 966fea7 | 2017-03-28 11:44:49 +0200 | [diff] [blame] | 874 | static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = { |
| 875 | .clock = 9000, |
| 876 | .hdisplay = 480, |
| 877 | .hsync_start = 480 + 2, |
| 878 | .hsync_end = 480 + 2 + 41, |
| 879 | .htotal = 480 + 2 + 41 + 2, |
| 880 | .vdisplay = 272, |
| 881 | .vsync_start = 272 + 2, |
| 882 | .vsync_end = 272 + 2 + 10, |
| 883 | .vtotal = 272 + 2 + 10 + 2, |
Yannick Fertre | 966fea7 | 2017-03-28 11:44:49 +0200 | [diff] [blame] | 884 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, |
| 885 | }; |
| 886 | |
| 887 | static const struct panel_desc ampire_am_480272h3tmqw_t01h = { |
| 888 | .modes = &ire_am_480272h3tmqw_t01h_mode, |
| 889 | .num_modes = 1, |
| 890 | .bpc = 8, |
| 891 | .size = { |
| 892 | .width = 105, |
| 893 | .height = 67, |
| 894 | }, |
| 895 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 896 | }; |
| 897 | |
Philipp Zabel | 1c550fa1 | 2015-02-11 18:50:09 +0100 | [diff] [blame] | 898 | static const struct drm_display_mode ampire_am800480r3tmqwa1h_mode = { |
| 899 | .clock = 33333, |
| 900 | .hdisplay = 800, |
| 901 | .hsync_start = 800 + 0, |
| 902 | .hsync_end = 800 + 0 + 255, |
| 903 | .htotal = 800 + 0 + 255 + 0, |
| 904 | .vdisplay = 480, |
| 905 | .vsync_start = 480 + 2, |
| 906 | .vsync_end = 480 + 2 + 45, |
| 907 | .vtotal = 480 + 2 + 45 + 0, |
Philipp Zabel | 1c550fa1 | 2015-02-11 18:50:09 +0100 | [diff] [blame] | 908 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, |
| 909 | }; |
| 910 | |
| 911 | static const struct panel_desc ampire_am800480r3tmqwa1h = { |
| 912 | .modes = &ire_am800480r3tmqwa1h_mode, |
| 913 | .num_modes = 1, |
| 914 | .bpc = 6, |
| 915 | .size = { |
| 916 | .width = 152, |
| 917 | .height = 91, |
| 918 | }, |
| 919 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 920 | }; |
| 921 | |
Sébastien Szymanski | c479450f | 2019-05-07 17:27:12 +0200 | [diff] [blame] | 922 | static const struct display_timing santek_st0700i5y_rbslw_f_timing = { |
| 923 | .pixelclock = { 26400000, 33300000, 46800000 }, |
| 924 | .hactive = { 800, 800, 800 }, |
| 925 | .hfront_porch = { 16, 210, 354 }, |
| 926 | .hback_porch = { 45, 36, 6 }, |
| 927 | .hsync_len = { 1, 10, 40 }, |
| 928 | .vactive = { 480, 480, 480 }, |
| 929 | .vfront_porch = { 7, 22, 147 }, |
| 930 | .vback_porch = { 22, 13, 3 }, |
| 931 | .vsync_len = { 1, 10, 20 }, |
| 932 | .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | |
| 933 | DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE |
| 934 | }; |
| 935 | |
| 936 | static const struct panel_desc armadeus_st0700_adapt = { |
| 937 | .timings = &santek_st0700i5y_rbslw_f_timing, |
| 938 | .num_timings = 1, |
| 939 | .bpc = 6, |
| 940 | .size = { |
| 941 | .width = 154, |
| 942 | .height = 86, |
| 943 | }, |
| 944 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 945 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, |
Sébastien Szymanski | c479450f | 2019-05-07 17:27:12 +0200 | [diff] [blame] | 946 | }; |
| 947 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 948 | static const struct drm_display_mode auo_b101aw03_mode = { |
| 949 | .clock = 51450, |
| 950 | .hdisplay = 1024, |
| 951 | .hsync_start = 1024 + 156, |
| 952 | .hsync_end = 1024 + 156 + 8, |
| 953 | .htotal = 1024 + 156 + 8 + 156, |
| 954 | .vdisplay = 600, |
| 955 | .vsync_start = 600 + 16, |
| 956 | .vsync_end = 600 + 16 + 6, |
| 957 | .vtotal = 600 + 16 + 6 + 16, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 958 | }; |
| 959 | |
| 960 | static const struct panel_desc auo_b101aw03 = { |
| 961 | .modes = &auo_b101aw03_mode, |
| 962 | .num_modes = 1, |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 963 | .bpc = 6, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 964 | .size = { |
| 965 | .width = 223, |
| 966 | .height = 125, |
| 967 | }, |
Dmitry Osipenko | 8556082 | 2020-06-22 01:27:42 +0300 | [diff] [blame] | 968 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 969 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
Dmitry Osipenko | 94f0791 | 2020-06-18 01:27:03 +0300 | [diff] [blame] | 970 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 971 | }; |
| 972 | |
Douglas Anderson | 374bf82 | 2019-07-11 13:34:55 -0700 | [diff] [blame] | 973 | static const struct display_timing auo_b101ean01_timing = { |
| 974 | .pixelclock = { 65300000, 72500000, 75000000 }, |
| 975 | .hactive = { 1280, 1280, 1280 }, |
| 976 | .hfront_porch = { 18, 119, 119 }, |
| 977 | .hback_porch = { 21, 21, 21 }, |
| 978 | .hsync_len = { 32, 32, 32 }, |
| 979 | .vactive = { 800, 800, 800 }, |
| 980 | .vfront_porch = { 4, 4, 4 }, |
| 981 | .vback_porch = { 8, 8, 8 }, |
| 982 | .vsync_len = { 18, 20, 20 }, |
Huang Lin | a531bc3 | 2015-02-28 10:18:58 +0800 | [diff] [blame] | 983 | }; |
| 984 | |
| 985 | static const struct panel_desc auo_b101ean01 = { |
Douglas Anderson | 374bf82 | 2019-07-11 13:34:55 -0700 | [diff] [blame] | 986 | .timings = &auo_b101ean01_timing, |
| 987 | .num_timings = 1, |
Huang Lin | a531bc3 | 2015-02-28 10:18:58 +0800 | [diff] [blame] | 988 | .bpc = 6, |
| 989 | .size = { |
| 990 | .width = 217, |
| 991 | .height = 136, |
| 992 | }, |
| 993 | }; |
| 994 | |
Rob Clark | dac746e | 2014-08-01 17:01:06 -0400 | [diff] [blame] | 995 | static const struct drm_display_mode auo_b101xtn01_mode = { |
| 996 | .clock = 72000, |
| 997 | .hdisplay = 1366, |
| 998 | .hsync_start = 1366 + 20, |
| 999 | .hsync_end = 1366 + 20 + 70, |
| 1000 | .htotal = 1366 + 20 + 70, |
| 1001 | .vdisplay = 768, |
| 1002 | .vsync_start = 768 + 14, |
| 1003 | .vsync_end = 768 + 14 + 42, |
| 1004 | .vtotal = 768 + 14 + 42, |
Rob Clark | dac746e | 2014-08-01 17:01:06 -0400 | [diff] [blame] | 1005 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 1006 | }; |
| 1007 | |
| 1008 | static const struct panel_desc auo_b101xtn01 = { |
| 1009 | .modes = &auo_b101xtn01_mode, |
| 1010 | .num_modes = 1, |
| 1011 | .bpc = 6, |
| 1012 | .size = { |
| 1013 | .width = 223, |
| 1014 | .height = 125, |
| 1015 | }, |
| 1016 | }; |
| 1017 | |
Rob Clark | da458286 | 2020-01-08 15:53:56 -0800 | [diff] [blame] | 1018 | static const struct drm_display_mode auo_b116xak01_mode = { |
| 1019 | .clock = 69300, |
| 1020 | .hdisplay = 1366, |
| 1021 | .hsync_start = 1366 + 48, |
| 1022 | .hsync_end = 1366 + 48 + 32, |
| 1023 | .htotal = 1366 + 48 + 32 + 10, |
| 1024 | .vdisplay = 768, |
| 1025 | .vsync_start = 768 + 4, |
| 1026 | .vsync_end = 768 + 4 + 6, |
| 1027 | .vtotal = 768 + 4 + 6 + 15, |
Rob Clark | da458286 | 2020-01-08 15:53:56 -0800 | [diff] [blame] | 1028 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 1029 | }; |
| 1030 | |
| 1031 | static const struct panel_desc auo_b116xak01 = { |
| 1032 | .modes = &auo_b116xak01_mode, |
| 1033 | .num_modes = 1, |
| 1034 | .bpc = 6, |
| 1035 | .size = { |
| 1036 | .width = 256, |
| 1037 | .height = 144, |
| 1038 | }, |
| 1039 | .delay = { |
| 1040 | .hpd_absent_delay = 200, |
| 1041 | }, |
| 1042 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 1043 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 1044 | }; |
| 1045 | |
Ajay Kumar | e35e305 | 2014-09-01 15:40:02 +0530 | [diff] [blame] | 1046 | static const struct drm_display_mode auo_b116xw03_mode = { |
| 1047 | .clock = 70589, |
| 1048 | .hdisplay = 1366, |
| 1049 | .hsync_start = 1366 + 40, |
| 1050 | .hsync_end = 1366 + 40 + 40, |
| 1051 | .htotal = 1366 + 40 + 40 + 32, |
| 1052 | .vdisplay = 768, |
| 1053 | .vsync_start = 768 + 10, |
| 1054 | .vsync_end = 768 + 10 + 12, |
| 1055 | .vtotal = 768 + 10 + 12 + 6, |
Jitao Shi | 88d3457 | 2020-07-05 17:45:14 +0800 | [diff] [blame] | 1056 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
Ajay Kumar | e35e305 | 2014-09-01 15:40:02 +0530 | [diff] [blame] | 1057 | }; |
| 1058 | |
| 1059 | static const struct panel_desc auo_b116xw03 = { |
| 1060 | .modes = &auo_b116xw03_mode, |
| 1061 | .num_modes = 1, |
| 1062 | .bpc = 6, |
| 1063 | .size = { |
| 1064 | .width = 256, |
| 1065 | .height = 144, |
| 1066 | }, |
Jitao Shi | 88d3457 | 2020-07-05 17:45:14 +0800 | [diff] [blame] | 1067 | .delay = { |
| 1068 | .enable = 400, |
| 1069 | }, |
| 1070 | .bus_flags = DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE, |
| 1071 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 1072 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
Ajay Kumar | e35e305 | 2014-09-01 15:40:02 +0530 | [diff] [blame] | 1073 | }; |
| 1074 | |
Stéphane Marchesin | a333f7a | 2014-05-23 19:27:59 -0700 | [diff] [blame] | 1075 | static const struct drm_display_mode auo_b133xtn01_mode = { |
| 1076 | .clock = 69500, |
| 1077 | .hdisplay = 1366, |
| 1078 | .hsync_start = 1366 + 48, |
| 1079 | .hsync_end = 1366 + 48 + 32, |
| 1080 | .htotal = 1366 + 48 + 32 + 20, |
| 1081 | .vdisplay = 768, |
| 1082 | .vsync_start = 768 + 3, |
| 1083 | .vsync_end = 768 + 3 + 6, |
| 1084 | .vtotal = 768 + 3 + 6 + 13, |
Stéphane Marchesin | a333f7a | 2014-05-23 19:27:59 -0700 | [diff] [blame] | 1085 | }; |
| 1086 | |
| 1087 | static const struct panel_desc auo_b133xtn01 = { |
| 1088 | .modes = &auo_b133xtn01_mode, |
| 1089 | .num_modes = 1, |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 1090 | .bpc = 6, |
Stéphane Marchesin | a333f7a | 2014-05-23 19:27:59 -0700 | [diff] [blame] | 1091 | .size = { |
| 1092 | .width = 293, |
| 1093 | .height = 165, |
| 1094 | }, |
| 1095 | }; |
| 1096 | |
Bjorn Andersson | 93ea7aa | 2021-07-26 10:33:00 -0700 | [diff] [blame] | 1097 | static const struct drm_display_mode auo_b133han05_mode = { |
| 1098 | .clock = 142600, |
| 1099 | .hdisplay = 1920, |
| 1100 | .hsync_start = 1920 + 58, |
| 1101 | .hsync_end = 1920 + 58 + 42, |
| 1102 | .htotal = 1920 + 58 + 42 + 60, |
| 1103 | .vdisplay = 1080, |
| 1104 | .vsync_start = 1080 + 3, |
| 1105 | .vsync_end = 1080 + 3 + 5, |
| 1106 | .vtotal = 1080 + 3 + 5 + 54, |
| 1107 | }; |
| 1108 | |
| 1109 | static const struct panel_desc auo_b133han05 = { |
| 1110 | .modes = &auo_b133han05_mode, |
| 1111 | .num_modes = 1, |
| 1112 | .bpc = 8, |
| 1113 | .size = { |
| 1114 | .width = 293, |
| 1115 | .height = 165, |
| 1116 | }, |
| 1117 | .delay = { |
| 1118 | .prepare = 100, |
| 1119 | .enable = 20, |
| 1120 | .unprepare = 50, |
| 1121 | }, |
| 1122 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 1123 | .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, |
| 1124 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 1125 | }; |
| 1126 | |
Ajay Kumar | 3e51d60 | 2014-07-31 23:12:12 +0530 | [diff] [blame] | 1127 | static const struct drm_display_mode auo_b133htn01_mode = { |
| 1128 | .clock = 150660, |
| 1129 | .hdisplay = 1920, |
| 1130 | .hsync_start = 1920 + 172, |
| 1131 | .hsync_end = 1920 + 172 + 80, |
| 1132 | .htotal = 1920 + 172 + 80 + 60, |
| 1133 | .vdisplay = 1080, |
| 1134 | .vsync_start = 1080 + 25, |
| 1135 | .vsync_end = 1080 + 25 + 10, |
| 1136 | .vtotal = 1080 + 25 + 10 + 10, |
Ajay Kumar | 3e51d60 | 2014-07-31 23:12:12 +0530 | [diff] [blame] | 1137 | }; |
| 1138 | |
| 1139 | static const struct panel_desc auo_b133htn01 = { |
| 1140 | .modes = &auo_b133htn01_mode, |
| 1141 | .num_modes = 1, |
Thierry Reding | d7a839c | 2014-11-06 10:11:01 +0100 | [diff] [blame] | 1142 | .bpc = 6, |
Ajay Kumar | 3e51d60 | 2014-07-31 23:12:12 +0530 | [diff] [blame] | 1143 | .size = { |
| 1144 | .width = 293, |
| 1145 | .height = 165, |
| 1146 | }, |
| 1147 | .delay = { |
| 1148 | .prepare = 105, |
| 1149 | .enable = 20, |
| 1150 | .unprepare = 50, |
| 1151 | }, |
| 1152 | }; |
| 1153 | |
Bjorn Andersson | 93ea7aa | 2021-07-26 10:33:00 -0700 | [diff] [blame] | 1154 | static const struct drm_display_mode auo_b140han06_mode = { |
| 1155 | .clock = 141000, |
| 1156 | .hdisplay = 1920, |
| 1157 | .hsync_start = 1920 + 16, |
| 1158 | .hsync_end = 1920 + 16 + 16, |
| 1159 | .htotal = 1920 + 16 + 16 + 152, |
| 1160 | .vdisplay = 1080, |
| 1161 | .vsync_start = 1080 + 3, |
| 1162 | .vsync_end = 1080 + 3 + 14, |
| 1163 | .vtotal = 1080 + 3 + 14 + 19, |
| 1164 | }; |
| 1165 | |
| 1166 | static const struct panel_desc auo_b140han06 = { |
| 1167 | .modes = &auo_b140han06_mode, |
| 1168 | .num_modes = 1, |
| 1169 | .bpc = 8, |
| 1170 | .size = { |
| 1171 | .width = 309, |
| 1172 | .height = 174, |
| 1173 | }, |
| 1174 | .delay = { |
| 1175 | .prepare = 100, |
| 1176 | .enable = 20, |
| 1177 | .unprepare = 50, |
| 1178 | }, |
| 1179 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 1180 | .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, |
| 1181 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 1182 | }; |
| 1183 | |
Lukasz Majewski | bccfaff | 2018-05-14 21:08:49 +0200 | [diff] [blame] | 1184 | static const struct display_timing auo_g070vvn01_timings = { |
| 1185 | .pixelclock = { 33300000, 34209000, 45000000 }, |
| 1186 | .hactive = { 800, 800, 800 }, |
| 1187 | .hfront_porch = { 20, 40, 200 }, |
| 1188 | .hback_porch = { 87, 40, 1 }, |
| 1189 | .hsync_len = { 1, 48, 87 }, |
| 1190 | .vactive = { 480, 480, 480 }, |
| 1191 | .vfront_porch = { 5, 13, 200 }, |
| 1192 | .vback_porch = { 31, 31, 29 }, |
| 1193 | .vsync_len = { 1, 1, 3 }, |
| 1194 | }; |
| 1195 | |
| 1196 | static const struct panel_desc auo_g070vvn01 = { |
| 1197 | .timings = &auo_g070vvn01_timings, |
| 1198 | .num_timings = 1, |
| 1199 | .bpc = 8, |
| 1200 | .size = { |
| 1201 | .width = 152, |
| 1202 | .height = 91, |
| 1203 | }, |
| 1204 | .delay = { |
| 1205 | .prepare = 200, |
| 1206 | .enable = 50, |
| 1207 | .disable = 50, |
| 1208 | .unprepare = 1000, |
| 1209 | }, |
| 1210 | }; |
| 1211 | |
Alex Gonzalez | 4fb8640 | 2018-10-25 17:09:30 +0200 | [diff] [blame] | 1212 | static const struct drm_display_mode auo_g101evn010_mode = { |
| 1213 | .clock = 68930, |
| 1214 | .hdisplay = 1280, |
| 1215 | .hsync_start = 1280 + 82, |
| 1216 | .hsync_end = 1280 + 82 + 2, |
| 1217 | .htotal = 1280 + 82 + 2 + 84, |
| 1218 | .vdisplay = 800, |
| 1219 | .vsync_start = 800 + 8, |
| 1220 | .vsync_end = 800 + 8 + 2, |
| 1221 | .vtotal = 800 + 8 + 2 + 6, |
Alex Gonzalez | 4fb8640 | 2018-10-25 17:09:30 +0200 | [diff] [blame] | 1222 | }; |
| 1223 | |
| 1224 | static const struct panel_desc auo_g101evn010 = { |
| 1225 | .modes = &auo_g101evn010_mode, |
| 1226 | .num_modes = 1, |
| 1227 | .bpc = 6, |
| 1228 | .size = { |
| 1229 | .width = 216, |
| 1230 | .height = 135, |
| 1231 | }, |
Tomi Valkeinen | 27a46fb | 2020-04-17 14:40:43 +0300 | [diff] [blame] | 1232 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
| 1233 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Alex Gonzalez | 4fb8640 | 2018-10-25 17:09:30 +0200 | [diff] [blame] | 1234 | }; |
| 1235 | |
Christoph Fritz | 4451c28 | 2017-12-16 14:13:36 +0100 | [diff] [blame] | 1236 | static const struct drm_display_mode auo_g104sn02_mode = { |
| 1237 | .clock = 40000, |
| 1238 | .hdisplay = 800, |
| 1239 | .hsync_start = 800 + 40, |
| 1240 | .hsync_end = 800 + 40 + 216, |
| 1241 | .htotal = 800 + 40 + 216 + 128, |
| 1242 | .vdisplay = 600, |
| 1243 | .vsync_start = 600 + 10, |
| 1244 | .vsync_end = 600 + 10 + 35, |
| 1245 | .vtotal = 600 + 10 + 35 + 2, |
Christoph Fritz | 4451c28 | 2017-12-16 14:13:36 +0100 | [diff] [blame] | 1246 | }; |
| 1247 | |
| 1248 | static const struct panel_desc auo_g104sn02 = { |
| 1249 | .modes = &auo_g104sn02_mode, |
| 1250 | .num_modes = 1, |
| 1251 | .bpc = 8, |
| 1252 | .size = { |
| 1253 | .width = 211, |
| 1254 | .height = 158, |
| 1255 | }, |
Stefan Riedmueller | a3050f2 | 2021-06-21 17:09:28 +0200 | [diff] [blame] | 1256 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 1257 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Christoph Fritz | 4451c28 | 2017-12-16 14:13:36 +0100 | [diff] [blame] | 1258 | }; |
| 1259 | |
Sebastian Reichel | 03e909a | 2020-04-15 19:27:25 +0200 | [diff] [blame] | 1260 | static const struct drm_display_mode auo_g121ean01_mode = { |
| 1261 | .clock = 66700, |
| 1262 | .hdisplay = 1280, |
| 1263 | .hsync_start = 1280 + 58, |
| 1264 | .hsync_end = 1280 + 58 + 8, |
| 1265 | .htotal = 1280 + 58 + 8 + 70, |
| 1266 | .vdisplay = 800, |
| 1267 | .vsync_start = 800 + 6, |
| 1268 | .vsync_end = 800 + 6 + 4, |
| 1269 | .vtotal = 800 + 6 + 4 + 10, |
Sebastian Reichel | 03e909a | 2020-04-15 19:27:25 +0200 | [diff] [blame] | 1270 | }; |
| 1271 | |
| 1272 | static const struct panel_desc auo_g121ean01 = { |
| 1273 | .modes = &auo_g121ean01_mode, |
| 1274 | .num_modes = 1, |
| 1275 | .bpc = 8, |
| 1276 | .size = { |
| 1277 | .width = 261, |
| 1278 | .height = 163, |
| 1279 | }, |
| 1280 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 1281 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 1282 | }; |
| 1283 | |
Lucas Stach | 697035c | 2016-11-30 14:09:55 +0100 | [diff] [blame] | 1284 | static const struct display_timing auo_g133han01_timings = { |
| 1285 | .pixelclock = { 134000000, 141200000, 149000000 }, |
| 1286 | .hactive = { 1920, 1920, 1920 }, |
| 1287 | .hfront_porch = { 39, 58, 77 }, |
| 1288 | .hback_porch = { 59, 88, 117 }, |
| 1289 | .hsync_len = { 28, 42, 56 }, |
| 1290 | .vactive = { 1080, 1080, 1080 }, |
| 1291 | .vfront_porch = { 3, 8, 11 }, |
| 1292 | .vback_porch = { 5, 14, 19 }, |
| 1293 | .vsync_len = { 4, 14, 19 }, |
| 1294 | }; |
| 1295 | |
| 1296 | static const struct panel_desc auo_g133han01 = { |
| 1297 | .timings = &auo_g133han01_timings, |
| 1298 | .num_timings = 1, |
| 1299 | .bpc = 8, |
| 1300 | .size = { |
| 1301 | .width = 293, |
| 1302 | .height = 165, |
| 1303 | }, |
| 1304 | .delay = { |
| 1305 | .prepare = 200, |
| 1306 | .enable = 50, |
| 1307 | .disable = 50, |
| 1308 | .unprepare = 1000, |
| 1309 | }, |
| 1310 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 1311 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lucas Stach | 697035c | 2016-11-30 14:09:55 +0100 | [diff] [blame] | 1312 | }; |
| 1313 | |
Sebastian Reichel | d9ccd1f | 2020-04-15 19:27:24 +0200 | [diff] [blame] | 1314 | static const struct drm_display_mode auo_g156xtn01_mode = { |
| 1315 | .clock = 76000, |
| 1316 | .hdisplay = 1366, |
| 1317 | .hsync_start = 1366 + 33, |
| 1318 | .hsync_end = 1366 + 33 + 67, |
| 1319 | .htotal = 1560, |
| 1320 | .vdisplay = 768, |
| 1321 | .vsync_start = 768 + 4, |
| 1322 | .vsync_end = 768 + 4 + 4, |
| 1323 | .vtotal = 806, |
Sebastian Reichel | d9ccd1f | 2020-04-15 19:27:24 +0200 | [diff] [blame] | 1324 | }; |
| 1325 | |
| 1326 | static const struct panel_desc auo_g156xtn01 = { |
| 1327 | .modes = &auo_g156xtn01_mode, |
| 1328 | .num_modes = 1, |
| 1329 | .bpc = 8, |
| 1330 | .size = { |
| 1331 | .width = 344, |
| 1332 | .height = 194, |
| 1333 | }, |
| 1334 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 1335 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 1336 | }; |
| 1337 | |
Lucas Stach | 8c31f60 | 2016-11-30 14:09:56 +0100 | [diff] [blame] | 1338 | static const struct display_timing auo_g185han01_timings = { |
| 1339 | .pixelclock = { 120000000, 144000000, 175000000 }, |
| 1340 | .hactive = { 1920, 1920, 1920 }, |
Lucas Stach | f8c6bfc | 2019-07-10 15:07:40 +0200 | [diff] [blame] | 1341 | .hfront_porch = { 36, 120, 148 }, |
| 1342 | .hback_porch = { 24, 88, 108 }, |
| 1343 | .hsync_len = { 20, 48, 64 }, |
Lucas Stach | 8c31f60 | 2016-11-30 14:09:56 +0100 | [diff] [blame] | 1344 | .vactive = { 1080, 1080, 1080 }, |
| 1345 | .vfront_porch = { 6, 10, 40 }, |
| 1346 | .vback_porch = { 2, 5, 20 }, |
| 1347 | .vsync_len = { 2, 5, 20 }, |
| 1348 | }; |
| 1349 | |
| 1350 | static const struct panel_desc auo_g185han01 = { |
| 1351 | .timings = &auo_g185han01_timings, |
| 1352 | .num_timings = 1, |
| 1353 | .bpc = 8, |
| 1354 | .size = { |
| 1355 | .width = 409, |
| 1356 | .height = 230, |
| 1357 | }, |
| 1358 | .delay = { |
| 1359 | .prepare = 50, |
| 1360 | .enable = 200, |
| 1361 | .disable = 110, |
| 1362 | .unprepare = 1000, |
| 1363 | }, |
| 1364 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 1365 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lucas Stach | 8c31f60 | 2016-11-30 14:09:56 +0100 | [diff] [blame] | 1366 | }; |
| 1367 | |
Sebastian Reichel | 2f7b832 | 2020-04-15 19:27:23 +0200 | [diff] [blame] | 1368 | static const struct display_timing auo_g190ean01_timings = { |
| 1369 | .pixelclock = { 90000000, 108000000, 135000000 }, |
| 1370 | .hactive = { 1280, 1280, 1280 }, |
| 1371 | .hfront_porch = { 126, 184, 1266 }, |
| 1372 | .hback_porch = { 84, 122, 844 }, |
| 1373 | .hsync_len = { 70, 102, 704 }, |
| 1374 | .vactive = { 1024, 1024, 1024 }, |
| 1375 | .vfront_porch = { 4, 26, 76 }, |
| 1376 | .vback_porch = { 2, 8, 25 }, |
| 1377 | .vsync_len = { 2, 8, 25 }, |
| 1378 | }; |
| 1379 | |
| 1380 | static const struct panel_desc auo_g190ean01 = { |
| 1381 | .timings = &auo_g190ean01_timings, |
| 1382 | .num_timings = 1, |
| 1383 | .bpc = 8, |
| 1384 | .size = { |
| 1385 | .width = 376, |
| 1386 | .height = 301, |
| 1387 | }, |
| 1388 | .delay = { |
| 1389 | .prepare = 50, |
| 1390 | .enable = 200, |
| 1391 | .disable = 110, |
| 1392 | .unprepare = 1000, |
| 1393 | }, |
| 1394 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 1395 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 1396 | }; |
| 1397 | |
Lucas Stach | 70c0d5b | 2017-06-08 20:07:58 +0200 | [diff] [blame] | 1398 | static const struct display_timing auo_p320hvn03_timings = { |
| 1399 | .pixelclock = { 106000000, 148500000, 164000000 }, |
| 1400 | .hactive = { 1920, 1920, 1920 }, |
| 1401 | .hfront_porch = { 25, 50, 130 }, |
| 1402 | .hback_porch = { 25, 50, 130 }, |
| 1403 | .hsync_len = { 20, 40, 105 }, |
| 1404 | .vactive = { 1080, 1080, 1080 }, |
| 1405 | .vfront_porch = { 8, 17, 150 }, |
| 1406 | .vback_porch = { 8, 17, 150 }, |
| 1407 | .vsync_len = { 4, 11, 100 }, |
| 1408 | }; |
| 1409 | |
| 1410 | static const struct panel_desc auo_p320hvn03 = { |
| 1411 | .timings = &auo_p320hvn03_timings, |
| 1412 | .num_timings = 1, |
| 1413 | .bpc = 8, |
| 1414 | .size = { |
| 1415 | .width = 698, |
| 1416 | .height = 393, |
| 1417 | }, |
| 1418 | .delay = { |
| 1419 | .prepare = 1, |
| 1420 | .enable = 450, |
| 1421 | .unprepare = 500, |
| 1422 | }, |
Lucas Stach | 2554f15 | 2018-04-11 17:27:41 +0200 | [diff] [blame] | 1423 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 1424 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lucas Stach | 70c0d5b | 2017-06-08 20:07:58 +0200 | [diff] [blame] | 1425 | }; |
| 1426 | |
Haixia Shi | 7ee933a | 2016-10-11 14:59:16 -0700 | [diff] [blame] | 1427 | static const struct drm_display_mode auo_t215hvn01_mode = { |
| 1428 | .clock = 148800, |
| 1429 | .hdisplay = 1920, |
| 1430 | .hsync_start = 1920 + 88, |
| 1431 | .hsync_end = 1920 + 88 + 44, |
| 1432 | .htotal = 1920 + 88 + 44 + 148, |
| 1433 | .vdisplay = 1080, |
| 1434 | .vsync_start = 1080 + 4, |
| 1435 | .vsync_end = 1080 + 4 + 5, |
| 1436 | .vtotal = 1080 + 4 + 5 + 36, |
Haixia Shi | 7ee933a | 2016-10-11 14:59:16 -0700 | [diff] [blame] | 1437 | }; |
| 1438 | |
| 1439 | static const struct panel_desc auo_t215hvn01 = { |
| 1440 | .modes = &auo_t215hvn01_mode, |
| 1441 | .num_modes = 1, |
| 1442 | .bpc = 8, |
| 1443 | .size = { |
| 1444 | .width = 430, |
| 1445 | .height = 270, |
| 1446 | }, |
| 1447 | .delay = { |
| 1448 | .disable = 5, |
| 1449 | .unprepare = 1000, |
| 1450 | } |
| 1451 | }; |
| 1452 | |
Philipp Zabel | d47df63 | 2014-12-18 16:43:43 +0100 | [diff] [blame] | 1453 | static const struct drm_display_mode avic_tm070ddh03_mode = { |
| 1454 | .clock = 51200, |
| 1455 | .hdisplay = 1024, |
| 1456 | .hsync_start = 1024 + 160, |
| 1457 | .hsync_end = 1024 + 160 + 4, |
| 1458 | .htotal = 1024 + 160 + 4 + 156, |
| 1459 | .vdisplay = 600, |
| 1460 | .vsync_start = 600 + 17, |
| 1461 | .vsync_end = 600 + 17 + 1, |
| 1462 | .vtotal = 600 + 17 + 1 + 17, |
Philipp Zabel | d47df63 | 2014-12-18 16:43:43 +0100 | [diff] [blame] | 1463 | }; |
| 1464 | |
| 1465 | static const struct panel_desc avic_tm070ddh03 = { |
| 1466 | .modes = &avic_tm070ddh03_mode, |
| 1467 | .num_modes = 1, |
| 1468 | .bpc = 8, |
| 1469 | .size = { |
| 1470 | .width = 154, |
| 1471 | .height = 90, |
| 1472 | }, |
| 1473 | .delay = { |
| 1474 | .prepare = 20, |
| 1475 | .enable = 200, |
| 1476 | .disable = 200, |
| 1477 | }, |
| 1478 | }; |
| 1479 | |
Chen-Yu Tsai | 7ad8b41 | 2018-09-07 12:19:46 +0800 | [diff] [blame] | 1480 | static const struct drm_display_mode bananapi_s070wv20_ct16_mode = { |
| 1481 | .clock = 30000, |
| 1482 | .hdisplay = 800, |
| 1483 | .hsync_start = 800 + 40, |
| 1484 | .hsync_end = 800 + 40 + 48, |
| 1485 | .htotal = 800 + 40 + 48 + 40, |
| 1486 | .vdisplay = 480, |
| 1487 | .vsync_start = 480 + 13, |
| 1488 | .vsync_end = 480 + 13 + 3, |
| 1489 | .vtotal = 480 + 13 + 3 + 29, |
| 1490 | }; |
| 1491 | |
| 1492 | static const struct panel_desc bananapi_s070wv20_ct16 = { |
| 1493 | .modes = &bananapi_s070wv20_ct16_mode, |
| 1494 | .num_modes = 1, |
| 1495 | .bpc = 6, |
| 1496 | .size = { |
| 1497 | .width = 154, |
| 1498 | .height = 86, |
| 1499 | }, |
| 1500 | }; |
| 1501 | |
Andrzej Hajda | ae8cf41 | 2018-06-19 10:19:26 +0200 | [diff] [blame] | 1502 | static const struct drm_display_mode boe_hv070wsa_mode = { |
Andrzej Hajda | e077e2f | 2018-07-25 17:46:43 +0200 | [diff] [blame] | 1503 | .clock = 42105, |
Andrzej Hajda | ae8cf41 | 2018-06-19 10:19:26 +0200 | [diff] [blame] | 1504 | .hdisplay = 1024, |
Andrzej Hajda | e077e2f | 2018-07-25 17:46:43 +0200 | [diff] [blame] | 1505 | .hsync_start = 1024 + 30, |
| 1506 | .hsync_end = 1024 + 30 + 30, |
| 1507 | .htotal = 1024 + 30 + 30 + 30, |
Andrzej Hajda | ae8cf41 | 2018-06-19 10:19:26 +0200 | [diff] [blame] | 1508 | .vdisplay = 600, |
Andrzej Hajda | e077e2f | 2018-07-25 17:46:43 +0200 | [diff] [blame] | 1509 | .vsync_start = 600 + 10, |
| 1510 | .vsync_end = 600 + 10 + 10, |
| 1511 | .vtotal = 600 + 10 + 10 + 10, |
Andrzej Hajda | ae8cf41 | 2018-06-19 10:19:26 +0200 | [diff] [blame] | 1512 | }; |
| 1513 | |
| 1514 | static const struct panel_desc boe_hv070wsa = { |
| 1515 | .modes = &boe_hv070wsa_mode, |
| 1516 | .num_modes = 1, |
Sam Ravnborg | 2a5c2ff | 2020-04-13 20:30:05 +0200 | [diff] [blame] | 1517 | .bpc = 8, |
Andrzej Hajda | ae8cf41 | 2018-06-19 10:19:26 +0200 | [diff] [blame] | 1518 | .size = { |
| 1519 | .width = 154, |
| 1520 | .height = 90, |
| 1521 | }, |
Sam Ravnborg | 2a5c2ff | 2020-04-13 20:30:05 +0200 | [diff] [blame] | 1522 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 1523 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
| 1524 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Andrzej Hajda | ae8cf41 | 2018-06-19 10:19:26 +0200 | [diff] [blame] | 1525 | }; |
| 1526 | |
Caesar Wang | cac1a41 | 2016-12-14 11:19:56 +0800 | [diff] [blame] | 1527 | static const struct drm_display_mode boe_nv101wxmn51_modes[] = { |
| 1528 | { |
| 1529 | .clock = 71900, |
| 1530 | .hdisplay = 1280, |
| 1531 | .hsync_start = 1280 + 48, |
| 1532 | .hsync_end = 1280 + 48 + 32, |
| 1533 | .htotal = 1280 + 48 + 32 + 80, |
| 1534 | .vdisplay = 800, |
| 1535 | .vsync_start = 800 + 3, |
| 1536 | .vsync_end = 800 + 3 + 5, |
| 1537 | .vtotal = 800 + 3 + 5 + 24, |
Caesar Wang | cac1a41 | 2016-12-14 11:19:56 +0800 | [diff] [blame] | 1538 | }, |
| 1539 | { |
| 1540 | .clock = 57500, |
| 1541 | .hdisplay = 1280, |
| 1542 | .hsync_start = 1280 + 48, |
| 1543 | .hsync_end = 1280 + 48 + 32, |
| 1544 | .htotal = 1280 + 48 + 32 + 80, |
| 1545 | .vdisplay = 800, |
| 1546 | .vsync_start = 800 + 3, |
| 1547 | .vsync_end = 800 + 3 + 5, |
| 1548 | .vtotal = 800 + 3 + 5 + 24, |
Caesar Wang | cac1a41 | 2016-12-14 11:19:56 +0800 | [diff] [blame] | 1549 | }, |
| 1550 | }; |
| 1551 | |
| 1552 | static const struct panel_desc boe_nv101wxmn51 = { |
| 1553 | .modes = boe_nv101wxmn51_modes, |
| 1554 | .num_modes = ARRAY_SIZE(boe_nv101wxmn51_modes), |
| 1555 | .bpc = 8, |
| 1556 | .size = { |
| 1557 | .width = 217, |
| 1558 | .height = 136, |
| 1559 | }, |
| 1560 | .delay = { |
| 1561 | .prepare = 210, |
| 1562 | .enable = 50, |
| 1563 | .unprepare = 160, |
| 1564 | }, |
| 1565 | }; |
| 1566 | |
Douglas Anderson | a96ee0f | 2020-11-09 17:00:58 -0800 | [diff] [blame] | 1567 | static const struct drm_display_mode boe_nv110wtm_n61_modes[] = { |
| 1568 | { |
| 1569 | .clock = 207800, |
| 1570 | .hdisplay = 2160, |
| 1571 | .hsync_start = 2160 + 48, |
| 1572 | .hsync_end = 2160 + 48 + 32, |
| 1573 | .htotal = 2160 + 48 + 32 + 100, |
| 1574 | .vdisplay = 1440, |
| 1575 | .vsync_start = 1440 + 3, |
| 1576 | .vsync_end = 1440 + 3 + 6, |
| 1577 | .vtotal = 1440 + 3 + 6 + 31, |
Douglas Anderson | 9dbf1a4 | 2020-12-01 12:56:11 -0800 | [diff] [blame] | 1578 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC, |
Douglas Anderson | a96ee0f | 2020-11-09 17:00:58 -0800 | [diff] [blame] | 1579 | }, |
| 1580 | { |
| 1581 | .clock = 138500, |
| 1582 | .hdisplay = 2160, |
| 1583 | .hsync_start = 2160 + 48, |
| 1584 | .hsync_end = 2160 + 48 + 32, |
| 1585 | .htotal = 2160 + 48 + 32 + 100, |
| 1586 | .vdisplay = 1440, |
| 1587 | .vsync_start = 1440 + 3, |
| 1588 | .vsync_end = 1440 + 3 + 6, |
| 1589 | .vtotal = 1440 + 3 + 6 + 31, |
Douglas Anderson | 9dbf1a4 | 2020-12-01 12:56:11 -0800 | [diff] [blame] | 1590 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC, |
Douglas Anderson | a96ee0f | 2020-11-09 17:00:58 -0800 | [diff] [blame] | 1591 | }, |
| 1592 | }; |
| 1593 | |
| 1594 | static const struct panel_desc boe_nv110wtm_n61 = { |
| 1595 | .modes = boe_nv110wtm_n61_modes, |
| 1596 | .num_modes = ARRAY_SIZE(boe_nv110wtm_n61_modes), |
| 1597 | .bpc = 8, |
| 1598 | .size = { |
| 1599 | .width = 233, |
| 1600 | .height = 155, |
| 1601 | }, |
| 1602 | .delay = { |
| 1603 | .hpd_absent_delay = 200, |
| 1604 | .prepare_to_enable = 80, |
Douglas Anderson | 67cc24a | 2021-02-22 08:17:24 -0800 | [diff] [blame] | 1605 | .enable = 50, |
Douglas Anderson | a96ee0f | 2020-11-09 17:00:58 -0800 | [diff] [blame] | 1606 | .unprepare = 500, |
| 1607 | }, |
| 1608 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 1609 | .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, |
| 1610 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 1611 | }; |
| 1612 | |
Douglas Anderson | cfe40d0 | 2020-05-08 15:59:02 -0700 | [diff] [blame] | 1613 | /* Also used for boe_nv133fhm_n62 */ |
Bjorn Andersson | b0c664c | 2020-04-20 14:57:42 -0700 | [diff] [blame] | 1614 | static const struct drm_display_mode boe_nv133fhm_n61_modes = { |
| 1615 | .clock = 147840, |
| 1616 | .hdisplay = 1920, |
| 1617 | .hsync_start = 1920 + 48, |
| 1618 | .hsync_end = 1920 + 48 + 32, |
| 1619 | .htotal = 1920 + 48 + 32 + 200, |
| 1620 | .vdisplay = 1080, |
| 1621 | .vsync_start = 1080 + 3, |
| 1622 | .vsync_end = 1080 + 3 + 6, |
| 1623 | .vtotal = 1080 + 3 + 6 + 31, |
Stephen Boyd | ab6fd5d | 2020-11-06 10:23:33 -0800 | [diff] [blame] | 1624 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC, |
Bjorn Andersson | b0c664c | 2020-04-20 14:57:42 -0700 | [diff] [blame] | 1625 | }; |
| 1626 | |
Douglas Anderson | cfe40d0 | 2020-05-08 15:59:02 -0700 | [diff] [blame] | 1627 | /* Also used for boe_nv133fhm_n62 */ |
Bjorn Andersson | b0c664c | 2020-04-20 14:57:42 -0700 | [diff] [blame] | 1628 | static const struct panel_desc boe_nv133fhm_n61 = { |
| 1629 | .modes = &boe_nv133fhm_n61_modes, |
| 1630 | .num_modes = 1, |
Douglas Anderson | 9694d9c | 2020-05-08 15:59:00 -0700 | [diff] [blame] | 1631 | .bpc = 6, |
Bjorn Andersson | b0c664c | 2020-04-20 14:57:42 -0700 | [diff] [blame] | 1632 | .size = { |
Douglas Anderson | 9694d9c | 2020-05-08 15:59:00 -0700 | [diff] [blame] | 1633 | .width = 294, |
| 1634 | .height = 165, |
Bjorn Andersson | b0c664c | 2020-04-20 14:57:42 -0700 | [diff] [blame] | 1635 | }, |
| 1636 | .delay = { |
Douglas Anderson | 667d73d | 2020-07-16 13:21:22 -0700 | [diff] [blame] | 1637 | /* |
| 1638 | * When power is first given to the panel there's a short |
| 1639 | * spike on the HPD line. It was explained that this spike |
| 1640 | * was until the TCON data download was complete. On |
| 1641 | * one system this was measured at 8 ms. We'll put 15 ms |
| 1642 | * in the prepare delay just to be safe and take it away |
| 1643 | * from the hpd_absent_delay (which would otherwise be 200 ms) |
| 1644 | * to handle this. That means: |
| 1645 | * - If HPD isn't hooked up you still have 200 ms delay. |
| 1646 | * - If HPD is hooked up we won't try to look at it for the |
| 1647 | * first 15 ms. |
| 1648 | */ |
| 1649 | .prepare = 15, |
| 1650 | .hpd_absent_delay = 185, |
| 1651 | |
Bjorn Andersson | b0c664c | 2020-04-20 14:57:42 -0700 | [diff] [blame] | 1652 | .unprepare = 500, |
| 1653 | }, |
| 1654 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 1655 | .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, |
| 1656 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 1657 | }; |
| 1658 | |
Tobias Schramm | a511981 | 2020-01-09 12:29:52 +0100 | [diff] [blame] | 1659 | static const struct drm_display_mode boe_nv140fhmn49_modes[] = { |
| 1660 | { |
| 1661 | .clock = 148500, |
| 1662 | .hdisplay = 1920, |
| 1663 | .hsync_start = 1920 + 48, |
| 1664 | .hsync_end = 1920 + 48 + 32, |
| 1665 | .htotal = 2200, |
| 1666 | .vdisplay = 1080, |
| 1667 | .vsync_start = 1080 + 3, |
| 1668 | .vsync_end = 1080 + 3 + 5, |
| 1669 | .vtotal = 1125, |
Tobias Schramm | a511981 | 2020-01-09 12:29:52 +0100 | [diff] [blame] | 1670 | }, |
| 1671 | }; |
| 1672 | |
| 1673 | static const struct panel_desc boe_nv140fhmn49 = { |
| 1674 | .modes = boe_nv140fhmn49_modes, |
| 1675 | .num_modes = ARRAY_SIZE(boe_nv140fhmn49_modes), |
| 1676 | .bpc = 6, |
| 1677 | .size = { |
| 1678 | .width = 309, |
| 1679 | .height = 174, |
| 1680 | }, |
| 1681 | .delay = { |
| 1682 | .prepare = 210, |
| 1683 | .enable = 50, |
| 1684 | .unprepare = 160, |
| 1685 | }, |
| 1686 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 1687 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 1688 | }; |
| 1689 | |
Giulio Benetti | e58edce | 2018-07-31 01:11:16 +0200 | [diff] [blame] | 1690 | static const struct drm_display_mode cdtech_s043wq26h_ct7_mode = { |
| 1691 | .clock = 9000, |
| 1692 | .hdisplay = 480, |
| 1693 | .hsync_start = 480 + 5, |
| 1694 | .hsync_end = 480 + 5 + 5, |
| 1695 | .htotal = 480 + 5 + 5 + 40, |
| 1696 | .vdisplay = 272, |
| 1697 | .vsync_start = 272 + 8, |
| 1698 | .vsync_end = 272 + 8 + 8, |
| 1699 | .vtotal = 272 + 8 + 8 + 8, |
Giulio Benetti | e58edce | 2018-07-31 01:11:16 +0200 | [diff] [blame] | 1700 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 1701 | }; |
| 1702 | |
| 1703 | static const struct panel_desc cdtech_s043wq26h_ct7 = { |
| 1704 | .modes = &cdtech_s043wq26h_ct7_mode, |
| 1705 | .num_modes = 1, |
| 1706 | .bpc = 8, |
| 1707 | .size = { |
| 1708 | .width = 95, |
| 1709 | .height = 54, |
| 1710 | }, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 1711 | .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, |
Giulio Benetti | e58edce | 2018-07-31 01:11:16 +0200 | [diff] [blame] | 1712 | }; |
| 1713 | |
Michael Krummsdorf | 0e3b67f | 2020-06-12 09:22:18 +0200 | [diff] [blame] | 1714 | /* S070PWS19HP-FC21 2017/04/22 */ |
| 1715 | static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = { |
| 1716 | .clock = 51200, |
| 1717 | .hdisplay = 1024, |
| 1718 | .hsync_start = 1024 + 160, |
| 1719 | .hsync_end = 1024 + 160 + 20, |
| 1720 | .htotal = 1024 + 160 + 20 + 140, |
| 1721 | .vdisplay = 600, |
| 1722 | .vsync_start = 600 + 12, |
| 1723 | .vsync_end = 600 + 12 + 3, |
| 1724 | .vtotal = 600 + 12 + 3 + 20, |
| 1725 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 1726 | }; |
| 1727 | |
| 1728 | static const struct panel_desc cdtech_s070pws19hp_fc21 = { |
| 1729 | .modes = &cdtech_s070pws19hp_fc21_mode, |
| 1730 | .num_modes = 1, |
| 1731 | .bpc = 6, |
| 1732 | .size = { |
| 1733 | .width = 154, |
| 1734 | .height = 86, |
| 1735 | }, |
| 1736 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 1737 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, |
Michael Krummsdorf | 0e3b67f | 2020-06-12 09:22:18 +0200 | [diff] [blame] | 1738 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 1739 | }; |
| 1740 | |
| 1741 | /* S070SWV29HG-DC44 2017/09/21 */ |
| 1742 | static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = { |
| 1743 | .clock = 33300, |
| 1744 | .hdisplay = 800, |
| 1745 | .hsync_start = 800 + 210, |
| 1746 | .hsync_end = 800 + 210 + 2, |
| 1747 | .htotal = 800 + 210 + 2 + 44, |
| 1748 | .vdisplay = 480, |
| 1749 | .vsync_start = 480 + 22, |
| 1750 | .vsync_end = 480 + 22 + 2, |
| 1751 | .vtotal = 480 + 22 + 2 + 21, |
| 1752 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 1753 | }; |
| 1754 | |
| 1755 | static const struct panel_desc cdtech_s070swv29hg_dc44 = { |
| 1756 | .modes = &cdtech_s070swv29hg_dc44_mode, |
| 1757 | .num_modes = 1, |
| 1758 | .bpc = 6, |
| 1759 | .size = { |
| 1760 | .width = 154, |
| 1761 | .height = 86, |
| 1762 | }, |
| 1763 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 1764 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, |
Michael Krummsdorf | 0e3b67f | 2020-06-12 09:22:18 +0200 | [diff] [blame] | 1765 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 1766 | }; |
| 1767 | |
Giulio Benetti | 982f944 | 2018-07-31 01:11:14 +0200 | [diff] [blame] | 1768 | static const struct drm_display_mode cdtech_s070wv95_ct16_mode = { |
| 1769 | .clock = 35000, |
| 1770 | .hdisplay = 800, |
| 1771 | .hsync_start = 800 + 40, |
| 1772 | .hsync_end = 800 + 40 + 40, |
| 1773 | .htotal = 800 + 40 + 40 + 48, |
| 1774 | .vdisplay = 480, |
| 1775 | .vsync_start = 480 + 29, |
| 1776 | .vsync_end = 480 + 29 + 13, |
| 1777 | .vtotal = 480 + 29 + 13 + 3, |
Giulio Benetti | 982f944 | 2018-07-31 01:11:14 +0200 | [diff] [blame] | 1778 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 1779 | }; |
| 1780 | |
| 1781 | static const struct panel_desc cdtech_s070wv95_ct16 = { |
| 1782 | .modes = &cdtech_s070wv95_ct16_mode, |
| 1783 | .num_modes = 1, |
| 1784 | .bpc = 8, |
| 1785 | .size = { |
| 1786 | .width = 154, |
| 1787 | .height = 85, |
| 1788 | }, |
| 1789 | }; |
| 1790 | |
Marek Vasut | 07c913c | 2020-07-28 22:12:42 +0200 | [diff] [blame] | 1791 | static const struct display_timing chefree_ch101olhlwh_002_timing = { |
| 1792 | .pixelclock = { 68900000, 71100000, 73400000 }, |
| 1793 | .hactive = { 1280, 1280, 1280 }, |
| 1794 | .hfront_porch = { 65, 80, 95 }, |
| 1795 | .hback_porch = { 64, 79, 94 }, |
| 1796 | .hsync_len = { 1, 1, 1 }, |
| 1797 | .vactive = { 800, 800, 800 }, |
| 1798 | .vfront_porch = { 7, 11, 14 }, |
| 1799 | .vback_porch = { 7, 11, 14 }, |
| 1800 | .vsync_len = { 1, 1, 1 }, |
| 1801 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 1802 | }; |
| 1803 | |
| 1804 | static const struct panel_desc chefree_ch101olhlwh_002 = { |
| 1805 | .timings = &chefree_ch101olhlwh_002_timing, |
| 1806 | .num_timings = 1, |
| 1807 | .bpc = 8, |
| 1808 | .size = { |
| 1809 | .width = 217, |
| 1810 | .height = 135, |
| 1811 | }, |
| 1812 | .delay = { |
| 1813 | .enable = 200, |
| 1814 | .disable = 200, |
| 1815 | }, |
| 1816 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
| 1817 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 1818 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 1819 | }; |
| 1820 | |
Randy Li | 2cb35c8 | 2016-09-20 03:02:51 +0800 | [diff] [blame] | 1821 | static const struct drm_display_mode chunghwa_claa070wp03xg_mode = { |
| 1822 | .clock = 66770, |
| 1823 | .hdisplay = 800, |
| 1824 | .hsync_start = 800 + 49, |
| 1825 | .hsync_end = 800 + 49 + 33, |
| 1826 | .htotal = 800 + 49 + 33 + 17, |
| 1827 | .vdisplay = 1280, |
| 1828 | .vsync_start = 1280 + 1, |
| 1829 | .vsync_end = 1280 + 1 + 7, |
| 1830 | .vtotal = 1280 + 1 + 7 + 15, |
Randy Li | 2cb35c8 | 2016-09-20 03:02:51 +0800 | [diff] [blame] | 1831 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 1832 | }; |
| 1833 | |
| 1834 | static const struct panel_desc chunghwa_claa070wp03xg = { |
| 1835 | .modes = &chunghwa_claa070wp03xg_mode, |
| 1836 | .num_modes = 1, |
| 1837 | .bpc = 6, |
| 1838 | .size = { |
| 1839 | .width = 94, |
| 1840 | .height = 150, |
| 1841 | }, |
Dmitry Osipenko | 8556082 | 2020-06-22 01:27:42 +0300 | [diff] [blame] | 1842 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 1843 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
Dmitry Osipenko | 94f0791 | 2020-06-18 01:27:03 +0300 | [diff] [blame] | 1844 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Randy Li | 2cb35c8 | 2016-09-20 03:02:51 +0800 | [diff] [blame] | 1845 | }; |
| 1846 | |
Stephen Warren | 4c93075 | 2014-01-07 16:46:26 -0700 | [diff] [blame] | 1847 | static const struct drm_display_mode chunghwa_claa101wa01a_mode = { |
| 1848 | .clock = 72070, |
| 1849 | .hdisplay = 1366, |
| 1850 | .hsync_start = 1366 + 58, |
| 1851 | .hsync_end = 1366 + 58 + 58, |
| 1852 | .htotal = 1366 + 58 + 58 + 58, |
| 1853 | .vdisplay = 768, |
| 1854 | .vsync_start = 768 + 4, |
| 1855 | .vsync_end = 768 + 4 + 4, |
| 1856 | .vtotal = 768 + 4 + 4 + 4, |
Stephen Warren | 4c93075 | 2014-01-07 16:46:26 -0700 | [diff] [blame] | 1857 | }; |
| 1858 | |
| 1859 | static const struct panel_desc chunghwa_claa101wa01a = { |
| 1860 | .modes = &chunghwa_claa101wa01a_mode, |
| 1861 | .num_modes = 1, |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 1862 | .bpc = 6, |
Stephen Warren | 4c93075 | 2014-01-07 16:46:26 -0700 | [diff] [blame] | 1863 | .size = { |
| 1864 | .width = 220, |
| 1865 | .height = 120, |
| 1866 | }, |
Dmitry Osipenko | 8556082 | 2020-06-22 01:27:42 +0300 | [diff] [blame] | 1867 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 1868 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
Dmitry Osipenko | 94f0791 | 2020-06-18 01:27:03 +0300 | [diff] [blame] | 1869 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Stephen Warren | 4c93075 | 2014-01-07 16:46:26 -0700 | [diff] [blame] | 1870 | }; |
| 1871 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 1872 | static const struct drm_display_mode chunghwa_claa101wb01_mode = { |
| 1873 | .clock = 69300, |
| 1874 | .hdisplay = 1366, |
| 1875 | .hsync_start = 1366 + 48, |
| 1876 | .hsync_end = 1366 + 48 + 32, |
| 1877 | .htotal = 1366 + 48 + 32 + 20, |
| 1878 | .vdisplay = 768, |
| 1879 | .vsync_start = 768 + 16, |
| 1880 | .vsync_end = 768 + 16 + 8, |
| 1881 | .vtotal = 768 + 16 + 8 + 16, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 1882 | }; |
| 1883 | |
| 1884 | static const struct panel_desc chunghwa_claa101wb01 = { |
| 1885 | .modes = &chunghwa_claa101wb01_mode, |
| 1886 | .num_modes = 1, |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 1887 | .bpc = 6, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 1888 | .size = { |
| 1889 | .width = 223, |
| 1890 | .height = 125, |
| 1891 | }, |
Dmitry Osipenko | 8556082 | 2020-06-22 01:27:42 +0300 | [diff] [blame] | 1892 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 1893 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
Dmitry Osipenko | 94f0791 | 2020-06-18 01:27:03 +0300 | [diff] [blame] | 1894 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 1895 | }; |
| 1896 | |
Michal Vokáč | 97ceb1f | 2018-06-25 14:41:30 +0200 | [diff] [blame] | 1897 | static const struct drm_display_mode dataimage_scf0700c48ggu18_mode = { |
| 1898 | .clock = 33260, |
| 1899 | .hdisplay = 800, |
| 1900 | .hsync_start = 800 + 40, |
| 1901 | .hsync_end = 800 + 40 + 128, |
| 1902 | .htotal = 800 + 40 + 128 + 88, |
| 1903 | .vdisplay = 480, |
| 1904 | .vsync_start = 480 + 10, |
| 1905 | .vsync_end = 480 + 10 + 2, |
| 1906 | .vtotal = 480 + 10 + 2 + 33, |
Michal Vokáč | 97ceb1f | 2018-06-25 14:41:30 +0200 | [diff] [blame] | 1907 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 1908 | }; |
| 1909 | |
| 1910 | static const struct panel_desc dataimage_scf0700c48ggu18 = { |
| 1911 | .modes = &dataimage_scf0700c48ggu18_mode, |
| 1912 | .num_modes = 1, |
| 1913 | .bpc = 8, |
| 1914 | .size = { |
| 1915 | .width = 152, |
| 1916 | .height = 91, |
| 1917 | }, |
| 1918 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 1919 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, |
Michal Vokáč | 97ceb1f | 2018-06-25 14:41:30 +0200 | [diff] [blame] | 1920 | }; |
| 1921 | |
Philipp Zabel | 0ca0c82 | 2018-05-23 11:25:04 +0200 | [diff] [blame] | 1922 | static const struct display_timing dlc_dlc0700yzg_1_timing = { |
| 1923 | .pixelclock = { 45000000, 51200000, 57000000 }, |
| 1924 | .hactive = { 1024, 1024, 1024 }, |
| 1925 | .hfront_porch = { 100, 106, 113 }, |
| 1926 | .hback_porch = { 100, 106, 113 }, |
| 1927 | .hsync_len = { 100, 108, 114 }, |
| 1928 | .vactive = { 600, 600, 600 }, |
| 1929 | .vfront_porch = { 8, 11, 15 }, |
| 1930 | .vback_porch = { 8, 11, 15 }, |
| 1931 | .vsync_len = { 9, 13, 15 }, |
| 1932 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 1933 | }; |
| 1934 | |
| 1935 | static const struct panel_desc dlc_dlc0700yzg_1 = { |
| 1936 | .timings = &dlc_dlc0700yzg_1_timing, |
| 1937 | .num_timings = 1, |
| 1938 | .bpc = 6, |
| 1939 | .size = { |
| 1940 | .width = 154, |
| 1941 | .height = 86, |
| 1942 | }, |
| 1943 | .delay = { |
| 1944 | .prepare = 30, |
| 1945 | .enable = 200, |
| 1946 | .disable = 200, |
| 1947 | }, |
| 1948 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 1949 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Philipp Zabel | 0ca0c82 | 2018-05-23 11:25:04 +0200 | [diff] [blame] | 1950 | }; |
| 1951 | |
Marco Felsch | 6cbe7cd | 2018-09-24 17:26:10 +0200 | [diff] [blame] | 1952 | static const struct display_timing dlc_dlc1010gig_timing = { |
| 1953 | .pixelclock = { 68900000, 71100000, 73400000 }, |
| 1954 | .hactive = { 1280, 1280, 1280 }, |
| 1955 | .hfront_porch = { 43, 53, 63 }, |
| 1956 | .hback_porch = { 43, 53, 63 }, |
| 1957 | .hsync_len = { 44, 54, 64 }, |
| 1958 | .vactive = { 800, 800, 800 }, |
| 1959 | .vfront_porch = { 5, 8, 11 }, |
| 1960 | .vback_porch = { 5, 8, 11 }, |
| 1961 | .vsync_len = { 5, 7, 11 }, |
| 1962 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 1963 | }; |
| 1964 | |
| 1965 | static const struct panel_desc dlc_dlc1010gig = { |
| 1966 | .timings = &dlc_dlc1010gig_timing, |
| 1967 | .num_timings = 1, |
| 1968 | .bpc = 8, |
| 1969 | .size = { |
| 1970 | .width = 216, |
| 1971 | .height = 135, |
| 1972 | }, |
| 1973 | .delay = { |
| 1974 | .prepare = 60, |
| 1975 | .enable = 150, |
| 1976 | .disable = 100, |
| 1977 | .unprepare = 60, |
| 1978 | }, |
| 1979 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 1980 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Marco Felsch | 6cbe7cd | 2018-09-24 17:26:10 +0200 | [diff] [blame] | 1981 | }; |
| 1982 | |
Andreas Pretzsch | c2d24af | 2019-04-16 12:16:30 +0200 | [diff] [blame] | 1983 | static const struct drm_display_mode edt_et035012dm6_mode = { |
| 1984 | .clock = 6500, |
| 1985 | .hdisplay = 320, |
| 1986 | .hsync_start = 320 + 20, |
| 1987 | .hsync_end = 320 + 20 + 30, |
| 1988 | .htotal = 320 + 20 + 68, |
| 1989 | .vdisplay = 240, |
| 1990 | .vsync_start = 240 + 4, |
| 1991 | .vsync_end = 240 + 4 + 4, |
| 1992 | .vtotal = 240 + 4 + 4 + 14, |
Andreas Pretzsch | c2d24af | 2019-04-16 12:16:30 +0200 | [diff] [blame] | 1993 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 1994 | }; |
| 1995 | |
| 1996 | static const struct panel_desc edt_et035012dm6 = { |
| 1997 | .modes = &edt_et035012dm6_mode, |
| 1998 | .num_modes = 1, |
| 1999 | .bpc = 8, |
| 2000 | .size = { |
| 2001 | .width = 70, |
| 2002 | .height = 52, |
| 2003 | }, |
| 2004 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 2005 | .bus_flags = DRM_BUS_FLAG_DE_LOW | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE, |
Andreas Pretzsch | c2d24af | 2019-04-16 12:16:30 +0200 | [diff] [blame] | 2006 | }; |
| 2007 | |
Stefan Riedmueller | f08a2a1 | 2021-07-09 22:03:49 +0200 | [diff] [blame] | 2008 | static const struct drm_display_mode edt_etm0350g0dh6_mode = { |
| 2009 | .clock = 6520, |
| 2010 | .hdisplay = 320, |
| 2011 | .hsync_start = 320 + 20, |
| 2012 | .hsync_end = 320 + 20 + 68, |
| 2013 | .htotal = 320 + 20 + 68, |
| 2014 | .vdisplay = 240, |
| 2015 | .vsync_start = 240 + 4, |
| 2016 | .vsync_end = 240 + 4 + 18, |
| 2017 | .vtotal = 240 + 4 + 18, |
| 2018 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 2019 | }; |
| 2020 | |
| 2021 | static const struct panel_desc edt_etm0350g0dh6 = { |
| 2022 | .modes = &edt_etm0350g0dh6_mode, |
| 2023 | .num_modes = 1, |
| 2024 | .bpc = 6, |
| 2025 | .size = { |
| 2026 | .width = 70, |
| 2027 | .height = 53, |
| 2028 | }, |
| 2029 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 2030 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, |
| 2031 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 2032 | }; |
| 2033 | |
Marian-Cristian Rotariu | 82d57a5 | 2020-01-30 12:08:38 +0000 | [diff] [blame] | 2034 | static const struct drm_display_mode edt_etm043080dh6gp_mode = { |
| 2035 | .clock = 10870, |
| 2036 | .hdisplay = 480, |
| 2037 | .hsync_start = 480 + 8, |
| 2038 | .hsync_end = 480 + 8 + 4, |
| 2039 | .htotal = 480 + 8 + 4 + 41, |
| 2040 | |
| 2041 | /* |
| 2042 | * IWG22M: Y resolution changed for "dc_linuxfb" module crashing while |
| 2043 | * fb_align |
| 2044 | */ |
| 2045 | |
| 2046 | .vdisplay = 288, |
| 2047 | .vsync_start = 288 + 2, |
| 2048 | .vsync_end = 288 + 2 + 4, |
| 2049 | .vtotal = 288 + 2 + 4 + 10, |
Marian-Cristian Rotariu | 82d57a5 | 2020-01-30 12:08:38 +0000 | [diff] [blame] | 2050 | }; |
| 2051 | |
| 2052 | static const struct panel_desc edt_etm043080dh6gp = { |
| 2053 | .modes = &edt_etm043080dh6gp_mode, |
| 2054 | .num_modes = 1, |
| 2055 | .bpc = 8, |
| 2056 | .size = { |
| 2057 | .width = 100, |
| 2058 | .height = 65, |
| 2059 | }, |
| 2060 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 2061 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 2062 | }; |
| 2063 | |
Marek Vasut | fd819bf | 2019-02-19 15:04:38 +0100 | [diff] [blame] | 2064 | static const struct drm_display_mode edt_etm0430g0dh6_mode = { |
| 2065 | .clock = 9000, |
| 2066 | .hdisplay = 480, |
| 2067 | .hsync_start = 480 + 2, |
| 2068 | .hsync_end = 480 + 2 + 41, |
| 2069 | .htotal = 480 + 2 + 41 + 2, |
| 2070 | .vdisplay = 272, |
| 2071 | .vsync_start = 272 + 2, |
| 2072 | .vsync_end = 272 + 2 + 10, |
| 2073 | .vtotal = 272 + 2 + 10 + 2, |
Marek Vasut | fd819bf | 2019-02-19 15:04:38 +0100 | [diff] [blame] | 2074 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 2075 | }; |
| 2076 | |
| 2077 | static const struct panel_desc edt_etm0430g0dh6 = { |
| 2078 | .modes = &edt_etm0430g0dh6_mode, |
| 2079 | .num_modes = 1, |
| 2080 | .bpc = 6, |
| 2081 | .size = { |
| 2082 | .width = 95, |
| 2083 | .height = 54, |
| 2084 | }, |
Stefan Riedmueller | 4824a5f | 2021-06-21 17:09:30 +0200 | [diff] [blame] | 2085 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 2086 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE, |
Stefan Riedmueller | d112e10 | 2021-06-21 17:09:29 +0200 | [diff] [blame] | 2087 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
Marek Vasut | fd819bf | 2019-02-19 15:04:38 +0100 | [diff] [blame] | 2088 | }; |
| 2089 | |
Stefan Agner | 26ab006 | 2014-05-15 11:38:45 +0200 | [diff] [blame] | 2090 | static const struct drm_display_mode edt_et057090dhu_mode = { |
| 2091 | .clock = 25175, |
| 2092 | .hdisplay = 640, |
| 2093 | .hsync_start = 640 + 16, |
| 2094 | .hsync_end = 640 + 16 + 30, |
| 2095 | .htotal = 640 + 16 + 30 + 114, |
| 2096 | .vdisplay = 480, |
| 2097 | .vsync_start = 480 + 10, |
| 2098 | .vsync_end = 480 + 10 + 3, |
| 2099 | .vtotal = 480 + 10 + 3 + 32, |
Stefan Agner | 26ab006 | 2014-05-15 11:38:45 +0200 | [diff] [blame] | 2100 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 2101 | }; |
| 2102 | |
| 2103 | static const struct panel_desc edt_et057090dhu = { |
| 2104 | .modes = &edt_et057090dhu_mode, |
| 2105 | .num_modes = 1, |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 2106 | .bpc = 6, |
Stefan Agner | 26ab006 | 2014-05-15 11:38:45 +0200 | [diff] [blame] | 2107 | .size = { |
| 2108 | .width = 115, |
| 2109 | .height = 86, |
| 2110 | }, |
Stefan Agner | eaeebff | 2016-12-08 14:54:31 -0800 | [diff] [blame] | 2111 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 2112 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, |
Dmitry Osipenko | 75e7322 | 2020-06-22 01:27:41 +0300 | [diff] [blame] | 2113 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
Stefan Agner | 26ab006 | 2014-05-15 11:38:45 +0200 | [diff] [blame] | 2114 | }; |
| 2115 | |
Philipp Zabel | fff5de4 | 2014-05-15 12:25:47 +0200 | [diff] [blame] | 2116 | static const struct drm_display_mode edt_etm0700g0dh6_mode = { |
| 2117 | .clock = 33260, |
| 2118 | .hdisplay = 800, |
| 2119 | .hsync_start = 800 + 40, |
| 2120 | .hsync_end = 800 + 40 + 128, |
| 2121 | .htotal = 800 + 40 + 128 + 88, |
| 2122 | .vdisplay = 480, |
| 2123 | .vsync_start = 480 + 10, |
| 2124 | .vsync_end = 480 + 10 + 2, |
| 2125 | .vtotal = 480 + 10 + 2 + 33, |
Philipp Zabel | fff5de4 | 2014-05-15 12:25:47 +0200 | [diff] [blame] | 2126 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 2127 | }; |
| 2128 | |
| 2129 | static const struct panel_desc edt_etm0700g0dh6 = { |
| 2130 | .modes = &edt_etm0700g0dh6_mode, |
| 2131 | .num_modes = 1, |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 2132 | .bpc = 6, |
Philipp Zabel | fff5de4 | 2014-05-15 12:25:47 +0200 | [diff] [blame] | 2133 | .size = { |
| 2134 | .width = 152, |
| 2135 | .height = 91, |
| 2136 | }, |
Stefan Agner | eaeebff | 2016-12-08 14:54:31 -0800 | [diff] [blame] | 2137 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 2138 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, |
Biju Das | 281edb9 | 2020-10-20 10:49:10 +0100 | [diff] [blame] | 2139 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
Philipp Zabel | fff5de4 | 2014-05-15 12:25:47 +0200 | [diff] [blame] | 2140 | }; |
| 2141 | |
Jan Tuerk | aa7e645 | 2018-06-19 11:55:44 +0200 | [diff] [blame] | 2142 | static const struct panel_desc edt_etm0700g0bdh6 = { |
| 2143 | .modes = &edt_etm0700g0dh6_mode, |
| 2144 | .num_modes = 1, |
| 2145 | .bpc = 6, |
| 2146 | .size = { |
| 2147 | .width = 152, |
| 2148 | .height = 91, |
| 2149 | }, |
| 2150 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 2151 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, |
Stefan Riedmueller | d112e10 | 2021-06-21 17:09:29 +0200 | [diff] [blame] | 2152 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
Jan Tuerk | aa7e645 | 2018-06-19 11:55:44 +0200 | [diff] [blame] | 2153 | }; |
| 2154 | |
Stefan Riedmueller | e46f73f | 2021-07-09 22:03:48 +0200 | [diff] [blame] | 2155 | static const struct drm_display_mode edt_etmv570g2dhu_mode = { |
| 2156 | .clock = 25175, |
| 2157 | .hdisplay = 640, |
| 2158 | .hsync_start = 640, |
| 2159 | .hsync_end = 640 + 16, |
| 2160 | .htotal = 640 + 16 + 30 + 114, |
| 2161 | .vdisplay = 480, |
| 2162 | .vsync_start = 480 + 10, |
| 2163 | .vsync_end = 480 + 10 + 3, |
| 2164 | .vtotal = 480 + 10 + 3 + 35, |
| 2165 | .flags = DRM_MODE_FLAG_PVSYNC | DRM_MODE_FLAG_PHSYNC, |
| 2166 | }; |
| 2167 | |
| 2168 | static const struct panel_desc edt_etmv570g2dhu = { |
| 2169 | .modes = &edt_etmv570g2dhu_mode, |
| 2170 | .num_modes = 1, |
| 2171 | .bpc = 6, |
| 2172 | .size = { |
| 2173 | .width = 115, |
| 2174 | .height = 86, |
| 2175 | }, |
| 2176 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 2177 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, |
| 2178 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 2179 | }; |
| 2180 | |
Alistair Francis | 9746f5f | 2021-08-01 10:47:00 +1000 | [diff] [blame] | 2181 | static const struct display_timing eink_vb3300_kca_timing = { |
| 2182 | .pixelclock = { 40000000, 40000000, 40000000 }, |
| 2183 | .hactive = { 334, 334, 334 }, |
| 2184 | .hfront_porch = { 1, 1, 1 }, |
| 2185 | .hback_porch = { 1, 1, 1 }, |
| 2186 | .hsync_len = { 1, 1, 1 }, |
| 2187 | .vactive = { 1405, 1405, 1405 }, |
| 2188 | .vfront_porch = { 1, 1, 1 }, |
| 2189 | .vback_porch = { 1, 1, 1 }, |
| 2190 | .vsync_len = { 1, 1, 1 }, |
| 2191 | .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | |
| 2192 | DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE, |
| 2193 | }; |
| 2194 | |
| 2195 | static const struct panel_desc eink_vb3300_kca = { |
| 2196 | .timings = &eink_vb3300_kca_timing, |
| 2197 | .num_timings = 1, |
| 2198 | .bpc = 6, |
| 2199 | .size = { |
| 2200 | .width = 157, |
| 2201 | .height = 209, |
| 2202 | }, |
| 2203 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 2204 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, |
| 2205 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 2206 | }; |
| 2207 | |
Marco Felsch | 9158e3c | 2019-04-16 12:06:45 +0200 | [diff] [blame] | 2208 | static const struct display_timing evervision_vgg804821_timing = { |
| 2209 | .pixelclock = { 27600000, 33300000, 50000000 }, |
| 2210 | .hactive = { 800, 800, 800 }, |
| 2211 | .hfront_porch = { 40, 66, 70 }, |
| 2212 | .hback_porch = { 40, 67, 70 }, |
| 2213 | .hsync_len = { 40, 67, 70 }, |
| 2214 | .vactive = { 480, 480, 480 }, |
| 2215 | .vfront_porch = { 6, 10, 10 }, |
| 2216 | .vback_porch = { 7, 11, 11 }, |
| 2217 | .vsync_len = { 7, 11, 11 }, |
| 2218 | .flags = DISPLAY_FLAGS_HSYNC_HIGH | DISPLAY_FLAGS_VSYNC_HIGH | |
| 2219 | DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE | |
| 2220 | DISPLAY_FLAGS_SYNC_NEGEDGE, |
| 2221 | }; |
| 2222 | |
| 2223 | static const struct panel_desc evervision_vgg804821 = { |
| 2224 | .timings = &evervision_vgg804821_timing, |
| 2225 | .num_timings = 1, |
| 2226 | .bpc = 8, |
| 2227 | .size = { |
| 2228 | .width = 108, |
| 2229 | .height = 64, |
| 2230 | }, |
| 2231 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 2232 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE, |
Marco Felsch | 9158e3c | 2019-04-16 12:06:45 +0200 | [diff] [blame] | 2233 | }; |
| 2234 | |
Boris BREZILLON | 102932b | 2014-06-05 15:53:32 +0200 | [diff] [blame] | 2235 | static const struct drm_display_mode foxlink_fl500wvr00_a0t_mode = { |
| 2236 | .clock = 32260, |
| 2237 | .hdisplay = 800, |
| 2238 | .hsync_start = 800 + 168, |
| 2239 | .hsync_end = 800 + 168 + 64, |
| 2240 | .htotal = 800 + 168 + 64 + 88, |
| 2241 | .vdisplay = 480, |
| 2242 | .vsync_start = 480 + 37, |
| 2243 | .vsync_end = 480 + 37 + 2, |
| 2244 | .vtotal = 480 + 37 + 2 + 8, |
Boris BREZILLON | 102932b | 2014-06-05 15:53:32 +0200 | [diff] [blame] | 2245 | }; |
| 2246 | |
| 2247 | static const struct panel_desc foxlink_fl500wvr00_a0t = { |
| 2248 | .modes = &foxlink_fl500wvr00_a0t_mode, |
| 2249 | .num_modes = 1, |
Thierry Reding | d7a839c | 2014-11-06 10:11:01 +0100 | [diff] [blame] | 2250 | .bpc = 8, |
Boris BREZILLON | 102932b | 2014-06-05 15:53:32 +0200 | [diff] [blame] | 2251 | .size = { |
| 2252 | .width = 108, |
| 2253 | .height = 65, |
| 2254 | }, |
Boris Brezillon | bb276cb | 2014-07-22 13:35:47 +0200 | [diff] [blame] | 2255 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Boris BREZILLON | 102932b | 2014-06-05 15:53:32 +0200 | [diff] [blame] | 2256 | }; |
| 2257 | |
Paul Cercueil | 795db2a | 2020-07-16 14:56:47 +0200 | [diff] [blame] | 2258 | static const struct drm_display_mode frida_frd350h54004_modes[] = { |
| 2259 | { /* 60 Hz */ |
| 2260 | .clock = 6000, |
| 2261 | .hdisplay = 320, |
| 2262 | .hsync_start = 320 + 44, |
| 2263 | .hsync_end = 320 + 44 + 16, |
| 2264 | .htotal = 320 + 44 + 16 + 20, |
| 2265 | .vdisplay = 240, |
| 2266 | .vsync_start = 240 + 2, |
| 2267 | .vsync_end = 240 + 2 + 6, |
| 2268 | .vtotal = 240 + 2 + 6 + 2, |
| 2269 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 2270 | }, |
| 2271 | { /* 50 Hz */ |
| 2272 | .clock = 5400, |
| 2273 | .hdisplay = 320, |
| 2274 | .hsync_start = 320 + 56, |
| 2275 | .hsync_end = 320 + 56 + 16, |
| 2276 | .htotal = 320 + 56 + 16 + 40, |
| 2277 | .vdisplay = 240, |
| 2278 | .vsync_start = 240 + 2, |
| 2279 | .vsync_end = 240 + 2 + 6, |
| 2280 | .vtotal = 240 + 2 + 6 + 2, |
| 2281 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 2282 | }, |
Paul Cercueil | 7b6bd84 | 2020-01-13 13:17:41 -0300 | [diff] [blame] | 2283 | }; |
| 2284 | |
| 2285 | static const struct panel_desc frida_frd350h54004 = { |
Paul Cercueil | 795db2a | 2020-07-16 14:56:47 +0200 | [diff] [blame] | 2286 | .modes = frida_frd350h54004_modes, |
| 2287 | .num_modes = ARRAY_SIZE(frida_frd350h54004_modes), |
Paul Cercueil | 7b6bd84 | 2020-01-13 13:17:41 -0300 | [diff] [blame] | 2288 | .bpc = 8, |
| 2289 | .size = { |
| 2290 | .width = 77, |
| 2291 | .height = 64, |
| 2292 | }, |
| 2293 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 2294 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, |
Paul Cercueil | 7b6bd84 | 2020-01-13 13:17:41 -0300 | [diff] [blame] | 2295 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 2296 | }; |
| 2297 | |
Jagan Teki | 3be2071 | 2019-05-07 18:37:07 +0530 | [diff] [blame] | 2298 | static const struct drm_display_mode friendlyarm_hd702e_mode = { |
| 2299 | .clock = 67185, |
| 2300 | .hdisplay = 800, |
| 2301 | .hsync_start = 800 + 20, |
| 2302 | .hsync_end = 800 + 20 + 24, |
| 2303 | .htotal = 800 + 20 + 24 + 20, |
| 2304 | .vdisplay = 1280, |
| 2305 | .vsync_start = 1280 + 4, |
| 2306 | .vsync_end = 1280 + 4 + 8, |
| 2307 | .vtotal = 1280 + 4 + 8 + 4, |
Jagan Teki | 3be2071 | 2019-05-07 18:37:07 +0530 | [diff] [blame] | 2308 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 2309 | }; |
| 2310 | |
| 2311 | static const struct panel_desc friendlyarm_hd702e = { |
| 2312 | .modes = &friendlyarm_hd702e_mode, |
| 2313 | .num_modes = 1, |
| 2314 | .size = { |
| 2315 | .width = 94, |
| 2316 | .height = 151, |
| 2317 | }, |
| 2318 | }; |
| 2319 | |
Philipp Zabel | d435a2a | 2014-11-19 10:29:55 +0100 | [diff] [blame] | 2320 | static const struct drm_display_mode giantplus_gpg482739qs5_mode = { |
| 2321 | .clock = 9000, |
| 2322 | .hdisplay = 480, |
| 2323 | .hsync_start = 480 + 5, |
| 2324 | .hsync_end = 480 + 5 + 1, |
| 2325 | .htotal = 480 + 5 + 1 + 40, |
| 2326 | .vdisplay = 272, |
| 2327 | .vsync_start = 272 + 8, |
| 2328 | .vsync_end = 272 + 8 + 1, |
| 2329 | .vtotal = 272 + 8 + 1 + 8, |
Philipp Zabel | d435a2a | 2014-11-19 10:29:55 +0100 | [diff] [blame] | 2330 | }; |
| 2331 | |
| 2332 | static const struct panel_desc giantplus_gpg482739qs5 = { |
| 2333 | .modes = &giantplus_gpg482739qs5_mode, |
| 2334 | .num_modes = 1, |
| 2335 | .bpc = 8, |
| 2336 | .size = { |
| 2337 | .width = 95, |
| 2338 | .height = 54, |
| 2339 | }, |
Philipp Zabel | 33536a0 | 2015-02-11 18:50:07 +0100 | [diff] [blame] | 2340 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Philipp Zabel | d435a2a | 2014-11-19 10:29:55 +0100 | [diff] [blame] | 2341 | }; |
| 2342 | |
Paul Cercueil | 2c6574a | 2019-06-06 00:22:47 +0200 | [diff] [blame] | 2343 | static const struct display_timing giantplus_gpm940b0_timing = { |
| 2344 | .pixelclock = { 13500000, 27000000, 27500000 }, |
| 2345 | .hactive = { 320, 320, 320 }, |
| 2346 | .hfront_porch = { 14, 686, 718 }, |
| 2347 | .hback_porch = { 50, 70, 255 }, |
| 2348 | .hsync_len = { 1, 1, 1 }, |
| 2349 | .vactive = { 240, 240, 240 }, |
| 2350 | .vfront_porch = { 1, 1, 179 }, |
| 2351 | .vback_porch = { 1, 21, 31 }, |
| 2352 | .vsync_len = { 1, 1, 6 }, |
| 2353 | .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW, |
| 2354 | }; |
| 2355 | |
| 2356 | static const struct panel_desc giantplus_gpm940b0 = { |
| 2357 | .timings = &giantplus_gpm940b0_timing, |
| 2358 | .num_timings = 1, |
| 2359 | .bpc = 8, |
| 2360 | .size = { |
| 2361 | .width = 60, |
| 2362 | .height = 45, |
| 2363 | }, |
| 2364 | .bus_format = MEDIA_BUS_FMT_RGB888_3X8, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 2365 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE, |
Paul Cercueil | 2c6574a | 2019-06-06 00:22:47 +0200 | [diff] [blame] | 2366 | }; |
| 2367 | |
Philipp Zabel | ab07725 | 2014-12-11 18:32:46 +0100 | [diff] [blame] | 2368 | static const struct display_timing hannstar_hsd070pww1_timing = { |
| 2369 | .pixelclock = { 64300000, 71100000, 82000000 }, |
| 2370 | .hactive = { 1280, 1280, 1280 }, |
| 2371 | .hfront_porch = { 1, 1, 10 }, |
| 2372 | .hback_porch = { 1, 1, 10 }, |
Philipp Zabel | d901d2b | 2015-08-12 12:32:13 +0200 | [diff] [blame] | 2373 | /* |
| 2374 | * According to the data sheet, the minimum horizontal blanking interval |
| 2375 | * is 54 clocks (1 + 52 + 1), but tests with a Nitrogen6X have shown the |
| 2376 | * minimum working horizontal blanking interval to be 60 clocks. |
| 2377 | */ |
| 2378 | .hsync_len = { 58, 158, 661 }, |
Philipp Zabel | ab07725 | 2014-12-11 18:32:46 +0100 | [diff] [blame] | 2379 | .vactive = { 800, 800, 800 }, |
| 2380 | .vfront_porch = { 1, 1, 10 }, |
| 2381 | .vback_porch = { 1, 1, 10 }, |
| 2382 | .vsync_len = { 1, 21, 203 }, |
| 2383 | .flags = DISPLAY_FLAGS_DE_HIGH, |
Philipp Zabel | a853205 | 2014-10-23 16:31:06 +0200 | [diff] [blame] | 2384 | }; |
| 2385 | |
| 2386 | static const struct panel_desc hannstar_hsd070pww1 = { |
Philipp Zabel | ab07725 | 2014-12-11 18:32:46 +0100 | [diff] [blame] | 2387 | .timings = &hannstar_hsd070pww1_timing, |
| 2388 | .num_timings = 1, |
Philipp Zabel | a853205 | 2014-10-23 16:31:06 +0200 | [diff] [blame] | 2389 | .bpc = 6, |
| 2390 | .size = { |
| 2391 | .width = 151, |
| 2392 | .height = 94, |
| 2393 | }, |
Philipp Zabel | 58d6a7b | 2015-08-12 12:32:12 +0200 | [diff] [blame] | 2394 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 2395 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Philipp Zabel | a853205 | 2014-10-23 16:31:06 +0200 | [diff] [blame] | 2396 | }; |
| 2397 | |
Eric Nelson | c0d607e | 2015-04-13 15:09:26 -0700 | [diff] [blame] | 2398 | static const struct display_timing hannstar_hsd100pxn1_timing = { |
| 2399 | .pixelclock = { 55000000, 65000000, 75000000 }, |
| 2400 | .hactive = { 1024, 1024, 1024 }, |
| 2401 | .hfront_porch = { 40, 40, 40 }, |
| 2402 | .hback_porch = { 220, 220, 220 }, |
| 2403 | .hsync_len = { 20, 60, 100 }, |
| 2404 | .vactive = { 768, 768, 768 }, |
| 2405 | .vfront_porch = { 7, 7, 7 }, |
| 2406 | .vback_porch = { 21, 21, 21 }, |
| 2407 | .vsync_len = { 10, 10, 10 }, |
| 2408 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 2409 | }; |
| 2410 | |
| 2411 | static const struct panel_desc hannstar_hsd100pxn1 = { |
| 2412 | .timings = &hannstar_hsd100pxn1_timing, |
| 2413 | .num_timings = 1, |
| 2414 | .bpc = 6, |
| 2415 | .size = { |
| 2416 | .width = 203, |
| 2417 | .height = 152, |
| 2418 | }, |
Philipp Zabel | 4946b04 | 2015-05-20 11:34:08 +0200 | [diff] [blame] | 2419 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 2420 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Eric Nelson | c0d607e | 2015-04-13 15:09:26 -0700 | [diff] [blame] | 2421 | }; |
| 2422 | |
Lucas Stach | 61ac0bf | 2014-11-06 17:44:35 +0100 | [diff] [blame] | 2423 | static const struct drm_display_mode hitachi_tx23d38vm0caa_mode = { |
| 2424 | .clock = 33333, |
| 2425 | .hdisplay = 800, |
| 2426 | .hsync_start = 800 + 85, |
| 2427 | .hsync_end = 800 + 85 + 86, |
| 2428 | .htotal = 800 + 85 + 86 + 85, |
| 2429 | .vdisplay = 480, |
| 2430 | .vsync_start = 480 + 16, |
| 2431 | .vsync_end = 480 + 16 + 13, |
| 2432 | .vtotal = 480 + 16 + 13 + 16, |
Lucas Stach | 61ac0bf | 2014-11-06 17:44:35 +0100 | [diff] [blame] | 2433 | }; |
| 2434 | |
| 2435 | static const struct panel_desc hitachi_tx23d38vm0caa = { |
| 2436 | .modes = &hitachi_tx23d38vm0caa_mode, |
| 2437 | .num_modes = 1, |
| 2438 | .bpc = 6, |
| 2439 | .size = { |
| 2440 | .width = 195, |
| 2441 | .height = 117, |
| 2442 | }, |
Philipp Zabel | 6c684e3 | 2017-10-11 14:59:58 +0200 | [diff] [blame] | 2443 | .delay = { |
| 2444 | .enable = 160, |
| 2445 | .disable = 160, |
| 2446 | }, |
Lucas Stach | 61ac0bf | 2014-11-06 17:44:35 +0100 | [diff] [blame] | 2447 | }; |
| 2448 | |
Nicolas Ferre | 41bcceb | 2015-03-19 14:43:01 +0100 | [diff] [blame] | 2449 | static const struct drm_display_mode innolux_at043tn24_mode = { |
| 2450 | .clock = 9000, |
| 2451 | .hdisplay = 480, |
| 2452 | .hsync_start = 480 + 2, |
| 2453 | .hsync_end = 480 + 2 + 41, |
| 2454 | .htotal = 480 + 2 + 41 + 2, |
| 2455 | .vdisplay = 272, |
| 2456 | .vsync_start = 272 + 2, |
Philipp Zabel | a483159 | 2017-10-11 14:59:56 +0200 | [diff] [blame] | 2457 | .vsync_end = 272 + 2 + 10, |
| 2458 | .vtotal = 272 + 2 + 10 + 2, |
Nicolas Ferre | 41bcceb | 2015-03-19 14:43:01 +0100 | [diff] [blame] | 2459 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 2460 | }; |
| 2461 | |
| 2462 | static const struct panel_desc innolux_at043tn24 = { |
| 2463 | .modes = &innolux_at043tn24_mode, |
| 2464 | .num_modes = 1, |
| 2465 | .bpc = 8, |
| 2466 | .size = { |
| 2467 | .width = 95, |
| 2468 | .height = 54, |
| 2469 | }, |
| 2470 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 2471 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, |
Nicolas Ferre | 41bcceb | 2015-03-19 14:43:01 +0100 | [diff] [blame] | 2472 | }; |
| 2473 | |
Riccardo Bortolato | 4fc24ab | 2016-04-20 15:37:15 +0200 | [diff] [blame] | 2474 | static const struct drm_display_mode innolux_at070tn92_mode = { |
| 2475 | .clock = 33333, |
| 2476 | .hdisplay = 800, |
| 2477 | .hsync_start = 800 + 210, |
| 2478 | .hsync_end = 800 + 210 + 20, |
| 2479 | .htotal = 800 + 210 + 20 + 46, |
| 2480 | .vdisplay = 480, |
| 2481 | .vsync_start = 480 + 22, |
| 2482 | .vsync_end = 480 + 22 + 10, |
| 2483 | .vtotal = 480 + 22 + 23 + 10, |
Riccardo Bortolato | 4fc24ab | 2016-04-20 15:37:15 +0200 | [diff] [blame] | 2484 | }; |
| 2485 | |
| 2486 | static const struct panel_desc innolux_at070tn92 = { |
| 2487 | .modes = &innolux_at070tn92_mode, |
| 2488 | .num_modes = 1, |
| 2489 | .size = { |
| 2490 | .width = 154, |
| 2491 | .height = 86, |
| 2492 | }, |
| 2493 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 2494 | }; |
| 2495 | |
Christoph Fritz | a5d2ade | 2018-06-04 13:16:48 +0200 | [diff] [blame] | 2496 | static const struct display_timing innolux_g070y2_l01_timing = { |
| 2497 | .pixelclock = { 28000000, 29500000, 32000000 }, |
| 2498 | .hactive = { 800, 800, 800 }, |
| 2499 | .hfront_porch = { 61, 91, 141 }, |
| 2500 | .hback_porch = { 60, 90, 140 }, |
| 2501 | .hsync_len = { 12, 12, 12 }, |
| 2502 | .vactive = { 480, 480, 480 }, |
| 2503 | .vfront_porch = { 4, 9, 30 }, |
| 2504 | .vback_porch = { 4, 8, 28 }, |
| 2505 | .vsync_len = { 2, 2, 2 }, |
| 2506 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 2507 | }; |
| 2508 | |
| 2509 | static const struct panel_desc innolux_g070y2_l01 = { |
| 2510 | .timings = &innolux_g070y2_l01_timing, |
| 2511 | .num_timings = 1, |
| 2512 | .bpc = 6, |
| 2513 | .size = { |
| 2514 | .width = 152, |
| 2515 | .height = 91, |
| 2516 | }, |
| 2517 | .delay = { |
| 2518 | .prepare = 10, |
| 2519 | .enable = 100, |
| 2520 | .disable = 100, |
| 2521 | .unprepare = 800, |
| 2522 | }, |
| 2523 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 2524 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Christoph Fritz | a5d2ade | 2018-06-04 13:16:48 +0200 | [diff] [blame] | 2525 | }; |
| 2526 | |
Michael Olbrich | 1e29b84 | 2016-08-15 14:32:02 +0200 | [diff] [blame] | 2527 | static const struct display_timing innolux_g101ice_l01_timing = { |
| 2528 | .pixelclock = { 60400000, 71100000, 74700000 }, |
| 2529 | .hactive = { 1280, 1280, 1280 }, |
| 2530 | .hfront_porch = { 41, 80, 100 }, |
| 2531 | .hback_porch = { 40, 79, 99 }, |
| 2532 | .hsync_len = { 1, 1, 1 }, |
| 2533 | .vactive = { 800, 800, 800 }, |
| 2534 | .vfront_porch = { 5, 11, 14 }, |
| 2535 | .vback_porch = { 4, 11, 14 }, |
| 2536 | .vsync_len = { 1, 1, 1 }, |
| 2537 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 2538 | }; |
| 2539 | |
| 2540 | static const struct panel_desc innolux_g101ice_l01 = { |
| 2541 | .timings = &innolux_g101ice_l01_timing, |
| 2542 | .num_timings = 1, |
| 2543 | .bpc = 8, |
| 2544 | .size = { |
| 2545 | .width = 217, |
| 2546 | .height = 135, |
| 2547 | }, |
| 2548 | .delay = { |
| 2549 | .enable = 200, |
| 2550 | .disable = 200, |
| 2551 | }, |
| 2552 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 2553 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Michael Olbrich | 1e29b84 | 2016-08-15 14:32:02 +0200 | [diff] [blame] | 2554 | }; |
| 2555 | |
Lucas Stach | 4ae13e4 | 2016-11-30 14:09:54 +0100 | [diff] [blame] | 2556 | static const struct display_timing innolux_g121i1_l01_timing = { |
| 2557 | .pixelclock = { 67450000, 71000000, 74550000 }, |
| 2558 | .hactive = { 1280, 1280, 1280 }, |
| 2559 | .hfront_porch = { 40, 80, 160 }, |
| 2560 | .hback_porch = { 39, 79, 159 }, |
| 2561 | .hsync_len = { 1, 1, 1 }, |
| 2562 | .vactive = { 800, 800, 800 }, |
| 2563 | .vfront_porch = { 5, 11, 100 }, |
| 2564 | .vback_porch = { 4, 11, 99 }, |
| 2565 | .vsync_len = { 1, 1, 1 }, |
Lucas Stach | d731f66 | 2014-11-06 17:44:33 +0100 | [diff] [blame] | 2566 | }; |
| 2567 | |
| 2568 | static const struct panel_desc innolux_g121i1_l01 = { |
Lucas Stach | 4ae13e4 | 2016-11-30 14:09:54 +0100 | [diff] [blame] | 2569 | .timings = &innolux_g121i1_l01_timing, |
| 2570 | .num_timings = 1, |
Lucas Stach | d731f66 | 2014-11-06 17:44:33 +0100 | [diff] [blame] | 2571 | .bpc = 6, |
| 2572 | .size = { |
| 2573 | .width = 261, |
| 2574 | .height = 163, |
| 2575 | }, |
Lucas Stach | 4ae13e4 | 2016-11-30 14:09:54 +0100 | [diff] [blame] | 2576 | .delay = { |
| 2577 | .enable = 200, |
| 2578 | .disable = 20, |
| 2579 | }, |
| 2580 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 2581 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lucas Stach | d731f66 | 2014-11-06 17:44:33 +0100 | [diff] [blame] | 2582 | }; |
| 2583 | |
Akshay Bhat | f8fa17b | 2015-11-18 15:57:47 -0500 | [diff] [blame] | 2584 | static const struct drm_display_mode innolux_g121x1_l03_mode = { |
| 2585 | .clock = 65000, |
| 2586 | .hdisplay = 1024, |
| 2587 | .hsync_start = 1024 + 0, |
| 2588 | .hsync_end = 1024 + 1, |
| 2589 | .htotal = 1024 + 0 + 1 + 320, |
| 2590 | .vdisplay = 768, |
| 2591 | .vsync_start = 768 + 38, |
| 2592 | .vsync_end = 768 + 38 + 1, |
| 2593 | .vtotal = 768 + 38 + 1 + 0, |
Akshay Bhat | 2e8c5eb | 2016-03-01 18:06:54 -0500 | [diff] [blame] | 2594 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
Akshay Bhat | f8fa17b | 2015-11-18 15:57:47 -0500 | [diff] [blame] | 2595 | }; |
| 2596 | |
| 2597 | static const struct panel_desc innolux_g121x1_l03 = { |
| 2598 | .modes = &innolux_g121x1_l03_mode, |
| 2599 | .num_modes = 1, |
| 2600 | .bpc = 6, |
| 2601 | .size = { |
| 2602 | .width = 246, |
| 2603 | .height = 185, |
| 2604 | }, |
| 2605 | .delay = { |
| 2606 | .enable = 200, |
| 2607 | .unprepare = 200, |
| 2608 | .disable = 400, |
| 2609 | }, |
| 2610 | }; |
| 2611 | |
Douglas Anderson | 51d3563 | 2021-01-15 14:44:20 -0800 | [diff] [blame] | 2612 | static const struct drm_display_mode innolux_n116bca_ea1_mode = { |
| 2613 | .clock = 76420, |
| 2614 | .hdisplay = 1366, |
| 2615 | .hsync_start = 1366 + 136, |
| 2616 | .hsync_end = 1366 + 136 + 30, |
| 2617 | .htotal = 1366 + 136 + 30 + 60, |
| 2618 | .vdisplay = 768, |
| 2619 | .vsync_start = 768 + 8, |
| 2620 | .vsync_end = 768 + 8 + 12, |
| 2621 | .vtotal = 768 + 8 + 12 + 12, |
| 2622 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 2623 | }; |
| 2624 | |
| 2625 | static const struct panel_desc innolux_n116bca_ea1 = { |
| 2626 | .modes = &innolux_n116bca_ea1_mode, |
| 2627 | .num_modes = 1, |
| 2628 | .bpc = 6, |
| 2629 | .size = { |
| 2630 | .width = 256, |
| 2631 | .height = 144, |
| 2632 | }, |
| 2633 | .delay = { |
| 2634 | .hpd_absent_delay = 200, |
| 2635 | .prepare_to_enable = 80, |
| 2636 | .unprepare = 500, |
| 2637 | }, |
| 2638 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 2639 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 2640 | }; |
| 2641 | |
Douglas Anderson | d719cbe | 2019-07-11 13:34:54 -0700 | [diff] [blame] | 2642 | /* |
| 2643 | * Datasheet specifies that at 60 Hz refresh rate: |
| 2644 | * - total horizontal time: { 1506, 1592, 1716 } |
| 2645 | * - total vertical time: { 788, 800, 868 } |
| 2646 | * |
| 2647 | * ...but doesn't go into exactly how that should be split into a front |
| 2648 | * porch, back porch, or sync length. For now we'll leave a single setting |
| 2649 | * here which allows a bit of tweaking of the pixel clock at the expense of |
| 2650 | * refresh rate. |
| 2651 | */ |
| 2652 | static const struct display_timing innolux_n116bge_timing = { |
| 2653 | .pixelclock = { 72600000, 76420000, 80240000 }, |
| 2654 | .hactive = { 1366, 1366, 1366 }, |
| 2655 | .hfront_porch = { 136, 136, 136 }, |
| 2656 | .hback_porch = { 60, 60, 60 }, |
| 2657 | .hsync_len = { 30, 30, 30 }, |
| 2658 | .vactive = { 768, 768, 768 }, |
| 2659 | .vfront_porch = { 8, 8, 8 }, |
| 2660 | .vback_porch = { 12, 12, 12 }, |
| 2661 | .vsync_len = { 12, 12, 12 }, |
| 2662 | .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW, |
Thierry Reding | 0a2288c | 2014-07-03 14:02:59 +0200 | [diff] [blame] | 2663 | }; |
| 2664 | |
| 2665 | static const struct panel_desc innolux_n116bge = { |
Douglas Anderson | d719cbe | 2019-07-11 13:34:54 -0700 | [diff] [blame] | 2666 | .timings = &innolux_n116bge_timing, |
| 2667 | .num_timings = 1, |
Thierry Reding | 0a2288c | 2014-07-03 14:02:59 +0200 | [diff] [blame] | 2668 | .bpc = 6, |
| 2669 | .size = { |
| 2670 | .width = 256, |
| 2671 | .height = 144, |
| 2672 | }, |
Heiko Stuebner | 87969bc | 2021-01-09 14:09:51 +0100 | [diff] [blame] | 2673 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 2674 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
Thierry Reding | 0a2288c | 2014-07-03 14:02:59 +0200 | [diff] [blame] | 2675 | }; |
| 2676 | |
Lukas F. Hartmann | a14c6b0 | 2020-11-24 18:26:04 +0100 | [diff] [blame] | 2677 | static const struct drm_display_mode innolux_n125hce_gn1_mode = { |
| 2678 | .clock = 162000, |
| 2679 | .hdisplay = 1920, |
| 2680 | .hsync_start = 1920 + 40, |
| 2681 | .hsync_end = 1920 + 40 + 40, |
| 2682 | .htotal = 1920 + 40 + 40 + 80, |
| 2683 | .vdisplay = 1080, |
| 2684 | .vsync_start = 1080 + 4, |
| 2685 | .vsync_end = 1080 + 4 + 4, |
| 2686 | .vtotal = 1080 + 4 + 4 + 24, |
| 2687 | }; |
| 2688 | |
| 2689 | static const struct panel_desc innolux_n125hce_gn1 = { |
| 2690 | .modes = &innolux_n125hce_gn1_mode, |
| 2691 | .num_modes = 1, |
| 2692 | .bpc = 8, |
| 2693 | .size = { |
| 2694 | .width = 276, |
| 2695 | .height = 155, |
| 2696 | }, |
| 2697 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 2698 | .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, |
| 2699 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 2700 | }; |
| 2701 | |
Alban Bedel | ea44739 | 2014-07-22 08:38:55 +0200 | [diff] [blame] | 2702 | static const struct drm_display_mode innolux_n156bge_l21_mode = { |
| 2703 | .clock = 69300, |
| 2704 | .hdisplay = 1366, |
| 2705 | .hsync_start = 1366 + 16, |
| 2706 | .hsync_end = 1366 + 16 + 34, |
| 2707 | .htotal = 1366 + 16 + 34 + 50, |
| 2708 | .vdisplay = 768, |
| 2709 | .vsync_start = 768 + 2, |
| 2710 | .vsync_end = 768 + 2 + 6, |
| 2711 | .vtotal = 768 + 2 + 6 + 12, |
Alban Bedel | ea44739 | 2014-07-22 08:38:55 +0200 | [diff] [blame] | 2712 | }; |
| 2713 | |
| 2714 | static const struct panel_desc innolux_n156bge_l21 = { |
| 2715 | .modes = &innolux_n156bge_l21_mode, |
| 2716 | .num_modes = 1, |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 2717 | .bpc = 6, |
Alban Bedel | ea44739 | 2014-07-22 08:38:55 +0200 | [diff] [blame] | 2718 | .size = { |
| 2719 | .width = 344, |
| 2720 | .height = 193, |
| 2721 | }, |
Dmitry Osipenko | 8556082 | 2020-06-22 01:27:42 +0300 | [diff] [blame] | 2722 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 2723 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
Dmitry Osipenko | 94f0791 | 2020-06-18 01:27:03 +0300 | [diff] [blame] | 2724 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Alban Bedel | ea44739 | 2014-07-22 08:38:55 +0200 | [diff] [blame] | 2725 | }; |
| 2726 | |
Douglas Anderson | 8f054b6 | 2018-10-25 15:21:34 -0700 | [diff] [blame] | 2727 | static const struct drm_display_mode innolux_p120zdg_bf1_mode = { |
spanda@codeaurora.org | da50bd4 | 2018-05-15 11:22:43 +0530 | [diff] [blame] | 2728 | .clock = 206016, |
| 2729 | .hdisplay = 2160, |
| 2730 | .hsync_start = 2160 + 48, |
| 2731 | .hsync_end = 2160 + 48 + 32, |
| 2732 | .htotal = 2160 + 48 + 32 + 80, |
| 2733 | .vdisplay = 1440, |
| 2734 | .vsync_start = 1440 + 3, |
| 2735 | .vsync_end = 1440 + 3 + 10, |
| 2736 | .vtotal = 1440 + 3 + 10 + 27, |
spanda@codeaurora.org | da50bd4 | 2018-05-15 11:22:43 +0530 | [diff] [blame] | 2737 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, |
| 2738 | }; |
| 2739 | |
Douglas Anderson | 8f054b6 | 2018-10-25 15:21:34 -0700 | [diff] [blame] | 2740 | static const struct panel_desc innolux_p120zdg_bf1 = { |
| 2741 | .modes = &innolux_p120zdg_bf1_mode, |
spanda@codeaurora.org | da50bd4 | 2018-05-15 11:22:43 +0530 | [diff] [blame] | 2742 | .num_modes = 1, |
| 2743 | .bpc = 8, |
| 2744 | .size = { |
Douglas Anderson | 8f054b6 | 2018-10-25 15:21:34 -0700 | [diff] [blame] | 2745 | .width = 254, |
| 2746 | .height = 169, |
spanda@codeaurora.org | da50bd4 | 2018-05-15 11:22:43 +0530 | [diff] [blame] | 2747 | }, |
Sean Paul | 22fd99e | 2018-08-13 17:30:40 -0400 | [diff] [blame] | 2748 | .delay = { |
Douglas Anderson | 625d3b5 | 2018-10-25 15:21:31 -0700 | [diff] [blame] | 2749 | .hpd_absent_delay = 200, |
Sean Paul | 22fd99e | 2018-08-13 17:30:40 -0400 | [diff] [blame] | 2750 | .unprepare = 500, |
| 2751 | }, |
spanda@codeaurora.org | da50bd4 | 2018-05-15 11:22:43 +0530 | [diff] [blame] | 2752 | }; |
| 2753 | |
Michael Grzeschik | bccac3f | 2015-03-19 12:22:44 +0100 | [diff] [blame] | 2754 | static const struct drm_display_mode innolux_zj070na_01p_mode = { |
| 2755 | .clock = 51501, |
| 2756 | .hdisplay = 1024, |
| 2757 | .hsync_start = 1024 + 128, |
| 2758 | .hsync_end = 1024 + 128 + 64, |
| 2759 | .htotal = 1024 + 128 + 64 + 128, |
| 2760 | .vdisplay = 600, |
| 2761 | .vsync_start = 600 + 16, |
| 2762 | .vsync_end = 600 + 16 + 4, |
| 2763 | .vtotal = 600 + 16 + 4 + 16, |
Michael Grzeschik | bccac3f | 2015-03-19 12:22:44 +0100 | [diff] [blame] | 2764 | }; |
| 2765 | |
| 2766 | static const struct panel_desc innolux_zj070na_01p = { |
| 2767 | .modes = &innolux_zj070na_01p_mode, |
| 2768 | .num_modes = 1, |
| 2769 | .bpc = 6, |
| 2770 | .size = { |
Thierry Reding | 8159884 | 2016-06-10 15:33:13 +0200 | [diff] [blame] | 2771 | .width = 154, |
| 2772 | .height = 90, |
Michael Grzeschik | bccac3f | 2015-03-19 12:22:44 +0100 | [diff] [blame] | 2773 | }, |
| 2774 | }; |
| 2775 | |
Bjorn Andersson | e1ca518 | 2020-04-20 14:57:28 -0700 | [diff] [blame] | 2776 | static const struct drm_display_mode ivo_m133nwf4_r0_mode = { |
| 2777 | .clock = 138778, |
| 2778 | .hdisplay = 1920, |
| 2779 | .hsync_start = 1920 + 24, |
| 2780 | .hsync_end = 1920 + 24 + 48, |
| 2781 | .htotal = 1920 + 24 + 48 + 88, |
| 2782 | .vdisplay = 1080, |
| 2783 | .vsync_start = 1080 + 3, |
| 2784 | .vsync_end = 1080 + 3 + 12, |
| 2785 | .vtotal = 1080 + 3 + 12 + 17, |
Bjorn Andersson | e1ca518 | 2020-04-20 14:57:28 -0700 | [diff] [blame] | 2786 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, |
| 2787 | }; |
| 2788 | |
| 2789 | static const struct panel_desc ivo_m133nwf4_r0 = { |
| 2790 | .modes = &ivo_m133nwf4_r0_mode, |
| 2791 | .num_modes = 1, |
| 2792 | .bpc = 8, |
| 2793 | .size = { |
| 2794 | .width = 294, |
| 2795 | .height = 165, |
| 2796 | }, |
| 2797 | .delay = { |
| 2798 | .hpd_absent_delay = 200, |
| 2799 | .unprepare = 500, |
| 2800 | }, |
| 2801 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 2802 | .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, |
| 2803 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 2804 | }; |
| 2805 | |
Douglas Anderson | fc26a37 | 2020-08-21 08:35:15 -0700 | [diff] [blame] | 2806 | static const struct drm_display_mode kingdisplay_kd116n21_30nv_a010_mode = { |
| 2807 | .clock = 81000, |
| 2808 | .hdisplay = 1366, |
| 2809 | .hsync_start = 1366 + 40, |
| 2810 | .hsync_end = 1366 + 40 + 32, |
| 2811 | .htotal = 1366 + 40 + 32 + 62, |
| 2812 | .vdisplay = 768, |
| 2813 | .vsync_start = 768 + 5, |
| 2814 | .vsync_end = 768 + 5 + 5, |
| 2815 | .vtotal = 768 + 5 + 5 + 122, |
| 2816 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 2817 | }; |
| 2818 | |
| 2819 | static const struct panel_desc kingdisplay_kd116n21_30nv_a010 = { |
| 2820 | .modes = &kingdisplay_kd116n21_30nv_a010_mode, |
| 2821 | .num_modes = 1, |
| 2822 | .bpc = 6, |
| 2823 | .size = { |
| 2824 | .width = 256, |
| 2825 | .height = 144, |
| 2826 | }, |
| 2827 | .delay = { |
| 2828 | .hpd_absent_delay = 200, |
| 2829 | }, |
| 2830 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 2831 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 2832 | }; |
| 2833 | |
Lukasz Majewski | 14bf60c | 2019-05-15 18:06:12 +0200 | [diff] [blame] | 2834 | static const struct display_timing koe_tx14d24vm1bpa_timing = { |
| 2835 | .pixelclock = { 5580000, 5850000, 6200000 }, |
| 2836 | .hactive = { 320, 320, 320 }, |
| 2837 | .hfront_porch = { 30, 30, 30 }, |
| 2838 | .hback_porch = { 30, 30, 30 }, |
| 2839 | .hsync_len = { 1, 5, 17 }, |
| 2840 | .vactive = { 240, 240, 240 }, |
| 2841 | .vfront_porch = { 6, 6, 6 }, |
| 2842 | .vback_porch = { 5, 5, 5 }, |
| 2843 | .vsync_len = { 1, 2, 11 }, |
| 2844 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 2845 | }; |
| 2846 | |
| 2847 | static const struct panel_desc koe_tx14d24vm1bpa = { |
| 2848 | .timings = &koe_tx14d24vm1bpa_timing, |
| 2849 | .num_timings = 1, |
| 2850 | .bpc = 6, |
| 2851 | .size = { |
| 2852 | .width = 115, |
| 2853 | .height = 86, |
| 2854 | }, |
| 2855 | }; |
| 2856 | |
Liu Ying | 8a07052 | 2020-06-01 14:11:20 +0800 | [diff] [blame] | 2857 | static const struct display_timing koe_tx26d202vm0bwa_timing = { |
| 2858 | .pixelclock = { 151820000, 156720000, 159780000 }, |
| 2859 | .hactive = { 1920, 1920, 1920 }, |
| 2860 | .hfront_porch = { 105, 130, 142 }, |
| 2861 | .hback_porch = { 45, 70, 82 }, |
| 2862 | .hsync_len = { 30, 30, 30 }, |
| 2863 | .vactive = { 1200, 1200, 1200}, |
| 2864 | .vfront_porch = { 3, 5, 10 }, |
| 2865 | .vback_porch = { 2, 5, 10 }, |
| 2866 | .vsync_len = { 5, 5, 5 }, |
| 2867 | }; |
| 2868 | |
| 2869 | static const struct panel_desc koe_tx26d202vm0bwa = { |
| 2870 | .timings = &koe_tx26d202vm0bwa_timing, |
| 2871 | .num_timings = 1, |
| 2872 | .bpc = 8, |
| 2873 | .size = { |
| 2874 | .width = 217, |
| 2875 | .height = 136, |
| 2876 | }, |
| 2877 | .delay = { |
| 2878 | .prepare = 1000, |
| 2879 | .enable = 1000, |
| 2880 | .unprepare = 1000, |
| 2881 | .disable = 1000, |
| 2882 | }, |
| 2883 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 2884 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
Liu Ying | 8a07052 | 2020-06-01 14:11:20 +0800 | [diff] [blame] | 2885 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 2886 | }; |
| 2887 | |
Jagan Teki | 8cfe834 | 2018-02-04 23:19:28 +0530 | [diff] [blame] | 2888 | static const struct display_timing koe_tx31d200vm0baa_timing = { |
| 2889 | .pixelclock = { 39600000, 43200000, 48000000 }, |
| 2890 | .hactive = { 1280, 1280, 1280 }, |
| 2891 | .hfront_porch = { 16, 36, 56 }, |
| 2892 | .hback_porch = { 16, 36, 56 }, |
| 2893 | .hsync_len = { 8, 8, 8 }, |
| 2894 | .vactive = { 480, 480, 480 }, |
Stefan Agner | c9b6be7 | 2018-04-19 23:20:03 +0200 | [diff] [blame] | 2895 | .vfront_porch = { 6, 21, 33 }, |
| 2896 | .vback_porch = { 6, 21, 33 }, |
Jagan Teki | 8cfe834 | 2018-02-04 23:19:28 +0530 | [diff] [blame] | 2897 | .vsync_len = { 8, 8, 8 }, |
| 2898 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 2899 | }; |
| 2900 | |
| 2901 | static const struct panel_desc koe_tx31d200vm0baa = { |
| 2902 | .timings = &koe_tx31d200vm0baa_timing, |
| 2903 | .num_timings = 1, |
| 2904 | .bpc = 6, |
| 2905 | .size = { |
| 2906 | .width = 292, |
| 2907 | .height = 109, |
| 2908 | }, |
| 2909 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 2910 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Jagan Teki | 8cfe834 | 2018-02-04 23:19:28 +0530 | [diff] [blame] | 2911 | }; |
| 2912 | |
Lucas Stach | 8def22e | 2015-12-02 19:41:11 +0100 | [diff] [blame] | 2913 | static const struct display_timing kyo_tcg121xglp_timing = { |
| 2914 | .pixelclock = { 52000000, 65000000, 71000000 }, |
| 2915 | .hactive = { 1024, 1024, 1024 }, |
| 2916 | .hfront_porch = { 2, 2, 2 }, |
| 2917 | .hback_porch = { 2, 2, 2 }, |
| 2918 | .hsync_len = { 86, 124, 244 }, |
| 2919 | .vactive = { 768, 768, 768 }, |
| 2920 | .vfront_porch = { 2, 2, 2 }, |
| 2921 | .vback_porch = { 2, 2, 2 }, |
| 2922 | .vsync_len = { 6, 34, 73 }, |
| 2923 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 2924 | }; |
| 2925 | |
| 2926 | static const struct panel_desc kyo_tcg121xglp = { |
| 2927 | .timings = &kyo_tcg121xglp_timing, |
| 2928 | .num_timings = 1, |
| 2929 | .bpc = 8, |
| 2930 | .size = { |
| 2931 | .width = 246, |
| 2932 | .height = 184, |
| 2933 | }, |
| 2934 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 2935 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lucas Stach | 8def22e | 2015-12-02 19:41:11 +0100 | [diff] [blame] | 2936 | }; |
| 2937 | |
Paul Kocialkowski | 27abdd8 | 2018-11-07 19:18:41 +0100 | [diff] [blame] | 2938 | static const struct drm_display_mode lemaker_bl035_rgb_002_mode = { |
| 2939 | .clock = 7000, |
| 2940 | .hdisplay = 320, |
| 2941 | .hsync_start = 320 + 20, |
| 2942 | .hsync_end = 320 + 20 + 30, |
| 2943 | .htotal = 320 + 20 + 30 + 38, |
| 2944 | .vdisplay = 240, |
| 2945 | .vsync_start = 240 + 4, |
| 2946 | .vsync_end = 240 + 4 + 3, |
| 2947 | .vtotal = 240 + 4 + 3 + 15, |
Paul Kocialkowski | 27abdd8 | 2018-11-07 19:18:41 +0100 | [diff] [blame] | 2948 | }; |
| 2949 | |
| 2950 | static const struct panel_desc lemaker_bl035_rgb_002 = { |
| 2951 | .modes = &lemaker_bl035_rgb_002_mode, |
| 2952 | .num_modes = 1, |
| 2953 | .size = { |
| 2954 | .width = 70, |
| 2955 | .height = 52, |
| 2956 | }, |
| 2957 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 2958 | .bus_flags = DRM_BUS_FLAG_DE_LOW, |
| 2959 | }; |
| 2960 | |
Heiko Schocher | dd01500 | 2015-05-22 10:25:57 +0200 | [diff] [blame] | 2961 | static const struct drm_display_mode lg_lb070wv8_mode = { |
| 2962 | .clock = 33246, |
| 2963 | .hdisplay = 800, |
| 2964 | .hsync_start = 800 + 88, |
| 2965 | .hsync_end = 800 + 88 + 80, |
| 2966 | .htotal = 800 + 88 + 80 + 88, |
| 2967 | .vdisplay = 480, |
| 2968 | .vsync_start = 480 + 10, |
| 2969 | .vsync_end = 480 + 10 + 25, |
| 2970 | .vtotal = 480 + 10 + 25 + 10, |
Heiko Schocher | dd01500 | 2015-05-22 10:25:57 +0200 | [diff] [blame] | 2971 | }; |
| 2972 | |
| 2973 | static const struct panel_desc lg_lb070wv8 = { |
| 2974 | .modes = &lg_lb070wv8_mode, |
| 2975 | .num_modes = 1, |
Laurent Pinchart | a6ae2fe | 2020-07-12 01:53:17 +0300 | [diff] [blame] | 2976 | .bpc = 8, |
Heiko Schocher | dd01500 | 2015-05-22 10:25:57 +0200 | [diff] [blame] | 2977 | .size = { |
| 2978 | .width = 151, |
| 2979 | .height = 91, |
| 2980 | }, |
| 2981 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 2982 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Heiko Schocher | dd01500 | 2015-05-22 10:25:57 +0200 | [diff] [blame] | 2983 | }; |
| 2984 | |
Yakir Yang | c5ece40 | 2016-06-28 12:51:15 +0800 | [diff] [blame] | 2985 | static const struct drm_display_mode lg_lp079qx1_sp0v_mode = { |
| 2986 | .clock = 200000, |
| 2987 | .hdisplay = 1536, |
| 2988 | .hsync_start = 1536 + 12, |
| 2989 | .hsync_end = 1536 + 12 + 16, |
| 2990 | .htotal = 1536 + 12 + 16 + 48, |
| 2991 | .vdisplay = 2048, |
| 2992 | .vsync_start = 2048 + 8, |
| 2993 | .vsync_end = 2048 + 8 + 4, |
| 2994 | .vtotal = 2048 + 8 + 4 + 8, |
Yakir Yang | c5ece40 | 2016-06-28 12:51:15 +0800 | [diff] [blame] | 2995 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 2996 | }; |
| 2997 | |
| 2998 | static const struct panel_desc lg_lp079qx1_sp0v = { |
| 2999 | .modes = &lg_lp079qx1_sp0v_mode, |
| 3000 | .num_modes = 1, |
| 3001 | .size = { |
| 3002 | .width = 129, |
| 3003 | .height = 171, |
| 3004 | }, |
| 3005 | }; |
| 3006 | |
Yakir Yang | 0355dde | 2016-06-12 10:56:02 +0800 | [diff] [blame] | 3007 | static const struct drm_display_mode lg_lp097qx1_spa1_mode = { |
| 3008 | .clock = 205210, |
| 3009 | .hdisplay = 2048, |
| 3010 | .hsync_start = 2048 + 150, |
| 3011 | .hsync_end = 2048 + 150 + 5, |
| 3012 | .htotal = 2048 + 150 + 5 + 5, |
| 3013 | .vdisplay = 1536, |
| 3014 | .vsync_start = 1536 + 3, |
| 3015 | .vsync_end = 1536 + 3 + 1, |
| 3016 | .vtotal = 1536 + 3 + 1 + 9, |
Yakir Yang | 0355dde | 2016-06-12 10:56:02 +0800 | [diff] [blame] | 3017 | }; |
| 3018 | |
| 3019 | static const struct panel_desc lg_lp097qx1_spa1 = { |
| 3020 | .modes = &lg_lp097qx1_spa1_mode, |
| 3021 | .num_modes = 1, |
| 3022 | .size = { |
| 3023 | .width = 208, |
| 3024 | .height = 147, |
| 3025 | }, |
| 3026 | }; |
| 3027 | |
Jitao Shi | 690d8fa | 2016-02-22 19:01:44 +0800 | [diff] [blame] | 3028 | static const struct drm_display_mode lg_lp120up1_mode = { |
| 3029 | .clock = 162300, |
| 3030 | .hdisplay = 1920, |
| 3031 | .hsync_start = 1920 + 40, |
| 3032 | .hsync_end = 1920 + 40 + 40, |
| 3033 | .htotal = 1920 + 40 + 40+ 80, |
| 3034 | .vdisplay = 1280, |
| 3035 | .vsync_start = 1280 + 4, |
| 3036 | .vsync_end = 1280 + 4 + 4, |
| 3037 | .vtotal = 1280 + 4 + 4 + 12, |
Jitao Shi | 690d8fa | 2016-02-22 19:01:44 +0800 | [diff] [blame] | 3038 | }; |
| 3039 | |
| 3040 | static const struct panel_desc lg_lp120up1 = { |
| 3041 | .modes = &lg_lp120up1_mode, |
| 3042 | .num_modes = 1, |
| 3043 | .bpc = 8, |
| 3044 | .size = { |
| 3045 | .width = 267, |
| 3046 | .height = 183, |
| 3047 | }, |
Enric Balletbo i Serra | d53139b | 2020-04-16 18:44:03 +0200 | [diff] [blame] | 3048 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
Jitao Shi | 690d8fa | 2016-02-22 19:01:44 +0800 | [diff] [blame] | 3049 | }; |
| 3050 | |
Thierry Reding | ec7c565 | 2013-11-15 15:59:32 +0100 | [diff] [blame] | 3051 | static const struct drm_display_mode lg_lp129qe_mode = { |
| 3052 | .clock = 285250, |
| 3053 | .hdisplay = 2560, |
| 3054 | .hsync_start = 2560 + 48, |
| 3055 | .hsync_end = 2560 + 48 + 32, |
| 3056 | .htotal = 2560 + 48 + 32 + 80, |
| 3057 | .vdisplay = 1700, |
| 3058 | .vsync_start = 1700 + 3, |
| 3059 | .vsync_end = 1700 + 3 + 10, |
| 3060 | .vtotal = 1700 + 3 + 10 + 36, |
Thierry Reding | ec7c565 | 2013-11-15 15:59:32 +0100 | [diff] [blame] | 3061 | }; |
| 3062 | |
| 3063 | static const struct panel_desc lg_lp129qe = { |
| 3064 | .modes = &lg_lp129qe_mode, |
| 3065 | .num_modes = 1, |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 3066 | .bpc = 8, |
Thierry Reding | ec7c565 | 2013-11-15 15:59:32 +0100 | [diff] [blame] | 3067 | .size = { |
| 3068 | .width = 272, |
| 3069 | .height = 181, |
| 3070 | }, |
| 3071 | }; |
| 3072 | |
Marcel Ziswiler | 5728fe7 | 2020-01-20 09:01:00 +0100 | [diff] [blame] | 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, |
| 3086 | }; |
| 3087 | |
| 3088 | static const struct panel_desc logictechno_lt161010_2nh = { |
| 3089 | .timings = &logictechno_lt161010_2nh_timing, |
| 3090 | .num_timings = 1, |
| 3091 | .size = { |
| 3092 | .width = 154, |
| 3093 | .height = 86, |
| 3094 | }, |
| 3095 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 3096 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | |
| 3097 | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE | |
| 3098 | DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE, |
| 3099 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 3100 | }; |
| 3101 | |
| 3102 | static const struct display_timing logictechno_lt170410_2whc_timing = { |
| 3103 | .pixelclock = { 68900000, 71100000, 73400000 }, |
| 3104 | .hactive = { 1280, 1280, 1280 }, |
| 3105 | .hfront_porch = { 23, 60, 71 }, |
| 3106 | .hback_porch = { 23, 60, 71 }, |
| 3107 | .hsync_len = { 15, 40, 47 }, |
| 3108 | .vactive = { 800, 800, 800 }, |
| 3109 | .vfront_porch = { 5, 7, 10 }, |
| 3110 | .vback_porch = { 5, 7, 10 }, |
| 3111 | .vsync_len = { 6, 9, 12 }, |
| 3112 | .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | |
| 3113 | DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_POSEDGE | |
| 3114 | DISPLAY_FLAGS_SYNC_POSEDGE, |
| 3115 | }; |
| 3116 | |
| 3117 | static const struct panel_desc logictechno_lt170410_2whc = { |
| 3118 | .timings = &logictechno_lt170410_2whc_timing, |
| 3119 | .num_timings = 1, |
| 3120 | .size = { |
| 3121 | .width = 217, |
| 3122 | .height = 136, |
| 3123 | }, |
| 3124 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 3125 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
Marcel Ziswiler | 5728fe7 | 2020-01-20 09:01:00 +0100 | [diff] [blame] | 3126 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 3127 | }; |
| 3128 | |
Lukasz Majewski | 65c766c | 2017-10-21 00:18:37 +0200 | [diff] [blame] | 3129 | static const struct drm_display_mode mitsubishi_aa070mc01_mode = { |
| 3130 | .clock = 30400, |
| 3131 | .hdisplay = 800, |
| 3132 | .hsync_start = 800 + 0, |
| 3133 | .hsync_end = 800 + 1, |
| 3134 | .htotal = 800 + 0 + 1 + 160, |
| 3135 | .vdisplay = 480, |
| 3136 | .vsync_start = 480 + 0, |
| 3137 | .vsync_end = 480 + 48 + 1, |
| 3138 | .vtotal = 480 + 48 + 1 + 0, |
Lukasz Majewski | 65c766c | 2017-10-21 00:18:37 +0200 | [diff] [blame] | 3139 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 3140 | }; |
| 3141 | |
Adam Ford | 0d35408 | 2019-10-16 08:51:45 -0500 | [diff] [blame] | 3142 | static const struct drm_display_mode logicpd_type_28_mode = { |
Ville Syrjälä | f873c5d | 2020-03-02 22:34:40 +0200 | [diff] [blame] | 3143 | .clock = 9107, |
Adam Ford | 0d35408 | 2019-10-16 08:51:45 -0500 | [diff] [blame] | 3144 | .hdisplay = 480, |
| 3145 | .hsync_start = 480 + 3, |
| 3146 | .hsync_end = 480 + 3 + 42, |
| 3147 | .htotal = 480 + 3 + 42 + 2, |
| 3148 | |
| 3149 | .vdisplay = 272, |
| 3150 | .vsync_start = 272 + 2, |
| 3151 | .vsync_end = 272 + 2 + 11, |
| 3152 | .vtotal = 272 + 2 + 11 + 3, |
Adam Ford | 0d35408 | 2019-10-16 08:51:45 -0500 | [diff] [blame] | 3153 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, |
| 3154 | }; |
| 3155 | |
| 3156 | static const struct panel_desc logicpd_type_28 = { |
| 3157 | .modes = &logicpd_type_28_mode, |
| 3158 | .num_modes = 1, |
| 3159 | .bpc = 8, |
| 3160 | .size = { |
| 3161 | .width = 105, |
| 3162 | .height = 67, |
| 3163 | }, |
| 3164 | .delay = { |
| 3165 | .prepare = 200, |
| 3166 | .enable = 200, |
| 3167 | .unprepare = 200, |
| 3168 | .disable = 200, |
| 3169 | }, |
| 3170 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 3171 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE | |
| 3172 | DRM_BUS_FLAG_SYNC_DRIVE_NEGEDGE, |
Adam Ford | efb9479 | 2020-06-15 08:19:34 -0500 | [diff] [blame] | 3173 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
Adam Ford | 0d35408 | 2019-10-16 08:51:45 -0500 | [diff] [blame] | 3174 | }; |
| 3175 | |
Lukasz Majewski | 65c766c | 2017-10-21 00:18:37 +0200 | [diff] [blame] | 3176 | static const struct panel_desc mitsubishi_aa070mc01 = { |
| 3177 | .modes = &mitsubishi_aa070mc01_mode, |
| 3178 | .num_modes = 1, |
| 3179 | .bpc = 8, |
| 3180 | .size = { |
| 3181 | .width = 152, |
| 3182 | .height = 91, |
| 3183 | }, |
| 3184 | |
| 3185 | .delay = { |
| 3186 | .enable = 200, |
| 3187 | .unprepare = 200, |
| 3188 | .disable = 400, |
| 3189 | }, |
| 3190 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 3191 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lukasz Majewski | 65c766c | 2017-10-21 00:18:37 +0200 | [diff] [blame] | 3192 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
| 3193 | }; |
| 3194 | |
Sam Ravnborg | 81162f4 | 2021-08-05 13:19:43 +0200 | [diff] [blame^] | 3195 | static const struct display_timing multi_inno_mi1010ait_1cp_timing = { |
| 3196 | .pixelclock = { 68900000, 70000000, 73400000 }, |
| 3197 | .hactive = { 1280, 1280, 1280 }, |
| 3198 | .hfront_porch = { 30, 60, 71 }, |
| 3199 | .hback_porch = { 30, 60, 71 }, |
| 3200 | .hsync_len = { 10, 10, 48 }, |
| 3201 | .vactive = { 800, 800, 800 }, |
| 3202 | .vfront_porch = { 5, 10, 10 }, |
| 3203 | .vback_porch = { 5, 10, 10 }, |
| 3204 | .vsync_len = { 5, 6, 13 }, |
| 3205 | .flags = DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW | |
| 3206 | DISPLAY_FLAGS_DE_HIGH, |
| 3207 | }; |
| 3208 | |
| 3209 | static const struct panel_desc multi_inno_mi1010ait_1cp = { |
| 3210 | .timings = &multi_inno_mi1010ait_1cp_timing, |
| 3211 | .num_timings = 1, |
| 3212 | .bpc = 8, |
| 3213 | .size = { |
| 3214 | .width = 217, |
| 3215 | .height = 136, |
| 3216 | }, |
| 3217 | .delay = { |
| 3218 | .enable = 50, |
| 3219 | .disable = 50, |
| 3220 | }, |
| 3221 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 3222 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
| 3223 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 3224 | }; |
| 3225 | |
Lucas Stach | 01bacc13 | 2017-06-08 20:07:55 +0200 | [diff] [blame] | 3226 | static const struct display_timing nec_nl12880bc20_05_timing = { |
| 3227 | .pixelclock = { 67000000, 71000000, 75000000 }, |
| 3228 | .hactive = { 1280, 1280, 1280 }, |
| 3229 | .hfront_porch = { 2, 30, 30 }, |
| 3230 | .hback_porch = { 6, 100, 100 }, |
| 3231 | .hsync_len = { 2, 30, 30 }, |
| 3232 | .vactive = { 800, 800, 800 }, |
| 3233 | .vfront_porch = { 5, 5, 5 }, |
| 3234 | .vback_porch = { 11, 11, 11 }, |
| 3235 | .vsync_len = { 7, 7, 7 }, |
| 3236 | }; |
| 3237 | |
| 3238 | static const struct panel_desc nec_nl12880bc20_05 = { |
| 3239 | .timings = &nec_nl12880bc20_05_timing, |
| 3240 | .num_timings = 1, |
| 3241 | .bpc = 8, |
| 3242 | .size = { |
| 3243 | .width = 261, |
| 3244 | .height = 163, |
| 3245 | }, |
| 3246 | .delay = { |
| 3247 | .enable = 50, |
| 3248 | .disable = 50, |
| 3249 | }, |
| 3250 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 3251 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lucas Stach | 01bacc13 | 2017-06-08 20:07:55 +0200 | [diff] [blame] | 3252 | }; |
| 3253 | |
jianwei wang | c6e87f9 | 2015-07-29 16:30:02 +0800 | [diff] [blame] | 3254 | static const struct drm_display_mode nec_nl4827hc19_05b_mode = { |
| 3255 | .clock = 10870, |
| 3256 | .hdisplay = 480, |
| 3257 | .hsync_start = 480 + 2, |
| 3258 | .hsync_end = 480 + 2 + 41, |
| 3259 | .htotal = 480 + 2 + 41 + 2, |
| 3260 | .vdisplay = 272, |
| 3261 | .vsync_start = 272 + 2, |
| 3262 | .vsync_end = 272 + 2 + 4, |
| 3263 | .vtotal = 272 + 2 + 4 + 2, |
Stefan Agner | 4bc390c | 2015-11-17 19:10:29 -0800 | [diff] [blame] | 3264 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
jianwei wang | c6e87f9 | 2015-07-29 16:30:02 +0800 | [diff] [blame] | 3265 | }; |
| 3266 | |
| 3267 | static const struct panel_desc nec_nl4827hc19_05b = { |
| 3268 | .modes = &nec_nl4827hc19_05b_mode, |
| 3269 | .num_modes = 1, |
| 3270 | .bpc = 8, |
| 3271 | .size = { |
| 3272 | .width = 95, |
| 3273 | .height = 54, |
| 3274 | }, |
Stefan Agner | 2c80661 | 2016-02-08 12:50:13 -0800 | [diff] [blame] | 3275 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 3276 | .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, |
jianwei wang | c6e87f9 | 2015-07-29 16:30:02 +0800 | [diff] [blame] | 3277 | }; |
| 3278 | |
Maxime Ripard | e6c2f06 | 2016-09-06 16:46:17 +0200 | [diff] [blame] | 3279 | static const struct drm_display_mode netron_dy_e231732_mode = { |
| 3280 | .clock = 66000, |
| 3281 | .hdisplay = 1024, |
| 3282 | .hsync_start = 1024 + 160, |
| 3283 | .hsync_end = 1024 + 160 + 70, |
| 3284 | .htotal = 1024 + 160 + 70 + 90, |
| 3285 | .vdisplay = 600, |
| 3286 | .vsync_start = 600 + 127, |
| 3287 | .vsync_end = 600 + 127 + 20, |
| 3288 | .vtotal = 600 + 127 + 20 + 3, |
Maxime Ripard | e6c2f06 | 2016-09-06 16:46:17 +0200 | [diff] [blame] | 3289 | }; |
| 3290 | |
| 3291 | static const struct panel_desc netron_dy_e231732 = { |
| 3292 | .modes = &netron_dy_e231732_mode, |
| 3293 | .num_modes = 1, |
| 3294 | .size = { |
| 3295 | .width = 154, |
| 3296 | .height = 87, |
| 3297 | }, |
| 3298 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 3299 | }; |
| 3300 | |
Vasily Khoruzhick | 258145e | 2020-02-26 00:10:10 -0800 | [diff] [blame] | 3301 | static const struct drm_display_mode neweast_wjfh116008a_modes[] = { |
| 3302 | { |
| 3303 | .clock = 138500, |
| 3304 | .hdisplay = 1920, |
| 3305 | .hsync_start = 1920 + 48, |
| 3306 | .hsync_end = 1920 + 48 + 32, |
| 3307 | .htotal = 1920 + 48 + 32 + 80, |
| 3308 | .vdisplay = 1080, |
| 3309 | .vsync_start = 1080 + 3, |
| 3310 | .vsync_end = 1080 + 3 + 5, |
| 3311 | .vtotal = 1080 + 3 + 5 + 23, |
Vasily Khoruzhick | 258145e | 2020-02-26 00:10:10 -0800 | [diff] [blame] | 3312 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 3313 | }, { |
| 3314 | .clock = 110920, |
| 3315 | .hdisplay = 1920, |
| 3316 | .hsync_start = 1920 + 48, |
| 3317 | .hsync_end = 1920 + 48 + 32, |
| 3318 | .htotal = 1920 + 48 + 32 + 80, |
| 3319 | .vdisplay = 1080, |
| 3320 | .vsync_start = 1080 + 3, |
| 3321 | .vsync_end = 1080 + 3 + 5, |
| 3322 | .vtotal = 1080 + 3 + 5 + 23, |
Vasily Khoruzhick | 258145e | 2020-02-26 00:10:10 -0800 | [diff] [blame] | 3323 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 3324 | } |
| 3325 | }; |
| 3326 | |
| 3327 | static const struct panel_desc neweast_wjfh116008a = { |
| 3328 | .modes = neweast_wjfh116008a_modes, |
| 3329 | .num_modes = 2, |
| 3330 | .bpc = 6, |
| 3331 | .size = { |
| 3332 | .width = 260, |
| 3333 | .height = 150, |
| 3334 | }, |
| 3335 | .delay = { |
| 3336 | .prepare = 110, |
| 3337 | .enable = 20, |
| 3338 | .unprepare = 500, |
| 3339 | }, |
| 3340 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 3341 | .connector_type = DRM_MODE_CONNECTOR_eDP, |
| 3342 | }; |
| 3343 | |
Tomi Valkeinen | 3b39ad7 | 2018-06-18 16:22:40 +0300 | [diff] [blame] | 3344 | static const struct drm_display_mode newhaven_nhd_43_480272ef_atxl_mode = { |
| 3345 | .clock = 9000, |
| 3346 | .hdisplay = 480, |
| 3347 | .hsync_start = 480 + 2, |
| 3348 | .hsync_end = 480 + 2 + 41, |
| 3349 | .htotal = 480 + 2 + 41 + 2, |
| 3350 | .vdisplay = 272, |
| 3351 | .vsync_start = 272 + 2, |
| 3352 | .vsync_end = 272 + 2 + 10, |
| 3353 | .vtotal = 272 + 2 + 10 + 2, |
Tomi Valkeinen | 3b39ad7 | 2018-06-18 16:22:40 +0300 | [diff] [blame] | 3354 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 3355 | }; |
| 3356 | |
| 3357 | static const struct panel_desc newhaven_nhd_43_480272ef_atxl = { |
| 3358 | .modes = &newhaven_nhd_43_480272ef_atxl_mode, |
| 3359 | .num_modes = 1, |
| 3360 | .bpc = 8, |
| 3361 | .size = { |
| 3362 | .width = 95, |
| 3363 | .height = 54, |
| 3364 | }, |
| 3365 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 3366 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE | |
| 3367 | DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE, |
Tomi Valkeinen | 8a4f5e1 | 2020-06-09 13:28:09 +0300 | [diff] [blame] | 3368 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
Tomi Valkeinen | 3b39ad7 | 2018-06-18 16:22:40 +0300 | [diff] [blame] | 3369 | }; |
| 3370 | |
Lucas Stach | 4177fa6 | 2017-06-08 20:07:57 +0200 | [diff] [blame] | 3371 | static const struct display_timing nlt_nl192108ac18_02d_timing = { |
| 3372 | .pixelclock = { 130000000, 148350000, 163000000 }, |
| 3373 | .hactive = { 1920, 1920, 1920 }, |
| 3374 | .hfront_porch = { 80, 100, 100 }, |
| 3375 | .hback_porch = { 100, 120, 120 }, |
| 3376 | .hsync_len = { 50, 60, 60 }, |
| 3377 | .vactive = { 1080, 1080, 1080 }, |
| 3378 | .vfront_porch = { 12, 30, 30 }, |
| 3379 | .vback_porch = { 4, 10, 10 }, |
| 3380 | .vsync_len = { 4, 5, 5 }, |
| 3381 | }; |
| 3382 | |
| 3383 | static const struct panel_desc nlt_nl192108ac18_02d = { |
| 3384 | .timings = &nlt_nl192108ac18_02d_timing, |
| 3385 | .num_timings = 1, |
| 3386 | .bpc = 8, |
| 3387 | .size = { |
| 3388 | .width = 344, |
| 3389 | .height = 194, |
| 3390 | }, |
| 3391 | .delay = { |
| 3392 | .unprepare = 500, |
| 3393 | }, |
| 3394 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 3395 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lucas Stach | 4177fa6 | 2017-06-08 20:07:57 +0200 | [diff] [blame] | 3396 | }; |
| 3397 | |
Fabien Lahoudere | 05ec0e4 | 2016-10-17 11:38:01 +0200 | [diff] [blame] | 3398 | static const struct drm_display_mode nvd_9128_mode = { |
| 3399 | .clock = 29500, |
| 3400 | .hdisplay = 800, |
| 3401 | .hsync_start = 800 + 130, |
| 3402 | .hsync_end = 800 + 130 + 98, |
| 3403 | .htotal = 800 + 0 + 130 + 98, |
| 3404 | .vdisplay = 480, |
| 3405 | .vsync_start = 480 + 10, |
| 3406 | .vsync_end = 480 + 10 + 50, |
| 3407 | .vtotal = 480 + 0 + 10 + 50, |
| 3408 | }; |
| 3409 | |
| 3410 | static const struct panel_desc nvd_9128 = { |
| 3411 | .modes = &nvd_9128_mode, |
| 3412 | .num_modes = 1, |
| 3413 | .bpc = 8, |
| 3414 | .size = { |
| 3415 | .width = 156, |
| 3416 | .height = 88, |
| 3417 | }, |
| 3418 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 3419 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Fabien Lahoudere | 05ec0e4 | 2016-10-17 11:38:01 +0200 | [diff] [blame] | 3420 | }; |
| 3421 | |
Gary Bisson | a99fb62 | 2015-06-10 18:44:23 +0200 | [diff] [blame] | 3422 | static const struct display_timing okaya_rs800480t_7x0gp_timing = { |
| 3423 | .pixelclock = { 30000000, 30000000, 40000000 }, |
| 3424 | .hactive = { 800, 800, 800 }, |
| 3425 | .hfront_porch = { 40, 40, 40 }, |
| 3426 | .hback_porch = { 40, 40, 40 }, |
| 3427 | .hsync_len = { 1, 48, 48 }, |
| 3428 | .vactive = { 480, 480, 480 }, |
| 3429 | .vfront_porch = { 13, 13, 13 }, |
| 3430 | .vback_porch = { 29, 29, 29 }, |
| 3431 | .vsync_len = { 3, 3, 3 }, |
| 3432 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 3433 | }; |
| 3434 | |
| 3435 | static const struct panel_desc okaya_rs800480t_7x0gp = { |
| 3436 | .timings = &okaya_rs800480t_7x0gp_timing, |
| 3437 | .num_timings = 1, |
| 3438 | .bpc = 6, |
| 3439 | .size = { |
| 3440 | .width = 154, |
| 3441 | .height = 87, |
| 3442 | }, |
| 3443 | .delay = { |
| 3444 | .prepare = 41, |
| 3445 | .enable = 50, |
| 3446 | .unprepare = 41, |
| 3447 | .disable = 50, |
| 3448 | }, |
| 3449 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 3450 | }; |
| 3451 | |
Maxime Ripard | cf5c9e6 | 2016-03-23 17:38:34 +0100 | [diff] [blame] | 3452 | static const struct drm_display_mode olimex_lcd_olinuxino_43ts_mode = { |
| 3453 | .clock = 9000, |
| 3454 | .hdisplay = 480, |
| 3455 | .hsync_start = 480 + 5, |
| 3456 | .hsync_end = 480 + 5 + 30, |
| 3457 | .htotal = 480 + 5 + 30 + 10, |
| 3458 | .vdisplay = 272, |
| 3459 | .vsync_start = 272 + 8, |
| 3460 | .vsync_end = 272 + 8 + 5, |
| 3461 | .vtotal = 272 + 8 + 5 + 3, |
Maxime Ripard | cf5c9e6 | 2016-03-23 17:38:34 +0100 | [diff] [blame] | 3462 | }; |
| 3463 | |
| 3464 | static const struct panel_desc olimex_lcd_olinuxino_43ts = { |
| 3465 | .modes = &olimex_lcd_olinuxino_43ts_mode, |
| 3466 | .num_modes = 1, |
| 3467 | .size = { |
Jonathan Liu | 30c6d7ab9 | 2017-07-20 20:29:43 +1000 | [diff] [blame] | 3468 | .width = 95, |
| 3469 | .height = 54, |
Maxime Ripard | cf5c9e6 | 2016-03-23 17:38:34 +0100 | [diff] [blame] | 3470 | }, |
Jonathan Liu | 5c2a7c6 | 2016-09-11 20:46:55 +1000 | [diff] [blame] | 3471 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Maxime Ripard | cf5c9e6 | 2016-03-23 17:38:34 +0100 | [diff] [blame] | 3472 | }; |
| 3473 | |
Eric Anholt | e8b6f56 | 2016-03-24 17:23:48 -0700 | [diff] [blame] | 3474 | /* |
| 3475 | * 800x480 CVT. The panel appears to be quite accepting, at least as far as |
| 3476 | * pixel clocks, but this is the timing that was being used in the Adafruit |
| 3477 | * installation instructions. |
| 3478 | */ |
| 3479 | static const struct drm_display_mode ontat_yx700wv03_mode = { |
| 3480 | .clock = 29500, |
| 3481 | .hdisplay = 800, |
| 3482 | .hsync_start = 824, |
| 3483 | .hsync_end = 896, |
| 3484 | .htotal = 992, |
| 3485 | .vdisplay = 480, |
| 3486 | .vsync_start = 483, |
| 3487 | .vsync_end = 493, |
| 3488 | .vtotal = 500, |
Eric Anholt | e8b6f56 | 2016-03-24 17:23:48 -0700 | [diff] [blame] | 3489 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 3490 | }; |
| 3491 | |
| 3492 | /* |
| 3493 | * Specification at: |
| 3494 | * https://www.adafruit.com/images/product-files/2406/c3163.pdf |
| 3495 | */ |
| 3496 | static const struct panel_desc ontat_yx700wv03 = { |
| 3497 | .modes = &ontat_yx700wv03_mode, |
| 3498 | .num_modes = 1, |
| 3499 | .bpc = 8, |
| 3500 | .size = { |
| 3501 | .width = 154, |
| 3502 | .height = 83, |
| 3503 | }, |
Eric Anholt | 5651e5e | 2018-03-09 15:33:32 -0800 | [diff] [blame] | 3504 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
Eric Anholt | e8b6f56 | 2016-03-24 17:23:48 -0700 | [diff] [blame] | 3505 | }; |
| 3506 | |
H. Nikolaus Schaller | 9c31dcb | 2019-06-07 13:11:08 +0200 | [diff] [blame] | 3507 | static const struct drm_display_mode ortustech_com37h3m_mode = { |
H. Nikolaus Schaller | 855e764 | 2020-03-10 08:43:19 +0100 | [diff] [blame] | 3508 | .clock = 22230, |
H. Nikolaus Schaller | 9c31dcb | 2019-06-07 13:11:08 +0200 | [diff] [blame] | 3509 | .hdisplay = 480, |
H. Nikolaus Schaller | 855e764 | 2020-03-10 08:43:19 +0100 | [diff] [blame] | 3510 | .hsync_start = 480 + 40, |
| 3511 | .hsync_end = 480 + 40 + 10, |
| 3512 | .htotal = 480 + 40 + 10 + 40, |
H. Nikolaus Schaller | 9c31dcb | 2019-06-07 13:11:08 +0200 | [diff] [blame] | 3513 | .vdisplay = 640, |
| 3514 | .vsync_start = 640 + 4, |
H. Nikolaus Schaller | 855e764 | 2020-03-10 08:43:19 +0100 | [diff] [blame] | 3515 | .vsync_end = 640 + 4 + 2, |
| 3516 | .vtotal = 640 + 4 + 2 + 4, |
H. Nikolaus Schaller | 9c31dcb | 2019-06-07 13:11:08 +0200 | [diff] [blame] | 3517 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 3518 | }; |
| 3519 | |
| 3520 | static const struct panel_desc ortustech_com37h3m = { |
| 3521 | .modes = &ortustech_com37h3m_mode, |
| 3522 | .num_modes = 1, |
| 3523 | .bpc = 8, |
| 3524 | .size = { |
| 3525 | .width = 56, /* 56.16mm */ |
| 3526 | .height = 75, /* 74.88mm */ |
| 3527 | }, |
| 3528 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 3529 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE | |
H. Nikolaus Schaller | 9c31dcb | 2019-06-07 13:11:08 +0200 | [diff] [blame] | 3530 | DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE, |
| 3531 | }; |
| 3532 | |
Philipp Zabel | 725c9d4 | 2015-02-11 18:50:11 +0100 | [diff] [blame] | 3533 | static const struct drm_display_mode ortustech_com43h4m85ulc_mode = { |
| 3534 | .clock = 25000, |
| 3535 | .hdisplay = 480, |
| 3536 | .hsync_start = 480 + 10, |
| 3537 | .hsync_end = 480 + 10 + 10, |
| 3538 | .htotal = 480 + 10 + 10 + 15, |
| 3539 | .vdisplay = 800, |
| 3540 | .vsync_start = 800 + 3, |
| 3541 | .vsync_end = 800 + 3 + 3, |
| 3542 | .vtotal = 800 + 3 + 3 + 3, |
Philipp Zabel | 725c9d4 | 2015-02-11 18:50:11 +0100 | [diff] [blame] | 3543 | }; |
| 3544 | |
| 3545 | static const struct panel_desc ortustech_com43h4m85ulc = { |
| 3546 | .modes = &ortustech_com43h4m85ulc_mode, |
| 3547 | .num_modes = 1, |
Laurent Pinchart | 3b80951 | 2020-08-24 03:32:54 +0300 | [diff] [blame] | 3548 | .bpc = 6, |
Philipp Zabel | 725c9d4 | 2015-02-11 18:50:11 +0100 | [diff] [blame] | 3549 | .size = { |
| 3550 | .width = 56, |
| 3551 | .height = 93, |
| 3552 | }, |
Laurent Pinchart | f098f16 | 2020-08-13 01:02:44 +0300 | [diff] [blame] | 3553 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 3554 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, |
Laurent Pinchart | 2ccedf4 | 2020-03-09 20:42:10 +0200 | [diff] [blame] | 3555 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
Philipp Zabel | 725c9d4 | 2015-02-11 18:50:11 +0100 | [diff] [blame] | 3556 | }; |
| 3557 | |
Laurent Pinchart | 163f7a3 | 2018-12-07 22:13:44 +0200 | [diff] [blame] | 3558 | static const struct drm_display_mode osddisplays_osd070t1718_19ts_mode = { |
| 3559 | .clock = 33000, |
| 3560 | .hdisplay = 800, |
| 3561 | .hsync_start = 800 + 210, |
| 3562 | .hsync_end = 800 + 210 + 30, |
| 3563 | .htotal = 800 + 210 + 30 + 16, |
| 3564 | .vdisplay = 480, |
| 3565 | .vsync_start = 480 + 22, |
| 3566 | .vsync_end = 480 + 22 + 13, |
| 3567 | .vtotal = 480 + 22 + 13 + 10, |
Laurent Pinchart | 163f7a3 | 2018-12-07 22:13:44 +0200 | [diff] [blame] | 3568 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 3569 | }; |
| 3570 | |
| 3571 | static const struct panel_desc osddisplays_osd070t1718_19ts = { |
| 3572 | .modes = &osddisplays_osd070t1718_19ts_mode, |
| 3573 | .num_modes = 1, |
| 3574 | .bpc = 8, |
| 3575 | .size = { |
| 3576 | .width = 152, |
| 3577 | .height = 91, |
| 3578 | }, |
| 3579 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Tomi Valkeinen | fb0629e | 2019-11-14 11:39:50 +0200 | [diff] [blame] | 3580 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE | |
| 3581 | DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE, |
Laurent Pinchart | a793f0e | 2019-09-04 16:37:23 +0300 | [diff] [blame] | 3582 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
Laurent Pinchart | 163f7a3 | 2018-12-07 22:13:44 +0200 | [diff] [blame] | 3583 | }; |
| 3584 | |
Eugen Hristev | 4ba3e56 | 2019-01-14 09:43:31 +0000 | [diff] [blame] | 3585 | static const struct drm_display_mode pda_91_00156_a0_mode = { |
| 3586 | .clock = 33300, |
| 3587 | .hdisplay = 800, |
| 3588 | .hsync_start = 800 + 1, |
| 3589 | .hsync_end = 800 + 1 + 64, |
| 3590 | .htotal = 800 + 1 + 64 + 64, |
| 3591 | .vdisplay = 480, |
| 3592 | .vsync_start = 480 + 1, |
| 3593 | .vsync_end = 480 + 1 + 23, |
| 3594 | .vtotal = 480 + 1 + 23 + 22, |
Eugen Hristev | 4ba3e56 | 2019-01-14 09:43:31 +0000 | [diff] [blame] | 3595 | }; |
| 3596 | |
| 3597 | static const struct panel_desc pda_91_00156_a0 = { |
| 3598 | .modes = &pda_91_00156_a0_mode, |
| 3599 | .num_modes = 1, |
| 3600 | .size = { |
| 3601 | .width = 152, |
| 3602 | .height = 91, |
| 3603 | }, |
| 3604 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 3605 | }; |
| 3606 | |
Marek Vasut | d69de69 | 2020-07-28 14:12:46 +0200 | [diff] [blame] | 3607 | static const struct drm_display_mode powertip_ph800480t013_idf02_mode = { |
| 3608 | .clock = 24750, |
| 3609 | .hdisplay = 800, |
| 3610 | .hsync_start = 800 + 54, |
| 3611 | .hsync_end = 800 + 54 + 2, |
| 3612 | .htotal = 800 + 54 + 2 + 44, |
| 3613 | .vdisplay = 480, |
| 3614 | .vsync_start = 480 + 49, |
| 3615 | .vsync_end = 480 + 49 + 2, |
| 3616 | .vtotal = 480 + 49 + 2 + 22, |
| 3617 | }; |
| 3618 | |
| 3619 | static const struct panel_desc powertip_ph800480t013_idf02 = { |
| 3620 | .modes = &powertip_ph800480t013_idf02_mode, |
| 3621 | .num_modes = 1, |
| 3622 | .size = { |
| 3623 | .width = 152, |
| 3624 | .height = 91, |
| 3625 | }, |
| 3626 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | |
| 3627 | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE | |
| 3628 | DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE, |
| 3629 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 3630 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 3631 | }; |
Eugen Hristev | 4ba3e56 | 2019-01-14 09:43:31 +0000 | [diff] [blame] | 3632 | |
Josh Wu | d2a6f0f | 2015-10-08 17:42:41 +0200 | [diff] [blame] | 3633 | static const struct drm_display_mode qd43003c0_40_mode = { |
| 3634 | .clock = 9000, |
| 3635 | .hdisplay = 480, |
| 3636 | .hsync_start = 480 + 8, |
| 3637 | .hsync_end = 480 + 8 + 4, |
| 3638 | .htotal = 480 + 8 + 4 + 39, |
| 3639 | .vdisplay = 272, |
| 3640 | .vsync_start = 272 + 4, |
| 3641 | .vsync_end = 272 + 4 + 10, |
| 3642 | .vtotal = 272 + 4 + 10 + 2, |
Josh Wu | d2a6f0f | 2015-10-08 17:42:41 +0200 | [diff] [blame] | 3643 | }; |
| 3644 | |
| 3645 | static const struct panel_desc qd43003c0_40 = { |
| 3646 | .modes = &qd43003c0_40_mode, |
| 3647 | .num_modes = 1, |
| 3648 | .bpc = 8, |
| 3649 | .size = { |
| 3650 | .width = 95, |
| 3651 | .height = 53, |
| 3652 | }, |
| 3653 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 3654 | }; |
| 3655 | |
Artjom Vejsel | 49179e6 | 2021-08-04 03:23:53 +0300 | [diff] [blame] | 3656 | static const struct drm_display_mode qishenglong_gopher2b_lcd_modes[] = { |
| 3657 | { /* 60 Hz */ |
| 3658 | .clock = 10800, |
| 3659 | .hdisplay = 480, |
| 3660 | .hsync_start = 480 + 77, |
| 3661 | .hsync_end = 480 + 77 + 41, |
| 3662 | .htotal = 480 + 77 + 41 + 2, |
| 3663 | .vdisplay = 272, |
| 3664 | .vsync_start = 272 + 16, |
| 3665 | .vsync_end = 272 + 16 + 10, |
| 3666 | .vtotal = 272 + 16 + 10 + 2, |
| 3667 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 3668 | }, |
| 3669 | { /* 50 Hz */ |
| 3670 | .clock = 10800, |
| 3671 | .hdisplay = 480, |
| 3672 | .hsync_start = 480 + 17, |
| 3673 | .hsync_end = 480 + 17 + 41, |
| 3674 | .htotal = 480 + 17 + 41 + 2, |
| 3675 | .vdisplay = 272, |
| 3676 | .vsync_start = 272 + 116, |
| 3677 | .vsync_end = 272 + 116 + 10, |
| 3678 | .vtotal = 272 + 116 + 10 + 2, |
| 3679 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 3680 | }, |
| 3681 | }; |
| 3682 | |
| 3683 | static const struct panel_desc qishenglong_gopher2b_lcd = { |
| 3684 | .modes = qishenglong_gopher2b_lcd_modes, |
| 3685 | .num_modes = ARRAY_SIZE(qishenglong_gopher2b_lcd_modes), |
| 3686 | .bpc = 8, |
| 3687 | .size = { |
| 3688 | .width = 95, |
| 3689 | .height = 54, |
| 3690 | }, |
| 3691 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 3692 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, |
| 3693 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
| 3694 | }; |
| 3695 | |
Jagan Teki | 23167fa | 2018-06-07 19:16:48 +0530 | [diff] [blame] | 3696 | static const struct display_timing rocktech_rk070er9427_timing = { |
| 3697 | .pixelclock = { 26400000, 33300000, 46800000 }, |
| 3698 | .hactive = { 800, 800, 800 }, |
| 3699 | .hfront_porch = { 16, 210, 354 }, |
| 3700 | .hback_porch = { 46, 46, 46 }, |
| 3701 | .hsync_len = { 1, 1, 1 }, |
| 3702 | .vactive = { 480, 480, 480 }, |
| 3703 | .vfront_porch = { 7, 22, 147 }, |
| 3704 | .vback_porch = { 23, 23, 23 }, |
| 3705 | .vsync_len = { 1, 1, 1 }, |
| 3706 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 3707 | }; |
| 3708 | |
| 3709 | static const struct panel_desc rocktech_rk070er9427 = { |
| 3710 | .timings = &rocktech_rk070er9427_timing, |
| 3711 | .num_timings = 1, |
| 3712 | .bpc = 6, |
| 3713 | .size = { |
| 3714 | .width = 154, |
| 3715 | .height = 86, |
| 3716 | }, |
| 3717 | .delay = { |
| 3718 | .prepare = 41, |
| 3719 | .enable = 50, |
| 3720 | .unprepare = 41, |
| 3721 | .disable = 50, |
| 3722 | }, |
| 3723 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 3724 | }; |
| 3725 | |
Jyri Sarha | f305047 | 2020-02-11 14:17:18 +0200 | [diff] [blame] | 3726 | static const struct drm_display_mode rocktech_rk101ii01d_ct_mode = { |
| 3727 | .clock = 71100, |
| 3728 | .hdisplay = 1280, |
| 3729 | .hsync_start = 1280 + 48, |
| 3730 | .hsync_end = 1280 + 48 + 32, |
| 3731 | .htotal = 1280 + 48 + 32 + 80, |
| 3732 | .vdisplay = 800, |
| 3733 | .vsync_start = 800 + 2, |
| 3734 | .vsync_end = 800 + 2 + 5, |
| 3735 | .vtotal = 800 + 2 + 5 + 16, |
Jyri Sarha | f305047 | 2020-02-11 14:17:18 +0200 | [diff] [blame] | 3736 | }; |
| 3737 | |
| 3738 | static const struct panel_desc rocktech_rk101ii01d_ct = { |
| 3739 | .modes = &rocktech_rk101ii01d_ct_mode, |
| 3740 | .num_modes = 1, |
| 3741 | .size = { |
| 3742 | .width = 217, |
| 3743 | .height = 136, |
| 3744 | }, |
| 3745 | .delay = { |
| 3746 | .prepare = 50, |
| 3747 | .disable = 50, |
| 3748 | }, |
| 3749 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
| 3750 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 3751 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 3752 | }; |
| 3753 | |
Yakir Yang | 0330eaf | 2016-06-12 10:56:13 +0800 | [diff] [blame] | 3754 | static const struct drm_display_mode samsung_lsn122dl01_c01_mode = { |
| 3755 | .clock = 271560, |
| 3756 | .hdisplay = 2560, |
| 3757 | .hsync_start = 2560 + 48, |
| 3758 | .hsync_end = 2560 + 48 + 32, |
| 3759 | .htotal = 2560 + 48 + 32 + 80, |
| 3760 | .vdisplay = 1600, |
| 3761 | .vsync_start = 1600 + 2, |
| 3762 | .vsync_end = 1600 + 2 + 5, |
| 3763 | .vtotal = 1600 + 2 + 5 + 57, |
Yakir Yang | 0330eaf | 2016-06-12 10:56:13 +0800 | [diff] [blame] | 3764 | }; |
| 3765 | |
| 3766 | static const struct panel_desc samsung_lsn122dl01_c01 = { |
| 3767 | .modes = &samsung_lsn122dl01_c01_mode, |
| 3768 | .num_modes = 1, |
| 3769 | .size = { |
| 3770 | .width = 263, |
| 3771 | .height = 164, |
| 3772 | }, |
| 3773 | }; |
| 3774 | |
Marc Dietrich | 6d54e3d | 2013-12-21 21:38:12 +0100 | [diff] [blame] | 3775 | static const struct drm_display_mode samsung_ltn101nt05_mode = { |
| 3776 | .clock = 54030, |
| 3777 | .hdisplay = 1024, |
| 3778 | .hsync_start = 1024 + 24, |
| 3779 | .hsync_end = 1024 + 24 + 136, |
| 3780 | .htotal = 1024 + 24 + 136 + 160, |
| 3781 | .vdisplay = 600, |
| 3782 | .vsync_start = 600 + 3, |
| 3783 | .vsync_end = 600 + 3 + 6, |
| 3784 | .vtotal = 600 + 3 + 6 + 61, |
Marc Dietrich | 6d54e3d | 2013-12-21 21:38:12 +0100 | [diff] [blame] | 3785 | }; |
| 3786 | |
| 3787 | static const struct panel_desc samsung_ltn101nt05 = { |
| 3788 | .modes = &samsung_ltn101nt05_mode, |
| 3789 | .num_modes = 1, |
Stéphane Marchesin | 0208d51 | 2014-06-19 18:18:28 -0700 | [diff] [blame] | 3790 | .bpc = 6, |
Marc Dietrich | 6d54e3d | 2013-12-21 21:38:12 +0100 | [diff] [blame] | 3791 | .size = { |
Thierry Reding | 8159884 | 2016-06-10 15:33:13 +0200 | [diff] [blame] | 3792 | .width = 223, |
| 3793 | .height = 125, |
Marc Dietrich | 6d54e3d | 2013-12-21 21:38:12 +0100 | [diff] [blame] | 3794 | }, |
Dmitry Osipenko | 8556082 | 2020-06-22 01:27:42 +0300 | [diff] [blame] | 3795 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 3796 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
Dmitry Osipenko | 94f0791 | 2020-06-18 01:27:03 +0300 | [diff] [blame] | 3797 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Marc Dietrich | 6d54e3d | 2013-12-21 21:38:12 +0100 | [diff] [blame] | 3798 | }; |
| 3799 | |
Stéphane Marchesin | 0c93430 | 2015-03-18 10:52:18 +0100 | [diff] [blame] | 3800 | static const struct drm_display_mode samsung_ltn140at29_301_mode = { |
| 3801 | .clock = 76300, |
| 3802 | .hdisplay = 1366, |
| 3803 | .hsync_start = 1366 + 64, |
| 3804 | .hsync_end = 1366 + 64 + 48, |
| 3805 | .htotal = 1366 + 64 + 48 + 128, |
| 3806 | .vdisplay = 768, |
| 3807 | .vsync_start = 768 + 2, |
| 3808 | .vsync_end = 768 + 2 + 5, |
| 3809 | .vtotal = 768 + 2 + 5 + 17, |
Stéphane Marchesin | 0c93430 | 2015-03-18 10:52:18 +0100 | [diff] [blame] | 3810 | }; |
| 3811 | |
| 3812 | static const struct panel_desc samsung_ltn140at29_301 = { |
| 3813 | .modes = &samsung_ltn140at29_301_mode, |
| 3814 | .num_modes = 1, |
| 3815 | .bpc = 6, |
| 3816 | .size = { |
| 3817 | .width = 320, |
| 3818 | .height = 187, |
| 3819 | }, |
| 3820 | }; |
| 3821 | |
Miquel Raynal | 44c58c5 | 2020-01-09 19:40:37 +0100 | [diff] [blame] | 3822 | static const struct display_timing satoz_sat050at40h12r2_timing = { |
| 3823 | .pixelclock = {33300000, 33300000, 50000000}, |
| 3824 | .hactive = {800, 800, 800}, |
| 3825 | .hfront_porch = {16, 210, 354}, |
| 3826 | .hback_porch = {46, 46, 46}, |
| 3827 | .hsync_len = {1, 1, 40}, |
| 3828 | .vactive = {480, 480, 480}, |
| 3829 | .vfront_porch = {7, 22, 147}, |
| 3830 | .vback_porch = {23, 23, 23}, |
| 3831 | .vsync_len = {1, 1, 20}, |
| 3832 | }; |
| 3833 | |
| 3834 | static const struct panel_desc satoz_sat050at40h12r2 = { |
| 3835 | .timings = &satoz_sat050at40h12r2_timing, |
| 3836 | .num_timings = 1, |
| 3837 | .bpc = 8, |
| 3838 | .size = { |
| 3839 | .width = 108, |
| 3840 | .height = 65, |
| 3841 | }, |
Laurent Pinchart | 34ca6b5 | 2020-06-30 02:33:18 +0300 | [diff] [blame] | 3842 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Miquel Raynal | 44c58c5 | 2020-01-09 19:40:37 +0100 | [diff] [blame] | 3843 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 3844 | }; |
| 3845 | |
Jeffrey Hugo | cd5e1cb | 2019-07-08 09:58:11 -0700 | [diff] [blame] | 3846 | static const struct drm_display_mode sharp_ld_d5116z01b_mode = { |
| 3847 | .clock = 168480, |
| 3848 | .hdisplay = 1920, |
| 3849 | .hsync_start = 1920 + 48, |
| 3850 | .hsync_end = 1920 + 48 + 32, |
| 3851 | .htotal = 1920 + 48 + 32 + 80, |
| 3852 | .vdisplay = 1280, |
| 3853 | .vsync_start = 1280 + 3, |
| 3854 | .vsync_end = 1280 + 3 + 10, |
| 3855 | .vtotal = 1280 + 3 + 10 + 57, |
Jeffrey Hugo | cd5e1cb | 2019-07-08 09:58:11 -0700 | [diff] [blame] | 3856 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, |
| 3857 | }; |
| 3858 | |
| 3859 | static const struct panel_desc sharp_ld_d5116z01b = { |
| 3860 | .modes = &sharp_ld_d5116z01b_mode, |
| 3861 | .num_modes = 1, |
| 3862 | .bpc = 8, |
| 3863 | .size = { |
| 3864 | .width = 260, |
| 3865 | .height = 120, |
| 3866 | }, |
| 3867 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 3868 | .bus_flags = DRM_BUS_FLAG_DATA_MSB_TO_LSB, |
| 3869 | }; |
| 3870 | |
H. Nikolaus Schaller | dda0e4b | 2019-06-07 13:11:07 +0200 | [diff] [blame] | 3871 | static const struct drm_display_mode sharp_lq070y3dg3b_mode = { |
| 3872 | .clock = 33260, |
| 3873 | .hdisplay = 800, |
| 3874 | .hsync_start = 800 + 64, |
| 3875 | .hsync_end = 800 + 64 + 128, |
| 3876 | .htotal = 800 + 64 + 128 + 64, |
| 3877 | .vdisplay = 480, |
| 3878 | .vsync_start = 480 + 8, |
| 3879 | .vsync_end = 480 + 8 + 2, |
| 3880 | .vtotal = 480 + 8 + 2 + 35, |
H. Nikolaus Schaller | dda0e4b | 2019-06-07 13:11:07 +0200 | [diff] [blame] | 3881 | .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE, |
| 3882 | }; |
| 3883 | |
| 3884 | static const struct panel_desc sharp_lq070y3dg3b = { |
| 3885 | .modes = &sharp_lq070y3dg3b_mode, |
| 3886 | .num_modes = 1, |
| 3887 | .bpc = 8, |
| 3888 | .size = { |
| 3889 | .width = 152, /* 152.4mm */ |
| 3890 | .height = 91, /* 91.4mm */ |
| 3891 | }, |
| 3892 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 3893 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE | |
H. Nikolaus Schaller | dda0e4b | 2019-06-07 13:11:07 +0200 | [diff] [blame] | 3894 | DRM_BUS_FLAG_SYNC_DRIVE_POSEDGE, |
| 3895 | }; |
| 3896 | |
Vladimir Zapolskiy | 03e3ec9 | 2018-07-06 21:51:01 +0300 | [diff] [blame] | 3897 | static const struct drm_display_mode sharp_lq035q7db03_mode = { |
| 3898 | .clock = 5500, |
| 3899 | .hdisplay = 240, |
| 3900 | .hsync_start = 240 + 16, |
| 3901 | .hsync_end = 240 + 16 + 7, |
| 3902 | .htotal = 240 + 16 + 7 + 5, |
| 3903 | .vdisplay = 320, |
| 3904 | .vsync_start = 320 + 9, |
| 3905 | .vsync_end = 320 + 9 + 1, |
| 3906 | .vtotal = 320 + 9 + 1 + 7, |
Vladimir Zapolskiy | 03e3ec9 | 2018-07-06 21:51:01 +0300 | [diff] [blame] | 3907 | }; |
| 3908 | |
| 3909 | static const struct panel_desc sharp_lq035q7db03 = { |
| 3910 | .modes = &sharp_lq035q7db03_mode, |
| 3911 | .num_modes = 1, |
| 3912 | .bpc = 6, |
| 3913 | .size = { |
| 3914 | .width = 54, |
| 3915 | .height = 72, |
| 3916 | }, |
| 3917 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 3918 | }; |
| 3919 | |
Joshua Clayton | 592aa02 | 2016-07-06 15:59:16 -0700 | [diff] [blame] | 3920 | static const struct display_timing sharp_lq101k1ly04_timing = { |
| 3921 | .pixelclock = { 60000000, 65000000, 80000000 }, |
| 3922 | .hactive = { 1280, 1280, 1280 }, |
| 3923 | .hfront_porch = { 20, 20, 20 }, |
| 3924 | .hback_porch = { 20, 20, 20 }, |
| 3925 | .hsync_len = { 10, 10, 10 }, |
| 3926 | .vactive = { 800, 800, 800 }, |
| 3927 | .vfront_porch = { 4, 4, 4 }, |
| 3928 | .vback_porch = { 4, 4, 4 }, |
| 3929 | .vsync_len = { 4, 4, 4 }, |
| 3930 | .flags = DISPLAY_FLAGS_PIXDATA_POSEDGE, |
| 3931 | }; |
| 3932 | |
| 3933 | static const struct panel_desc sharp_lq101k1ly04 = { |
| 3934 | .timings = &sharp_lq101k1ly04_timing, |
| 3935 | .num_timings = 1, |
| 3936 | .bpc = 8, |
| 3937 | .size = { |
| 3938 | .width = 217, |
| 3939 | .height = 136, |
| 3940 | }, |
| 3941 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 3942 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Joshua Clayton | 592aa02 | 2016-07-06 15:59:16 -0700 | [diff] [blame] | 3943 | }; |
| 3944 | |
Sean Paul | 9f7bae2 | 2018-02-08 12:48:52 -0500 | [diff] [blame] | 3945 | static const struct display_timing sharp_lq123p1jx31_timing = { |
| 3946 | .pixelclock = { 252750000, 252750000, 266604720 }, |
| 3947 | .hactive = { 2400, 2400, 2400 }, |
| 3948 | .hfront_porch = { 48, 48, 48 }, |
| 3949 | .hback_porch = { 80, 80, 84 }, |
| 3950 | .hsync_len = { 32, 32, 32 }, |
| 3951 | .vactive = { 1600, 1600, 1600 }, |
| 3952 | .vfront_porch = { 3, 3, 3 }, |
| 3953 | .vback_porch = { 33, 33, 120 }, |
| 3954 | .vsync_len = { 10, 10, 10 }, |
| 3955 | .flags = DISPLAY_FLAGS_VSYNC_LOW | DISPLAY_FLAGS_HSYNC_LOW, |
Yakir Yang | 739c7de | 2016-06-12 10:56:35 +0800 | [diff] [blame] | 3956 | }; |
| 3957 | |
| 3958 | static const struct panel_desc sharp_lq123p1jx31 = { |
Sean Paul | 9f7bae2 | 2018-02-08 12:48:52 -0500 | [diff] [blame] | 3959 | .timings = &sharp_lq123p1jx31_timing, |
| 3960 | .num_timings = 1, |
zain wang | 5466a63 | 2016-11-19 10:27:16 +0800 | [diff] [blame] | 3961 | .bpc = 8, |
Yakir Yang | 739c7de | 2016-06-12 10:56:35 +0800 | [diff] [blame] | 3962 | .size = { |
| 3963 | .width = 259, |
| 3964 | .height = 173, |
| 3965 | }, |
Yakir Yang | a42f6e3 | 2016-07-21 21:14:34 +0800 | [diff] [blame] | 3966 | .delay = { |
| 3967 | .prepare = 110, |
| 3968 | .enable = 50, |
| 3969 | .unprepare = 550, |
| 3970 | }, |
Yakir Yang | 739c7de | 2016-06-12 10:56:35 +0800 | [diff] [blame] | 3971 | }; |
| 3972 | |
Paul Cercueil | 656b759 | 2020-08-11 02:22:38 +0200 | [diff] [blame] | 3973 | static const struct drm_display_mode sharp_ls020b1dd01d_modes[] = { |
Paul Cercueil | e6c21e6 | 2020-08-11 02:22:40 +0200 | [diff] [blame] | 3974 | { /* 50 Hz */ |
| 3975 | .clock = 3000, |
| 3976 | .hdisplay = 240, |
| 3977 | .hsync_start = 240 + 58, |
| 3978 | .hsync_end = 240 + 58 + 1, |
| 3979 | .htotal = 240 + 58 + 1 + 1, |
| 3980 | .vdisplay = 160, |
| 3981 | .vsync_start = 160 + 24, |
| 3982 | .vsync_end = 160 + 24 + 10, |
| 3983 | .vtotal = 160 + 24 + 10 + 6, |
| 3984 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 3985 | }, |
Paul Cercueil | 656b759 | 2020-08-11 02:22:38 +0200 | [diff] [blame] | 3986 | { /* 60 Hz */ |
Paul Cercueil | c1bd32b | 2020-08-11 02:22:39 +0200 | [diff] [blame] | 3987 | .clock = 3000, |
Paul Cercueil | 656b759 | 2020-08-11 02:22:38 +0200 | [diff] [blame] | 3988 | .hdisplay = 240, |
Paul Cercueil | c1bd32b | 2020-08-11 02:22:39 +0200 | [diff] [blame] | 3989 | .hsync_start = 240 + 8, |
| 3990 | .hsync_end = 240 + 8 + 1, |
| 3991 | .htotal = 240 + 8 + 1 + 1, |
Paul Cercueil | 656b759 | 2020-08-11 02:22:38 +0200 | [diff] [blame] | 3992 | .vdisplay = 160, |
Paul Cercueil | c1bd32b | 2020-08-11 02:22:39 +0200 | [diff] [blame] | 3993 | .vsync_start = 160 + 24, |
| 3994 | .vsync_end = 160 + 24 + 10, |
| 3995 | .vtotal = 160 + 24 + 10 + 6, |
Paul Cercueil | 656b759 | 2020-08-11 02:22:38 +0200 | [diff] [blame] | 3996 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 3997 | }, |
Paul Cercueil | f1bd37f | 2019-06-03 17:31:20 +0200 | [diff] [blame] | 3998 | }; |
| 3999 | |
| 4000 | static const struct panel_desc sharp_ls020b1dd01d = { |
Paul Cercueil | 656b759 | 2020-08-11 02:22:38 +0200 | [diff] [blame] | 4001 | .modes = sharp_ls020b1dd01d_modes, |
| 4002 | .num_modes = ARRAY_SIZE(sharp_ls020b1dd01d_modes), |
Paul Cercueil | f1bd37f | 2019-06-03 17:31:20 +0200 | [diff] [blame] | 4003 | .bpc = 6, |
| 4004 | .size = { |
| 4005 | .width = 42, |
| 4006 | .height = 28, |
| 4007 | }, |
| 4008 | .bus_format = MEDIA_BUS_FMT_RGB565_1X16, |
| 4009 | .bus_flags = DRM_BUS_FLAG_DE_HIGH |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 4010 | | DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE |
Paul Cercueil | f1bd37f | 2019-06-03 17:31:20 +0200 | [diff] [blame] | 4011 | | DRM_BUS_FLAG_SHARP_SIGNALS, |
| 4012 | }; |
| 4013 | |
Boris BREZILLON | 9c6615b | 2015-03-19 14:43:00 +0100 | [diff] [blame] | 4014 | static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = { |
| 4015 | .clock = 33300, |
| 4016 | .hdisplay = 800, |
| 4017 | .hsync_start = 800 + 1, |
| 4018 | .hsync_end = 800 + 1 + 64, |
| 4019 | .htotal = 800 + 1 + 64 + 64, |
| 4020 | .vdisplay = 480, |
| 4021 | .vsync_start = 480 + 1, |
| 4022 | .vsync_end = 480 + 1 + 23, |
| 4023 | .vtotal = 480 + 1 + 23 + 22, |
Boris BREZILLON | 9c6615b | 2015-03-19 14:43:00 +0100 | [diff] [blame] | 4024 | }; |
| 4025 | |
| 4026 | static const struct panel_desc shelly_sca07010_bfn_lnn = { |
| 4027 | .modes = &shelly_sca07010_bfn_lnn_mode, |
| 4028 | .num_modes = 1, |
| 4029 | .size = { |
| 4030 | .width = 152, |
| 4031 | .height = 91, |
| 4032 | }, |
| 4033 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 4034 | }; |
| 4035 | |
Pascal Roeleven | 105235e | 2020-03-20 12:21:33 +0100 | [diff] [blame] | 4036 | static const struct drm_display_mode starry_kr070pe2t_mode = { |
| 4037 | .clock = 33000, |
| 4038 | .hdisplay = 800, |
| 4039 | .hsync_start = 800 + 209, |
| 4040 | .hsync_end = 800 + 209 + 1, |
| 4041 | .htotal = 800 + 209 + 1 + 45, |
| 4042 | .vdisplay = 480, |
| 4043 | .vsync_start = 480 + 22, |
| 4044 | .vsync_end = 480 + 22 + 1, |
| 4045 | .vtotal = 480 + 22 + 1 + 22, |
Pascal Roeleven | 105235e | 2020-03-20 12:21:33 +0100 | [diff] [blame] | 4046 | }; |
| 4047 | |
| 4048 | static const struct panel_desc starry_kr070pe2t = { |
| 4049 | .modes = &starry_kr070pe2t_mode, |
| 4050 | .num_modes = 1, |
| 4051 | .bpc = 8, |
| 4052 | .size = { |
| 4053 | .width = 152, |
| 4054 | .height = 86, |
| 4055 | }, |
| 4056 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 4057 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_DRIVE_NEGEDGE, |
Laurent Pinchart | 41fad30 | 2020-06-30 02:33:17 +0300 | [diff] [blame] | 4058 | .connector_type = DRM_MODE_CONNECTOR_DPI, |
Pascal Roeleven | 105235e | 2020-03-20 12:21:33 +0100 | [diff] [blame] | 4059 | }; |
| 4060 | |
Douglas Anderson | 9bb34c4 | 2016-06-10 10:02:07 -0700 | [diff] [blame] | 4061 | static const struct drm_display_mode starry_kr122ea0sra_mode = { |
| 4062 | .clock = 147000, |
| 4063 | .hdisplay = 1920, |
| 4064 | .hsync_start = 1920 + 16, |
| 4065 | .hsync_end = 1920 + 16 + 16, |
| 4066 | .htotal = 1920 + 16 + 16 + 32, |
| 4067 | .vdisplay = 1200, |
| 4068 | .vsync_start = 1200 + 15, |
| 4069 | .vsync_end = 1200 + 15 + 2, |
| 4070 | .vtotal = 1200 + 15 + 2 + 18, |
Douglas Anderson | 9bb34c4 | 2016-06-10 10:02:07 -0700 | [diff] [blame] | 4071 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 4072 | }; |
| 4073 | |
| 4074 | static const struct panel_desc starry_kr122ea0sra = { |
| 4075 | .modes = &starry_kr122ea0sra_mode, |
| 4076 | .num_modes = 1, |
| 4077 | .size = { |
| 4078 | .width = 263, |
| 4079 | .height = 164, |
| 4080 | }, |
Brian Norris | c46b924 | 2016-08-26 14:32:14 -0700 | [diff] [blame] | 4081 | .delay = { |
| 4082 | .prepare = 10 + 200, |
| 4083 | .enable = 50, |
| 4084 | .unprepare = 10 + 500, |
| 4085 | }, |
Douglas Anderson | 9bb34c4 | 2016-06-10 10:02:07 -0700 | [diff] [blame] | 4086 | }; |
| 4087 | |
Jyri Sarha | 4216153 | 2019-03-22 10:33:36 +0200 | [diff] [blame] | 4088 | static const struct drm_display_mode tfc_s9700rtwv43tr_01b_mode = { |
| 4089 | .clock = 30000, |
| 4090 | .hdisplay = 800, |
| 4091 | .hsync_start = 800 + 39, |
| 4092 | .hsync_end = 800 + 39 + 47, |
| 4093 | .htotal = 800 + 39 + 47 + 39, |
| 4094 | .vdisplay = 480, |
| 4095 | .vsync_start = 480 + 13, |
| 4096 | .vsync_end = 480 + 13 + 2, |
| 4097 | .vtotal = 480 + 13 + 2 + 29, |
Jyri Sarha | 4216153 | 2019-03-22 10:33:36 +0200 | [diff] [blame] | 4098 | }; |
| 4099 | |
| 4100 | static const struct panel_desc tfc_s9700rtwv43tr_01b = { |
| 4101 | .modes = &tfc_s9700rtwv43tr_01b_mode, |
| 4102 | .num_modes = 1, |
| 4103 | .bpc = 8, |
| 4104 | .size = { |
| 4105 | .width = 155, |
| 4106 | .height = 90, |
| 4107 | }, |
| 4108 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 4109 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, |
Jyri Sarha | 4216153 | 2019-03-22 10:33:36 +0200 | [diff] [blame] | 4110 | }; |
| 4111 | |
Gary Bisson | adb973e | 2016-12-02 09:52:08 +0100 | [diff] [blame] | 4112 | static const struct display_timing tianma_tm070jdhg30_timing = { |
| 4113 | .pixelclock = { 62600000, 68200000, 78100000 }, |
| 4114 | .hactive = { 1280, 1280, 1280 }, |
| 4115 | .hfront_porch = { 15, 64, 159 }, |
| 4116 | .hback_porch = { 5, 5, 5 }, |
| 4117 | .hsync_len = { 1, 1, 256 }, |
| 4118 | .vactive = { 800, 800, 800 }, |
| 4119 | .vfront_porch = { 3, 40, 99 }, |
| 4120 | .vback_porch = { 2, 2, 2 }, |
| 4121 | .vsync_len = { 1, 1, 128 }, |
| 4122 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 4123 | }; |
| 4124 | |
| 4125 | static const struct panel_desc tianma_tm070jdhg30 = { |
| 4126 | .timings = &tianma_tm070jdhg30_timing, |
| 4127 | .num_timings = 1, |
| 4128 | .bpc = 8, |
| 4129 | .size = { |
| 4130 | .width = 151, |
| 4131 | .height = 95, |
| 4132 | }, |
| 4133 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 4134 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Gary Bisson | adb973e | 2016-12-02 09:52:08 +0100 | [diff] [blame] | 4135 | }; |
| 4136 | |
Max Merchel | b3bfcdf | 2020-06-12 09:22:19 +0200 | [diff] [blame] | 4137 | static const struct panel_desc tianma_tm070jvhg33 = { |
| 4138 | .timings = &tianma_tm070jdhg30_timing, |
| 4139 | .num_timings = 1, |
| 4140 | .bpc = 8, |
| 4141 | .size = { |
| 4142 | .width = 150, |
| 4143 | .height = 94, |
| 4144 | }, |
| 4145 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 4146 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 4147 | }; |
| 4148 | |
Lukasz Majewski | 870a0b1 | 2017-11-07 16:30:58 +0100 | [diff] [blame] | 4149 | static const struct display_timing tianma_tm070rvhg71_timing = { |
| 4150 | .pixelclock = { 27700000, 29200000, 39600000 }, |
| 4151 | .hactive = { 800, 800, 800 }, |
| 4152 | .hfront_porch = { 12, 40, 212 }, |
| 4153 | .hback_porch = { 88, 88, 88 }, |
| 4154 | .hsync_len = { 1, 1, 40 }, |
| 4155 | .vactive = { 480, 480, 480 }, |
| 4156 | .vfront_porch = { 1, 13, 88 }, |
| 4157 | .vback_porch = { 32, 32, 32 }, |
| 4158 | .vsync_len = { 1, 1, 3 }, |
| 4159 | .flags = DISPLAY_FLAGS_DE_HIGH, |
| 4160 | }; |
| 4161 | |
| 4162 | static const struct panel_desc tianma_tm070rvhg71 = { |
| 4163 | .timings = &tianma_tm070rvhg71_timing, |
| 4164 | .num_timings = 1, |
| 4165 | .bpc = 8, |
| 4166 | .size = { |
| 4167 | .width = 154, |
| 4168 | .height = 86, |
| 4169 | }, |
| 4170 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 4171 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lukasz Majewski | 870a0b1 | 2017-11-07 16:30:58 +0100 | [diff] [blame] | 4172 | }; |
| 4173 | |
Linus Walleij | d8a0d6a | 2019-08-05 10:58:46 +0200 | [diff] [blame] | 4174 | static const struct drm_display_mode ti_nspire_cx_lcd_mode[] = { |
| 4175 | { |
| 4176 | .clock = 10000, |
| 4177 | .hdisplay = 320, |
| 4178 | .hsync_start = 320 + 50, |
| 4179 | .hsync_end = 320 + 50 + 6, |
| 4180 | .htotal = 320 + 50 + 6 + 38, |
| 4181 | .vdisplay = 240, |
| 4182 | .vsync_start = 240 + 3, |
| 4183 | .vsync_end = 240 + 3 + 1, |
| 4184 | .vtotal = 240 + 3 + 1 + 17, |
Linus Walleij | d8a0d6a | 2019-08-05 10:58:46 +0200 | [diff] [blame] | 4185 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 4186 | }, |
| 4187 | }; |
| 4188 | |
| 4189 | static const struct panel_desc ti_nspire_cx_lcd_panel = { |
| 4190 | .modes = ti_nspire_cx_lcd_mode, |
| 4191 | .num_modes = 1, |
| 4192 | .bpc = 8, |
| 4193 | .size = { |
| 4194 | .width = 65, |
| 4195 | .height = 49, |
| 4196 | }, |
| 4197 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 4198 | .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_POSEDGE, |
Linus Walleij | d8a0d6a | 2019-08-05 10:58:46 +0200 | [diff] [blame] | 4199 | }; |
| 4200 | |
| 4201 | static const struct drm_display_mode ti_nspire_classic_lcd_mode[] = { |
| 4202 | { |
| 4203 | .clock = 10000, |
| 4204 | .hdisplay = 320, |
| 4205 | .hsync_start = 320 + 6, |
| 4206 | .hsync_end = 320 + 6 + 6, |
| 4207 | .htotal = 320 + 6 + 6 + 6, |
| 4208 | .vdisplay = 240, |
| 4209 | .vsync_start = 240 + 0, |
| 4210 | .vsync_end = 240 + 0 + 1, |
| 4211 | .vtotal = 240 + 0 + 1 + 0, |
Linus Walleij | d8a0d6a | 2019-08-05 10:58:46 +0200 | [diff] [blame] | 4212 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, |
| 4213 | }, |
| 4214 | }; |
| 4215 | |
| 4216 | static const struct panel_desc ti_nspire_classic_lcd_panel = { |
| 4217 | .modes = ti_nspire_classic_lcd_mode, |
| 4218 | .num_modes = 1, |
| 4219 | /* The grayscale panel has 8 bit for the color .. Y (black) */ |
| 4220 | .bpc = 8, |
| 4221 | .size = { |
| 4222 | .width = 71, |
| 4223 | .height = 53, |
| 4224 | }, |
| 4225 | /* This is the grayscale bus format */ |
| 4226 | .bus_format = MEDIA_BUS_FMT_Y8_1X8, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 4227 | .bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, |
Linus Walleij | d8a0d6a | 2019-08-05 10:58:46 +0200 | [diff] [blame] | 4228 | }; |
| 4229 | |
Lucas Stach | 06e733e | 2017-10-18 19:22:40 +0200 | [diff] [blame] | 4230 | static const struct drm_display_mode toshiba_lt089ac29000_mode = { |
| 4231 | .clock = 79500, |
| 4232 | .hdisplay = 1280, |
| 4233 | .hsync_start = 1280 + 192, |
| 4234 | .hsync_end = 1280 + 192 + 128, |
| 4235 | .htotal = 1280 + 192 + 128 + 64, |
| 4236 | .vdisplay = 768, |
| 4237 | .vsync_start = 768 + 20, |
| 4238 | .vsync_end = 768 + 20 + 7, |
| 4239 | .vtotal = 768 + 20 + 7 + 3, |
Lucas Stach | 06e733e | 2017-10-18 19:22:40 +0200 | [diff] [blame] | 4240 | }; |
| 4241 | |
| 4242 | static const struct panel_desc toshiba_lt089ac29000 = { |
| 4243 | .modes = &toshiba_lt089ac29000_mode, |
| 4244 | .num_modes = 1, |
| 4245 | .size = { |
| 4246 | .width = 194, |
| 4247 | .height = 116, |
| 4248 | }, |
Boris Brezillon | 9781bd1 | 2020-01-28 14:55:13 +0100 | [diff] [blame] | 4249 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_JEIDA, |
Laurent Pinchart | c471583 | 2020-06-30 02:33:19 +0300 | [diff] [blame] | 4250 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 4251 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Lucas Stach | 06e733e | 2017-10-18 19:22:40 +0200 | [diff] [blame] | 4252 | }; |
| 4253 | |
Bhuvanchandra DV | 227e4f4 | 2016-05-05 11:47:07 +0530 | [diff] [blame] | 4254 | static const struct drm_display_mode tpk_f07a_0102_mode = { |
| 4255 | .clock = 33260, |
| 4256 | .hdisplay = 800, |
| 4257 | .hsync_start = 800 + 40, |
| 4258 | .hsync_end = 800 + 40 + 128, |
| 4259 | .htotal = 800 + 40 + 128 + 88, |
| 4260 | .vdisplay = 480, |
| 4261 | .vsync_start = 480 + 10, |
| 4262 | .vsync_end = 480 + 10 + 2, |
| 4263 | .vtotal = 480 + 10 + 2 + 33, |
Bhuvanchandra DV | 227e4f4 | 2016-05-05 11:47:07 +0530 | [diff] [blame] | 4264 | }; |
| 4265 | |
| 4266 | static const struct panel_desc tpk_f07a_0102 = { |
| 4267 | .modes = &tpk_f07a_0102_mode, |
| 4268 | .num_modes = 1, |
| 4269 | .size = { |
| 4270 | .width = 152, |
| 4271 | .height = 91, |
| 4272 | }, |
Laurent Pinchart | 88bc417 | 2018-09-22 15:02:42 +0300 | [diff] [blame] | 4273 | .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, |
Bhuvanchandra DV | 227e4f4 | 2016-05-05 11:47:07 +0530 | [diff] [blame] | 4274 | }; |
| 4275 | |
| 4276 | static const struct drm_display_mode tpk_f10a_0102_mode = { |
| 4277 | .clock = 45000, |
| 4278 | .hdisplay = 1024, |
| 4279 | .hsync_start = 1024 + 176, |
| 4280 | .hsync_end = 1024 + 176 + 5, |
| 4281 | .htotal = 1024 + 176 + 5 + 88, |
| 4282 | .vdisplay = 600, |
| 4283 | .vsync_start = 600 + 20, |
| 4284 | .vsync_end = 600 + 20 + 5, |
| 4285 | .vtotal = 600 + 20 + 5 + 25, |
Bhuvanchandra DV | 227e4f4 | 2016-05-05 11:47:07 +0530 | [diff] [blame] | 4286 | }; |
| 4287 | |
| 4288 | static const struct panel_desc tpk_f10a_0102 = { |
| 4289 | .modes = &tpk_f10a_0102_mode, |
| 4290 | .num_modes = 1, |
| 4291 | .size = { |
| 4292 | .width = 223, |
| 4293 | .height = 125, |
| 4294 | }, |
| 4295 | }; |
| 4296 | |
Maciej S. Szmigiero | 06a9dc6 | 2016-02-13 22:52:03 +0100 | [diff] [blame] | 4297 | static const struct display_timing urt_umsh_8596md_timing = { |
| 4298 | .pixelclock = { 33260000, 33260000, 33260000 }, |
| 4299 | .hactive = { 800, 800, 800 }, |
| 4300 | .hfront_porch = { 41, 41, 41 }, |
| 4301 | .hback_porch = { 216 - 128, 216 - 128, 216 - 128 }, |
| 4302 | .hsync_len = { 71, 128, 128 }, |
| 4303 | .vactive = { 480, 480, 480 }, |
| 4304 | .vfront_porch = { 10, 10, 10 }, |
| 4305 | .vback_porch = { 35 - 2, 35 - 2, 35 - 2 }, |
| 4306 | .vsync_len = { 2, 2, 2 }, |
| 4307 | .flags = DISPLAY_FLAGS_DE_HIGH | DISPLAY_FLAGS_PIXDATA_NEGEDGE | |
| 4308 | DISPLAY_FLAGS_HSYNC_LOW | DISPLAY_FLAGS_VSYNC_LOW, |
| 4309 | }; |
| 4310 | |
| 4311 | static const struct panel_desc urt_umsh_8596md_lvds = { |
| 4312 | .timings = &urt_umsh_8596md_timing, |
| 4313 | .num_timings = 1, |
| 4314 | .bpc = 6, |
| 4315 | .size = { |
| 4316 | .width = 152, |
| 4317 | .height = 91, |
| 4318 | }, |
| 4319 | .bus_format = MEDIA_BUS_FMT_RGB666_1X7X3_SPWG, |
Laurent Pinchart | 9a2654c | 2019-09-04 16:28:03 +0300 | [diff] [blame] | 4320 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
Maciej S. Szmigiero | 06a9dc6 | 2016-02-13 22:52:03 +0100 | [diff] [blame] | 4321 | }; |
| 4322 | |
| 4323 | static const struct panel_desc urt_umsh_8596md_parallel = { |
| 4324 | .timings = &urt_umsh_8596md_timing, |
| 4325 | .num_timings = 1, |
| 4326 | .bpc = 6, |
| 4327 | .size = { |
| 4328 | .width = 152, |
| 4329 | .height = 91, |
| 4330 | }, |
| 4331 | .bus_format = MEDIA_BUS_FMT_RGB666_1X18, |
| 4332 | }; |
| 4333 | |
Fabio Estevam | 0420618 | 2019-02-18 21:27:06 -0300 | [diff] [blame] | 4334 | static const struct drm_display_mode vl050_8048nt_c01_mode = { |
| 4335 | .clock = 33333, |
| 4336 | .hdisplay = 800, |
| 4337 | .hsync_start = 800 + 210, |
| 4338 | .hsync_end = 800 + 210 + 20, |
| 4339 | .htotal = 800 + 210 + 20 + 46, |
| 4340 | .vdisplay = 480, |
| 4341 | .vsync_start = 480 + 22, |
| 4342 | .vsync_end = 480 + 22 + 10, |
| 4343 | .vtotal = 480 + 22 + 10 + 23, |
Fabio Estevam | 0420618 | 2019-02-18 21:27:06 -0300 | [diff] [blame] | 4344 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 4345 | }; |
| 4346 | |
| 4347 | static const struct panel_desc vl050_8048nt_c01 = { |
| 4348 | .modes = &vl050_8048nt_c01_mode, |
| 4349 | .num_modes = 1, |
| 4350 | .bpc = 8, |
| 4351 | .size = { |
| 4352 | .width = 120, |
| 4353 | .height = 76, |
| 4354 | }, |
| 4355 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
Sam Ravnborg | f5436f7 | 2020-06-30 20:05:43 +0200 | [diff] [blame] | 4356 | .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE, |
Fabio Estevam | 0420618 | 2019-02-18 21:27:06 -0300 | [diff] [blame] | 4357 | }; |
| 4358 | |
Richard Genoud | e4bac40 | 2017-03-27 12:33:23 +0200 | [diff] [blame] | 4359 | static const struct drm_display_mode winstar_wf35ltiacd_mode = { |
| 4360 | .clock = 6410, |
| 4361 | .hdisplay = 320, |
| 4362 | .hsync_start = 320 + 20, |
| 4363 | .hsync_end = 320 + 20 + 30, |
| 4364 | .htotal = 320 + 20 + 30 + 38, |
| 4365 | .vdisplay = 240, |
| 4366 | .vsync_start = 240 + 4, |
| 4367 | .vsync_end = 240 + 4 + 3, |
| 4368 | .vtotal = 240 + 4 + 3 + 15, |
Richard Genoud | e4bac40 | 2017-03-27 12:33:23 +0200 | [diff] [blame] | 4369 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 4370 | }; |
| 4371 | |
| 4372 | static const struct panel_desc winstar_wf35ltiacd = { |
| 4373 | .modes = &winstar_wf35ltiacd_mode, |
| 4374 | .num_modes = 1, |
| 4375 | .bpc = 8, |
| 4376 | .size = { |
| 4377 | .width = 70, |
| 4378 | .height = 53, |
| 4379 | }, |
| 4380 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 4381 | }; |
| 4382 | |
Jagan Teki | 7a1f4fa | 2020-09-04 23:38:21 +0530 | [diff] [blame] | 4383 | static const struct drm_display_mode yes_optoelectronics_ytc700tlag_05_201c_mode = { |
| 4384 | .clock = 51200, |
| 4385 | .hdisplay = 1024, |
| 4386 | .hsync_start = 1024 + 100, |
| 4387 | .hsync_end = 1024 + 100 + 100, |
| 4388 | .htotal = 1024 + 100 + 100 + 120, |
| 4389 | .vdisplay = 600, |
| 4390 | .vsync_start = 600 + 10, |
| 4391 | .vsync_end = 600 + 10 + 10, |
| 4392 | .vtotal = 600 + 10 + 10 + 15, |
| 4393 | .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, |
| 4394 | }; |
| 4395 | |
| 4396 | static const struct panel_desc yes_optoelectronics_ytc700tlag_05_201c = { |
| 4397 | .modes = &yes_optoelectronics_ytc700tlag_05_201c_mode, |
| 4398 | .num_modes = 1, |
| 4399 | .bpc = 6, |
| 4400 | .size = { |
| 4401 | .width = 154, |
| 4402 | .height = 90, |
| 4403 | }, |
| 4404 | .bus_flags = DRM_BUS_FLAG_DE_HIGH, |
| 4405 | .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, |
| 4406 | .connector_type = DRM_MODE_CONNECTOR_LVDS, |
| 4407 | }; |
| 4408 | |
Linus Walleij | fcec416 | 2018-10-26 13:13:34 +0200 | [diff] [blame] | 4409 | static const struct drm_display_mode arm_rtsm_mode[] = { |
| 4410 | { |
| 4411 | .clock = 65000, |
| 4412 | .hdisplay = 1024, |
| 4413 | .hsync_start = 1024 + 24, |
| 4414 | .hsync_end = 1024 + 24 + 136, |
| 4415 | .htotal = 1024 + 24 + 136 + 160, |
| 4416 | .vdisplay = 768, |
| 4417 | .vsync_start = 768 + 3, |
| 4418 | .vsync_end = 768 + 3 + 6, |
| 4419 | .vtotal = 768 + 3 + 6 + 29, |
Linus Walleij | fcec416 | 2018-10-26 13:13:34 +0200 | [diff] [blame] | 4420 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 4421 | }, |
| 4422 | }; |
| 4423 | |
| 4424 | static const struct panel_desc arm_rtsm = { |
| 4425 | .modes = arm_rtsm_mode, |
| 4426 | .num_modes = 1, |
| 4427 | .bpc = 8, |
| 4428 | .size = { |
| 4429 | .width = 400, |
| 4430 | .height = 300, |
| 4431 | }, |
| 4432 | .bus_format = MEDIA_BUS_FMT_RGB888_1X24, |
| 4433 | }; |
| 4434 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 4435 | static const struct of_device_id platform_of_match[] = { |
| 4436 | { |
Jagan Teki | bca684e | 2020-08-29 22:03:28 +0530 | [diff] [blame] | 4437 | .compatible = "ampire,am-1280800n3tzqw-t00h", |
| 4438 | .data = &ire_am_1280800n3tzqw_t00h, |
| 4439 | }, { |
Yannick Fertre | 966fea7 | 2017-03-28 11:44:49 +0200 | [diff] [blame] | 4440 | .compatible = "ampire,am-480272h3tmqw-t01h", |
| 4441 | .data = &ire_am_480272h3tmqw_t01h, |
| 4442 | }, { |
Philipp Zabel | 1c550fa1 | 2015-02-11 18:50:09 +0100 | [diff] [blame] | 4443 | .compatible = "ampire,am800480r3tmqwa1h", |
| 4444 | .data = &ire_am800480r3tmqwa1h, |
| 4445 | }, { |
Linus Walleij | fcec416 | 2018-10-26 13:13:34 +0200 | [diff] [blame] | 4446 | .compatible = "arm,rtsm-display", |
| 4447 | .data = &arm_rtsm, |
| 4448 | }, { |
Sébastien Szymanski | c479450f | 2019-05-07 17:27:12 +0200 | [diff] [blame] | 4449 | .compatible = "armadeus,st0700-adapt", |
| 4450 | .data = &armadeus_st0700_adapt, |
| 4451 | }, { |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 4452 | .compatible = "auo,b101aw03", |
| 4453 | .data = &auo_b101aw03, |
| 4454 | }, { |
Huang Lin | a531bc3 | 2015-02-28 10:18:58 +0800 | [diff] [blame] | 4455 | .compatible = "auo,b101ean01", |
| 4456 | .data = &auo_b101ean01, |
| 4457 | }, { |
Rob Clark | dac746e | 2014-08-01 17:01:06 -0400 | [diff] [blame] | 4458 | .compatible = "auo,b101xtn01", |
| 4459 | .data = &auo_b101xtn01, |
| 4460 | }, { |
Rob Clark | da458286 | 2020-01-08 15:53:56 -0800 | [diff] [blame] | 4461 | .compatible = "auo,b116xa01", |
| 4462 | .data = &auo_b116xak01, |
| 4463 | }, { |
Ajay Kumar | e35e305 | 2014-09-01 15:40:02 +0530 | [diff] [blame] | 4464 | .compatible = "auo,b116xw03", |
| 4465 | .data = &auo_b116xw03, |
| 4466 | }, { |
Bjorn Andersson | 93ea7aa | 2021-07-26 10:33:00 -0700 | [diff] [blame] | 4467 | .compatible = "auo,b133han05", |
| 4468 | .data = &auo_b133han05, |
| 4469 | }, { |
Ajay Kumar | 3e51d60 | 2014-07-31 23:12:12 +0530 | [diff] [blame] | 4470 | .compatible = "auo,b133htn01", |
| 4471 | .data = &auo_b133htn01, |
| 4472 | }, { |
Bjorn Andersson | 93ea7aa | 2021-07-26 10:33:00 -0700 | [diff] [blame] | 4473 | .compatible = "auo,b140han06", |
| 4474 | .data = &auo_b140han06, |
| 4475 | }, { |
Stéphane Marchesin | a333f7a | 2014-05-23 19:27:59 -0700 | [diff] [blame] | 4476 | .compatible = "auo,b133xtn01", |
| 4477 | .data = &auo_b133xtn01, |
| 4478 | }, { |
Lukasz Majewski | bccfaff | 2018-05-14 21:08:49 +0200 | [diff] [blame] | 4479 | .compatible = "auo,g070vvn01", |
| 4480 | .data = &auo_g070vvn01, |
| 4481 | }, { |
Alex Gonzalez | 4fb8640 | 2018-10-25 17:09:30 +0200 | [diff] [blame] | 4482 | .compatible = "auo,g101evn010", |
| 4483 | .data = &auo_g101evn010, |
| 4484 | }, { |
Christoph Fritz | 4451c28 | 2017-12-16 14:13:36 +0100 | [diff] [blame] | 4485 | .compatible = "auo,g104sn02", |
| 4486 | .data = &auo_g104sn02, |
| 4487 | }, { |
Sebastian Reichel | 03e909a | 2020-04-15 19:27:25 +0200 | [diff] [blame] | 4488 | .compatible = "auo,g121ean01", |
| 4489 | .data = &auo_g121ean01, |
| 4490 | }, { |
Lucas Stach | 697035c | 2016-11-30 14:09:55 +0100 | [diff] [blame] | 4491 | .compatible = "auo,g133han01", |
| 4492 | .data = &auo_g133han01, |
| 4493 | }, { |
Sebastian Reichel | d9ccd1f | 2020-04-15 19:27:24 +0200 | [diff] [blame] | 4494 | .compatible = "auo,g156xtn01", |
| 4495 | .data = &auo_g156xtn01, |
| 4496 | }, { |
Lucas Stach | 8c31f60 | 2016-11-30 14:09:56 +0100 | [diff] [blame] | 4497 | .compatible = "auo,g185han01", |
| 4498 | .data = &auo_g185han01, |
| 4499 | }, { |
Sebastian Reichel | 2f7b832 | 2020-04-15 19:27:23 +0200 | [diff] [blame] | 4500 | .compatible = "auo,g190ean01", |
| 4501 | .data = &auo_g190ean01, |
| 4502 | }, { |
Lucas Stach | 70c0d5b | 2017-06-08 20:07:58 +0200 | [diff] [blame] | 4503 | .compatible = "auo,p320hvn03", |
| 4504 | .data = &auo_p320hvn03, |
| 4505 | }, { |
Haixia Shi | 7ee933a | 2016-10-11 14:59:16 -0700 | [diff] [blame] | 4506 | .compatible = "auo,t215hvn01", |
| 4507 | .data = &auo_t215hvn01, |
| 4508 | }, { |
Philipp Zabel | d47df63 | 2014-12-18 16:43:43 +0100 | [diff] [blame] | 4509 | .compatible = "avic,tm070ddh03", |
| 4510 | .data = &avic_tm070ddh03, |
| 4511 | }, { |
Chen-Yu Tsai | 7ad8b41 | 2018-09-07 12:19:46 +0800 | [diff] [blame] | 4512 | .compatible = "bananapi,s070wv20-ct16", |
| 4513 | .data = &bananapi_s070wv20_ct16, |
| 4514 | }, { |
Andrzej Hajda | ae8cf41 | 2018-06-19 10:19:26 +0200 | [diff] [blame] | 4515 | .compatible = "boe,hv070wsa-100", |
| 4516 | .data = &boe_hv070wsa |
| 4517 | }, { |
Caesar Wang | cac1a41 | 2016-12-14 11:19:56 +0800 | [diff] [blame] | 4518 | .compatible = "boe,nv101wxmn51", |
| 4519 | .data = &boe_nv101wxmn51, |
| 4520 | }, { |
Douglas Anderson | a96ee0f | 2020-11-09 17:00:58 -0800 | [diff] [blame] | 4521 | .compatible = "boe,nv110wtm-n61", |
| 4522 | .data = &boe_nv110wtm_n61, |
| 4523 | }, { |
Bjorn Andersson | b0c664c | 2020-04-20 14:57:42 -0700 | [diff] [blame] | 4524 | .compatible = "boe,nv133fhm-n61", |
| 4525 | .data = &boe_nv133fhm_n61, |
| 4526 | }, { |
Douglas Anderson | cfe40d0 | 2020-05-08 15:59:02 -0700 | [diff] [blame] | 4527 | .compatible = "boe,nv133fhm-n62", |
| 4528 | .data = &boe_nv133fhm_n61, |
| 4529 | }, { |
Tobias Schramm | a511981 | 2020-01-09 12:29:52 +0100 | [diff] [blame] | 4530 | .compatible = "boe,nv140fhmn49", |
| 4531 | .data = &boe_nv140fhmn49, |
| 4532 | }, { |
Giulio Benetti | e58edce | 2018-07-31 01:11:16 +0200 | [diff] [blame] | 4533 | .compatible = "cdtech,s043wq26h-ct7", |
| 4534 | .data = &cdtech_s043wq26h_ct7, |
| 4535 | }, { |
Michael Krummsdorf | 0e3b67f | 2020-06-12 09:22:18 +0200 | [diff] [blame] | 4536 | .compatible = "cdtech,s070pws19hp-fc21", |
| 4537 | .data = &cdtech_s070pws19hp_fc21, |
| 4538 | }, { |
| 4539 | .compatible = "cdtech,s070swv29hg-dc44", |
| 4540 | .data = &cdtech_s070swv29hg_dc44, |
| 4541 | }, { |
Giulio Benetti | 982f944 | 2018-07-31 01:11:14 +0200 | [diff] [blame] | 4542 | .compatible = "cdtech,s070wv95-ct16", |
| 4543 | .data = &cdtech_s070wv95_ct16, |
| 4544 | }, { |
Marek Vasut | 07c913c | 2020-07-28 22:12:42 +0200 | [diff] [blame] | 4545 | .compatible = "chefree,ch101olhlwh-002", |
| 4546 | .data = &chefree_ch101olhlwh_002, |
| 4547 | }, { |
Randy Li | 2cb35c8 | 2016-09-20 03:02:51 +0800 | [diff] [blame] | 4548 | .compatible = "chunghwa,claa070wp03xg", |
| 4549 | .data = &chunghwa_claa070wp03xg, |
| 4550 | }, { |
Stephen Warren | 4c93075 | 2014-01-07 16:46:26 -0700 | [diff] [blame] | 4551 | .compatible = "chunghwa,claa101wa01a", |
| 4552 | .data = &chunghwa_claa101wa01a |
| 4553 | }, { |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 4554 | .compatible = "chunghwa,claa101wb01", |
| 4555 | .data = &chunghwa_claa101wb01 |
| 4556 | }, { |
Michal Vokáč | 97ceb1f | 2018-06-25 14:41:30 +0200 | [diff] [blame] | 4557 | .compatible = "dataimage,scf0700c48ggu18", |
| 4558 | .data = &dataimage_scf0700c48ggu18, |
| 4559 | }, { |
Philipp Zabel | 0ca0c82 | 2018-05-23 11:25:04 +0200 | [diff] [blame] | 4560 | .compatible = "dlc,dlc0700yzg-1", |
| 4561 | .data = &dlc_dlc0700yzg_1, |
| 4562 | }, { |
Marco Felsch | 6cbe7cd | 2018-09-24 17:26:10 +0200 | [diff] [blame] | 4563 | .compatible = "dlc,dlc1010gig", |
| 4564 | .data = &dlc_dlc1010gig, |
| 4565 | }, { |
Andreas Pretzsch | c2d24af | 2019-04-16 12:16:30 +0200 | [diff] [blame] | 4566 | .compatible = "edt,et035012dm6", |
| 4567 | .data = &edt_et035012dm6, |
| 4568 | }, { |
Stefan Riedmueller | f08a2a1 | 2021-07-09 22:03:49 +0200 | [diff] [blame] | 4569 | .compatible = "edt,etm0350g0dh6", |
| 4570 | .data = &edt_etm0350g0dh6, |
| 4571 | }, { |
Marian-Cristian Rotariu | 82d57a5 | 2020-01-30 12:08:38 +0000 | [diff] [blame] | 4572 | .compatible = "edt,etm043080dh6gp", |
| 4573 | .data = &edt_etm043080dh6gp, |
| 4574 | }, { |
Marek Vasut | fd819bf | 2019-02-19 15:04:38 +0100 | [diff] [blame] | 4575 | .compatible = "edt,etm0430g0dh6", |
| 4576 | .data = &edt_etm0430g0dh6, |
| 4577 | }, { |
Stefan Agner | 26ab006 | 2014-05-15 11:38:45 +0200 | [diff] [blame] | 4578 | .compatible = "edt,et057090dhu", |
| 4579 | .data = &edt_et057090dhu, |
| 4580 | }, { |
Philipp Zabel | fff5de4 | 2014-05-15 12:25:47 +0200 | [diff] [blame] | 4581 | .compatible = "edt,et070080dh6", |
| 4582 | .data = &edt_etm0700g0dh6, |
| 4583 | }, { |
| 4584 | .compatible = "edt,etm0700g0dh6", |
| 4585 | .data = &edt_etm0700g0dh6, |
| 4586 | }, { |
Jan Tuerk | aa7e645 | 2018-06-19 11:55:44 +0200 | [diff] [blame] | 4587 | .compatible = "edt,etm0700g0bdh6", |
| 4588 | .data = &edt_etm0700g0bdh6, |
| 4589 | }, { |
Jan Tuerk | aad34de | 2018-06-19 11:55:45 +0200 | [diff] [blame] | 4590 | .compatible = "edt,etm0700g0edh6", |
| 4591 | .data = &edt_etm0700g0bdh6, |
| 4592 | }, { |
Stefan Riedmueller | e46f73f | 2021-07-09 22:03:48 +0200 | [diff] [blame] | 4593 | .compatible = "edt,etmv570g2dhu", |
| 4594 | .data = &edt_etmv570g2dhu, |
| 4595 | }, { |
Alistair Francis | 9746f5f | 2021-08-01 10:47:00 +1000 | [diff] [blame] | 4596 | .compatible = "eink,vb3300-kca", |
| 4597 | .data = &eink_vb3300_kca, |
| 4598 | }, { |
Marco Felsch | 9158e3c | 2019-04-16 12:06:45 +0200 | [diff] [blame] | 4599 | .compatible = "evervision,vgg804821", |
| 4600 | .data = &evervision_vgg804821, |
| 4601 | }, { |
Boris BREZILLON | 102932b | 2014-06-05 15:53:32 +0200 | [diff] [blame] | 4602 | .compatible = "foxlink,fl500wvr00-a0t", |
| 4603 | .data = &foxlink_fl500wvr00_a0t, |
| 4604 | }, { |
Paul Cercueil | 7b6bd84 | 2020-01-13 13:17:41 -0300 | [diff] [blame] | 4605 | .compatible = "frida,frd350h54004", |
| 4606 | .data = &frida_frd350h54004, |
| 4607 | }, { |
Jagan Teki | 3be2071 | 2019-05-07 18:37:07 +0530 | [diff] [blame] | 4608 | .compatible = "friendlyarm,hd702e", |
| 4609 | .data = &friendlyarm_hd702e, |
| 4610 | }, { |
Philipp Zabel | d435a2a | 2014-11-19 10:29:55 +0100 | [diff] [blame] | 4611 | .compatible = "giantplus,gpg482739qs5", |
| 4612 | .data = &giantplus_gpg482739qs5 |
| 4613 | }, { |
Paul Cercueil | 2c6574a | 2019-06-06 00:22:47 +0200 | [diff] [blame] | 4614 | .compatible = "giantplus,gpm940b0", |
| 4615 | .data = &giantplus_gpm940b0, |
| 4616 | }, { |
Philipp Zabel | a853205 | 2014-10-23 16:31:06 +0200 | [diff] [blame] | 4617 | .compatible = "hannstar,hsd070pww1", |
| 4618 | .data = &hannstar_hsd070pww1, |
| 4619 | }, { |
Eric Nelson | c0d607e | 2015-04-13 15:09:26 -0700 | [diff] [blame] | 4620 | .compatible = "hannstar,hsd100pxn1", |
| 4621 | .data = &hannstar_hsd100pxn1, |
| 4622 | }, { |
Lucas Stach | 61ac0bf | 2014-11-06 17:44:35 +0100 | [diff] [blame] | 4623 | .compatible = "hit,tx23d38vm0caa", |
| 4624 | .data = &hitachi_tx23d38vm0caa |
| 4625 | }, { |
Nicolas Ferre | 41bcceb | 2015-03-19 14:43:01 +0100 | [diff] [blame] | 4626 | .compatible = "innolux,at043tn24", |
| 4627 | .data = &innolux_at043tn24, |
| 4628 | }, { |
Riccardo Bortolato | 4fc24ab | 2016-04-20 15:37:15 +0200 | [diff] [blame] | 4629 | .compatible = "innolux,at070tn92", |
| 4630 | .data = &innolux_at070tn92, |
| 4631 | }, { |
Christoph Fritz | a5d2ade | 2018-06-04 13:16:48 +0200 | [diff] [blame] | 4632 | .compatible = "innolux,g070y2-l01", |
| 4633 | .data = &innolux_g070y2_l01, |
| 4634 | }, { |
| 4635 | .compatible = "innolux,g101ice-l01", |
Michael Olbrich | 1e29b84 | 2016-08-15 14:32:02 +0200 | [diff] [blame] | 4636 | .data = &innolux_g101ice_l01 |
| 4637 | }, { |
Christoph Fritz | a5d2ade | 2018-06-04 13:16:48 +0200 | [diff] [blame] | 4638 | .compatible = "innolux,g121i1-l01", |
Lucas Stach | d731f66 | 2014-11-06 17:44:33 +0100 | [diff] [blame] | 4639 | .data = &innolux_g121i1_l01 |
| 4640 | }, { |
Akshay Bhat | f8fa17b | 2015-11-18 15:57:47 -0500 | [diff] [blame] | 4641 | .compatible = "innolux,g121x1-l03", |
| 4642 | .data = &innolux_g121x1_l03, |
| 4643 | }, { |
Douglas Anderson | 51d3563 | 2021-01-15 14:44:20 -0800 | [diff] [blame] | 4644 | .compatible = "innolux,n116bca-ea1", |
| 4645 | .data = &innolux_n116bca_ea1, |
| 4646 | }, { |
Thierry Reding | 0a2288c | 2014-07-03 14:02:59 +0200 | [diff] [blame] | 4647 | .compatible = "innolux,n116bge", |
| 4648 | .data = &innolux_n116bge, |
| 4649 | }, { |
Lukas F. Hartmann | a14c6b0 | 2020-11-24 18:26:04 +0100 | [diff] [blame] | 4650 | .compatible = "innolux,n125hce-gn1", |
| 4651 | .data = &innolux_n125hce_gn1, |
| 4652 | }, { |
Alban Bedel | ea44739 | 2014-07-22 08:38:55 +0200 | [diff] [blame] | 4653 | .compatible = "innolux,n156bge-l21", |
| 4654 | .data = &innolux_n156bge_l21, |
| 4655 | }, { |
Douglas Anderson | 8f054b6 | 2018-10-25 15:21:34 -0700 | [diff] [blame] | 4656 | .compatible = "innolux,p120zdg-bf1", |
| 4657 | .data = &innolux_p120zdg_bf1, |
spanda@codeaurora.org | da50bd4 | 2018-05-15 11:22:43 +0530 | [diff] [blame] | 4658 | }, { |
Michael Grzeschik | bccac3f | 2015-03-19 12:22:44 +0100 | [diff] [blame] | 4659 | .compatible = "innolux,zj070na-01p", |
| 4660 | .data = &innolux_zj070na_01p, |
| 4661 | }, { |
Bjorn Andersson | e1ca518 | 2020-04-20 14:57:28 -0700 | [diff] [blame] | 4662 | .compatible = "ivo,m133nwf4-r0", |
| 4663 | .data = &ivo_m133nwf4_r0, |
| 4664 | }, { |
Douglas Anderson | fc26a37 | 2020-08-21 08:35:15 -0700 | [diff] [blame] | 4665 | .compatible = "kingdisplay,kd116n21-30nv-a010", |
| 4666 | .data = &kingdisplay_kd116n21_30nv_a010, |
| 4667 | }, { |
Lukasz Majewski | 14bf60c | 2019-05-15 18:06:12 +0200 | [diff] [blame] | 4668 | .compatible = "koe,tx14d24vm1bpa", |
| 4669 | .data = &koe_tx14d24vm1bpa, |
| 4670 | }, { |
Liu Ying | 8a07052 | 2020-06-01 14:11:20 +0800 | [diff] [blame] | 4671 | .compatible = "koe,tx26d202vm0bwa", |
| 4672 | .data = &koe_tx26d202vm0bwa, |
| 4673 | }, { |
Jagan Teki | 8cfe834 | 2018-02-04 23:19:28 +0530 | [diff] [blame] | 4674 | .compatible = "koe,tx31d200vm0baa", |
| 4675 | .data = &koe_tx31d200vm0baa, |
| 4676 | }, { |
Lucas Stach | 8def22e | 2015-12-02 19:41:11 +0100 | [diff] [blame] | 4677 | .compatible = "kyo,tcg121xglp", |
| 4678 | .data = &kyo_tcg121xglp, |
| 4679 | }, { |
Paul Kocialkowski | 27abdd8 | 2018-11-07 19:18:41 +0100 | [diff] [blame] | 4680 | .compatible = "lemaker,bl035-rgb-002", |
| 4681 | .data = &lemaker_bl035_rgb_002, |
| 4682 | }, { |
Heiko Schocher | dd01500 | 2015-05-22 10:25:57 +0200 | [diff] [blame] | 4683 | .compatible = "lg,lb070wv8", |
| 4684 | .data = &lg_lb070wv8, |
| 4685 | }, { |
Yakir Yang | c5ece40 | 2016-06-28 12:51:15 +0800 | [diff] [blame] | 4686 | .compatible = "lg,lp079qx1-sp0v", |
| 4687 | .data = &lg_lp079qx1_sp0v, |
| 4688 | }, { |
Yakir Yang | 0355dde | 2016-06-12 10:56:02 +0800 | [diff] [blame] | 4689 | .compatible = "lg,lp097qx1-spa1", |
| 4690 | .data = &lg_lp097qx1_spa1, |
| 4691 | }, { |
Jitao Shi | 690d8fa | 2016-02-22 19:01:44 +0800 | [diff] [blame] | 4692 | .compatible = "lg,lp120up1", |
| 4693 | .data = &lg_lp120up1, |
| 4694 | }, { |
Thierry Reding | ec7c565 | 2013-11-15 15:59:32 +0100 | [diff] [blame] | 4695 | .compatible = "lg,lp129qe", |
| 4696 | .data = &lg_lp129qe, |
| 4697 | }, { |
Adam Ford | 0d35408 | 2019-10-16 08:51:45 -0500 | [diff] [blame] | 4698 | .compatible = "logicpd,type28", |
| 4699 | .data = &logicpd_type_28, |
| 4700 | }, { |
Marcel Ziswiler | 5728fe7 | 2020-01-20 09:01:00 +0100 | [diff] [blame] | 4701 | .compatible = "logictechno,lt161010-2nhc", |
| 4702 | .data = &logictechno_lt161010_2nh, |
| 4703 | }, { |
| 4704 | .compatible = "logictechno,lt161010-2nhr", |
| 4705 | .data = &logictechno_lt161010_2nh, |
| 4706 | }, { |
| 4707 | .compatible = "logictechno,lt170410-2whc", |
| 4708 | .data = &logictechno_lt170410_2whc, |
| 4709 | }, { |
Lukasz Majewski | 65c766c | 2017-10-21 00:18:37 +0200 | [diff] [blame] | 4710 | .compatible = "mitsubishi,aa070mc01-ca1", |
| 4711 | .data = &mitsubishi_aa070mc01, |
| 4712 | }, { |
Sam Ravnborg | 81162f4 | 2021-08-05 13:19:43 +0200 | [diff] [blame^] | 4713 | .compatible = "multi-inno,mi1010ait-1cp", |
| 4714 | .data = &multi_inno_mi1010ait_1cp, |
| 4715 | }, { |
Lucas Stach | 01bacc13 | 2017-06-08 20:07:55 +0200 | [diff] [blame] | 4716 | .compatible = "nec,nl12880bc20-05", |
| 4717 | .data = &nec_nl12880bc20_05, |
| 4718 | }, { |
jianwei wang | c6e87f9 | 2015-07-29 16:30:02 +0800 | [diff] [blame] | 4719 | .compatible = "nec,nl4827hc19-05b", |
| 4720 | .data = &nec_nl4827hc19_05b, |
| 4721 | }, { |
Maxime Ripard | e6c2f06 | 2016-09-06 16:46:17 +0200 | [diff] [blame] | 4722 | .compatible = "netron-dy,e231732", |
| 4723 | .data = &netron_dy_e231732, |
| 4724 | }, { |
Vasily Khoruzhick | 258145e | 2020-02-26 00:10:10 -0800 | [diff] [blame] | 4725 | .compatible = "neweast,wjfh116008a", |
| 4726 | .data = &neweast_wjfh116008a, |
| 4727 | }, { |
Tomi Valkeinen | 3b39ad7 | 2018-06-18 16:22:40 +0300 | [diff] [blame] | 4728 | .compatible = "newhaven,nhd-4.3-480272ef-atxl", |
| 4729 | .data = &newhaven_nhd_43_480272ef_atxl, |
| 4730 | }, { |
Lucas Stach | 4177fa6 | 2017-06-08 20:07:57 +0200 | [diff] [blame] | 4731 | .compatible = "nlt,nl192108ac18-02d", |
| 4732 | .data = &nlt_nl192108ac18_02d, |
| 4733 | }, { |
Fabien Lahoudere | 05ec0e4 | 2016-10-17 11:38:01 +0200 | [diff] [blame] | 4734 | .compatible = "nvd,9128", |
| 4735 | .data = &nvd_9128, |
| 4736 | }, { |
Gary Bisson | a99fb62 | 2015-06-10 18:44:23 +0200 | [diff] [blame] | 4737 | .compatible = "okaya,rs800480t-7x0gp", |
| 4738 | .data = &okaya_rs800480t_7x0gp, |
| 4739 | }, { |
Maxime Ripard | cf5c9e6 | 2016-03-23 17:38:34 +0100 | [diff] [blame] | 4740 | .compatible = "olimex,lcd-olinuxino-43-ts", |
| 4741 | .data = &olimex_lcd_olinuxino_43ts, |
| 4742 | }, { |
Eric Anholt | e8b6f56 | 2016-03-24 17:23:48 -0700 | [diff] [blame] | 4743 | .compatible = "ontat,yx700wv03", |
| 4744 | .data = &ontat_yx700wv03, |
| 4745 | }, { |
H. Nikolaus Schaller | 9c31dcb | 2019-06-07 13:11:08 +0200 | [diff] [blame] | 4746 | .compatible = "ortustech,com37h3m05dtc", |
| 4747 | .data = &ortustech_com37h3m, |
| 4748 | }, { |
| 4749 | .compatible = "ortustech,com37h3m99dtc", |
| 4750 | .data = &ortustech_com37h3m, |
| 4751 | }, { |
Philipp Zabel | 725c9d4 | 2015-02-11 18:50:11 +0100 | [diff] [blame] | 4752 | .compatible = "ortustech,com43h4m85ulc", |
| 4753 | .data = &ortustech_com43h4m85ulc, |
| 4754 | }, { |
Laurent Pinchart | 163f7a3 | 2018-12-07 22:13:44 +0200 | [diff] [blame] | 4755 | .compatible = "osddisplays,osd070t1718-19ts", |
| 4756 | .data = &osddisplays_osd070t1718_19ts, |
| 4757 | }, { |
Eugen Hristev | 4ba3e56 | 2019-01-14 09:43:31 +0000 | [diff] [blame] | 4758 | .compatible = "pda,91-00156-a0", |
| 4759 | .data = &pda_91_00156_a0, |
| 4760 | }, { |
Marek Vasut | d69de69 | 2020-07-28 14:12:46 +0200 | [diff] [blame] | 4761 | .compatible = "powertip,ph800480t013-idf02", |
| 4762 | .data = &powertip_ph800480t013_idf02, |
| 4763 | }, { |
Josh Wu | d2a6f0f | 2015-10-08 17:42:41 +0200 | [diff] [blame] | 4764 | .compatible = "qiaodian,qd43003c0-40", |
| 4765 | .data = &qd43003c0_40, |
| 4766 | }, { |
Artjom Vejsel | 49179e6 | 2021-08-04 03:23:53 +0300 | [diff] [blame] | 4767 | .compatible = "qishenglong,gopher2b-lcd", |
| 4768 | .data = &qishenglong_gopher2b_lcd, |
| 4769 | }, { |
Jagan Teki | 23167fa | 2018-06-07 19:16:48 +0530 | [diff] [blame] | 4770 | .compatible = "rocktech,rk070er9427", |
| 4771 | .data = &rocktech_rk070er9427, |
| 4772 | }, { |
Jyri Sarha | f305047 | 2020-02-11 14:17:18 +0200 | [diff] [blame] | 4773 | .compatible = "rocktech,rk101ii01d-ct", |
| 4774 | .data = &rocktech_rk101ii01d_ct, |
| 4775 | }, { |
Yakir Yang | 0330eaf | 2016-06-12 10:56:13 +0800 | [diff] [blame] | 4776 | .compatible = "samsung,lsn122dl01-c01", |
| 4777 | .data = &samsung_lsn122dl01_c01, |
| 4778 | }, { |
Marc Dietrich | 6d54e3d | 2013-12-21 21:38:12 +0100 | [diff] [blame] | 4779 | .compatible = "samsung,ltn101nt05", |
| 4780 | .data = &samsung_ltn101nt05, |
| 4781 | }, { |
Stéphane Marchesin | 0c93430 | 2015-03-18 10:52:18 +0100 | [diff] [blame] | 4782 | .compatible = "samsung,ltn140at29-301", |
| 4783 | .data = &samsung_ltn140at29_301, |
| 4784 | }, { |
Miquel Raynal | 44c58c5 | 2020-01-09 19:40:37 +0100 | [diff] [blame] | 4785 | .compatible = "satoz,sat050at40h12r2", |
| 4786 | .data = &satoz_sat050at40h12r2, |
| 4787 | }, { |
Jeffrey Hugo | cd5e1cb | 2019-07-08 09:58:11 -0700 | [diff] [blame] | 4788 | .compatible = "sharp,ld-d5116z01b", |
| 4789 | .data = &sharp_ld_d5116z01b, |
| 4790 | }, { |
Vladimir Zapolskiy | 03e3ec9 | 2018-07-06 21:51:01 +0300 | [diff] [blame] | 4791 | .compatible = "sharp,lq035q7db03", |
| 4792 | .data = &sharp_lq035q7db03, |
| 4793 | }, { |
H. Nikolaus Schaller | dda0e4b | 2019-06-07 13:11:07 +0200 | [diff] [blame] | 4794 | .compatible = "sharp,lq070y3dg3b", |
| 4795 | .data = &sharp_lq070y3dg3b, |
| 4796 | }, { |
Joshua Clayton | 592aa02 | 2016-07-06 15:59:16 -0700 | [diff] [blame] | 4797 | .compatible = "sharp,lq101k1ly04", |
| 4798 | .data = &sharp_lq101k1ly04, |
| 4799 | }, { |
Yakir Yang | 739c7de | 2016-06-12 10:56:35 +0800 | [diff] [blame] | 4800 | .compatible = "sharp,lq123p1jx31", |
| 4801 | .data = &sharp_lq123p1jx31, |
| 4802 | }, { |
Paul Cercueil | f1bd37f | 2019-06-03 17:31:20 +0200 | [diff] [blame] | 4803 | .compatible = "sharp,ls020b1dd01d", |
| 4804 | .data = &sharp_ls020b1dd01d, |
| 4805 | }, { |
Boris BREZILLON | 9c6615b | 2015-03-19 14:43:00 +0100 | [diff] [blame] | 4806 | .compatible = "shelly,sca07010-bfn-lnn", |
| 4807 | .data = &shelly_sca07010_bfn_lnn, |
| 4808 | }, { |
Pascal Roeleven | 105235e | 2020-03-20 12:21:33 +0100 | [diff] [blame] | 4809 | .compatible = "starry,kr070pe2t", |
| 4810 | .data = &starry_kr070pe2t, |
| 4811 | }, { |
Douglas Anderson | 9bb34c4 | 2016-06-10 10:02:07 -0700 | [diff] [blame] | 4812 | .compatible = "starry,kr122ea0sra", |
| 4813 | .data = &starry_kr122ea0sra, |
| 4814 | }, { |
Jyri Sarha | 4216153 | 2019-03-22 10:33:36 +0200 | [diff] [blame] | 4815 | .compatible = "tfc,s9700rtwv43tr-01b", |
| 4816 | .data = &tfc_s9700rtwv43tr_01b, |
| 4817 | }, { |
Gary Bisson | adb973e | 2016-12-02 09:52:08 +0100 | [diff] [blame] | 4818 | .compatible = "tianma,tm070jdhg30", |
| 4819 | .data = &tianma_tm070jdhg30, |
| 4820 | }, { |
Max Merchel | b3bfcdf | 2020-06-12 09:22:19 +0200 | [diff] [blame] | 4821 | .compatible = "tianma,tm070jvhg33", |
| 4822 | .data = &tianma_tm070jvhg33, |
| 4823 | }, { |
Lukasz Majewski | 870a0b1 | 2017-11-07 16:30:58 +0100 | [diff] [blame] | 4824 | .compatible = "tianma,tm070rvhg71", |
| 4825 | .data = &tianma_tm070rvhg71, |
| 4826 | }, { |
Linus Walleij | d8a0d6a | 2019-08-05 10:58:46 +0200 | [diff] [blame] | 4827 | .compatible = "ti,nspire-cx-lcd-panel", |
| 4828 | .data = &ti_nspire_cx_lcd_panel, |
| 4829 | }, { |
| 4830 | .compatible = "ti,nspire-classic-lcd-panel", |
| 4831 | .data = &ti_nspire_classic_lcd_panel, |
| 4832 | }, { |
Lucas Stach | 06e733e | 2017-10-18 19:22:40 +0200 | [diff] [blame] | 4833 | .compatible = "toshiba,lt089ac29000", |
| 4834 | .data = &toshiba_lt089ac29000, |
| 4835 | }, { |
Bhuvanchandra DV | 227e4f4 | 2016-05-05 11:47:07 +0530 | [diff] [blame] | 4836 | .compatible = "tpk,f07a-0102", |
| 4837 | .data = &tpk_f07a_0102, |
| 4838 | }, { |
| 4839 | .compatible = "tpk,f10a-0102", |
| 4840 | .data = &tpk_f10a_0102, |
| 4841 | }, { |
Maciej S. Szmigiero | 06a9dc6 | 2016-02-13 22:52:03 +0100 | [diff] [blame] | 4842 | .compatible = "urt,umsh-8596md-t", |
| 4843 | .data = &urt_umsh_8596md_parallel, |
| 4844 | }, { |
| 4845 | .compatible = "urt,umsh-8596md-1t", |
| 4846 | .data = &urt_umsh_8596md_parallel, |
| 4847 | }, { |
| 4848 | .compatible = "urt,umsh-8596md-7t", |
| 4849 | .data = &urt_umsh_8596md_parallel, |
| 4850 | }, { |
| 4851 | .compatible = "urt,umsh-8596md-11t", |
| 4852 | .data = &urt_umsh_8596md_lvds, |
| 4853 | }, { |
| 4854 | .compatible = "urt,umsh-8596md-19t", |
| 4855 | .data = &urt_umsh_8596md_lvds, |
| 4856 | }, { |
| 4857 | .compatible = "urt,umsh-8596md-20t", |
| 4858 | .data = &urt_umsh_8596md_parallel, |
| 4859 | }, { |
Fabio Estevam | 0420618 | 2019-02-18 21:27:06 -0300 | [diff] [blame] | 4860 | .compatible = "vxt,vl050-8048nt-c01", |
| 4861 | .data = &vl050_8048nt_c01, |
| 4862 | }, { |
Richard Genoud | e4bac40 | 2017-03-27 12:33:23 +0200 | [diff] [blame] | 4863 | .compatible = "winstar,wf35ltiacd", |
| 4864 | .data = &winstar_wf35ltiacd, |
| 4865 | }, { |
Jagan Teki | 7a1f4fa | 2020-09-04 23:38:21 +0530 | [diff] [blame] | 4866 | .compatible = "yes-optoelectronics,ytc700tlag-05-201c", |
| 4867 | .data = &yes_optoelectronics_ytc700tlag_05_201c, |
| 4868 | }, { |
Sam Ravnborg | 4a1d0db | 2020-02-16 19:15:13 +0100 | [diff] [blame] | 4869 | /* Must be the last entry */ |
| 4870 | .compatible = "panel-dpi", |
| 4871 | .data = &panel_dpi, |
| 4872 | }, { |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 4873 | /* sentinel */ |
| 4874 | } |
| 4875 | }; |
| 4876 | MODULE_DEVICE_TABLE(of, platform_of_match); |
| 4877 | |
| 4878 | static int panel_simple_platform_probe(struct platform_device *pdev) |
| 4879 | { |
| 4880 | const struct of_device_id *id; |
| 4881 | |
| 4882 | id = of_match_node(platform_of_match, pdev->dev.of_node); |
| 4883 | if (!id) |
| 4884 | return -ENODEV; |
| 4885 | |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 4886 | return panel_simple_probe(&pdev->dev, id->data, NULL); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 4887 | } |
| 4888 | |
| 4889 | static int panel_simple_platform_remove(struct platform_device *pdev) |
| 4890 | { |
| 4891 | return panel_simple_remove(&pdev->dev); |
| 4892 | } |
| 4893 | |
Thierry Reding | d02fd93 | 2014-04-29 17:21:21 +0200 | [diff] [blame] | 4894 | static void panel_simple_platform_shutdown(struct platform_device *pdev) |
| 4895 | { |
| 4896 | panel_simple_shutdown(&pdev->dev); |
| 4897 | } |
| 4898 | |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 4899 | static const struct dev_pm_ops panel_simple_pm_ops = { |
| 4900 | SET_RUNTIME_PM_OPS(panel_simple_suspend, panel_simple_resume, NULL) |
| 4901 | SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, |
| 4902 | pm_runtime_force_resume) |
| 4903 | }; |
| 4904 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 4905 | static struct platform_driver panel_simple_platform_driver = { |
| 4906 | .driver = { |
| 4907 | .name = "panel-simple", |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 4908 | .of_match_table = platform_of_match, |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 4909 | .pm = &panel_simple_pm_ops, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 4910 | }, |
| 4911 | .probe = panel_simple_platform_probe, |
| 4912 | .remove = panel_simple_platform_remove, |
Thierry Reding | d02fd93 | 2014-04-29 17:21:21 +0200 | [diff] [blame] | 4913 | .shutdown = panel_simple_platform_shutdown, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 4914 | }; |
| 4915 | |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 4916 | struct panel_desc_dsi { |
| 4917 | struct panel_desc desc; |
| 4918 | |
Thierry Reding | 462658b | 2014-03-14 11:24:57 +0100 | [diff] [blame] | 4919 | unsigned long flags; |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 4920 | enum mipi_dsi_pixel_format format; |
| 4921 | unsigned int lanes; |
| 4922 | }; |
| 4923 | |
Thierry Reding | d718d79 | 2015-04-08 16:52:33 +0200 | [diff] [blame] | 4924 | static const struct drm_display_mode auo_b080uan01_mode = { |
| 4925 | .clock = 154500, |
| 4926 | .hdisplay = 1200, |
| 4927 | .hsync_start = 1200 + 62, |
| 4928 | .hsync_end = 1200 + 62 + 4, |
| 4929 | .htotal = 1200 + 62 + 4 + 62, |
| 4930 | .vdisplay = 1920, |
| 4931 | .vsync_start = 1920 + 9, |
| 4932 | .vsync_end = 1920 + 9 + 2, |
| 4933 | .vtotal = 1920 + 9 + 2 + 8, |
Thierry Reding | d718d79 | 2015-04-08 16:52:33 +0200 | [diff] [blame] | 4934 | }; |
| 4935 | |
| 4936 | static const struct panel_desc_dsi auo_b080uan01 = { |
| 4937 | .desc = { |
| 4938 | .modes = &auo_b080uan01_mode, |
| 4939 | .num_modes = 1, |
| 4940 | .bpc = 8, |
| 4941 | .size = { |
| 4942 | .width = 108, |
| 4943 | .height = 272, |
| 4944 | }, |
Laurent Pinchart | cb62cde | 2020-06-02 20:12:40 +0300 | [diff] [blame] | 4945 | .connector_type = DRM_MODE_CONNECTOR_DSI, |
Thierry Reding | d718d79 | 2015-04-08 16:52:33 +0200 | [diff] [blame] | 4946 | }, |
| 4947 | .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS, |
| 4948 | .format = MIPI_DSI_FMT_RGB888, |
| 4949 | .lanes = 4, |
| 4950 | }; |
| 4951 | |
Chris Zhong | c852196 | 2015-11-20 16:15:37 +0800 | [diff] [blame] | 4952 | static const struct drm_display_mode boe_tv080wum_nl0_mode = { |
| 4953 | .clock = 160000, |
| 4954 | .hdisplay = 1200, |
| 4955 | .hsync_start = 1200 + 120, |
| 4956 | .hsync_end = 1200 + 120 + 20, |
| 4957 | .htotal = 1200 + 120 + 20 + 21, |
| 4958 | .vdisplay = 1920, |
| 4959 | .vsync_start = 1920 + 21, |
| 4960 | .vsync_end = 1920 + 21 + 3, |
| 4961 | .vtotal = 1920 + 21 + 3 + 18, |
Chris Zhong | c852196 | 2015-11-20 16:15:37 +0800 | [diff] [blame] | 4962 | .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, |
| 4963 | }; |
| 4964 | |
| 4965 | static const struct panel_desc_dsi boe_tv080wum_nl0 = { |
| 4966 | .desc = { |
| 4967 | .modes = &boe_tv080wum_nl0_mode, |
| 4968 | .num_modes = 1, |
| 4969 | .size = { |
| 4970 | .width = 107, |
| 4971 | .height = 172, |
| 4972 | }, |
Laurent Pinchart | cb62cde | 2020-06-02 20:12:40 +0300 | [diff] [blame] | 4973 | .connector_type = DRM_MODE_CONNECTOR_DSI, |
Chris Zhong | c852196 | 2015-11-20 16:15:37 +0800 | [diff] [blame] | 4974 | }, |
| 4975 | .flags = MIPI_DSI_MODE_VIDEO | |
| 4976 | MIPI_DSI_MODE_VIDEO_BURST | |
| 4977 | MIPI_DSI_MODE_VIDEO_SYNC_PULSE, |
| 4978 | .format = MIPI_DSI_FMT_RGB888, |
| 4979 | .lanes = 4, |
| 4980 | }; |
| 4981 | |
Alexandre Courbot | 712ac1b | 2014-01-21 18:57:10 +0900 | [diff] [blame] | 4982 | static const struct drm_display_mode lg_ld070wx3_sl01_mode = { |
| 4983 | .clock = 71000, |
| 4984 | .hdisplay = 800, |
| 4985 | .hsync_start = 800 + 32, |
| 4986 | .hsync_end = 800 + 32 + 1, |
| 4987 | .htotal = 800 + 32 + 1 + 57, |
| 4988 | .vdisplay = 1280, |
| 4989 | .vsync_start = 1280 + 28, |
| 4990 | .vsync_end = 1280 + 28 + 1, |
| 4991 | .vtotal = 1280 + 28 + 1 + 14, |
Alexandre Courbot | 712ac1b | 2014-01-21 18:57:10 +0900 | [diff] [blame] | 4992 | }; |
| 4993 | |
| 4994 | static const struct panel_desc_dsi lg_ld070wx3_sl01 = { |
| 4995 | .desc = { |
| 4996 | .modes = &lg_ld070wx3_sl01_mode, |
| 4997 | .num_modes = 1, |
Thierry Reding | d7a839c | 2014-11-06 10:11:01 +0100 | [diff] [blame] | 4998 | .bpc = 8, |
Alexandre Courbot | 712ac1b | 2014-01-21 18:57:10 +0900 | [diff] [blame] | 4999 | .size = { |
| 5000 | .width = 94, |
| 5001 | .height = 151, |
| 5002 | }, |
Laurent Pinchart | cb62cde | 2020-06-02 20:12:40 +0300 | [diff] [blame] | 5003 | .connector_type = DRM_MODE_CONNECTOR_DSI, |
Alexandre Courbot | 712ac1b | 2014-01-21 18:57:10 +0900 | [diff] [blame] | 5004 | }, |
Alexandre Courbot | 5e4cc27 | 2014-07-08 21:32:12 +0900 | [diff] [blame] | 5005 | .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_CLOCK_NON_CONTINUOUS, |
Alexandre Courbot | 712ac1b | 2014-01-21 18:57:10 +0900 | [diff] [blame] | 5006 | .format = MIPI_DSI_FMT_RGB888, |
| 5007 | .lanes = 4, |
| 5008 | }; |
| 5009 | |
Alexandre Courbot | 499ce85 | 2014-01-21 18:57:09 +0900 | [diff] [blame] | 5010 | static const struct drm_display_mode lg_lh500wx1_sd03_mode = { |
| 5011 | .clock = 67000, |
| 5012 | .hdisplay = 720, |
| 5013 | .hsync_start = 720 + 12, |
| 5014 | .hsync_end = 720 + 12 + 4, |
| 5015 | .htotal = 720 + 12 + 4 + 112, |
| 5016 | .vdisplay = 1280, |
| 5017 | .vsync_start = 1280 + 8, |
| 5018 | .vsync_end = 1280 + 8 + 4, |
| 5019 | .vtotal = 1280 + 8 + 4 + 12, |
Alexandre Courbot | 499ce85 | 2014-01-21 18:57:09 +0900 | [diff] [blame] | 5020 | }; |
| 5021 | |
| 5022 | static const struct panel_desc_dsi lg_lh500wx1_sd03 = { |
| 5023 | .desc = { |
| 5024 | .modes = &lg_lh500wx1_sd03_mode, |
| 5025 | .num_modes = 1, |
Thierry Reding | d7a839c | 2014-11-06 10:11:01 +0100 | [diff] [blame] | 5026 | .bpc = 8, |
Alexandre Courbot | 499ce85 | 2014-01-21 18:57:09 +0900 | [diff] [blame] | 5027 | .size = { |
| 5028 | .width = 62, |
| 5029 | .height = 110, |
| 5030 | }, |
Laurent Pinchart | cb62cde | 2020-06-02 20:12:40 +0300 | [diff] [blame] | 5031 | .connector_type = DRM_MODE_CONNECTOR_DSI, |
Alexandre Courbot | 499ce85 | 2014-01-21 18:57:09 +0900 | [diff] [blame] | 5032 | }, |
| 5033 | .flags = MIPI_DSI_MODE_VIDEO, |
| 5034 | .format = MIPI_DSI_FMT_RGB888, |
| 5035 | .lanes = 4, |
| 5036 | }; |
| 5037 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 5038 | static const struct drm_display_mode panasonic_vvx10f004b00_mode = { |
| 5039 | .clock = 157200, |
| 5040 | .hdisplay = 1920, |
| 5041 | .hsync_start = 1920 + 154, |
| 5042 | .hsync_end = 1920 + 154 + 16, |
| 5043 | .htotal = 1920 + 154 + 16 + 32, |
| 5044 | .vdisplay = 1200, |
| 5045 | .vsync_start = 1200 + 17, |
| 5046 | .vsync_end = 1200 + 17 + 2, |
| 5047 | .vtotal = 1200 + 17 + 2 + 16, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 5048 | }; |
| 5049 | |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5050 | static const struct panel_desc_dsi panasonic_vvx10f004b00 = { |
| 5051 | .desc = { |
| 5052 | .modes = &panasonic_vvx10f004b00_mode, |
| 5053 | .num_modes = 1, |
Thierry Reding | d7a839c | 2014-11-06 10:11:01 +0100 | [diff] [blame] | 5054 | .bpc = 8, |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5055 | .size = { |
| 5056 | .width = 217, |
| 5057 | .height = 136, |
| 5058 | }, |
Laurent Pinchart | cb62cde | 2020-06-02 20:12:40 +0300 | [diff] [blame] | 5059 | .connector_type = DRM_MODE_CONNECTOR_DSI, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 5060 | }, |
Alexandre Courbot | 5e4cc27 | 2014-07-08 21:32:12 +0900 | [diff] [blame] | 5061 | .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | |
| 5062 | MIPI_DSI_CLOCK_NON_CONTINUOUS, |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5063 | .format = MIPI_DSI_FMT_RGB888, |
| 5064 | .lanes = 4, |
| 5065 | }; |
| 5066 | |
Jonathan Marek | debcd8f | 2018-11-24 15:06:28 -0500 | [diff] [blame] | 5067 | static const struct drm_display_mode lg_acx467akm_7_mode = { |
| 5068 | .clock = 150000, |
| 5069 | .hdisplay = 1080, |
| 5070 | .hsync_start = 1080 + 2, |
| 5071 | .hsync_end = 1080 + 2 + 2, |
| 5072 | .htotal = 1080 + 2 + 2 + 2, |
| 5073 | .vdisplay = 1920, |
| 5074 | .vsync_start = 1920 + 2, |
| 5075 | .vsync_end = 1920 + 2 + 2, |
| 5076 | .vtotal = 1920 + 2 + 2 + 2, |
Jonathan Marek | debcd8f | 2018-11-24 15:06:28 -0500 | [diff] [blame] | 5077 | }; |
| 5078 | |
| 5079 | static const struct panel_desc_dsi lg_acx467akm_7 = { |
| 5080 | .desc = { |
| 5081 | .modes = &lg_acx467akm_7_mode, |
| 5082 | .num_modes = 1, |
| 5083 | .bpc = 8, |
| 5084 | .size = { |
| 5085 | .width = 62, |
| 5086 | .height = 110, |
| 5087 | }, |
Laurent Pinchart | cb62cde | 2020-06-02 20:12:40 +0300 | [diff] [blame] | 5088 | .connector_type = DRM_MODE_CONNECTOR_DSI, |
Jonathan Marek | debcd8f | 2018-11-24 15:06:28 -0500 | [diff] [blame] | 5089 | }, |
| 5090 | .flags = 0, |
| 5091 | .format = MIPI_DSI_FMT_RGB888, |
| 5092 | .lanes = 4, |
| 5093 | }; |
| 5094 | |
Peter Ujfalusi | 6296723 | 2019-02-26 09:55:21 +0200 | [diff] [blame] | 5095 | static const struct drm_display_mode osd101t2045_53ts_mode = { |
| 5096 | .clock = 154500, |
| 5097 | .hdisplay = 1920, |
| 5098 | .hsync_start = 1920 + 112, |
| 5099 | .hsync_end = 1920 + 112 + 16, |
| 5100 | .htotal = 1920 + 112 + 16 + 32, |
| 5101 | .vdisplay = 1200, |
| 5102 | .vsync_start = 1200 + 16, |
| 5103 | .vsync_end = 1200 + 16 + 2, |
| 5104 | .vtotal = 1200 + 16 + 2 + 16, |
Peter Ujfalusi | 6296723 | 2019-02-26 09:55:21 +0200 | [diff] [blame] | 5105 | .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, |
| 5106 | }; |
| 5107 | |
| 5108 | static const struct panel_desc_dsi osd101t2045_53ts = { |
| 5109 | .desc = { |
| 5110 | .modes = &osd101t2045_53ts_mode, |
| 5111 | .num_modes = 1, |
| 5112 | .bpc = 8, |
| 5113 | .size = { |
| 5114 | .width = 217, |
| 5115 | .height = 136, |
| 5116 | }, |
Laurent Pinchart | cb62cde | 2020-06-02 20:12:40 +0300 | [diff] [blame] | 5117 | .connector_type = DRM_MODE_CONNECTOR_DSI, |
Peter Ujfalusi | 6296723 | 2019-02-26 09:55:21 +0200 | [diff] [blame] | 5118 | }, |
| 5119 | .flags = MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | |
| 5120 | MIPI_DSI_MODE_VIDEO_SYNC_PULSE | |
Nicolas Boichat | 0f3b68b6 | 2021-07-27 09:45:21 +0800 | [diff] [blame] | 5121 | MIPI_DSI_MODE_NO_EOT_PACKET, |
Peter Ujfalusi | 6296723 | 2019-02-26 09:55:21 +0200 | [diff] [blame] | 5122 | .format = MIPI_DSI_FMT_RGB888, |
| 5123 | .lanes = 4, |
| 5124 | }; |
| 5125 | |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5126 | static const struct of_device_id dsi_of_match[] = { |
| 5127 | { |
Thierry Reding | d718d79 | 2015-04-08 16:52:33 +0200 | [diff] [blame] | 5128 | .compatible = "auo,b080uan01", |
| 5129 | .data = &auo_b080uan01 |
| 5130 | }, { |
Chris Zhong | c852196 | 2015-11-20 16:15:37 +0800 | [diff] [blame] | 5131 | .compatible = "boe,tv080wum-nl0", |
| 5132 | .data = &boe_tv080wum_nl0 |
| 5133 | }, { |
Alexandre Courbot | 712ac1b | 2014-01-21 18:57:10 +0900 | [diff] [blame] | 5134 | .compatible = "lg,ld070wx3-sl01", |
| 5135 | .data = &lg_ld070wx3_sl01 |
| 5136 | }, { |
Alexandre Courbot | 499ce85 | 2014-01-21 18:57:09 +0900 | [diff] [blame] | 5137 | .compatible = "lg,lh500wx1-sd03", |
| 5138 | .data = &lg_lh500wx1_sd03 |
| 5139 | }, { |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5140 | .compatible = "panasonic,vvx10f004b00", |
| 5141 | .data = &panasonic_vvx10f004b00 |
| 5142 | }, { |
Jonathan Marek | debcd8f | 2018-11-24 15:06:28 -0500 | [diff] [blame] | 5143 | .compatible = "lg,acx467akm-7", |
| 5144 | .data = &lg_acx467akm_7 |
| 5145 | }, { |
Peter Ujfalusi | 6296723 | 2019-02-26 09:55:21 +0200 | [diff] [blame] | 5146 | .compatible = "osddisplays,osd101t2045-53ts", |
| 5147 | .data = &osd101t2045_53ts |
| 5148 | }, { |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5149 | /* sentinel */ |
| 5150 | } |
| 5151 | }; |
| 5152 | MODULE_DEVICE_TABLE(of, dsi_of_match); |
| 5153 | |
| 5154 | static int panel_simple_dsi_probe(struct mipi_dsi_device *dsi) |
| 5155 | { |
| 5156 | const struct panel_desc_dsi *desc; |
| 5157 | const struct of_device_id *id; |
| 5158 | int err; |
| 5159 | |
| 5160 | id = of_match_node(dsi_of_match, dsi->dev.of_node); |
| 5161 | if (!id) |
| 5162 | return -ENODEV; |
| 5163 | |
| 5164 | desc = id->data; |
| 5165 | |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 5166 | err = panel_simple_probe(&dsi->dev, &desc->desc, NULL); |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5167 | if (err < 0) |
| 5168 | return err; |
| 5169 | |
Thierry Reding | 462658b | 2014-03-14 11:24:57 +0100 | [diff] [blame] | 5170 | dsi->mode_flags = desc->flags; |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5171 | dsi->format = desc->format; |
| 5172 | dsi->lanes = desc->lanes; |
| 5173 | |
Peter Ujfalusi | 7ad9db6 | 2019-02-26 10:11:53 +0200 | [diff] [blame] | 5174 | err = mipi_dsi_attach(dsi); |
| 5175 | if (err) { |
Julia Lawall | 5dd331d | 2021-02-09 22:13:04 +0100 | [diff] [blame] | 5176 | struct panel_simple *panel = mipi_dsi_get_drvdata(dsi); |
Peter Ujfalusi | 7ad9db6 | 2019-02-26 10:11:53 +0200 | [diff] [blame] | 5177 | |
| 5178 | drm_panel_remove(&panel->base); |
| 5179 | } |
| 5180 | |
| 5181 | return err; |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5182 | } |
| 5183 | |
| 5184 | static int panel_simple_dsi_remove(struct mipi_dsi_device *dsi) |
| 5185 | { |
| 5186 | int err; |
| 5187 | |
| 5188 | err = mipi_dsi_detach(dsi); |
| 5189 | if (err < 0) |
| 5190 | dev_err(&dsi->dev, "failed to detach from DSI host: %d\n", err); |
| 5191 | |
| 5192 | return panel_simple_remove(&dsi->dev); |
| 5193 | } |
| 5194 | |
Thierry Reding | d02fd93 | 2014-04-29 17:21:21 +0200 | [diff] [blame] | 5195 | static void panel_simple_dsi_shutdown(struct mipi_dsi_device *dsi) |
| 5196 | { |
| 5197 | panel_simple_shutdown(&dsi->dev); |
| 5198 | } |
| 5199 | |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5200 | static struct mipi_dsi_driver panel_simple_dsi_driver = { |
| 5201 | .driver = { |
| 5202 | .name = "panel-simple-dsi", |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5203 | .of_match_table = dsi_of_match, |
Douglas Anderson | 3235b0f | 2021-04-16 15:39:30 -0700 | [diff] [blame] | 5204 | .pm = &panel_simple_pm_ops, |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5205 | }, |
| 5206 | .probe = panel_simple_dsi_probe, |
| 5207 | .remove = panel_simple_dsi_remove, |
Thierry Reding | d02fd93 | 2014-04-29 17:21:21 +0200 | [diff] [blame] | 5208 | .shutdown = panel_simple_dsi_shutdown, |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 5209 | }; |
| 5210 | |
Douglas Anderson | 74c06c2 | 2021-06-11 10:17:41 -0700 | [diff] [blame] | 5211 | static int panel_simple_dp_aux_ep_probe(struct dp_aux_ep_device *aux_ep) |
| 5212 | { |
| 5213 | const struct of_device_id *id; |
| 5214 | |
| 5215 | id = of_match_node(platform_of_match, aux_ep->dev.of_node); |
| 5216 | if (!id) |
| 5217 | return -ENODEV; |
| 5218 | |
Douglas Anderson | cc5a3fc | 2021-06-11 10:17:42 -0700 | [diff] [blame] | 5219 | return panel_simple_probe(&aux_ep->dev, id->data, aux_ep->aux); |
Douglas Anderson | 74c06c2 | 2021-06-11 10:17:41 -0700 | [diff] [blame] | 5220 | } |
| 5221 | |
| 5222 | static void panel_simple_dp_aux_ep_remove(struct dp_aux_ep_device *aux_ep) |
| 5223 | { |
| 5224 | panel_simple_remove(&aux_ep->dev); |
| 5225 | } |
| 5226 | |
| 5227 | static void panel_simple_dp_aux_ep_shutdown(struct dp_aux_ep_device *aux_ep) |
| 5228 | { |
| 5229 | panel_simple_shutdown(&aux_ep->dev); |
| 5230 | } |
| 5231 | |
| 5232 | static struct dp_aux_ep_driver panel_simple_dp_aux_ep_driver = { |
| 5233 | .driver = { |
| 5234 | .name = "panel-simple-dp-aux", |
| 5235 | .of_match_table = platform_of_match, /* Same as platform one! */ |
| 5236 | .pm = &panel_simple_pm_ops, |
| 5237 | }, |
| 5238 | .probe = panel_simple_dp_aux_ep_probe, |
| 5239 | .remove = panel_simple_dp_aux_ep_remove, |
| 5240 | .shutdown = panel_simple_dp_aux_ep_shutdown, |
| 5241 | }; |
| 5242 | |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 5243 | static int __init panel_simple_init(void) |
| 5244 | { |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5245 | int err; |
| 5246 | |
| 5247 | err = platform_driver_register(&panel_simple_platform_driver); |
| 5248 | if (err < 0) |
| 5249 | return err; |
| 5250 | |
Douglas Anderson | 74c06c2 | 2021-06-11 10:17:41 -0700 | [diff] [blame] | 5251 | err = dp_aux_dp_driver_register(&panel_simple_dp_aux_ep_driver); |
| 5252 | if (err < 0) |
| 5253 | goto err_did_platform_register; |
| 5254 | |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5255 | if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) { |
| 5256 | err = mipi_dsi_driver_register(&panel_simple_dsi_driver); |
Douglas Anderson | 74c06c2 | 2021-06-11 10:17:41 -0700 | [diff] [blame] | 5257 | if (err < 0) |
| 5258 | goto err_did_aux_ep_register; |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5259 | } |
| 5260 | |
| 5261 | return 0; |
Douglas Anderson | 74c06c2 | 2021-06-11 10:17:41 -0700 | [diff] [blame] | 5262 | |
| 5263 | err_did_aux_ep_register: |
| 5264 | dp_aux_dp_driver_unregister(&panel_simple_dp_aux_ep_driver); |
| 5265 | |
| 5266 | err_did_platform_register: |
| 5267 | platform_driver_unregister(&panel_simple_platform_driver); |
| 5268 | |
| 5269 | return err; |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 5270 | } |
| 5271 | module_init(panel_simple_init); |
| 5272 | |
| 5273 | static void __exit panel_simple_exit(void) |
| 5274 | { |
Thierry Reding | 210fcd9 | 2013-11-22 19:27:11 +0100 | [diff] [blame] | 5275 | if (IS_ENABLED(CONFIG_DRM_MIPI_DSI)) |
| 5276 | mipi_dsi_driver_unregister(&panel_simple_dsi_driver); |
| 5277 | |
Douglas Anderson | 74c06c2 | 2021-06-11 10:17:41 -0700 | [diff] [blame] | 5278 | dp_aux_dp_driver_unregister(&panel_simple_dp_aux_ep_driver); |
Thierry Reding | 280921d | 2013-08-30 15:10:14 +0200 | [diff] [blame] | 5279 | platform_driver_unregister(&panel_simple_platform_driver); |
| 5280 | } |
| 5281 | module_exit(panel_simple_exit); |
| 5282 | |
| 5283 | MODULE_AUTHOR("Thierry Reding <treding@nvidia.com>"); |
| 5284 | MODULE_DESCRIPTION("DRM Driver for Simple Panels"); |
| 5285 | MODULE_LICENSE("GPL and additional rights"); |