From patchwork Thu Jan 16 15:50:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Edwards X-Patchwork-Id: 13943004 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5DE94C02183 for ; Fri, 17 Jan 2025 08:46:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D0B3A10EAB5; Fri, 17 Jan 2025 08:46:24 +0000 (UTC) Received: from mail-oo1-f48.google.com (mail-oo1-f48.google.com [209.85.161.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id E950910E1B0 for ; Thu, 16 Jan 2025 15:52:38 +0000 (UTC) Received: by mail-oo1-f48.google.com with SMTP id 006d021491bc7-5f4c111991bso614322eaf.0 for ; Thu, 16 Jan 2025 07:52:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737042758; x=1737647558; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+2rFT6UPFjBzbaYoHK4JyH1XrSo+yhjpr3t2g2LL060=; b=Ek+3JsY+c9TZCR/sJHW9e05e4SWBlGPDr6cJn4YtfDgakI97zmpxSSJ9gwOVLZbcFU l+25KZhBecgGwzJKuCnFprvAQeVRzm2VfuxXyP0obgi7zNgjB7LNgK5EpgcwPov2PbY2 0TeI4pV/9IsjMe6645kpL+8VH2Bcwa4iRh2H7gZ4S/h3khl3RYiMeagqMkzwqmicSU3t s/FWwZHwHSkK0uigkdFgWqFwClJn8PapOlw+BbZo75iZvcOt+6BMj8qjSJIFd5LA7XiH 5eEZDcb965uP/YvB/4MStbNES0ViRpy4/ztYbbmBEsDbyzbPpbTo8kqEYZGMEFjbe1p/ uHQg== X-Forwarded-Encrypted: i=1; AJvYcCXaTSq3YkEsogxlrMiYbNGAI61Ls4QD6JvQdTKjzM6ZC6pCRYIwuJYjggHOrrTjkfwotmnTyKVkCpA=@lists.freedesktop.org X-Gm-Message-State: AOJu0YyXsWxFyExowEf925Y62o3pwq2M2mNXkM2puW6PCGT9cqdkKLAw kkz5RIoDoGHOMwwYz4prHmJFX+vmqmZmWQf/5Qbpw91Uwi0Uu6dj X-Gm-Gg: ASbGncuLaYvcbtSLm+nu2gjsxf9NdqCucgWE+v2PspkTDEnpacDj2tcMhQ0VwpYLoOe SMXKh5y8UXPoPZdPCOIc7R+b+/PZtfUQpRkfApyZlTEPQwwpSwqvipzspS+YYmLtOBhHDyvTj0O X5kXPi9k7gRT00d0vWcMCyOrtly/TWmpdcZCEBhujske+8WymgHVVkkcTLNhgZSgRg8IauCad2A 0KIafIEY4fKvI8vZyb2VedbR0h8Ffx10N3VrOkmCMwxYD+dOGrUrlTtBA== X-Google-Smtp-Source: AGHT+IH7pcLhe9rj4tBRrwB44AFwErH23sD2LBDEer7A8oTPT8B2eEoIeoVtb4vhHPfedWhvGHTVnA== X-Received: by 2002:a05:6820:1ca1:b0:5f8:9e17:81 with SMTP id 006d021491bc7-5f8fa6e8556mr4822052eaf.1.1737042758175; Thu, 16 Jan 2025 07:52:38 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fa35f05bbdsm70538eaf.13.2025.01.16.07.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 07:52:37 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Andrew Wyatt , John Edwards , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] drm: panel-orientation-quirks: Add support for AYANEO 2S Date: Thu, 16 Jan 2025 15:50:45 +0000 Message-ID: <20250116155049.39647-4-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250116155049.39647-2-uejji@uejji.net> References: <20250116155049.39647-2-uejji@uejji.net> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 17 Jan 2025 08:46:14 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Andrew Wyatt AYANEO 2S uses the same panel and orientation as the AYANEO 2. Update the AYANEO 2 DMI match to also match AYANEO 2S. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards --- 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 4a73821b8..f9c975338 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -184,10 +184,10 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "T103HAF"), }, .driver_data = (void *)&lcd800x1280_rightside_up, - }, { /* AYA NEO AYANEO 2 */ + }, { /* AYA NEO AYANEO 2/2S */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), - DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "AYANEO 2"), + DMI_MATCH(DMI_PRODUCT_NAME, "AYANEO 2"), }, .driver_data = (void *)&lcd1200x1920_rightside_up, }, { /* AYA NEO 2021 */ From patchwork Thu Jan 16 15:50:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Edwards X-Patchwork-Id: 13943000 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EADB5C02185 for ; Fri, 17 Jan 2025 08:46:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 47C6610EA99; Fri, 17 Jan 2025 08:46:15 +0000 (UTC) Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 402E710E1B0 for ; Thu, 16 Jan 2025 15:52:51 +0000 (UTC) Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5f89aa7a101so405462eaf.2 for ; Thu, 16 Jan 2025 07:52:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737042770; x=1737647570; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/5rj34u5pNHeuLWOUSUYUBNhSS+rZXTTOxAW79CUJE8=; b=Oy4SP7OmzjSgYwhshU5J4p7EtEf+Ycw8f6llgbcLpJ2mGRA07s0AwHJdvGMw0MefhN h2qfnA4TboTp5l1eSNZeZ5GJe29amMvhHFG8VI2PVRqFF4f3dk3tf5e/pQcM+3CFmign 5VhCdOIvDFkeqWxNgPmozW81J82Udns9D7pjnH/airmcJTKTUCfN2P6VYuJStWNCPSjK z8eZ7EcBnXFpgEf8Myzo3RHYhDuhOu72qUYlnYRf5rxaBPUzQwo+C5sKeAQrahwDaHEB lyDHjFJTKvc16OsGX7o9zWhBt5WHTvHfD75JBEmopQu+a9vgG+Uv7wjZyRQ5uGLjmhCA KeVQ== X-Forwarded-Encrypted: i=1; AJvYcCVhWsoyg5/vIkuqX8YPBmrFNUPcmgJ0A5CroTFPKb7Vr8eezpGZx7FxnUfjiktwFJ4u8HsAEecFa98=@lists.freedesktop.org X-Gm-Message-State: AOJu0YySS5g8W9DXS40KQSLUeGTvtHMmfp8UDyfjOOXpoXObICxK4ytO 2asb/pxYETmzsapUMFlCHDEzv/m4q0jmPWvhz7zjNxTs7doUxVbj X-Gm-Gg: ASbGncu7dMflbSJ5IDsFpzwWNVFUZ15BHpdguMD1/Edf8vyJ4RAfA0+jNTWFWiRPKGR fuKBSVIh4yXDnJJjm+qvm0XJYHmkcZBtK9WxbfhdFX9biIlLT5BEhwdqWUTEhJBpgegWmCVVaoM 6gtCDXoTrg8M2UqghJitLpXWjItynXPooeMZgc0XUpIrMcKMe15dBqUrgop8bED8JzE2UCSrjH8 Wmbf7q5kQkctlg0LkzKb7rqmd4pIgItovpYeE0uWckpmykwN8eQqEHBKw== X-Google-Smtp-Source: AGHT+IEwQCMC+rSOF2ebEhyCNYbOVZz2Y0IsspfjwImeO3LQurHuQIDFGTU7pggWAwduYUbGJiaFRA== X-Received: by 2002:a05:6820:1ad0:b0:5f2:c518:bace with SMTP id 006d021491bc7-5f730909232mr1482377eaf.3.1737042770555; Thu, 16 Jan 2025 07:52:50 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fa35f05bbdsm70538eaf.13.2025.01.16.07.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 07:52:49 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Andrew Wyatt , John Edwards , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB Date: Thu, 16 Jan 2025 15:50:47 +0000 Message-ID: <20250116155049.39647-6-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250116155049.39647-2-uejji@uejji.net> References: <20250116155049.39647-2-uejji@uejji.net> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 17 Jan 2025 08:46:14 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Andrew Wyatt The AYA NEO Flip DS and KB both use a 1080x1920 portrait LCD panel. The Flip DS additionally uses a 640x960 portrait LCD panel as a second display. Add DMI matches to properly rotate these panels. Signed-off-by: Andrew Wyatt Co-developed-by: John Edwards Signed-off-by: John Edwards --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index f9c975338..c5acf2628 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -93,6 +93,12 @@ static const struct drm_dmi_panel_orientation_data onegx1_pro = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data lcd640x960_leftside_up = { + .width = 640, + .height = 960, + .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, +}; + static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = { .width = 720, .height = 1280, @@ -202,6 +208,18 @@ static const struct dmi_system_id orientation_data[] = { DMI_MATCH(DMI_PRODUCT_NAME, "AIR"), }, .driver_data = (void *)&lcd1080x1920_leftside_up, + }, { /* AYA NEO Flip DS Bottom Screen */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "FLIP DS"), + }, + .driver_data = (void *)&lcd640x960_leftside_up, + }, { /* AYA NEO Flip KB/DS Top Screen */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), + DMI_MATCH(DMI_PRODUCT_NAME, "FLIP"), + }, + .driver_data = (void *)&lcd1080x1920_leftside_up, }, { /* AYA NEO Founder */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYA NEO"), From patchwork Thu Jan 16 15:50:49 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Edwards X-Patchwork-Id: 13943001 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 80A97C02183 for ; Fri, 17 Jan 2025 08:46:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 72D0E10EAA7; Fri, 17 Jan 2025 08:46:15 +0000 (UTC) Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by gabe.freedesktop.org (Postfix) with ESMTPS id 79F8710E1B0 for ; Thu, 16 Jan 2025 15:53:02 +0000 (UTC) Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-7231e2ac9e4so283945a34.0 for ; Thu, 16 Jan 2025 07:53:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737042782; x=1737647582; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QSgi3kw7bFscI4U3pI0dPYp1l5hHbgjpKx8NF/oyVvg=; b=mjBfKpmgFzjRhEmYlDgcu6mut2DWeCXHe3oJPs9So5W8JU0KMRXQmfVm46OwVlTMO6 cHB2r/kv1FpCSyNohxehidfP3kA7WEaqMqlSBuoyT9YDEwT+1yGRVbybLRSDADrurrQA PUQoBNmU3WSQ1VhKQz0kwEcKrgLUeQrntCawuF949WRAjHSLtI/yYZPJduDlzvM0VZhb JgQLIxzGkNTIk0NjJLZ5vEmDrDyqWbdB0G9NpWRB9DNQ6MdeWetKM7pplVUIszwTNRRJ VCRiKPO+IDDvZ5guaRadXwORPA/mkKPcrGvMv4rYW+WbfpCA3sltpISzWGqsvkx77LNv hVQQ== X-Forwarded-Encrypted: i=1; AJvYcCU1rgrpcngKNHFmQxPz1YJF+mdz7MIFiP3B7iFWUUbNEPyCu83sh9DdzVnfaGKLfXIngNu4I5ddWjk=@lists.freedesktop.org X-Gm-Message-State: AOJu0Yx2QLrgNwX0XedTYNcLsqyfa0PND4sA1zP0421MNp7jV/fVSiZ1 u70h/HRCEz7uJjqqkttUUUme/uuKqgpl+WCbpNJbGHzJ4e5G7oOH X-Gm-Gg: ASbGncvExreZ5OpvxUxcrG80E8cgV1LFLD84gle7aWbW3P4OBlS1U04iVUFvZSX/c/n V1CveQS0wJUYsLBtJxT57XvC76Ks3BG2odST6CUzTMsjcqZVoFQJndiqwrHgZXLKtgKwqhMqkkL bufmsGQpaOeG880KWT5B0O0Nf6Q2eCwrU1aoCtuqV5FonDsUYAJmyDXGUKK4YKcEVtQE36MwEB+ owu1Vd+pxmVXVOGA2KWnmpeD9xKeq4JI5WaDITeIbUIqPFTvD7DRKExlA== X-Google-Smtp-Source: AGHT+IGMxtpB+0yWH5AZLkYo0fesbnQW+efhzl15OoxO78C0NUVByzsq1cXARwqbqgol1KPp7nqNxA== X-Received: by 2002:a05:6830:6115:b0:71e:1392:80b5 with SMTP id 46e09a7af769-721e2ebe8bamr25019632a34.24.1737042781599; Thu, 16 Jan 2025 07:53:01 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fa35f05bbdsm70538eaf.13.2025.01.16.07.53.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 07:53:01 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Andrew Wyatt , John Edwards , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] drm: panel-orientation-quirks: Add quirk for AYA NEO Slide Date: Thu, 16 Jan 2025 15:50:49 +0000 Message-ID: <20250116155049.39647-8-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250116155049.39647-2-uejji@uejji.net> References: <20250116155049.39647-2-uejji@uejji.net> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 17 Jan 2025 08:46:14 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Andrew Wyatt The AYANEO Slide uses a 1080x1920 portrait LCD panel. This is the same panel used on the AYANEO Air Plus, but the DMI data is too different to match both with one entry. Add a DMI match to correctly rotate the panel on the AYANEO Slide. This also covers the Antec Core HS, which is a rebranded AYANEO Slide with the exact same hardware and DMI strings. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: John Edwards --- 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 c5acf2628..9e6708cd1 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -244,6 +244,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_MATCH(DMI_BOARD_NAME, "KUN"), }, .driver_data = (void *)&lcd1600x2560_rightside_up, + }, { /* AYA NEO SLIDE */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), + DMI_MATCH(DMI_PRODUCT_NAME, "SLIDE"), + }, + .driver_data = (void *)&lcd1080x1920_leftside_up, }, { /* AYN Loki Max */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "ayn"), From patchwork Thu Jan 16 15:50:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Edwards X-Patchwork-Id: 13943003 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D688BC02183 for ; Fri, 17 Jan 2025 08:46:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C2E2110EAAA; Fri, 17 Jan 2025 08:46:15 +0000 (UTC) Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) by gabe.freedesktop.org (Postfix) with ESMTPS id 463FD10E1B0 for ; Thu, 16 Jan 2025 15:53:14 +0000 (UTC) Received: by mail-ot1-f50.google.com with SMTP id 46e09a7af769-71e16519031so620143a34.1 for ; Thu, 16 Jan 2025 07:53:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737042793; x=1737647593; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kA+5/cCDMEVy9H9hQsMuvHPoF7Lama9bj1o+Le+tyQ4=; b=nuWzaeN5u35iexuyueRxdLowqgdG6XZxIpQYQLSj5CfI0IbaaxrMZOA9RBiGX3a8Z7 GoHDYkMZtfukXJ+ztR5/rAQuL8ipFKriR8L5YQCZzKwjAlOgBgrAj30f3j3ll3khBuBR +iiRzcGRj7zDenVlXe5YN4EVKLyI2479QD7GW04iGnTtnVezEKZRmoqaLer8tHWr9Bhu B5MuZUX0e+H3+SAIGsLqy57Lgp4qkzt84MIYdLIMdsuNptGYaFG7MxLW4NdDUiiqOsZw /m8biWCOwzX3K/H4ij3r/JMmG6pBmI/4TIYRvq6ty0N+3/6dZqQoI+R1IN0I7W9YGfB/ 8IWg== X-Forwarded-Encrypted: i=1; AJvYcCXMtAb7jwGgXoCrgBe36JMhtb8N24j1/rbNP60/neoD3cePOXv3UkZ2myfoweLDLJFZZeyT+3y2cv4=@lists.freedesktop.org X-Gm-Message-State: AOJu0Yw7Ip0wCdXziclTNkvU4Erpu16jJIyAcnNVtruBIhtng+S5HMM2 9q4Bjn/X4ILsL+/XH2p5XBjXuSlnNypkcLPlEsqH9iqq5VtRQ+fg X-Gm-Gg: ASbGncvOrXF0pp98Gz71QB9r+1zwJRyVgvshecz+nIGVXR23eLQekhJbHYRijtjbFMc LwKXgUyFUsdcVda1vYX913Tq0Sj3d6IJo9Vv2PGzk5eerZwgMPPg4//TUtVY2Y+8T2iJvO/IlTt I+h6Cq0wR76/9mqnlZfbo48RbkVCFZLXUpCNd4KAulLAEp8AhY1B11mgHXDWKd2iftP58YFiS9w UzDXVJ4ThEXfaR1reLJZUcm44CxKo3KSLYnfo2H9uQFZZeoOQJpk3qi8A== X-Google-Smtp-Source: AGHT+IG8ZIE5+BJhaGeJRBaZvEsBRD3tiHiI6FaSGMbUXWETrlCMwASRRfR9lR9VvtVaZMjKvT+DTQ== X-Received: by 2002:a9d:5d18:0:b0:71d:eec3:5623 with SMTP id 46e09a7af769-724858ff63cmr4821346a34.4.1737042793502; Thu, 16 Jan 2025 07:53:13 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-5fa35f05bbdsm70538eaf.13.2025.01.16.07.53.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jan 2025 07:53:12 -0800 (PST) From: John Edwards To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Andrew Wyatt , John Edwards , Paco Avelar , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] drm: panel-orientation-quirks: Add new quirk for GPD Win 2 Date: Thu, 16 Jan 2025 15:50:51 +0000 Message-ID: <20250116155049.39647-10-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250116155049.39647-2-uejji@uejji.net> References: <20250116155049.39647-2-uejji@uejji.net> MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 17 Jan 2025 08:46:14 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Andrew Wyatt Some GPD Win 2 models shipped with the correct DMI strings. Add a DMI match to correctly rotate the panel on these models. Signed-off-by: Andrew Wyatt Signed-off-by: John Edwards Tested-by: Paco Avelar --- 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 9e6708cd1..e6148cc31 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -339,6 +339,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_BOARD_NAME, "Default string"), }, .driver_data = (void *)&gpd_win2, + }, { /* GPD Win 2 (correct DMI strings) */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "WIN2") + }, + .driver_data = (void *)&lcd720x1280_rightside_up, }, { /* GPD Win 3 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"),