* [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero
2023-10-07 22:22 [PATCH 0/2] drm: panel-orientation-quirks: Add quirks for AYN loki zero/max Bouke Sybren Haarsma
@ 2023-10-07 22:22 ` Bouke Sybren Haarsma
2023-10-07 22:22 ` [PATCH 2/2] drm: panel-orientation-quirks: Add quirk for Ayn Loki Max Bouke Sybren Haarsma
1 sibling, 0 replies; 3+ messages in thread
From: Bouke Sybren Haarsma @ 2023-10-07 22:22 UTC (permalink / raw)
To: maarten.lankhorst
Cc: boukehaarsma23, mripard, tzimmermann, airlied, daniel, dri-devel,
linux-kernel
Add quirk orientation for the Ayn Loki Zero.
This also has been tested/used by the JELOS team.
Signed-off-by: Bouke Sybren Haarsma <boukehaarsma23@gmail.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 d5c15292ae93..7466354c7e5b 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -196,6 +196,12 @@ static const struct dmi_system_id orientation_data[] = {
DMI_MATCH(DMI_BOARD_NAME, "NEXT"),
},
.driver_data = (void *)&lcd800x1280_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"),
--
2.41.0
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 2/2] drm: panel-orientation-quirks: Add quirk for Ayn Loki Max
2023-10-07 22:22 [PATCH 0/2] drm: panel-orientation-quirks: Add quirks for AYN loki zero/max Bouke Sybren Haarsma
2023-10-07 22:22 ` [PATCH 1/2] drm: panel-orientation-quirks: Add quirk for Ayn Loki Zero Bouke Sybren Haarsma
@ 2023-10-07 22:22 ` Bouke Sybren Haarsma
1 sibling, 0 replies; 3+ messages in thread
From: Bouke Sybren Haarsma @ 2023-10-07 22:22 UTC (permalink / raw)
To: maarten.lankhorst
Cc: boukehaarsma23, mripard, tzimmermann, airlied, daniel, dri-devel,
linux-kernel
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.
Signed-off-by: Bouke Sybren Haarsma <boukehaarsma23@gmail.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 7466354c7e5b..5adf9ff07c3e 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -196,6 +196,12 @@ static const struct dmi_system_id orientation_data[] = {
DMI_MATCH(DMI_BOARD_NAME, "NEXT"),
},
.driver_data = (void *)&lcd800x1280_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"),
--
2.41.0
^ permalink raw reply [flat|nested] 3+ messages in thread