From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B32EA238D3B; Thu, 3 Apr 2025 19:19:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743707973; cv=none; b=kCu1UNiNij3A7waVFEZ4/hP/H9h3FfMjxk0yvEqgWqTN7CtjuszO9xJh6CaLdjVh6ujvPu8w3c+ruwgd8T0oJUTIpFk446vZ8JrH5V9LB2XXlm8WdcsfIexo5BF24jO+ikVaxR6Os7ROVWuccG7c8P7ab+EcEYo4lW7G7/7m0eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743707973; c=relaxed/simple; bh=/m5bVa6TpCzS6RGtpo9/JUJxy4QwEAhGF+KqMsUtHqQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Wn0Cub6118Pkd0FDn4pxygpkX0q5YaEUJEmtU5NfLctLUy9FONKOiNmaTORsIiZE2FI7e0eELhB/dzxZFmG9F2uvilNFjP6ZU8OyIQC+BkIcHGTId5O8/6WX2zA5QnTCypfurQ0IuANKHe/utojLG6UFftKHM5VTlDJJ6xDOS30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=I2b8bC29; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="I2b8bC29" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7769C4CEEA; Thu, 3 Apr 2025 19:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743707973; bh=/m5bVa6TpCzS6RGtpo9/JUJxy4QwEAhGF+KqMsUtHqQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I2b8bC29NSTiYuK4ZiGqphXkRhywPqOLnUwQfL/uNItan2iSkfsNH5UgXv8dYPQ2g 2iXsjO2LqsgPODC45t+ndM39Y6lCGgCD1GosjeFVT6N3/0BnU23JbwrPfLXNRdIkeR UC45rsNHf4DAP7qQpt5rU4NnhIK2ZA34hwso3v3HmwpFid1VkwnxFpP+eg3HNF7iH4 4rnyRQ27nNONkD6su5uCEpaESwOodjWvAo2a/tcWQxJQLGK9hxOQL6V7RiJ6aBXdrV U0vQlbAUsc9nmJKwaQu0JiUX8t+Kw8bIJc5iG8qmj3T/ucA0zt62vDyWvyw3uaGyAs Svw84G2STPN/Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andrew Wyatt , John Edwards , =?UTF-8?q?Jo=C3=A3o=20Pedro=20Kurtz?= , Thomas Zimmermann , Hans de Goede , Sasha Levin , maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@gmail.com, simona@ffwll.ch, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.1 07/20] drm: panel-orientation-quirks: Add quirk for OneXPlayer Mini (Intel) Date: Thu, 3 Apr 2025 15:19:00 -0400 Message-Id: <20250403191913.2681831-7-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250403191913.2681831-1-sashal@kernel.org> References: <20250403191913.2681831-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.132 Content-Transfer-Encoding: 8bit From: Andrew Wyatt [ Upstream commit b24dcc183583fc360ae0f0899e286a68f46abbd0 ] 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 Signed-off-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/20250213222455.93533-6-uejji@uejji.net Signed-off-by: Sasha Levin --- 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 12d547f093bd2..036b095c98882 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.39.5