From nobody Fri Oct 10 21:10:46 2025 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (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 C78AA21B9FD; Thu, 9 Oct 2025 16:25:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760027117; cv=none; b=hARU5krTbixA1k8M6wv5uTCG3WtV9F9o1RjIpQPIweeCQRHFp4/8nB9m+hMGJo7ILwFZLX3uIKPaOkWfV/QC6PMcyDtKbMMcle1OPdW8+2hZ/YWwO9H7FS5HVLXom50XYx0zsY63S+NyXuzfOi7tDkzae5cifnIW+/bAmC0rVDw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760027117; c=relaxed/simple; bh=2T0aiUw/0cBFP3RJp7ZrmMIlK7txY5PYqQRd0j7B1Zo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bjP2Do7W+Slp0xkgVpODj/WavY7/xZ0wBpOuh1Ozwr5+oNogvbKmElNEMzigGpk/o7FDxwKNkYXh5BETYJ4I2FDwXj2H9gj7LmJZa7q5i5iP8sosycBRV6T7iqtu0AE7jROXlmzmYJr+M6PnE/Oiqe6bxGcXIZhhsSI28qONs+I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org; spf=pass smtp.mailfrom=disroot.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b=jBRTzmKj; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=disroot.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b="jBRTzmKj" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6992925D78; Thu, 9 Oct 2025 18:25:14 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id HTMYW0T5XTn5; Thu, 9 Oct 2025 18:25:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1760027113; bh=2T0aiUw/0cBFP3RJp7ZrmMIlK7txY5PYqQRd0j7B1Zo=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=jBRTzmKj9btkgHOOt+gH+YIChw7b/Owti5/6d+Pce0oHTDuKvgno8mUA+3bYVIc3O JN3Y9xv78dmyDi8lPfyDSg40bN9ikF4kqyFE0SiRAvxsX4kQf7iwUBkF7zUIrPQYng Gl7ZZ29ryehCFImqKos9Oj6Xd7ewUGkCYHvQl30MZniNle1rL2VMTJ88UFuGpqmxfy xWjnvHLv9VY6G+R+OL4gOLsP4ARMaumSPuRw8YnlQArKluKL1MqIpiUaLIWvpgwI7J bdDoOB5kT1YdSO2BGQrjrrpujqI4uB2vp0kwBN1yPc9PtrH8R+zmHmuCB/4ddqG9Ai 9ZaHMAlrBFIZA== From: Kaustabh Chakraborty Date: Thu, 09 Oct 2025 21:52:10 +0530 Subject: [PATCH RESEND v5 1/2] dt-bindings: display: panel: document Synaptics TDDI panel Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251009-panel-synaptics-tddi-v5-1-59390997644e@disroot.org> References: <20251009-panel-synaptics-tddi-v5-0-59390997644e@disroot.org> In-Reply-To: <20251009-panel-synaptics-tddi-v5-0-59390997644e@disroot.org> To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jessica Zhang Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kaustabh Chakraborty , Krzysztof Kozlowski X-Developer-Signature: v=1; a=ed25519-sha256; t=1760027068; l=3076; i=kauschluss@disroot.org; s=20250202; h=from:subject:message-id; bh=2T0aiUw/0cBFP3RJp7ZrmMIlK7txY5PYqQRd0j7B1Zo=; b=vWlP1NK4miUWi3xHSYhW3alaX+XOHqQ70zD3N90cUDuSi0Z7aLFM4fnhOYZIH0c3Dd590ZY7c VlhliPRsf8wCEmdT0gkCP/Y8aMZZUoZUC3GxRh7TNUoplPjbnnd9DFx X-Developer-Key: i=kauschluss@disroot.org; a=ed25519; pk=h2xeR+V2I1+GrfDPAhZa3M+NWA0Cnbdkkq1bH3ct1hE= Document the Synaptics TDDI (Touch/Display Integration) panel hardware. Along with the MIPI-DSI panel, these devices also have an in-built LED backlight device and a touchscreen, all packed together in a single chip. Also, add compatibles for supported panels - TD4101 and TD4300. Both have the '-panel' suffix so as to remove any ambiguity between the panel and touchscreen chips. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Kaustabh Chakraborty --- .../display/panel/synaptics,td4300-panel.yaml | 89 ++++++++++++++++++= ++++ 1 file changed, 89 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/synaptics,td43= 00-panel.yaml b/Documentation/devicetree/bindings/display/panel/synaptics,t= d4300-panel.yaml new file mode 100644 index 0000000000000000000000000000000000000000..152d94367130e9d80a885fe87a2= da53db88e3393 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/synaptics,td4300-pane= l.yaml @@ -0,0 +1,89 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/synaptics,td4300-panel.ya= ml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synaptics TDDI Display Panel Controller + +maintainers: + - Kaustabh Chakraborty + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + enum: + - syna,td4101-panel + - syna,td4300-panel + + reg: + maxItems: 1 + + vio-supply: + description: core I/O voltage supply + + vsn-supply: + description: negative voltage supply for analog circuits + + vsp-supply: + description: positive voltage supply for analog circuits + + backlight-gpios: + maxItems: 1 + description: backlight enable GPIO + + reset-gpios: true + width-mm: true + height-mm: true + panel-timing: true + +required: + - compatible + - reg + - width-mm + - height-mm + - panel-timing + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "syna,td4300-panel"; + reg =3D <0>; + + vio-supply =3D <&panel_vio_reg>; + vsn-supply =3D <&panel_vsn_reg>; + vsp-supply =3D <&panel_vsp_reg>; + + backlight-gpios =3D <&gpd3 5 GPIO_ACTIVE_LOW>; + reset-gpios =3D <&gpd3 4 GPIO_ACTIVE_LOW>; + + width-mm =3D <68>; + height-mm =3D <121>; + + panel-timing { + clock-frequency =3D <144389520>; + + hactive =3D <1080>; + hsync-len =3D <4>; + hfront-porch =3D <120>; + hback-porch =3D <32>; + + vactive =3D <1920>; + vsync-len =3D <2>; + vfront-porch =3D <21>; + vback-porch =3D <4>; + }; + }; + }; + +... --=20 2.51.0 From nobody Fri Oct 10 21:10:46 2025 Received: from layka.disroot.org (layka.disroot.org [178.21.23.139]) (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 7CAA463CB; Thu, 9 Oct 2025 16:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.21.23.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760027175; cv=none; b=T5RIrDzgxrwnlm70QPBylijmpnwADLNHfTlhJbLqTN7+wWXsV8TTqVwMLIBlnwR7YZADcTUoIT42y5JR60Ist4/9b5zFHGrTBnfbFaA2OHI4ne1z59xABkiyib8eRLfyO09ZPXdTdeGGMMpiuTxIjLyetivzQSYnuxgr+H6gnOA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760027175; c=relaxed/simple; bh=8diuaNzW7qVQ7niTvw1wN0Etv/g7mng4EK/QYqTyxdo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MeYqdi/3le5lb82cUonU9sspJfVgJDJ97RIDixWD6gVZEEB32zM4vMu0D1ZjnloNHBcJGTDOHMwxaqqmsFIgX7S9QLyGM5pu5Gu5w04NusCjxi9dd7kpngkr3OxvSKMmf6RGF/5Nl1qEtQWh5AcXgs/bzeQ/cxkkqmlS1M29Hms= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org; spf=pass smtp.mailfrom=disroot.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b=TU40tq/K; arc=none smtp.client-ip=178.21.23.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=disroot.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=disroot.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=disroot.org header.i=@disroot.org header.b="TU40tq/K" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2C55125D78; Thu, 9 Oct 2025 18:26:12 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id 3ZFCy1-9eO58; Thu, 9 Oct 2025 18:26:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1760027171; bh=8diuaNzW7qVQ7niTvw1wN0Etv/g7mng4EK/QYqTyxdo=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=TU40tq/K0HzL3XUqs8j6An15BOmyTWpnFPCUxBzywglO6Q/tvW40P+kOXzsHTW0vO lR5Hw9BoYCvlstHACNO2IkqvhKPO7RJKr/h5EzIwpceGKp7huishwO+TLGIL9DoiSC 9wBFOhSp9nverpvonV4zLlpTGbqE2TwLjYdU83M1VjiwPYmtx/JLDtQFKi0VRoesaq L/Xj9aAJcTvkmksc5eoSdoZsbOLLkaZ82qL9008GXezC3afaYemwLlD1DEDrrFZ5a9 nxutTT4nKN7T9ejtM49ESbsWkhzFYobD7zRWnWXJMs+vFWmwrkd02bugsosu5zP007 WvxD4T2STHtBw== From: Kaustabh Chakraborty Date: Thu, 09 Oct 2025 21:52:11 +0530 Subject: [PATCH RESEND v5 2/2] drm: panel: add support for Synaptics TDDI series DSI panels Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251009-panel-synaptics-tddi-v5-2-59390997644e@disroot.org> References: <20251009-panel-synaptics-tddi-v5-0-59390997644e@disroot.org> In-Reply-To: <20251009-panel-synaptics-tddi-v5-0-59390997644e@disroot.org> To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jessica Zhang Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kaustabh Chakraborty X-Developer-Signature: v=1; a=ed25519-sha256; t=1760027068; l=10512; i=kauschluss@disroot.org; s=20250202; h=from:subject:message-id; bh=8diuaNzW7qVQ7niTvw1wN0Etv/g7mng4EK/QYqTyxdo=; b=wKMZb2rMYDc/dsXk/WgtUvqc9Z1pjcsXITVYmk1GLvE259dwqj6SfK4joWX2Iz0T9Jik1kY0r llICE2q8sbVBI9syGu9lRhPcvmIRNdTh9DzD8iMoox1Q8Y+9neEZ4Lf X-Developer-Key: i=kauschluss@disroot.org; a=ed25519; pk=h2xeR+V2I1+GrfDPAhZa3M+NWA0Cnbdkkq1bH3ct1hE= Synaptics TDDI (Touch/Display Integration) panels utilize a single chip for display and touch controllers. Implement a simple device driver for such panels, along with its built-in LED backlight controller, and add support for TD4101 and TD4300 panels in the driver. Signed-off-by: Kaustabh Chakraborty --- drivers/gpu/drm/panel/Kconfig | 11 ++ drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-synaptics-tddi.c | 276 +++++++++++++++++++++++= ++++ 3 files changed, 288 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 407c5f6a268b2ec66e5d0eddae26b3368e4cb2cb..98708979ab45281628620bbe803= fe8b597eb812d 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -1045,6 +1045,17 @@ config DRM_PANEL_SYNAPTICS_R63353 Say Y if you want to enable support for panels based on the Synaptics R63353 controller. =20 +config DRM_PANEL_SYNAPTICS_TDDI + tristate "Synaptics TDDI display panels" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y if you want to enable support for the Synaptics TDDI display + panels. There are multiple MIPI DSI panels manufactured under the TDDI + namesake, with varying resolutions and data lanes. They also have a + built-in LED backlight and a touch controller. + config DRM_PANEL_TDO_TL070WSH30 tristate "TDO TL070WSH30 DSI panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 3615a761b44f9de0b4a653be157d8e0bcbc8f6b7..2535e1c9df76451d1c66d7d211a= c9bfbf18dc80e 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -100,6 +100,7 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) +=3D panel-sitr= onix-st7703.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) +=3D panel-sitronix-st7789v.o obj-$(CONFIG_DRM_PANEL_SUMMIT) +=3D panel-summit.o obj-$(CONFIG_DRM_PANEL_SYNAPTICS_R63353) +=3D panel-synaptics-r63353.o +obj-$(CONFIG_DRM_PANEL_SYNAPTICS_TDDI) +=3D panel-synaptics-tddi.o obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) +=3D panel-sony-acx565akm.o obj-$(CONFIG_DRM_PANEL_SONY_TD4353_JDI) +=3D panel-sony-td4353-jdi.o obj-$(CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521) +=3D panel-sony-tulip-tru= ly-nt35521.o diff --git a/drivers/gpu/drm/panel/panel-synaptics-tddi.c b/drivers/gpu/drm= /panel/panel-synaptics-tddi.c new file mode 100644 index 0000000000000000000000000000000000000000..a4b3cbdebb6ca4062c02c6e7ac1= 84f3ec245926a --- /dev/null +++ b/drivers/gpu/drm/panel/panel-synaptics-tddi.c @@ -0,0 +1,276 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Synaptics TDDI display panel driver. + * + * Copyright (C) 2025 Kaustabh Chakraborty + */ + +#include +#include +#include +#include + +#include