Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp52285lqz; Fri, 29 Mar 2024 08:16:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX2RWoDb3baFIJvkMDZGbDM5P6LAMQNvuuD6bHipTjiuMWlBecRky7Mtk7EHq7TH24J66UphOAgSXz6PAk8fUAH+WZt4JkxaXRFAaatzA== X-Google-Smtp-Source: AGHT+IHQerFQLAirxYGKThy9SrTVGmid76hsQo31b9jeZF8tn7hPk8767axc8aaeW00KfLrVMLeU X-Received: by 2002:a05:6a00:a90:b0:6ea:7647:282d with SMTP id b16-20020a056a000a9000b006ea7647282dmr3091048pfl.29.1711725406203; Fri, 29 Mar 2024 08:16:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711725406; cv=pass; d=google.com; s=arc-20160816; b=gMTb078XgjDNzCiQYXgfB7BV18gULjEx6NIzjkLwCgG08ltuqd+lfy4sPnVDk7K0Wc OR/ADsf6ZgzY+hoWm1GRF07IE+zU1bBeHsflPU5nbTEBk7ZEq+I+x+3+jdSa/QEFExoD +5YoOjdu5uc1LisCoUqHyh8rDRTlTONevXbtnM3Syw1XSIUxfuUzZmDDKQVZcqzV12Ej ZkVIPp5qlQR6H3LsNiRvv1A8AgsjGTIe8S56Ds7y2TARE7g3YnB9FbCglMMBj9UJr2Cw JTg1xDXLZfN9YlrmaHQEMIf9vOkBDUOcsuOUIQ+MO/D5OgX1POYaKdxcBIFNWTlbxb1l +7gw== 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=hgS9TuFr4fLWHv4SHGt+wRqlOXO8wRr0tD4Xj0GczA4=; fh=jM2ud76LgXrZXKgGfhH98VDt7KSsR4+1yJ1ztxQxuK0=; b=xiWv75HNowfRq0Z1w7QLHKqvuNenDDhUSkIeqIGeNWrWCjISbBWD7wfr7j4zDsr+t5 RgdUsCMlaruoDAdA5lgFMhkf64S5mW8a8rcAENh7EkF45PtJTAbEFzIj2EtPTceG2AE+ UGPqB9wsHHENLv6UxaZWPBcE3lNCY465PxFQnX8J6f0BfyHMEFJc0VL6HXbwfhA+JSA2 jtuuMRy6EKr3lCTaAg36LJAgQuWty/6jwVr5rYG1qipNJyQ9JQeRy7TJ6C4Ju0nmTl/j 4sWaaIofdgrX0WUUcqa4Gs/6jCRyiiScPmijOZftUQBf6uPLojAvCu7ZGHCqsct9C8g4 3ZHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jCKpqXMG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124887-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t4-20020a63f344000000b005cf647f85c9si3697755pgj.752.2024.03.29.08.16.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Mar 2024 08:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-124887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jCKpqXMG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-124887-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-124887-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7DCB2B318E9 for ; Fri, 29 Mar 2024 14:18:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8163221EB79; Fri, 29 Mar 2024 12:46:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jCKpqXMG" 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 AAFF814AD30; Fri, 29 Mar 2024 12:46:10 +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=1711716370; cv=none; b=nrxzy0Rl3XQnBTyToHXNDYCADRYVdhcoz8OisgqcfRxJ5hqr7lGdK6RMY+5FNAYZEv39lep1egP0EFEFswwzTVofjiw8mqGqGvtJfP00tAcNRZBxn8VSG8DeruGDCN4BIGx+pB/NlBqdr6fbiBuzKHmdbEbSh7/O5CvKNqv5hS4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711716370; c=relaxed/simple; bh=unAcMRuAE1vIWssF2K6cGs00MZFhLexNVVz7+k7K4PY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NSkF894yEggUvoonvLY80bQ5KeuSqj1J/yrV5D8r++6Wlq6Z2JZlMu6h1EC3aewpRbqqPEUyZgfbONoid8WqZVNvgFuEdxI39nf+1JMUP9WyaqOHCVgS9UXx89467hfl1a8K63PyCx7V0r/jbwpPk8up826hFJR3I7jalXs8tpo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jCKpqXMG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 105C1C43390; Fri, 29 Mar 2024 12:46:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711716370; bh=unAcMRuAE1vIWssF2K6cGs00MZFhLexNVVz7+k7K4PY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jCKpqXMGpu4fPQQKpbINyHs/dv7JK8FKorN6YRbCzWdpcsxEQopWYBhA6zu1TV8ab fIZuMPbEzjnT15TdRKr+LhqxpY1ORcqKolxJS19Zudbn5L8/Xzl82awiR/BF0IIqos pTdhhAHoasqGVJvPn6cJBmyJGt8IfFSlYzABNvgqK41E3h0qmhJEV4cW0/5gO6w3h8 GPbARRbt9+oetvLTu8Vyv8CqhEsJVo4dEUFtY9vqBjOnTcuo9cCMyZqlxKSXx0/dfe B3+vNoffYeFhu6NAJCkZ/qExESXklnvAVPydQOs+6+b/vfQV0k16co0pI1huX81J6t 9O8nR20iQJhTg== 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.1 03/52] drm: panel-orientation-quirks: Add quirk for GPD Win Mini Date: Fri, 29 Mar 2024 08:44:57 -0400 Message-ID: <20240329124605.3091273-3-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240329124605.3091273-1-sashal@kernel.org> References: <20240329124605.3091273-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.1.83 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 d5c15292ae937..3fe5e6439c401 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