mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision
@ 2024-06-28 20:58 Matthew Schwartz
  2024-06-28 20:58 ` [PATCH v4 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo Matthew Schwartz
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Matthew Schwartz @ 2024-06-28 20:58 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Mario Limonciello, Kyle Gospodnetich, Hans de Goede, dri-devel,
	linux-kernel, Matthew Schwartz

This is a series of 2 patches. 

The first patch is from Valve's public kernel 
source tree. It adds a panel rotation quirk for Valve's Steam Deck Galileo
revision, which has an 800x1280 OLED panel. The previous Steam Deck panel
orientation quirk does not apply to the Galileo revision's DMI. I have
added a short commit message and signed off below the original author.

The second patch is one that I authored to clarify which
device version each panel quirk applies to now that there are
multiple Steam Deck revisions.

---
v4: add missing S-o-b from original author of patch 1/2 and re-signed commit
v3: fixup inconsistent patch versioning across patches in v2
v2: fixup patch 1/2 commit message

Link to v3: https://lore.kernel.org/all/20240627203057.127034-1-mattschwartz@gwu.edu/
Link to v1: https://lore.kernel.org/all/20240627175947.65513-1-mattschwartz@gwu.edu/

---
John Schoenick (1):
  drm: panel-orientation-quirks: Add quirk for Valve Galileo

Matthew Schwartz (1):
  drm: panel-orientation-quirks: Add labels for both Valve Steam Deck
    revisions

 drivers/gpu/drm/drm_panel_orientation_quirks.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

-- 
2.45.2


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

* [PATCH v4 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo
  2024-06-28 20:58 [PATCH v4 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Matthew Schwartz
@ 2024-06-28 20:58 ` Matthew Schwartz
  2024-06-28 21:56   ` Mario Limonciello
  2024-06-28 20:58 ` [PATCH v4 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions Matthew Schwartz
  2024-07-01 11:29 ` [PATCH v4 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Hamza Mahfooz
  2 siblings, 1 reply; 5+ messages in thread
From: Matthew Schwartz @ 2024-06-28 20:58 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Mario Limonciello, Kyle Gospodnetich, Hans de Goede, dri-devel,
	linux-kernel, John Schoenick, Matthew Schwartz

From: John Schoenick <johns@valvesoftware.com>

Valve's Steam Deck Galileo revision has a 800x1280 OLED panel

Signed-off-by: John Schoenick <johns@valvesoftware.com>
Signed-off-by: Matthew Schwartz <mattschwartz@gwu.edu>
---
 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 3d127127e7cb..ac8319d38e37 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -427,6 +427,13 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
+	}, {	/* Valve Steam Deck */
+		.matches = {
+		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galileo"),
+		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
+		},
+		.driver_data = (void *)&lcd800x1280_rightside_up,
 	}, {	/* VIOS LTH17 */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),
-- 
2.45.2


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

* [PATCH v4 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions
  2024-06-28 20:58 [PATCH v4 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Matthew Schwartz
  2024-06-28 20:58 ` [PATCH v4 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo Matthew Schwartz
@ 2024-06-28 20:58 ` Matthew Schwartz
  2024-07-01 11:29 ` [PATCH v4 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Hamza Mahfooz
  2 siblings, 0 replies; 5+ messages in thread
From: Matthew Schwartz @ 2024-06-28 20:58 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Mario Limonciello, Kyle Gospodnetich, Hans de Goede, dri-devel,
	linux-kernel, Matthew Schwartz

This accounts for the existence of two Steam Deck revisions
instead of a single revision

Signed-off-by: Matthew Schwartz <mattschwartz@gwu.edu>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
---
 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 ac8319d38e37..3f84d7527793 100644
--- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
+++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
@@ -420,14 +420,14 @@ static const struct dmi_system_id orientation_data[] = {
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galaxy Book 10.6"),
 		},
 		.driver_data = (void *)&lcd1280x1920_rightside_up,
-	}, {	/* Valve Steam Deck */
+	}, {	/* Valve Steam Deck (Jupiter) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Jupiter"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
 		},
 		.driver_data = (void *)&lcd800x1280_rightside_up,
-	}, {	/* Valve Steam Deck */
+	}, {	/* Valve Steam Deck (Galileo) */
 		.matches = {
 		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
 		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galileo"),
-- 
2.45.2


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

* Re: [PATCH v4 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo
  2024-06-28 20:58 ` [PATCH v4 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo Matthew Schwartz
@ 2024-06-28 21:56   ` Mario Limonciello
  0 siblings, 0 replies; 5+ messages in thread
From: Mario Limonciello @ 2024-06-28 21:56 UTC (permalink / raw)
  To: Matthew Schwartz, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Kyle Gospodnetich, Hans de Goede, dri-devel, linux-kernel,
	John Schoenick, Matthew Schwartz

On 6/28/2024 15:58, Matthew Schwartz wrote:
> From: John Schoenick <johns@valvesoftware.com>
> 
> Valve's Steam Deck Galileo revision has a 800x1280 OLED panel
> 
> Signed-off-by: John Schoenick <johns@valvesoftware.com>
> Signed-off-by: Matthew Schwartz <mattschwartz@gwu.edu>

Thanks!

Reviewed-by: Mario Limonciello <mario.limonciello@amd.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 3d127127e7cb..ac8319d38e37 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -427,6 +427,13 @@ static const struct dmi_system_id orientation_data[] = {
>   		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
>   		},
>   		.driver_data = (void *)&lcd800x1280_rightside_up,
> +	}, {	/* Valve Steam Deck */
> +		.matches = {
> +		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Valve"),
> +		  DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Galileo"),
> +		  DMI_EXACT_MATCH(DMI_PRODUCT_VERSION, "1"),
> +		},
> +		.driver_data = (void *)&lcd800x1280_rightside_up,
>   	}, {	/* VIOS LTH17 */
>   		.matches = {
>   		  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "VIOS"),


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

* Re: [PATCH v4 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision
  2024-06-28 20:58 [PATCH v4 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Matthew Schwartz
  2024-06-28 20:58 ` [PATCH v4 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo Matthew Schwartz
  2024-06-28 20:58 ` [PATCH v4 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions Matthew Schwartz
@ 2024-07-01 11:29 ` Hamza Mahfooz
  2 siblings, 0 replies; 5+ messages in thread
From: Hamza Mahfooz @ 2024-07-01 11:29 UTC (permalink / raw)
  To: Matthew Schwartz, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann
  Cc: Mario Limonciello, Kyle Gospodnetich, Hans de Goede, dri-devel,
	linux-kernel, Matthew Schwartz

On 6/28/24 16:58, Matthew Schwartz wrote:
> This is a series of 2 patches.
> 
> The first patch is from Valve's public kernel
> source tree. It adds a panel rotation quirk for Valve's Steam Deck Galileo
> revision, which has an 800x1280 OLED panel. The previous Steam Deck panel
> orientation quirk does not apply to the Galileo revision's DMI. I have
> added a short commit message and signed off below the original author.
> 
> The second patch is one that I authored to clarify which
> device version each panel quirk applies to now that there are
> multiple Steam Deck revisions.
> 
> ---
> v4: add missing S-o-b from original author of patch 1/2 and re-signed commit
> v3: fixup inconsistent patch versioning across patches in v2
> v2: fixup patch 1/2 commit message
> 
> Link to v3: https://lore.kernel.org/all/20240627203057.127034-1-mattschwartz@gwu.edu/
> Link to v1: https://lore.kernel.org/all/20240627175947.65513-1-mattschwartz@gwu.edu/

Applied, thanks!

> 
> ---
> John Schoenick (1):
>    drm: panel-orientation-quirks: Add quirk for Valve Galileo
> 
> Matthew Schwartz (1):
>    drm: panel-orientation-quirks: Add labels for both Valve Steam Deck
>      revisions
> 
>   drivers/gpu/drm/drm_panel_orientation_quirks.c | 9 ++++++++-
>   1 file changed, 8 insertions(+), 1 deletion(-)
> 
-- 
Hamza


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

end of thread, other threads:[~2024-07-01 11:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-28 20:58 [PATCH v4 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Matthew Schwartz
2024-06-28 20:58 ` [PATCH v4 1/2] drm: panel-orientation-quirks: Add quirk for Valve Galileo Matthew Schwartz
2024-06-28 21:56   ` Mario Limonciello
2024-06-28 20:58 ` [PATCH v4 2/2] drm: panel-orientation-quirks: Add labels for both Valve Steam Deck revisions Matthew Schwartz
2024-07-01 11:29 ` [PATCH v4 0/2] drm: panel-orientation-quirks: Add quirk for Steam Deck Galileo revision and re-label the Deck panel quirks to specify hardware revision Hamza Mahfooz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®