Skip to contentSkip to conversation

drm: panel-orientation-quirks: Add quirk for Aya Neo Air

PATCH In review Maccraft123 2 participants 3 messages Aug 25, 2022 – Sep 17, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: panel-orientation-quirks: Add quirk for Aya Neo Air

From: Maya Matuszczyk <[email protected]>

Yet another x86 gaming handheld.

This one has many SKUs with quite a few of DMI strings, so let's just use a catchall, just as with Aya Neo Next.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +12 -0
index fc1728d46ac2..0b011b615495 100644
@@ -103,6 +103,12 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
 	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
+static const struct drm_dmi_panel_orientation_data lcd1080x1920_leftside_up = {
+	.width = 1080,
+	.height = 1920,
+	.orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
 static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
 	.width = 1200,
 	.height = 1920,
@@ -152,6 +158,12 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYA NEO 2021"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* AYA NEO AIR */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
+		  DMI_MATCH(DMI_BOARD_NAME, "AIR"),
+		},
+		.driver_data = (void *)&lcd1080x1920_leftside_up,
 	}, {	/* AYA NEO NEXT */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
Signature · 1 line
2.37.2
#1 lore raw

Hi,

Quoted 8 lines · On 8/25/22 21:19, Maccraft123 wrote:

From: Maya Matuszczyk <[email protected]>

Yet another x86 gaming handheld.

This one has many SKUs with quite a few of DMI strings, so let's just use a catchall, just as with Aya Neo Next.

Thanks, I have pushed this out to drm-misc-next now.

Note for future drm_panel_orientation_quirks.c patches please Cc me, I am not subscribed to dri-devel.

Regards,

Hans

Quoted 34 lines
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +12 -0
index fc1728d46ac2..0b011b615495 100644
@@ -103,6 +103,12 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
 	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
+static const struct drm_dmi_panel_orientation_data lcd1080x1920_leftside_up = {
+	.width = 1080,
+	.height = 1920,
+	.orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
 static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
 	.width = 1200,
 	.height = 1920,
@@ -152,6 +158,12 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYA NEO 2021"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* AYA NEO AIR */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
+		  DMI_MATCH(DMI_BOARD_NAME, "AIR"),
+		},
+		.driver_data = (void *)&lcd1080x1920_leftside_up,
 	}, {	/* AYA NEO NEXT */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
#2 lore raw

Hey,

sob., 17 wrz 2022 o 20:00 Hans de Goede <[email protected]> napisał(a):

Quoted 11 lines

Hi,

Quoted 7 lines · On 8/25/22 21:19, Maccraft123 wrote:

From: Maya Matuszczyk <[email protected]>

Yet another x86 gaming handheld.

This one has many SKUs with quite a few of DMI strings, so let's just use a catchall, just as with Aya Neo Next.

Quoted 6 lines
Quoted 1 line

Thanks, I have pushed this out to drm-misc-next now.

Note for future drm_panel_orientation_quirks.c patches please Cc me, I am not subscribed to dri-devel.

Yeah i forgot to Cc you on this patch, and had no idea how to bring it up. I'll do my best to remember in future.
Thanks for picking this up!

Best Regards,
Maya Matuszczyk

Quoted 41 lines

Regards,

Hans

Quoted 34 lines
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +12 -0
index fc1728d46ac2..0b011b615495 100644
@@ -103,6 +103,12 @@ static const struct drm_dmi_panel_orientation_data lcd800x1280_rightside_up = {
      .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
+static const struct drm_dmi_panel_orientation_data lcd1080x1920_leftside_up = {
+     .width = 1080,
+     .height = 1920,
+     .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
+};
+
 static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
      .width = 1200,
      .height = 1920,
@@ -152,6 +158,12 @@ static const struct dmi_system_id orientation_data[] = {
                DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYA NEO 2021"),
              },
              .driver_data = (void *)&lcd800x1280_rightside_up,
+     }, {    /* AYA NEO AIR */
+             .matches = {
+               DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"),
+               DMI_MATCH(DMI_BOARD_NAME, "AIR"),
+             },
+             .driver_data = (void *)&lcd1080x1920_leftside_up,
      }, {    /* AYA NEO NEXT */
              .matches = {
                DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AYANEO"),