Skip to contentSkip to conversation

drm: panel-orientation-quirks: Add quirks for AYN loki zero/max

PATCH RESEND In review Bouke Sybren Haarsma 3 participants 5 messages Jul 28, 2024 – Aug 12, 2024

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

cover drm: panel-orientation-quirks: Add quirks for AYN loki zero/max

Add orientation quirks for AYN loki devices:
- Ayn Loki Zero
- Ayn Loki Max

The quirks have been tested by the JELOS team and ChimeraOS who have been patching their own kernel. This has been confirmed working by users in the ChimeraOS discord servers.

Since there are additional Ayn Loki devices I have made separate matches for the devices.

Bouke Sybren Haarsma (2):
drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero
drm: panel-orientation-quirks: Add quirk for Ayn Loki Max

 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

base-commit: 668d33c9ff922c4590c58754ab064aaf53c387dd

Signature · 1 line
2.45.2
#1 lore raw

PATCH RESEND 1/2 drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero

Add quirk orientation for the Ayn Loki Zero.

This also has been tested/used by the JELOS team.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +6 -0
index c16c7678237e..a1dfeaae644d 100644
@@ -208,6 +208,12 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_MATCH(DMI_BOARD_NAME, "KUN"),
 		},
 		.driver_data = (void *)&lcd1600x2560_rightside_up,
+	}, {	/* AYN Loki Zero */
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Loki Zero"),
+		},
+		.driver_data = (void *)&lcd1080x1920_leftside_up,
 	}, {	/* Chuwi HiBook (CWI514) */
 		.matches = {
 			DMI_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
Signature · 1 line
2.45.2
#2 lore raw

PATCH RESEND 2/2 drm: panel-orientation-quirks: Add quirk for Ayn Loki Max

In reply to Bouke Sybren Haarsma

Add quirk orientation for Ayn Loki Max model.

This has been tested by JELOS team that uses their own patched kernel for a while now and confirmed by users in the ChimeraOS discord servers.

---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +6 -0
index a1dfeaae644d..0830cae9a4d0 100644
@@ -208,6 +208,12 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_MATCH(DMI_BOARD_NAME, "KUN"),
 		},
 		.driver_data = (void *)&lcd1600x2560_rightside_up,
+	}, {    /* AYN Loki Max */
+		.matches = {
+			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
+			DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Loki Max"),
+		},
+		.driver_data = (void *)&lcd1080x1920_leftside_up,
 	}, {	/* AYN Loki Zero */
 		.matches = {
 			DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
Signature · 1 line
2.45.2
#3 lore raw

Re: [PATCH RESEND 2/2] drm: panel-orientation-quirks: Add quirk for Ayn Loki Max

Quoted 30 lines · Bouke Sybren Haarsma

Add quirk orientation for Ayn Loki Max model.

This has been tested by JELOS team that uses their own patched kernel for a while now and confirmed by users in the ChimeraOS discord servers.

---
drivers/gpu/drm/drm_panel_orientation_quirks.c | 6 ++++++

1 file changed, 6 insertions(+)
drivers/gpu/drm/drm_panel_orientation_quirks.c +6 -0
index a1dfeaae644d..0830cae9a4d0 100644
@@ -208,6 +208,12 @@ static const struct dmi_system_id orientation_data[] = {
  DMI_MATCH(DMI_BOARD_NAME, "KUN"),
 },
 .driver_data = (void *)&lcd1600x2560_rightside_up,
+ }, {    /* AYN Loki Max */
+ .matches = {
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Loki Max"),
+ },
+ .driver_data = (void *)&lcd1080x1920_leftside_up,
 }, { /* AYN Loki Zero */
 .matches = {
 DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"),
Signature · 1 line
2.45.2

Hi All, are we able to get some movement on this? Although many folks who rely on this are able to keep patching it would be wonderful for others to not have to worry about it.

Cheers,
Luke.

Reviewed-by on the v1 series
#4 lore raw
In reply to Bouke Sybren Haarsma

Hi,

Quoted 12 lines · Bouke Sybren Haarsma

Add orientation quirks for AYN loki devices:
- Ayn Loki Zero
- Ayn Loki Max

The quirks have been tested by the JELOS team and ChimeraOS who have been patching their own kernel. This has been confirmed working by users in the ChimeraOS discord servers.

Since there are additional Ayn Loki devices I have made separate matches for the devices.

Quoted 6 lines

Bouke Sybren Haarsma (2):
drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero
drm: panel-orientation-quirks: Add quirk for Ayn Loki Max

 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Thanks, both patches look good to me:

I have pushed this to drm-misc-fixes now, sorry for being a bit slow with picking these up.

Regards,

Hans