From patchwork Tue Nov 26 16:34:22 2024 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: 13886189 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 00F21D65520 for ; Tue, 26 Nov 2024 16:38:32 +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=Rvy9AD8+S+8TwnwdUjeX5JRBGiDZq8bozMKUV7Uf6/g=; b=uPDB0G+cOPTM54YaPKeZt3Rjyq lvpI2F5AclHCYPNXmOX/BKA0F9CghJeAl5C+dfAcunkJN+znHsETeSei7rPCRmJm20cz5vafeTrIN RoLBXcFE/KqTSp7T/yMkinhKuFcZ0jW6EnOW83I2rK9uVHW9XCQt4uGqd/OpxKeURXDOrmgwqD7Mc RCj0SoIYN+xat2fBnw2r2JjUPIrjLSTwproGGCl463SXpAhcMc7sPjV3xSWg4NwxKtfKMUPJvzrze Ws4z7H9yG9tU/G7MwBKhoKTJjn82QI9ltbwk+HM7kpyqXVkH/lytMuGl+0FfD68L0v4QX6r7Ej1O5 0Uys10IQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tFyZu-0000000BBca-1fZk; Tue, 26 Nov 2024 16:38:18 +0000 Received: from nyc.source.kernel.org ([147.75.193.91]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tFyWC-0000000BAli-1IHp for linux-arm-kernel@lists.infradead.org; Tue, 26 Nov 2024 16:34:30 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 868E7A40F2C; Tue, 26 Nov 2024 16:32:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E9600C4CED2; Tue, 26 Nov 2024 16:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1732638866; bh=sUSc56MZ6GGd9Dy3LCU1d+9JVt2n1csAlpdyoy5NKMI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=dsj7SLoMz6NXLtLKyK9FSCHEBCfQrsdtiisWe3BoYnqyqtDcGo6+Phaamj6V0n2ON iAWelk794iT70u1YLmSRz734M6MbHL/S53gR06xt2byvOeW6iNZg44MlraWb1MOdGq T/lI6Odrn0UcDYBqytvJPS0QPgpo5+ZFS0XYfsCUxnmBEFhTyAZN/5ugTTnNysRdfM MDaPNbjqj9DpfKUUHAcqusGdALopEQ8VXxQmgxD7MR1A0hmWdaTtBZx3Tv5DCSoVTi urJXBhxg/5vzktlbxOwf71WMn2rQwFya2ORvmfihbUiNSjL0OYkrMdWLJaJiIGTaEi /+OHoPbHOQV/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 DAF37D3B9BE; Tue, 26 Nov 2024 16:34:25 +0000 (UTC) From: Sasha Finkelstein via B4 Relay Date: Tue, 26 Nov 2024 17:34:22 +0100 Subject: [PATCH v2 3/5] drm: panel: Add a panel driver for the Summit display MIME-Version: 1.0 Message-Id: <20241126-adpdrm-v2-3-c90485336c09@gmail.com> References: <20241126-adpdrm-v2-0-c90485336c09@gmail.com> In-Reply-To: <20241126-adpdrm-v2-0-c90485336c09@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, Sasha Finkelstein , Nick Chan X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1732638864; l=6332; i=fnkl.kernel@gmail.com; s=20241124; h=from:subject:message-id; bh=yS3wMDhwYxNd88DcL6/ejDY14iFml6WLH9Iqb+QwyXY=; b=iwS9x3NRGK4j37HlLDzzLTfPWfsOWzumTWYe/9uuYBdhj+ItexkAH6WSssrKpO96bsRBRsyK3 1hsPUYsN+a9CNAvSVjfoKVH2Bb876YnxpDcvQxdyxV4hY83JeKg9SGU 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-20241126_083428_562219_CD91D315 X-CRM114-Status: GOOD ( 19.54 ) 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 | 143 +++++++++++++++++++++++++++++++++++ 3 files changed, 153 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..16bd9fa1213d7bc3f022b878ea5cfeadbd468995 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-summit.c @@ -0,0 +1,143 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include +#include +#include +#include +#include +#include +#include