From patchwork Thu Feb 13 22:24:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John Edwards X-Patchwork-Id: 13974123 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 29FF3C021A4 for ; Thu, 13 Feb 2025 22:25:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9EDB510E463; Thu, 13 Feb 2025 22:25:22 +0000 (UTC) Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) by gabe.freedesktop.org (Postfix) with ESMTPS id 024D710E1A1 for ; Thu, 13 Feb 2025 22:25:20 +0000 (UTC) Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-726f84bd6b5so972672a34.2 for ; Thu, 13 Feb 2025 14:25:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739485520; x=1740090320; 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=GbXz1euv/cPJto4Z2heNFSHbQ1+cD/Kyl1f7KOCLRQA=; b=mbvsDDq6nc93V0P725OWn92xmkuP3GlO6tQBRrIAYcxEBu8ACZvREHoNhZMRWTEB+P X8g0h0YYxPJQBDGtxyTaDbqVJg7yyDRQ8Y3TrDDP4TUNp+VSyKfuGb7yXimR/BZEAU5z /Bx7qJ9GS5hEfXuL/Pey8PPMrG87xKI54KREK+M2ghaAMttUVSHVatNK32Ac4UXt6yGD Qx0ZU7QpFBsSLZbF4ry/L/yhnSykOmxx5/6ToXpfkHB986jRt97fnFcBVs4ADIz6O9+W BCttFiysdx6zjaRSonNG2kI5zkNIR+H5Eqx468I9i9Vsag4ZEmJDapR3pVIAXcQGqjnT QJ7A== X-Forwarded-Encrypted: i=1; AJvYcCUtKX2Z5V5OaeSLsbWuze5j/Xb7qytCwbgqY6SqC9HDaFC1vssHSSwOwlfzjP84gWXGdogfvTrYmzI=@lists.freedesktop.org X-Gm-Message-State: AOJu0Yyu5ujM6QxR5/cH8jOUcuJiD9LxObtQ6LjbIwWefRsWn9fVqJpa kbVMepUwt3eZcI6zWBJBkEjxmqSboRx/6HgyKzMref2gf0qVaVTo X-Gm-Gg: ASbGncs1GG/49d7MkA2CIKFcPzIHvyiCwZavuaTuCQV32ciNUY2XifyBgwvA+QCrDOV FGCT9PO1MYjO47yCdXT3SY9xxjfS24nZ2FtoTJL8ovYcDUunahsnzZW36jRnug3Jxb1OFOm2/SC ixXkJjy+ZFBguKWfr9uFwibGSUaOTZp6V6fpuucGP+XAqPUuk+792OjrGOlpfxnTm4n6PGyYNK0 eBPaESoR+quLIzu2Rw+Bfr5EaU/L9PcF8JfsV51h6f1qhcBpDQyiT8sCWoxnQ7J0DwRnK4NEACO p3SKutXZqvnTi17V X-Google-Smtp-Source: AGHT+IHxK1p4NsYf81sYIzrNKJsg7ljfMe1tLS+UA3xHsLoNyXR1fUqhVsxBfQAGVM5OOQZiQYT3AQ== X-Received: by 2002:a05:6830:1318:b0:726:fe71:5373 with SMTP id 46e09a7af769-726fe715469mr2911731a34.4.1739485520213; Thu, 13 Feb 2025 14:25:20 -0800 (PST) Received: from muster.uejji.net ([47.188.205.107]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-727001cde00sm984184a34.5.2025.02.13.14.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2025 14:25:19 -0800 (PST) From: John Edwards To: Hans de Goede , Thomas Zimmermann , Maarten Lankhorst , Maxime Ripard , David Airlie , Simona Vetter Cc: John Edwards , Andrew Wyatt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?utf-8?q?Jo?= =?utf-8?q?=C3=A3o_Pedro_Kurtz?= Subject: [PATCH v3 5/5] drm: panel-orientation-quirks: Add quirk for OneXPlayer Mini (Intel) Date: Thu, 13 Feb 2025 22:24:53 +0000 Message-ID: <20250213222455.93533-6-uejji@uejji.net> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250213222455.93533-1-uejji@uejji.net> References: <20250213222455.93533-1-uejji@uejji.net> MIME-Version: 1.0 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 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 Co-developed-by: John Edwards Signed-off-by: John Edwards Tested-by: João Pedro Kurtz Reviewed-by: Thomas Zimmermann Reviewed-by: Hans de Goede --- 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"),