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 63E56219A66; Mon, 17 Feb 2025 11:39:37 +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=1739792377; cv=none; b=n/E8JgVzhxcb02vbXGrjJE+7T0R/95yInv2YSFX08fWanObrz2o0PRulRigANELfPuVwfGNmD5U+amDbvXmipoudiXBEOQ2yE1Hq9rXo9pOFRn/7+9ZL9r7WWtqF13m4y43dmhlZRdsFdLETLHPE+6XIg/W2xmQKORPOpbpvItw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739792377; c=relaxed/simple; bh=NyQODyQ8uWj89RAb9qkVk3Y8Kgaz3t5HvTOO1C1MGyk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NsMvI9NH0i1r82GKoo0ysZxoQNkRjzCNI2/ycHjOPNj8oaXF/V+FIrYsHrIXhG/AT8v6qmoNeX3AIzw56vyJw0oXj3AyY4nRZI0FGsP4LuZwNtoAk7AQMfiYJzjggXmaci3To9S3O/DEzcpyOoRV8FYuyBg+6NIpeYqk5qUOFUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=NMJ0FiGZ; 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="NMJ0FiGZ" Received: by smtp.kernel.org (Postfix) with ESMTPS id 0A4C7C4CEEF; Mon, 17 Feb 2025 11:39:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1739792377; bh=NyQODyQ8uWj89RAb9qkVk3Y8Kgaz3t5HvTOO1C1MGyk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=NMJ0FiGZ2mcw/yUNudqx0kTcAis7IvjngoJJBzlOdp56o7plXfdPWt97F9+X5igjs oaPQnNbxR5fUACIWzJQVYe6+izPfrr2RwUMk0oKXcYPjG565f1VETEdeqmaLZkJ9Zv R9VrtOKqXSrFcCEqdRNFYgGz6eqaHwWvNxykNjbLvva1LznTWdZcdSt8L8l7bVeFPx urojwCmu5jMSKg3jZqno+7xwPCwi7w2Agd8K++ZoE2NVgwCbz66Nu+YvINW/1IcQ/J v1NAE8hV6+aiThI18RKVq5PooUEi+Zmz5zx9LRGoyABNZXBc+bZaPZ43ixnHGWMlrO eKWSutvOQDW/A== 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 F3F59C021A9; Mon, 17 Feb 2025 11:39:36 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Mon, 17 Feb 2025 12:39:33 +0100 Subject: [PATCH v7 3/5] drm: panel: Add a panel driver for the Summit display Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250217-adpdrm-v7-3-ca2e44b3c7d8@gmail.com> References: <20250217-adpdrm-v7-0-ca2e44b3c7d8@gmail.com> In-Reply-To: <20250217-adpdrm-v7-0-ca2e44b3c7d8@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, Janne Grunau 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 , Dmitry Baryshkov , Neal Gompa X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1739792375; l=6135; i=fnkl.kernel@gmail.com; s=20241124; h=from:subject:message-id; bh=mrq63iLVH9ppuvIWH/dsq2AVK1CS/dEIvxQfxlEoXcc=; b=vKHPp7mU1FX257nFZXtsQv/keSlDcNozK30KxLx/ZaHUBM5t9BzSosRz0zz/viJjvAvkfx/pd vb0+L0fZecEC6lVe9H3xilswkUERpRQ9Bov0jje+YyMLiDEd1ObW3PJ 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 Reply-To: fnkl.kernel@gmail.com 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 Reviewed-by: Dmitry Baryshkov Reviewed-by: Neil Armstrong Reviewed-by: Neal Gompa 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..e780faee18570c9970d381b3f7c65b95665469cd --- /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 +#include