From patchwork Sun Jan 12 20:43:50 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Finkelstein via B4 Relay X-Patchwork-Id: 13936528 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 91513E7719E for ; Sun, 12 Jan 2025 20:45:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To: References:Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version: Subject:Date:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4QBe1A84VAMmc4EK5f6d6+MxaEY5qE67he1f561L69M=; b=KI4squ6mXLPELzk0CRK1jdbuOR N9Lem/kkaWq/tGClZo4MScaRafDN+1hMaLPbE26hHhSBgX21vWs+2Fxw2H12UwUjhdIdDWvlGPu5J 8vmMQnNVI31KAN7MWDecVxbaMW9NbW3TYF9P0TjsUhZxILYs6PSTXqsDWsgSiq5tfRlWrvPM9kDMB 4/94gXx1gNL91pmoK1zschEHPYdZkbpHDCRQDxwCyn2dzR27hpdicOuw07Z4AC1CfkH9OPrwjQyo0 fNClgp4DiCvraKLMWpzCxw6PvhC68Ghv/EeHz4WqoLKUp9jRBASd/6B9Ll5cVTbDRLFb13FnjoUpq CE4jCrXg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tX4pj-00000003Q9N-4Aqy; Sun, 12 Jan 2025 20:45:19 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tX4oT-00000003Pkt-23BW for linux-arm-kernel@lists.infradead.org; Sun, 12 Jan 2025 20:44:02 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4DA085C477B; Sun, 12 Jan 2025 20:43:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 62569C4CEE4; Sun, 12 Jan 2025 20:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736714639; bh=VDgDWVGfEkGR3QdJku8jaSDzSVlfkBj7qA3Y2VPLcsk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=KFb0mgz8NrADQTc7mmORiCin+qOJrBVxXhYvDrE4cJgv3bobjLi7KBqdMalYPYKkW obIX2XJrS8QLPDxs1WTG3/1Vgb3MFm8MjhhLNU9kYXynXKvENQrxA5JN/HtMPBVRN4 6PQ8CAnoFuH5H2cUgNDU2WRG3+ZakdqT8Vl/qdWjCg3MMTip9nkv01SJqQJ4Ve7zMx xBW9D6EuGOuvvEvCnyMf+MSerraB6fwApAxq0y83ydgvxel5Jl6ta5Kj9oTZ1jUzoy J5qXlVLoqp52vcNoITyW81pk+aaYhh+Hy2wqok7SrROlrhvTZkB9jC8Sv4iyqUJWaF e8guUT45fCEUQ== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5710BE7719E; Sun, 12 Jan 2025 20:43:59 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Sun, 12 Jan 2025 21:43:50 +0100 Subject: [PATCH v3 3/5] drm: panel: Add a panel driver for the Summit display MIME-Version: 1.0 Message-Id: <20250112-adpdrm-v3-3-c674dc19fa7f@gmail.com> References: <20250112-adpdrm-v3-0-c674dc19fa7f@gmail.com> In-Reply-To: <20250112-adpdrm-v3-0-c674dc19fa7f@gmail.com> To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jessica Zhang , asahi@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alyssa Ross , Sasha Finkelstein , Nick Chan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1736714637; l=6078; i=fnkl.kernel@gmail.com; s=20241124; h=from:subject:message-id; bh=Ow0nORepBUNGoYohTBVqVkG339Ob1ZVg2nGQaMbNqFk=; b=s03T+tYCD5fle0PNowCLyrKrAiyyDc7FGyf7LjZVuA7+hNoFNIY0CUV7Tq5QhuProzE12U53E 9UroGCbe3wZDilUtIQB3e4CnwmbYRgCsAWZgRaWr238sCtT5FrYDBa8 X-Developer-Key: i=fnkl.kernel@gmail.com; a=ed25519; pk=aSkp1PdZ+eF4jpMO6oLvz/YfT5XkBUneWwyhQrOgmsU= X-Endpoint-Received: by B4 Relay for fnkl.kernel@gmail.com/20241124 with auth_id=283 X-Original-From: Sasha Finkelstein X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250112_124401_628756_EB911112 X-CRM114-Status: GOOD ( 19.23 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: fnkl.kernel@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sasha Finkelstein This is the display panel used for the touchbar on laptops that have it. Co-developed-by: Nick Chan Signed-off-by: Nick Chan Signed-off-by: Sasha Finkelstein --- drivers/gpu/drm/panel/Kconfig | 9 +++ drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-summit.c | 132 +++++++++++++++++++++++++++++++++++ 3 files changed, 142 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index d7469c565d1db8b8e974dd6c45d03d9352d99d63..5085a82e4bc695e85cabbc3200859bbe10cb0f91 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -925,6 +925,15 @@ config DRM_PANEL_SIMPLE that it can be automatically turned off when the panel goes into a low power state. +config DRM_PANEL_SUMMIT + tristate "Apple Summit display panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for the "Summit" display panel + used as a touchbar on certain Apple laptops. + config DRM_PANEL_SYNAPTICS_R63353 tristate "Synaptics R63353-based panels" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 7dcf72646cacff11bab90c78e3b8b1f357e5f14a..10ac2e850f5cd6d6546439de75483466e4015d1a 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -89,6 +89,7 @@ obj-$(CONFIG_DRM_PANEL_SHARP_LS060T1SX01) += panel-sharp-ls060t1sx01.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7701) += panel-sitronix-st7701.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o +obj-$(CONFIG_DRM_PANEL_SUMMIT) += panel-summit.o obj-$(CONFIG_DRM_PANEL_SYNAPTICS_R63353) += panel-synaptics-r63353.o obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o obj-$(CONFIG_DRM_PANEL_SONY_TD4353_JDI) += panel-sony-td4353-jdi.o diff --git a/drivers/gpu/drm/panel/panel-summit.c b/drivers/gpu/drm/panel/panel-summit.c new file mode 100644 index 0000000000000000000000000000000000000000..fb084f280c6fa3197b64876edd03172dbdf962b3 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-summit.c @@ -0,0 +1,132 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include +#include +#include +#include +#include +#include +#include