summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorChenyu Chen <chen-yu.chen@amd.com>2026-05-26 10:59:50 +0800
committerMario Limonciello <superm1@kernel.org>2026-06-29 21:16:36 -0500
commit1258f9c9ff1dba0d081e27a5f85597a916249988 (patch)
tree936d821da645374ba3813e50821693d470a07922 /include/drm
parent3474028a606c67119712c90520199e0ac484c6e4 (diff)
downloadlinux-next-1258f9c9ff1dba0d081e27a5f85597a916249988.tar.gz
linux-next-1258f9c9ff1dba0d081e27a5f85597a916249988.zip
drm/edid: parse panel type from DisplayID 2.x Display Parameters
Parse the Display Parameters Data Block (tag 0x21) defined in DisplayID v2.1a Section 4.2.6. Extract the Display Device Technology field from the color depth and device technology byte, which indicates whether the panel uses LCD or OLED technology. Add a panel_type field to struct drm_display_info and populate it during DisplayID iteration so downstream drivers can use it for panel-type-dependent behavior. Add DRM_MODE_PANEL_TYPE_LCD to the UAPI panel type property alongside the existing OLED value. Assisted-by: Copilot:Claude-Opus-4.6 Signed-off-by: Chenyu Chen <chen-yu.chen@amd.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Link: https://patch.msgid.link/20260526030254.1460480-3-chen-yu.chen@amd.com Signed-off-by: Mario Limonciello <superm1@kernel.org>
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_connector.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h
index 4317166562cf..0cb72aa081d9 100644
--- a/include/drm/drm_connector.h
+++ b/include/drm/drm_connector.h
@@ -989,6 +989,12 @@ struct drm_display_info {
* @amd_vsdb: AMD-specific VSDB information.
*/
struct drm_amd_vsdb_info amd_vsdb;
+
+ /**
+ * @panel_type: Panel type from DisplayID Display Parameters
+ * Data Block (tag 0x21). Uses DRM_MODE_PANEL_TYPE_* constants.
+ */
+ u8 panel_type;
};
int drm_display_info_set_bus_formats(struct drm_display_info *info,