[PATCH 4/4] drm: panel-orientation-quirks: Add new quirk for GPD Win 2

From: John Edwards
Date: Thu Jan 16 2025 - 10:53:21 EST


From: Andrew Wyatt <fewtarius@xxxxxxxxxxxxx>

Some GPD Win 2 models shipped with the correct DMI strings.

Add a DMI match to correctly rotate the panel on these models.

Signed-off-by: Andrew Wyatt <fewtarius@xxxxxxxxxxxxx>
Signed-off-by: John Edwards <uejji@xxxxxxxxx>
Tested-by: Paco Avelar <pacoavelar@xxxxxxxxxxx>
---
drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 9e6708cd1..e6148cc31 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -339,6 +339,12 @@ static const struct dmi_system_id orientation_data[] = {
DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"),
},
.driver_data = (void *)&gpd_win2,
+ }, { /* GPD Win 2 (correct DMI strings) */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "WIN2")
+ },
+ .driver_data = (void *)&lcd720x1280_rightside_up,
}, { /* GPD Win 3 */
.matches = {
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),
--
2.43.0