Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp1071435lqh; Fri, 29 Mar 2024 06:32:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAE5QroiIbdNqU+Y2PALYmqoh9glgW/Fyw1nmmFPvh2Zc8fdf9+1eHrNrlgMEeuTYTw8YKyhVS06vMmrYztOraOgvVVBWF9vMdo3yIFQ== X-Google-Smtp-Source: AGHT+IHy2KPPTi1lMSwqAmSXUX153/WNgpYQaDlPDm5qa9em7/dGS5xS9009VB+z80p1b5ekqTcR X-Received: by 2002:a17:906:6bc9:b0:a4e:4047:3eb1 with SMTP id t9-20020a1709066bc900b00a4e40473eb1mr401852ejs.3.1711719129082; Fri, 29 Mar 2024 06:32:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711719129; cv=pass; d=google.com; s=arc-20160816; b=XKrrh6HEsjizWOG5MYhwbxfTLiEhl6UijMV/N90cxXxYdn1Sh/3SA7D55Z4lGqQISq i6iypIux+NGBx2US4obV0N6/oZsx3u8CWvYHpt41Ru1FeW3HrtBQAvVTZAGhkoFGTSNg 9frhilJK2U+ZgwnkV9R3rbkPF7e9wpeN9uepQx5hJYQI4WA1BY2tZ103XBzDY4+Sh5Re KiZ2YFVRqP0p1L+Tk/PoDBBbAOjLEsNS6AZNiqlLEStQ+mRQy/T6xXMlPWAMBzn2ybnf LXKaBb0rHQxXbeEW8iP/w4cTaGF6ktuQitl0l4PL8bdaL3td2+ZwoHhhZ873AGcumpOd zgPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=i4d2CYW7DswwUGMNc77HUdwo38XgJjB9QKUUSqwvY1U=; fh=jM2ud76LgXrZXKgGfhH98VDt7KSsR4+1yJ1ztxQxuK0=; b=Pm5mHediOdQ1e668uc1ZPB+yTO5EtuEUbVnjXdV2sPWYIQb6yWrU7HS5rddiH8+uG8 RuTApiieuLuXNodEQoenslAQ4geKZXo1BXxtoTMnUF5mt1WsizfVm9LsE54n8evgWcB1 RSdLGapy5lwj10KTzpfZFR/MU/NFyd+O4RS/gfDVZVTBzua13OGt7mZnFUPCV2SRAZUF vVRKKXODiQMmlFysQc+porZn4VQ4tyY57Yc1LXYOmtw7VnDzLZQkqtbt3yGBUKgJV+bL 1FmIGKXlGI0ygAzAN2iy4QdnUTSCOhMz5pjAKQHaVlb4E4n1xVqy4XoMXkI5F8eGuTZl AccQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RCUqlDRb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id hp16-20020a1709073e1000b00a4e2602d757si1632688ejc.351.2024.03.29.06.32.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 06:32:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RCUqlDRb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124714-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124714-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id BF6DE1F2260D for ; Fri, 29 Mar 2024 13:31:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15050137903; Fri, 29 Mar 2024 12:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RCUqlDRb" 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 386CE145321; Fri, 29 Mar 2024 12:39:29 +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=1711715970; cv=none; b=ehJ8Ye1dAQZO6b98CBAXrcUEXOYEruYv5IBNd6JG897DT3XmWPxgPEswBjxUTxfU7PhS1vIFggUZs6oFwoVOywNDhp+SvKh7jSw1i5+NXWrvHrGQYR8jk/Fff+ngYfmHhUjRVt4rNGKzmjQ/fZrG8Up9mp6NDoNMd+E7NAiNDKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711715970; c=relaxed/simple; bh=gNn0eGRs3G+bpg8uuW+xOQSr8p0k5GYdAyTCRrvHaPw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fXhoSk+OnCR1HOOgdyKTMf0ldL08M5YYaN11DuqLW9Zw2ZGoibIX2UQJZXHiZvfUwa1+GqPUBrCdISLq1JVVDLma1aaM/BiOFfBa1zuulthb7ycDgQ7EfjiRBnARAywnNnPZE7BAGLGIVsj2D6eS1/ZIrJfka7vSygT22uU4+kM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RCUqlDRb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E14FC433F1; Fri, 29 Mar 2024 12:39:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711715969; bh=gNn0eGRs3G+bpg8uuW+xOQSr8p0k5GYdAyTCRrvHaPw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RCUqlDRbm++MaerrW2uGJIxZrjjsAAJWtUlf6U9TOnaF7dTgYjqpgFr8aCdqirBLU OY1ZpIKK/hpn0dMht5yPULZRYbXG2T8XuaA/orKYXUdDDXcj2G+bjdLMUZbhUuSAHM 4QobAZpjT+gTYUUc7HnYCM5YnVAoPIdfKXbhtmb1DvWe4uCZnNkrQNvl2Mo0ofKuQs 0KrJSa/Lg37t2f3VGgPAVXmUXInZWUGBmWvJWb7vmYrBcYUu6NjKsEGOFc3alzs7Cf Vpl1Jz7MsbOA6WGLrusm6E4eIfX2rHRa9u0AHKjeHAbG7lrbN7OHnyq63lLnxXrqwS CvJzMKr3Rs9LA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Samuel Dionne-Riel , Linus Walleij , Sasha Levin , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.8 05/98] drm: panel-orientation-quirks: Add quirk for GPD Win Mini Date: Fri, 29 Mar 2024 08:36:36 -0400 Message-ID: <20240329123919.3087149-5-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329123919.3087149-1-sashal@kernel.org> References: <20240329123919.3087149-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.8.2 Content-Transfer-Encoding: 8bit From: Samuel Dionne-Riel [ Upstream commit 2f862fdc0fd802e728b6ca96bc78ec3f01bf161e ] This adds a DMI orientation quirk for the GPD Win Mini panel. Signed-off-by: Samuel Dionne-Riel Signed-off-by: Linus Walleij Link: https://patchwork.freedesktop.org/patch/msgid/20231222030149.3740815-2-samuel@dionne-riel.com 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 3d92f66e550c3..aa93129c3397e 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -117,6 +117,12 @@ static const struct drm_dmi_panel_orientation_data lcd1080x1920_leftside_up = { .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, }; +static const struct drm_dmi_panel_orientation_data lcd1080x1920_rightside_up = { + .width = 1080, + .height = 1920, + .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, +}; + static const struct drm_dmi_panel_orientation_data lcd1200x1920_rightside_up = { .width = 1200, .height = 1920, @@ -279,6 +285,12 @@ static const struct dmi_system_id orientation_data[] = { DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "G1618-03") }, .driver_data = (void *)&lcd720x1280_rightside_up, + }, { /* GPD Win Mini */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "GPD"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "G1617-01") + }, + .driver_data = (void *)&lcd1080x1920_rightside_up, }, { /* I.T.Works TW891 */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "To be filled by O.E.M."), -- 2.43.0