Skip to content

Commit b24dcc1

Browse files
fewtariustdz
authored andcommitted
drm: panel-orientation-quirks: Add quirk for OneXPlayer Mini (Intel)
The Intel model of the OneXPlayer Mini uses a 1200x1920 portrait LCD panel. The DMI strings are the same as the OneXPlayer, which already has a DMI quirk, but the panel is different. Add a DMI match to correctly rotate this panel. Signed-off-by: Andrew Wyatt <fewtarius@steamfork.org> Co-developed-by: John Edwards <uejji@uejji.net> Signed-off-by: John Edwards <uejji@uejji.net> Tested-by: João Pedro Kurtz <joexkurtz@gmail.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20250213222455.93533-6-uejji@uejji.net
1 parent a860eb9 commit b24dcc1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/gpu/drm/drm_panel_orientation_quirks.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ static const struct drm_dmi_panel_orientation_data lcd1080x1920_rightside_up = {
129129
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
130130
};
131131

132+
static const struct drm_dmi_panel_orientation_data lcd1200x1920_leftside_up = {
133+
.width = 1200,
134+
.height = 1920,
135+
.orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
136+
};
137+
132138
static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
133139
.width = 1200,
134140
.height = 1920,
@@ -473,6 +479,12 @@ static const struct dmi_system_id orientation_data[] = {
473479
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
474480
},
475481
.driver_data = (void *)&lcd1600x2560_leftside_up,
482+
}, { /* OneXPlayer Mini (Intel) */
483+
.matches = {
484+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., LTD."),
485+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
486+
},
487+
.driver_data = (void *)&lcd1200x1920_leftside_up,
476488
}, { /* OrangePi Neo */
477489
.matches = {
478490
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "OrangePi"),

0 commit comments

Comments
 (0)