* [PATCH 1/4] drm: panel-orientation-quirks: Add support for AYANEO 2S
2025-01-16 15:50 [PATCH 0/4] Handheld gaming PC panel orientation quirks John Edwards
@ 2025-01-16 15:50 ` John Edwards
2025-01-16 15:50 ` [PATCH 2/4] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB John Edwards
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: John Edwards @ 2025-01-16 15:50 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter
Cc: Andrew Wyatt, John Edwards, dri-devel, linux-kernel
From: Andrew Wyatt <fewtarius@steamfork.org>
AYANEO 2S uses the same panel and orientation as the AYANEO 2.
Update the AYANEO 2 DMI match to also match AYANEO 2S.
Signed-off-by: Andrew Wyatt <fewtarius@steamfork.org>
Signed-off-by: John Edwards <uejji@uejji.net>
Tested-by: John Edwards <uejji@uejji.net>
---
drivers/gpu/drm/drm_panel_orientation_quirks.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 4a73821b8..f9c975338 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -184,10 +184,10 @@ static const struct dmi_system_id orientation_data[] = {
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
},
.driver_data = (void *)&lcd800x1280_rightside_up,
- }, { /* AYA NEO AYANEO 2 */
+ }, { /* AYA NEO AYANEO 2/2S */
.matches = {
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
- DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYANEO 2"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "AYANEO 2"),
},
.driver_data = (void *)&lcd1200x1920_rightside_up,
}, { /* AYA NEO 2021 */
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 2/4] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB
2025-01-16 15:50 [PATCH 0/4] Handheld gaming PC panel orientation quirks John Edwards
2025-01-16 15:50 ` [PATCH 1/4] drm: panel-orientation-quirks: Add support for AYANEO 2S John Edwards
@ 2025-01-16 15:50 ` John Edwards
2025-01-16 15:50 ` [PATCH 3/4] drm: panel-orientation-quirks: Add quirk for AYA NEO Slide John Edwards
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: John Edwards @ 2025-01-16 15:50 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter
Cc: Andrew Wyatt, John Edwards, dri-devel, linux-kernel
From: Andrew Wyatt <fewtarius@steamfork.org>
The AYA NEO Flip DS and KB both use a 1080x1920 portrait LCD panel. The
Flip DS additionally uses a 640x960 portrait LCD panel as a second display.
Add DMI matches to properly rotate these panels.
Signed-off-by: Andrew Wyatt <fewtarius@steamfork.org>
Co-developed-by: John Edwards <uejji@uejji.net>
Signed-off-by: John Edwards <uejji@uejji.net>
---
drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index f9c975338..c5acf2628 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -93,6 +93,12 @@ static const struct drm_dmi_panel_orientation_data onegx1_pro = {
.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
};
+static const struct drm_dmi_panel_orientation_data lcd640x960_leftside_up = {
+ .width = 640,
+ .height = 960,
+ .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = {
.width = 720,
.height = 1280,
@@ -202,6 +208,18 @@ static const struct dmi_system_id orientation_data[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "AIR"),
},
.driver_data = (void *)&lcd1080x1920_leftside_up,
+ }, { /* AYA NEO Flip DS Bottom Screen */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "FLIP DS"),
+ },
+ .driver_data = (void *)&lcd640x960_leftside_up,
+ }, { /* AYA NEO Flip KB/DS Top Screen */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "FLIP"),
+ },
+ .driver_data = (void *)&lcd1080x1920_leftside_up,
}, { /* AYA NEO Founder */
.matches = {
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYA NEO"),
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 3/4] drm: panel-orientation-quirks: Add quirk for AYA NEO Slide
2025-01-16 15:50 [PATCH 0/4] Handheld gaming PC panel orientation quirks John Edwards
2025-01-16 15:50 ` [PATCH 1/4] drm: panel-orientation-quirks: Add support for AYANEO 2S John Edwards
2025-01-16 15:50 ` [PATCH 2/4] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB John Edwards
@ 2025-01-16 15:50 ` John Edwards
2025-01-16 15:50 ` [PATCH 4/4] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 John Edwards
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: John Edwards @ 2025-01-16 15:50 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter
Cc: Andrew Wyatt, John Edwards, dri-devel, linux-kernel
From: Andrew Wyatt <fewtarius@steamfork.org>
The AYANEO Slide uses a 1080x1920 portrait LCD panel. This is the same
panel used on the AYANEO Air Plus, but the DMI data is too different to
match both with one entry.
Add a DMI match to correctly rotate the panel on the AYANEO Slide.
This also covers the Antec Core HS, which is a rebranded AYANEO Slide with
the exact same hardware and DMI strings.
Signed-off-by: Andrew Wyatt <fewtarius@steamfork.org>
Signed-off-by: John Edwards <uejji@uejji.net>
Tested-by: John Edwards <uejji@uejji.net>
---
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 c5acf2628..9e6708cd1 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -244,6 +244,12 @@ static const struct dmi_system_id orientation_data[] = {
DMI_MATCH(DMI_BOARD_NAME, "KUN"),
},
.driver_data = (void *)&lcd1600x2560_rightside_up,
+ }, { /* AYA NEO SLIDE */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "SLIDE"),
+ },
+ .driver_data = (void *)&lcd1080x1920_leftside_up,
}, { /* AYN Loki Max */
.matches = {
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
--
2.43.0
^ permalink raw reply [flat|nested] 8+ messages in thread* [PATCH 4/4] drm: panel-orientation-quirks: Add new quirk for GPD Win 2
2025-01-16 15:50 [PATCH 0/4] Handheld gaming PC panel orientation quirks John Edwards
` (2 preceding siblings ...)
2025-01-16 15:50 ` [PATCH 3/4] drm: panel-orientation-quirks: Add quirk for AYA NEO Slide John Edwards
@ 2025-01-16 15:50 ` John Edwards
2025-01-22 7:55 ` [PATCH 0/4] Handheld gaming PC panel orientation quirks Thomas Zimmermann
2025-01-24 18:47 ` John Edwards
5 siblings, 0 replies; 8+ messages in thread
From: John Edwards @ 2025-01-16 15:50 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
David Airlie, Simona Vetter
Cc: Andrew Wyatt, John Edwards, Paco Avelar, dri-devel, linux-kernel
From: Andrew Wyatt <fewtarius@steamfork.org>
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@steamfork.org>
Signed-off-by: John Edwards <uejji@uejji.net>
Tested-by: Paco Avelar <pacoavelar@hotmail.com>
---
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
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 0/4] Handheld gaming PC panel orientation quirks
2025-01-16 15:50 [PATCH 0/4] Handheld gaming PC panel orientation quirks John Edwards
` (3 preceding siblings ...)
2025-01-16 15:50 ` [PATCH 4/4] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 John Edwards
@ 2025-01-22 7:55 ` Thomas Zimmermann
2025-01-22 14:02 ` John Edwards
2025-01-24 18:47 ` John Edwards
5 siblings, 1 reply; 8+ messages in thread
From: Thomas Zimmermann @ 2025-01-22 7:55 UTC (permalink / raw)
To: John Edwards, Maarten Lankhorst, Maxime Ripard, David Airlie,
Simona Vetter, Hans de Goede
Cc: Andrew Wyatt, dri-devel, linux-kernel
(cc'ing Hans)
Hi Hans,
I think this is for you.
Best regards
Thomas
Am 16.01.25 um 16:50 schrieb John Edwards:
> Hello.
>
> I am submitting a small number of patches to add panel rotation quirks for
> a few handheld gaming PCs. These patches were created by the SteamFork
> team and are in daily use by us and/or members of our community.
>
> Thank you for your consideration and for taking the time to review these
> patches.
>
> John Edwards
>
> Andrew Wyatt (4):
> drm: panel-orientation-quirks: Add support for AYANEO 2S
> drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB
> drm: panel-orientation-quirks: Add quirk for AYA NEO Slide
> drm: panel-orientation-quirks: Add new quirk for GPD Win 2
>
> .../gpu/drm/drm_panel_orientation_quirks.c | 34 +++++++++++++++++--
> 1 file changed, 32 insertions(+), 2 deletions(-)
>
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstrasse 146, 90461 Nuernberg, Germany
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
HRB 36809 (AG Nuernberg)
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH 0/4] Handheld gaming PC panel orientation quirks
2025-01-22 7:55 ` [PATCH 0/4] Handheld gaming PC panel orientation quirks Thomas Zimmermann
@ 2025-01-22 14:02 ` John Edwards
0 siblings, 0 replies; 8+ messages in thread
From: John Edwards @ 2025-01-22 14:02 UTC (permalink / raw)
To: tzimmermann
Cc: airlied, dri-devel, fewtarius, hdegoede, linux-kernel,
maarten.lankhorst, mripard, simona, uejji
Hello.
My sincerest apologies.
I used get_maintainer to populate the recipients for this patch series,
but I must have made an error somewhere.
John Edwards
On Wed, Jan 22, 2025 at 1:55 AM Thomas Zimmermann <tzimmermann@suse.de> wrote:
>
> (cc'ing Hans)
>
> Hi Hans,
>
> I think this is for you.
>
> Best regards
> Thomas
>
> Am 16.01.25 um 16:50 schrieb John Edwards:
> > Hello.
> >
> > I am submitting a small number of patches to add panel rotation quirks for
> > a few handheld gaming PCs. These patches were created by the SteamFork
> > team and are in daily use by us and/or members of our community.
> >
> > Thank you for your consideration and for taking the time to review these
> > patches.
> >
> > John Edwards
> >
> > Andrew Wyatt (4):
> > drm: panel-orientation-quirks: Add support for AYANEO 2S
> > drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB
> > drm: panel-orientation-quirks: Add quirk for AYA NEO Slide
> > drm: panel-orientation-quirks: Add new quirk for GPD Win 2
> >
> > .../gpu/drm/drm_panel_orientation_quirks.c | 34 +++++++++++++++++--
> > 1 file changed, 32 insertions(+), 2 deletions(-)
> >
>
> --
> --
> Thomas Zimmermann
> Graphics Driver Developer
> SUSE Software Solutions Germany GmbH
> Frankenstrasse 146, 90461 Nuernberg, Germany
> GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman
> HRB 36809 (AG Nuernberg)
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/4] Handheld gaming PC panel orientation quirks
2025-01-16 15:50 [PATCH 0/4] Handheld gaming PC panel orientation quirks John Edwards
` (4 preceding siblings ...)
2025-01-22 7:55 ` [PATCH 0/4] Handheld gaming PC panel orientation quirks Thomas Zimmermann
@ 2025-01-24 18:47 ` John Edwards
5 siblings, 0 replies; 8+ messages in thread
From: John Edwards @ 2025-01-24 18:47 UTC (permalink / raw)
To: Maarten Lankhorst, Maxime Ripard, David Airlie, Simona Vetter,
Hans de Goede
Cc: John Edwards, Andrew Wyatt, dri-devel, linux-kernel
Hello.
I am sending an updated patch series soon.
Thank you for your patience.
John Edwards
^ permalink raw reply [flat|nested] 8+ messages in thread