[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250124205857.57079-2-uejji@uejji.net>
Date: Fri, 24 Jan 2025 20:58:55 +0000
From: John Edwards <uejji@...ji.net>
To: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>,
Hans de Goede <hdegoede@...hat.com>
Cc: John Edwards <uejji@...ji.net>,
Andrew Wyatt <fewtarius@...amfork.org>,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 5/5] drm: panel-orientation-quirks: Add quirk for OneXPlayer Mini (Intel) From: Andrew Wyatt <fewtarius@...amfork.org>
My deepest apologies. There was a serious formatting error in this email
that was discovered too late. I have resubmitted this.
John Edwards
On Fri, Jan 24, 2025 at 2:49 PM John Edwards <uejji@...ji.net> wrote:
>
> The Intel model of the OneXPlayer Mini uses a 1200x1920 portrait LCD panel.
> The DMI strings are the same as the OneXPlayer, which already has a DMI
> quirk, but the panel is different.
>
> Add a DMI match to correctly rotate this panel.
>
> Signed-off-by: Andrew Wyatt <fewtarius@...amfork.org>
> Co-developed-by: John Edwards <uejji@...ji.net>
> Signed-off-by: John Edwards <uejji@...ji.net>
> Tested-by: João Pedro Kurtz <joexkurtz@...il.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 e6148cc31..88aa57c15 100644
> --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c
> +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c
> @@ -129,6 +129,12 @@ static const struct drm_dmi_panel_orientation_data lcd1080x1920_rightside_up = {
> .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP,
> };
>
> +static const struct drm_dmi_panel_orientation_data lcd1200x1920_leftside_up = {
> + .width = 1200,
> + .height = 1920,
> + .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP,
> +};
> +
> static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = {
> .width = 1200,
> .height = 1920,
> @@ -473,6 +479,12 @@ static const struct dmi_system_id orientation_data[] = {
> DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
> },
> .driver_data = (void *)&lcd1600x2560_leftside_up,
> + }, { /* OneXPlayer Mini (Intel) */
> + .matches = {
> + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ONE-NETBOOK TECHNOLOGY CO., LTD."),
> + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "ONE XPLAYER"),
> + },
> + .driver_data = (void *)&lcd1200x1920_leftside_up,
> }, { /* OrangePi Neo */
> .matches = {
> DMI_EXACT_MATCH(DMI_SYS_VENDOR, "OrangePi"),
> --
> 2.43.0
>
Powered by blists - more mailing lists