Improve support for panel orientation in simpledrm. There's a rotation property in the DT panel node. Read the value and set the connector's orientation property accordingly.
Patch 1 moves the existing code for parsing the rotation to drm_of.c. This makes it available to simpledrm without introducing a dependency on DRM_PANEL. Patch 2 updates simpledrm and patch 3 updates all DRM panel drivers to use the new helper function. These patches have previously been part of another series that improved simpledrm in general. So we start with v4 instead of v1. Keep existing R-b tags. v4: - integrate Thierry's panel-update patch - update anbernic, chipone, ili9488 panels that were merged recently v3: - see https://lore.kernel.org/dri-devel/[email protected]/ Thierry Reding (1): drm/panel: Use drm_of_get_panel_orientation() Thomas Zimmermann (2): drm/of: Implement drm_of_get_panel_orientation() drm/sysfb: simpledrm: Read panel orientation from DT node drivers/gpu/drm/drm_of.c | 44 +++++++++++++++++++ drivers/gpu/drm/drm_panel.c | 44 +------------------ drivers/gpu/drm/panel/panel-anbernic-td4310.c | 3 +- .../drm/panel/panel-boe-th101mb31ig002-28a.c | 3 +- .../gpu/drm/panel/panel-boe-tv101wum-nl6.c | 3 +- .../gpu/drm/panel/panel-chipone-icna35xx.c | 3 +- .../gpu/drm/panel/panel-chipwealth-ch13726a.c | 3 +- drivers/gpu/drm/panel/panel-edp.c | 3 +- drivers/gpu/drm/panel/panel-elida-kd35t133.c | 3 +- .../gpu/drm/panel/panel-focaltech-ota7290b.c | 3 +- drivers/gpu/drm/panel/panel-himax-hx83102.c | 3 +- drivers/gpu/drm/panel/panel-himax-hx8394.c | 3 +- drivers/gpu/drm/panel/panel-ilitek-ili9488.c | 3 +- .../gpu/drm/panel/panel-ilitek-ili9806e-dsi.c | 3 +- drivers/gpu/drm/panel/panel-ilitek-ili9881c.c | 3 +- drivers/gpu/drm/panel/panel-ilitek-ili9882t.c | 3 +- .../gpu/drm/panel/panel-jadard-jd9365da-h3.c | 2 +- drivers/gpu/drm/panel/panel-lvds.c | 2 +- drivers/gpu/drm/panel/panel-novatek-nt36523.c | 3 +- drivers/gpu/drm/panel/panel-simple.c | 2 +- drivers/gpu/drm/panel/panel-sitronix-st7701.c | 3 +- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 3 +- .../gpu/drm/panel/panel-sitronix-st7789v.c | 3 +- drivers/gpu/drm/sysfb/simpledrm.c | 11 ++++- include/drm/drm_of.h | 11 +++++ include/drm/drm_panel.h | 8 ---- 26 files changed, 104 insertions(+), 74 deletions(-) base-commit: a2d82f27ac35c691c1c65b40c72b13d8b2a7f91f -- 2.54.0
