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 CDB5F235359; Thu, 3 Apr 2025 19:19:27 +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=1743707967; cv=none; b=foxMNLjrHZgA39XS+1cjO6CA+SlyXwND+8tmtTg2axbZ+tCbYFpk3rvrxf7Oc9CI+z4fpwQuIQs2/bBsE0KNxaDHdUO+stnBqcNbbSs/yLS8Ry4Ju/VRfWu7eprY3CjuZuTTzP+liNQA13Jx/Wj8t+PuFvacTmQ/XBgsczJx0Pc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743707967; c=relaxed/simple; bh=c2ax7/xZ16RV6RDzdkI7aUMyc9fwz6nQS92YfX379lg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=p4X6AyFmSyzOp74KuPFxrkF0Fxoh/1JFUKZgjNB5uah6S2DyG6UWS3ewHNF13aVjNNk/e5wyL+cHJtl4LbMR3gmZwzOziFNsLEL470WPQ5imSnFObVnKK/1MGbuqYvv4agpKKs4TYjNp5+6c3RzVwNaMzcJiUCDcJf3ZK2/29TM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FOXCgRD3; 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="FOXCgRD3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5D475C4CEE3; Thu, 3 Apr 2025 19:19:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743707967; bh=c2ax7/xZ16RV6RDzdkI7aUMyc9fwz6nQS92YfX379lg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FOXCgRD3/oxmg44FNcKzjeacRhlPmRt+L1M+St9UnPTd2aCbXeNsfQaVBK8YPJErR +puLOL0Y1new+rd6/IK1FZ/4UfH2P7M52jUV5ZCaqNJGoqD5SV8fZvrQl/Jjq0mPYj WOSb22BIJHQ0b8+LR8EX+YAW/BJbliHhLv2TktRCjQBAUEQPSZnplDWlOkHk/8fTq3 sx0wOob4YwL2TFHEiyva1JBdJDwaMwUF/2j7MZHpqoa4eGGmISw6riAPRGB6Sha452 0xVGVQMUTwKZgY9kP8vLBFCdI7pdtF7z0Y+oRROYUGL16nb+/O/VKh3uwk4xlEkxEF boh3d+iv7JVUA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Andrew Wyatt , John Edwards , Paco Avelar , 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 04/20] drm: panel-orientation-quirks: Add quirks for AYA NEO Flip DS and KB Date: Thu, 3 Apr 2025 15:18:57 -0400 Message-Id: <20250403191913.2681831-4-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 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.132 Content-Transfer-Encoding: 8bit From: Andrew Wyatt [ Upstream commit 529741c331da1fbf54f86c6ec3a4558b9b0b16dc ] The AYA NEO Flip DS and KB both use a 1080x1920 portrait LCD panel. The Flip DS additionally uses a 640x960 portrait LCD panel as a second display. Add DMI matches to correctly rotate these panels. Signed-off-by: Andrew Wyatt Co-developed-by: John Edwards Signed-off-by: John Edwards Tested-by: Paco Avelar Reviewed-by: Thomas Zimmermann Reviewed-by: Hans de Goede Signed-off-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/20250213222455.93533-3-uejji@uejji.net Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_panel_orientation_quirks.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_orientation_quirks.c b/drivers/gpu/drm/drm_panel_orientation_quirks.c index 7bf096ddeb06d..d9ed6214cf28b 100644 --- a/drivers/gpu/drm/drm_panel_orientation_quirks.c +++ b/drivers/gpu/drm/drm_panel_orientation_quirks.c @@ -93,6 +93,12 @@ static const struct drm_dmi_panel_orientation_data onegx1_pro = { .orientation = DRM_MODE_PANEL_ORIENTATION_RIGHT_UP, }; +static const struct drm_dmi_panel_orientation_data lcd640x960_leftside_up = { + .width = 640, + .height = 960, + .orientation = DRM_MODE_PANEL_ORIENTATION_LEFT_UP, +}; + static const struct drm_dmi_panel_orientation_data lcd720x1280_rightside_up = { .width = 720, .height = 1280, @@ -202,6 +208,18 @@ static const struct dmi_system_id orientation_data[] = { DMI_MATCH(DMI_PRODUCT_NAME, "AIR"), }, .driver_data = (void *)&lcd1080x1920_leftside_up, + }, { /* AYA NEO Flip DS Bottom Screen */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "FLIP DS"), + }, + .driver_data = (void *)&lcd640x960_leftside_up, + }, { /* AYA NEO Flip KB/DS Top Screen */ + .matches = { + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYANEO"), + DMI_MATCH(DMI_PRODUCT_NAME, "FLIP"), + }, + .driver_data = (void *)&lcd1080x1920_leftside_up, }, { /* AYA NEO Founder */ .matches = { DMI_EXACT_MATCH(DMI_SYS_VENDOR, "AYA NEO"), -- 2.39.5