Files
linux/drivers/gpu/drm
Marek Vasut 03fa454bb6 drm/panel: lvds: Simplify mode parsing
The mode parsing is currently implemented in three steps:
of_get_display_timing() - DT panel-timing to struct display_timing
videomode_from_timing() - struct display_timing to struct videomode
drm_display_mode_from_videomode() - struct videomode to struct drm_display_mode

Replace all that with simple of_get_drm_panel_display_mode() call,
which already populates struct drm_display_mode and then duplicate
that mode in panel_lvds_get_modes() each time, since the mode does
not change.

Nice bonus is the bus_flags parsed by of_get_drm_panel_display_mode()
out of panel-timing DT node, which is used in subsequent patch to fix
handling of 'de-active' DT property.

Tested-by: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Christoph Niedermaier <cniedermaier@dh-electronics.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dmitry Osipenko <digetx@gmail.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Robert Foss <robert.foss@linaro.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
To: dri-devel@lists.freedesktop.org
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220401162154.295152-1-marex@denx.de
2022-04-13 16:26:17 +02:00
..
2022-02-07 16:35:35 -08:00
2021-08-10 20:14:01 +02:00
2022-04-05 11:06:58 +02:00
2022-04-07 11:31:52 +02:00
2022-02-07 16:35:35 -08:00
2022-04-08 13:38:07 +02:00
2021-08-10 20:14:01 +02:00
2022-04-07 12:53:54 +02:00
2021-08-02 10:19:43 +02:00
2022-03-16 09:36:13 +01:00
2021-08-02 10:19:43 +02:00
2022-02-07 16:35:35 -08:00
2022-04-12 09:27:20 +03:00
2021-08-02 10:19:43 +02:00
2021-08-02 10:19:43 +02:00
2022-04-07 12:53:53 +02:00
2021-11-30 09:41:28 +01:00
2021-08-02 10:19:43 +02:00
2021-10-01 15:55:47 +02:00
2021-11-30 09:41:28 +01:00
2022-02-07 16:35:35 -08:00
2021-08-19 09:02:55 +09:00
2021-08-02 10:19:43 +02:00
2022-04-12 09:27:20 +03:00
2021-08-02 10:19:43 +02:00