From nobody Mon Oct 6 15:24:13 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 287DB1F419A; Sun, 20 Jul 2025 12:02:22 +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=1753012945; cv=none; b=A4+Jj5x+hRNxuhllo+nGeC4OVa2HcJwWphxW3Kjoom9sQVmehjp4RW//CGmxw1RZU9JclBkk2JvMYOIQ7VVdeYYjbhKVE7ORo+dysHmg4vjZZFPJM4CtMiSxAxOE95uYN7Zjbx0tzaCsVBDYsg08Iw0aLcJOwD4r1rNVAR2x6E4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753012945; c=relaxed/simple; bh=We7amH1B4SyPPjeaqUpaFP4DU6xAfLuufxsp/dk8cPI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bDigqRJSNKqs1tQH7cBXmNyfSMi2HzNfTE/IfO6hHzCnOT02qeCrF+lLKQLhMvA9wa70gYRwLzGSU2lragLoi/oPNTL2GPKDJiPDEerbu5+P+EbyhJI7B5q0oZtm0kZzBF9zgJ2aQUelUVAMzgikHmT1qMVLXM3N6ltjxHGD+uM= 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=Lzo0ACJu; 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="Lzo0ACJu" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 4ED2922F3E; Sun, 20 Jul 2025 14:02:21 +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 SpD6C_8uplgD; Sun, 20 Jul 2025 14:02:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1753012939; bh=We7amH1B4SyPPjeaqUpaFP4DU6xAfLuufxsp/dk8cPI=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=Lzo0ACJukD3HzY65fEkk00FxZd0PM44qENHVRnmgGruPUlK13erecsYNidEzNysQ9 vnx5p5DCp+8GFpo1mRXo4lGoO6EDH2Ddao3hnpKWKou26G1ZHRPn/SIlBxaB9F1Deu xWWe7uQVXFh+HnMHS4uTL80QqJ85LdlkKGldUgqBdADRZv+5V3KKVybB6Ohw+dA9WS GIQga00QB736mg1+Rvl77yU/X6//CRDDgP/VELOGzNOj6HHf0UJwYfMpT62tkBo0m9 ojiqBbwayIOomVv6g7SD7TNLUPikhCFoyn9E4oFnadcBX9MqNFuN2/i9NMIiGd8tju jdPXA1xwMK/IQ== From: Kaustabh Chakraborty Date: Sun, 20 Jul 2025 17:31:54 +0530 Subject: [PATCH v3 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: <20250720-panel-synaptics-tddi-v3-1-43a5957f4b24@disroot.org> References: <20250720-panel-synaptics-tddi-v3-0-43a5957f4b24@disroot.org> In-Reply-To: <20250720-panel-synaptics-tddi-v3-0-43a5957f4b24@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=1753012923; l=3009; i=kauschluss@disroot.org; s=20250202; h=from:subject:message-id; bh=We7amH1B4SyPPjeaqUpaFP4DU6xAfLuufxsp/dk8cPI=; b=73U7JZnBYGPbIOu9f7JOo5/lDGzi7DrOAqgM19A10NkZ79mJvf52G7HI7IIdNwBZhYKIZpCgi xCLOqAvLG3fB5QX2DIgbAiGzYVq5AOgyDrZSkSZP/Qgo2lQJYmkH+De 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. Signed-off-by: Kaustabh Chakraborty Reviewed-by: Krzysztof Kozlowski --- .../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.50.0 From nobody Mon Oct 6 15:24:13 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 12DF84A0F; Sun, 20 Jul 2025 12:02:31 +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=1753012954; cv=none; b=rHrDh8tIwDJHrdTPxqt8TrUKvaKMgSxk3EMh8YRSMBHHUWgae6n7pQDZRaU64zZrCp5jZNTHsLLeZPeGwCDjAsjDSUM1h7MSe6vPif87PTyqdnR1dszTxQik+SYTfneZ/u/AWWMS4JmJI474jhEt+9N+vd7HPPjBrP51LZyLpoY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753012954; c=relaxed/simple; bh=75AyMXpWnarmsl/zKyjJ2DuOCEPJ+kcwWUI2Tp9z5Ug=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=PoRGA3KkOKbE4BCxOxe/rPtTgJe5FtbkXbi4heK6JRo//vTJgcUdIkq45lQ4teCZfHespEs3fFw6+3lqM2z8C6o6jznOV1wB925AjXNESh2Oj5rpBd7D/8gVTIuoDfCqTDzI7RUsD6FT3a48+1YQKJToVbNwuS7Jx77fgg4iVxc= 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=HyrSz2PH; 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="HyrSz2PH" Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 3BFE320EA2; Sun, 20 Jul 2025 14:02:30 +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 0qkbHj0R92qZ; Sun, 20 Jul 2025 14:02:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1753012947; bh=75AyMXpWnarmsl/zKyjJ2DuOCEPJ+kcwWUI2Tp9z5Ug=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=HyrSz2PHFhz1G2ypx2q5eq6iEqNq0RelpjneFX93rC6myktMr9KIXc1ENWMN/ZXaO HcApcSM6OoF7eXEJItGUiF5faRxgXCRkdXfhu3fZ+gYoL5Bbiog7QldZOtkN8t/CAV IORylfbhQ5voTE2ppq50Rsm9BqLgPh0yOIgVE4cXdM0dPxqk7Aau9hNLl9QWdrOn0U /Gsyau4Ykogcs0KlmmN5kQ1T7+8ARdZPx/hmqIOhq0tGjxNEJfz9bF8ox/tH/P3bP4 3KFJMTv8I57T/6BE3I+HieF2Aqls9S8LSEf2RNSXjvUMORk4rYq7eAZ1Z3/pSaShEp 0QxclKl/iaCow== From: Kaustabh Chakraborty Date: Sun, 20 Jul 2025 17:31:55 +0530 Subject: [PATCH v3 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: <20250720-panel-synaptics-tddi-v3-2-43a5957f4b24@disroot.org> References: <20250720-panel-synaptics-tddi-v3-0-43a5957f4b24@disroot.org> In-Reply-To: <20250720-panel-synaptics-tddi-v3-0-43a5957f4b24@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=1753012923; l=10896; i=kauschluss@disroot.org; s=20250202; h=from:subject:message-id; bh=75AyMXpWnarmsl/zKyjJ2DuOCEPJ+kcwWUI2Tp9z5Ug=; b=QFOz6Gkur9FcX1C6X4qk7tIWswlY946ClZ664ZGXK1ENSCUvRKp28o+cvhgwGeSYYIKs2FU8G 54bM8APyw+oCOjoHvV0EJ04czakrkyh7u3p3ql6jI9wuSGpmxjpDDc3 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 | 289 +++++++++++++++++++++++= ++++ 3 files changed, 301 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 09b9f7ff9340abb708a503f7564acc46b2faaf7d..b080da939f5e3d11bf4c437ae16= 7480d2721b41f 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -1021,6 +1021,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 957555b499968ebbfb55c87d2729ce88b5d48a57..a6e786e2b578e09d95de5b6430e= ba94c668ee4bc 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -98,6 +98,7 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) +=3D panel-sitron= ix-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..1e99be8791770437ce22c482320= a7c475f50019e --- /dev/null +++ b/drivers/gpu/drm/panel/panel-synaptics-tddi.c @@ -0,0 +1,289 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Synaptics TDDI display panel driver. + * + * Copyright (C) 2025 Kaustabh Chakraborty + */ + +#include +#include +#include +#include + +#include