Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp551421rdb; Thu, 21 Dec 2023 19:02:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IELlw6R7omYE4TOZsIMk6Pmaz/zGwp+v/3x3MwifDBOAb/s9hbWKGuRbYbQXgvPaeTuifNH X-Received: by 2002:a17:903:228d:b0:1d3:ea4f:5e0f with SMTP id b13-20020a170903228d00b001d3ea4f5e0fmr911054plh.29.1703214151250; Thu, 21 Dec 2023 19:02:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703214151; cv=none; d=google.com; s=arc-20160816; b=HyPtr9JUhYYgvfckV3rZtdlzh7TkwOg8P8PaAs0NVpNg/BuwRKwMrx3qhITcZvqUXf 8EmT3TsGl2nX+l95TJ3wxeKCYfbjEND+uP/tp0/+1gVDVkG7uTD0I7bJwGxyTo2Os3/Q kkQ8c/YZ1/nM7dXuC7lEPY46tKkHS7PeEsmtPOOPlU0t7iLmPopixUdxHLVgCHYt5Hgn tmWMiC5f1/bAbnKw35Wz0oJeV+CrdNadKXX2+WAPtrux+i1EwANQRgk0bSJ0FiPSuSWG X7a1xGVGIGr9506UXt3RmUqd7y13HsW5Jp3AB3rzxOT5bncBGz1XEZZpbwq9L0yFZ0uE jecw== ARC-Message-Signature: i=1; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=/ycJodXT+JZm9RNjkqB/4yrbtDWd2hG7NkdRmpVRoew=; fh=PZNDUEbEEutz4FmqBM5QczAR0+dcjKwzVv0HjSyDEfc=; b=GjjYzQ82bXSdlUhip/WpK3/idZ0dQsrzSyKuBX1bfXApPwNndcZR7AWCxXrDWYwnV4 6EiB6/4yfs7UlOSTewEtQRYXb3Veq7WbNOGugEtZ5j70Bji9Fcb24yM5pSVgN5gB7g+0 GQa8qlrx9/YG/BifeuVTlkDn0r0XSVuoavEtMp50RNe6guiHovN9O2hw7HwgSs1z3tgo /f19I4tGeES3hukQxa+GQdi9gDfbQXRy4UyU3Fk0ue6R5hpPocFqkKCm+jsF7sGK6Rj3 UCa4uPzbyVR0dFO+YJwMeWnqu16axHVIfgiinbXrDbBkO0COjf+iHOxhFvzRRSZZE09n Mv8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dionne-riel-com.20230601.gappssmtp.com header.s=20230601 header.b=Y4hG1d7z; spf=pass (google.com: domain of linux-kernel+bounces-9277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9277-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i17-20020a17090332d100b001d3beea9738si2634196plr.94.2023.12.21.19.02.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 19:02:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dionne-riel-com.20230601.gappssmtp.com header.s=20230601 header.b=Y4hG1d7z; spf=pass (google.com: domain of linux-kernel+bounces-9277-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9277-linux.lists.archive=gmail.com@vger.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id AA82C286E1D for ; Fri, 22 Dec 2023 03:02:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3D8B139D; Fri, 22 Dec 2023 03:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dionne-riel-com.20230601.gappssmtp.com header.i=@dionne-riel-com.20230601.gappssmtp.com header.b="Y4hG1d7z" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 899C6EB8 for ; Fri, 22 Dec 2023 03:02:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dionne-riel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dionne-riel.com Received: by mail-qt1-f172.google.com with SMTP id d75a77b69052e-425a3cdbda9so10679121cf.1 for ; Thu, 21 Dec 2023 19:02:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dionne-riel-com.20230601.gappssmtp.com; s=20230601; t=1703214141; x=1703818941; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=/ycJodXT+JZm9RNjkqB/4yrbtDWd2hG7NkdRmpVRoew=; b=Y4hG1d7ztX6OwwmYHjVs3K64pGOJfrlXa/JtVm64WvVeglqrPaEnerluT7jiLRL3oE 4mKZt0somcNUEYjNK0RLgiYWW8ncfUqIMSioXHTg5ryallRiz2+5Nd++YHvHoADZt33f U8qcocQ1SCKfq6ZELrsevq8+0zKvy8HMhfzX6JcJt44So1NzjTdhkOADbmtstdEbt5UI 8afmudOMk4uNnYBCFxfZBq1KFLbwtEZXt0uO9eGVzFRjzG2G/UQfMVRAuACHrIXluRvf 1fROhUdbSlncXykmCfJjxrKWTGFTlgt/s1kJ22VQ2NAYWeMSIDJSKSbL5C+4UfwNaqro Yuvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703214141; x=1703818941; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/ycJodXT+JZm9RNjkqB/4yrbtDWd2hG7NkdRmpVRoew=; b=WIkOXfO3tMJfY49f3KMTlzLZPL/LyNg4SdBG4HfElVsuGJAJODUqxHXvqhoNwiUjnv sGO1c+rC6bTndtkai5z+PfRQY1VkTlJs+UFdD/HDG7knaW07vd2tMeaTcJ0ztl14OFw8 ZuZQlIoNrg8da9VeRTL0C540OuZb4bJl0A/Dqsm0dxxwC23+Jh0oXEk6cGtnpoiV5mEf 4p1HGg0TkgFSyWwb7+e1hrcpRYasZF8uMJ3660UAamd6uC6QeuNBlLPfLdKSg+xsFVpD kLKAxcq+CFDN0Fntm9Jfw3jO/v3EM4mVv2biaDFkqHbtyTvoVkiXdLhfc0ZbgLiiMO+r FCyg== X-Gm-Message-State: AOJu0YywNtplXc1ilPOc2vubPiWScnzuEx2ezYMW5D+3c2M4yjTRQa1R hq2uHK2E8GX+Uuw11nejSuC9HRLFeq3N X-Received: by 2002:a05:622a:1ba0:b0:423:732e:c345 with SMTP id bp32-20020a05622a1ba000b00423732ec345mr882621qtb.26.1703214141401; Thu, 21 Dec 2023 19:02:21 -0800 (PST) Received: from localhost.localdomain (135-23-195-66.cpe.pppoe.ca. [135.23.195.66]) by smtp.gmail.com with ESMTPSA id ev4-20020a05622a510400b0042387bd254bsm1419008qtb.9.2023.12.21.19.02.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 19:02:20 -0800 (PST) From: Samuel Dionne-Riel To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Samuel Dionne-Riel Subject: [PATCH v2] drm: panel-orientation-quirks: Add quirk for GPD Win Mini Date: Thu, 21 Dec 2023 22:01:50 -0500 Message-ID: <20231222030149.3740815-2-samuel@dionne-riel.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Dionne-Riel --- Changes since v1: - Add 1080p right-side up panel data - Use the correct panel orientation 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.42.0