Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: panel-orientation-quirks: Add quirk for the Samsung Galaxy Book 10.6

The Samsung Galaxy Book 10.6 uses a panel which has been mounted
90 degrees rotated. Add a quirk for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Ser <contact@emersion.fr>
Link: https://patchwork.freedesktop.org/patch/msgid/20210530110428.12994-4-hdegoede@redhat.com

+12
+12
drivers/gpu/drm/drm_panel_orientation_quirks.c
··· 109 109 .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 110 110 }; 111 111 112 + static const struct drm_dmi_panel_orientation_data lcd1280x1920_rightside_up = { 113 + .width = 1280, 114 + .height = 1920, 115 + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, 116 + }; 117 + 112 118 static const struct dmi_system_id orientation_data[] = { 113 119 { /* Acer One 10 (S1003) */ 114 120 .matches = { ··· 243 237 DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Default string"), 244 238 }, 245 239 .driver_data = (void *)&onegx1_pro, 240 + }, { /* Samsung GalaxyBook 10.6 */ 241 + .matches = { 242 + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."), 243 + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galaxy Book 10.6"), 244 + }, 245 + .driver_data = (void *)&lcd1280x1920_rightside_up, 246 246 }, { /* VIOS LTH17 */ 247 247 .matches = { 248 248 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),