All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] drm: panel-orientation-quirks: Add quirks for 4 more devices
@ 2021-05-30 11:04 Hans de Goede
  2021-05-30 11:04 ` [PATCH 1/4] drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2) Hans de Goede
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Hans de Goede @ 2021-05-30 11:04 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Hans de Goede, dri-devel

Hi All,

Here are 4 straight forward quirk additions for devices which have their
LCD panel mounted 90 degree rotated.

The first 2 patches were send before but gor no reaction.

It would be great if I can get a quick ack for these simple patches,
then I can push them to drm-misc-fixes.

Regards,

Hans


Hans de Goede (4):
  drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk
    (v2)
  drm: panel-orientation-quirks: Add quirk for KD Kurio Smart C15200
    2-in-1
  drm: panel-orientation-quirks: Add quirk for the Samsung Galaxy Book
    10.6
  drm: panel-orientation-quirks: Add quirk for the Chuwi Hi10 Pro

 .../gpu/drm/drm_panel_orientation_quirks.c    | 34 +++++++++++++++++--
 1 file changed, 32 insertions(+), 2 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/4] drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2)
  2021-05-30 11:04 [PATCH 0/4] drm: panel-orientation-quirks: Add quirks for 4 more devices Hans de Goede
@ 2021-05-30 11:04 ` Hans de Goede
  2021-05-30 11:04 ` [PATCH 2/4] drm: panel-orientation-quirks: Add quirk for KD Kurio Smart C15200 2-in-1 Hans de Goede
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2021-05-30 11:04 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Hans de Goede, dri-devel

2 improvements to the Lenovo Ideapad D330 panel-orientation quirks:

1. Some versions of the Lenovo Ideapad D330 have a DMI_PRODUCT_NAME of
"81H3" and others have "81MD". Testing has shown that the "81MD" also has
a 90 degree mounted panel. Drop the DMI_PRODUCT_NAME from the existing
quirk so that the existing quirk matches both variants.

2. Some of the Lenovo Ideapad D330 models have a HD (800x1280) screen
instead of a FHD (1200x1920) screen (both are mounted right-side-up) add
a second Lenovo Ideapad D330 quirk for the HD version.

Changes in v2:
- Add a new quirk for Lenovo Ideapad D330 models with a HD screen instead
  of a FHD screen

Link: https://github.com/systemd/systemd/pull/18884
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index f6bdec7fa925..604535b1c3a9 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -211,10 +211,15 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo MIIX 320-10ICR"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
-	}, {	/* Lenovo Ideapad D330 */
+	}, {	/* Lenovo Ideapad D330-10IGM (HD) */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"),
+		},
+		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Lenovo Ideapad D330-10IGM (FHD) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "81H3"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Lenovo ideapad D330-10IGM"),
 		},
 		.driver_data = (void *)&lcd1200x1920_rightside_up,
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/4] drm: panel-orientation-quirks: Add quirk for KD Kurio Smart C15200 2-in-1
  2021-05-30 11:04 [PATCH 0/4] drm: panel-orientation-quirks: Add quirks for 4 more devices Hans de Goede
  2021-05-30 11:04 ` [PATCH 1/4] drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2) Hans de Goede
@ 2021-05-30 11:04 ` Hans de Goede
  2021-05-30 11:04 ` [PATCH 3/4] drm: panel-orientation-quirks: Add quirk for the Samsung Galaxy Book 10.6 Hans de Goede
  2021-05-30 11:04 ` [PATCH 4/4] drm: panel-orientation-quirks: Add quirk for the Chuwi Hi10 Pro Hans de Goede
  3 siblings, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2021-05-30 11:04 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Hans de Goede, dri-devel

The KD Kurio Smart C15200 2-in-1 uses  a panel which has been mounted 90
degrees rotated. Add a quirk for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index 604535b1c3a9..d662292560c7 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -193,6 +193,13 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "TW891"),
 		},
 		.driver_data = (void *)&itworks_tw891,
+	}, {	/* KD Kurio Smart C15200 2-in-1 */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "KD Interactive"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Kurio Smart"),
+		  DMI_EXACT_MATCH(DMI_BOARD_NAME, "KDM960BCP"),
+		},
+		.driver_data = (void *)&lcd800x1280_rightside_up,
 	}, {	/*
 		 * Lenovo Ideapad Miix 310 laptop, only some production batches
 		 * have a portrait screen, the resolution checks makes the quirk
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/4] drm: panel-orientation-quirks: Add quirk for the Samsung Galaxy Book 10.6
  2021-05-30 11:04 [PATCH 0/4] drm: panel-orientation-quirks: Add quirks for 4 more devices Hans de Goede
  2021-05-30 11:04 ` [PATCH 1/4] drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2) Hans de Goede
  2021-05-30 11:04 ` [PATCH 2/4] drm: panel-orientation-quirks: Add quirk for KD Kurio Smart C15200 2-in-1 Hans de Goede
@ 2021-05-30 11:04 ` Hans de Goede
  2021-05-30 11:04 ` [PATCH 4/4] drm: panel-orientation-quirks: Add quirk for the Chuwi Hi10 Pro Hans de Goede
  3 siblings, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2021-05-30 11:04 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Hans de Goede, dri-devel

The Samsung Galaxy Book 10.6 uses a panel which has been mounted
90 degrees rotated. Add a quirk for this

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/gpu/drm/drm_panel_orientation_quirks.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c
index d662292560c7..b2a650674cd3 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -109,6 +109,12 @@ static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
 	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
 };
 
+static const struct drm_dmi_panel_orientation_data lcd1280x1920_rightside_up = {
+	.width = 1280,
+	.height = 1920,
+	.orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
+};
+
 static const struct dmi_system_id orientation_data[] = {
 	{	/* Acer One 10 (S1003) */
 		.matches = {
@@ -237,6 +243,12 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "Default string"),
 		},
 		.driver_data = (void *)&onegx1_pro,
+	}, {	/* Samsung GalaxyBook 10.6 */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "SAMSUNG ELECTRONICS CO., LTD."),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galaxy Book 10.6"),
+		},
+		.driver_data = (void *)&lcd1280x1920_rightside_up,
 	}, {	/* VIOS LTH17 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 4/4] drm: panel-orientation-quirks: Add quirk for the Chuwi Hi10 Pro
  2021-05-30 11:04 [PATCH 0/4] drm: panel-orientation-quirks: Add quirks for 4 more devices Hans de Goede
                   ` (2 preceding siblings ...)
  2021-05-30 11:04 ` [PATCH 3/4] drm: panel-orientation-quirks: Add quirk for the Samsung Galaxy Book 10.6 Hans de Goede
@ 2021-05-30 11:04 ` Hans de Goede
  3 siblings, 0 replies; 5+ messages in thread
From: Hans de Goede @ 2021-05-30 11:04 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Hans de Goede, dri-devel

The Chuwi Hi10 Pro uses a panel which has been mounted
90 degrees rotated. Add a quirk for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.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 b2a650674cd3..4e965b0f5502 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -140,6 +140,12 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Chuwi Hi10 Pro (CWI529) */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "Hampoo"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Hi10 pro tablet"),
+		},
+		.driver_data = (void *)&lcd1200x1920_rightside_up,
 	}, {	/* GPD MicroPC (generic strings, also match on bios date) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Default string"),
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-30 11:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-30 11:04 [PATCH 0/4] drm: panel-orientation-quirks: Add quirks for 4 more devices Hans de Goede
2021-05-30 11:04 ` [PATCH 1/4] drm: panel-orientation-quirks: Update the Lenovo Ideapad D330 quirk (v2) Hans de Goede
2021-05-30 11:04 ` [PATCH 2/4] drm: panel-orientation-quirks: Add quirk for KD Kurio Smart C15200 2-in-1 Hans de Goede
2021-05-30 11:04 ` [PATCH 3/4] drm: panel-orientation-quirks: Add quirk for the Samsung Galaxy Book 10.6 Hans de Goede
2021-05-30 11:04 ` [PATCH 4/4] drm: panel-orientation-quirks: Add quirk for the Chuwi Hi10 Pro Hans de Goede

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.