From nobody Wed Apr 1 12:32:53 2026 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 94E023EAC98; Tue, 31 Mar 2026 08:46:48 +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=1774946808; cv=none; b=CMT/GvkClBH2iuV8VCx9wMWxmumZ8IU2dBmVIEAbWeYJaPnDCUKXDWeup0a4HFPFjBhHZgmIejehg7k3XUoNG1OMX8IiXGdmAfIYeSF77ypyUon1BtGshzwuQbHBIIw766NuDZC8xdlD1GO1Mr5a5BAdJwT0VNbayr3DrUwhR3A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774946808; c=relaxed/simple; bh=kRnpd67l1fQevBUI2M8t5uQVHldWidR1NGQkoT/YuWA=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Aol3gpeGmNM9obKPwy/XiMX+Z6UFwz8krvc4pD2sxcfP8wi7F3ajI9N9vPh+pGJhmwcG5PkhqxFMVIWWJJ+e+WlOjwx9L0ol1abEunxehxRP7Iew7fzzDDb5XbIx3/em+AotqzBcbvzMohG83x/nMXkSFZbsj0QDAYJASYpwbxs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Xq7Zv7i+; 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="Xq7Zv7i+" Received: by smtp.kernel.org (Postfix) with ESMTPS id 3D149C2BCB0; Tue, 31 Mar 2026 08:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774946808; bh=kRnpd67l1fQevBUI2M8t5uQVHldWidR1NGQkoT/YuWA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Xq7Zv7i+GFIoQC1IbGwj9Dxz2KcJ5+qrEiiolm6feQqYh7dHjAv6ZEKJppgNHjEjy BSS/5Pzd9ugTt1f8g4m32cyDJFAe5u0YTuxAi9DjEv9A3+6qTtvcJFMLzryjs3qyDT bhjbI4mwjxrkbHVbk+Ki+N6nwCSIVHlTsiSfmRo2JuwtJpmiXQ/04KuS4MLlYw/AaZ 2/Io+zo2t2j1Azf8ZSAQ7t01w60VncSXZAbxlt2fZoBMbThZzx4sRdaf5gRDT1Xljv CCyhnNzb9z/B9O1hFnLd0n6tVwnN/D1o9ui1rXs0nmBpb1cF1c8DI1ALXNnMbnMkLz ShSH0/fOFugvQ== 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 2D76CFF60EF; Tue, 31 Mar 2026 08:46:48 +0000 (UTC) From: Cristian Cozzolino via B4 Relay Date: Tue, 31 Mar 2026 11:47:09 +0200 Subject: [PATCH v5 1/6] dt-bindings: display: panel: Add Novatek NT35532 LCD DSI 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: <20260331-rimob-new-features-v5-1-5fcf42a29c12@protonmail.com> References: <20260331-rimob-new-features-v5-0-5fcf42a29c12@protonmail.com> In-Reply-To: <20260331-rimob-new-features-v5-0-5fcf42a29c12@protonmail.com> To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Cristian Cozzolino , Krzysztof Kozlowski X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774950461; l=3318; i=cristian_ci@protonmail.com; s=20250620; h=from:subject:message-id; bh=qTKlZDaARiUsxyQG1/J2RAJYMe4C+c83+Q7c5M+0Qq0=; b=z47T9wZj7OGx26jcPHMl+NYR3Yj8OhZavzyrfDO21NA3J8woJqv3lT8vuVN9C1qzcr+bypqJf M0is6QI8PsfB3BjT0LK8J1pGNSHPTmSZX5bRENvVJ3w2DVe9M8+Wbt5 X-Developer-Key: i=cristian_ci@protonmail.com; a=ed25519; pk=xH5IvIPUNHV1Q8R0/pq2CfuVFR/wTiAyuyi6IwedjZY= X-Endpoint-Received: by B4 Relay for cristian_ci@protonmail.com/20250620 with auth_id=438 X-Original-From: Cristian Cozzolino Reply-To: cristian_ci@protonmail.com From: Cristian Cozzolino Document Novatek NT35532-based DSI display panel. Since it's not possible to identify panel vendor nor id, add a suitable compatible (matching the device's user, which makes use of this DDIC) and set "novatek,nt35532" as fallback. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Cristian Cozzolino --- .../bindings/display/panel/novatek,nt35532.yaml | 80 ++++++++++++++++++= ++++ MAINTAINERS | 5 ++ 2 files changed, 85 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/novatek,nt3553= 2.yaml b/Documentation/devicetree/bindings/display/panel/novatek,nt35532.ya= ml new file mode 100644 index 000000000000..ff6fdad7febf --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/novatek,nt35532.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/novatek,nt35532.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Novatek NT35532-based DSI display panels + +maintainers: + - Cristian Cozzolino + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + items: + - enum: + - flipkart,rimob-panel-nt35532-cs + - const: novatek,nt35532 + + reg: + maxItems: 1 + + backlight: true + reset-gpios: true + + avdd-supply: + description: positive boost supply regulator + + avee-supply: + description: negative boost supply regulator + + vci-supply: + description: regulator that supplies the analog voltage + + vddam-supply: + description: power supply for MIPI interface + + vddi-supply: + description: regulator that supplies the I/O voltage + + port: true + +required: + - compatible + - reg + - reset-gpios + - vddi-supply + - port + +additionalProperties: false + +examples: + - | + #include + + dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + + panel@0 { + compatible =3D "flipkart,rimob-panel-nt35532-cs", "novatek,nt3= 5532"; + reg =3D <0>; + + backlight =3D <&pmi8950_wled>; + reset-gpios =3D <&tlmm 61 GPIO_ACTIVE_LOW>; + avdd-supply =3D <&lab>; + avee-supply =3D <&ibb>; + vci-supply =3D <&pm8953_l17>; + vddi-supply =3D <&pm8953_l6>; + + port { + panel_in: endpoint { + remote-endpoint =3D <&dsi0_out>; + }; + }; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index ef978bfca514..8617d830b1d2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8175,6 +8175,11 @@ T: git https://gitlab.freedesktop.org/drm/misc/kerne= l.git F: Documentation/devicetree/bindings/display/panel/novatek,nt35510.yaml F: drivers/gpu/drm/panel/panel-novatek-nt35510.c =20 +DRM DRIVER FOR NOVATEK NT35532 PANELS +M: Cristian Cozzolino +S: Maintained +F: Documentation/devicetree/bindings/display/panel/novatek,nt35532.yaml + DRM DRIVER FOR NOVATEK NT35560 PANELS M: Linus Walleij S: Maintained --=20 2.53.0 From nobody Wed Apr 1 12:32:53 2026 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 94F473EB7E5; Tue, 31 Mar 2026 08:46:48 +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=1774946808; cv=none; b=SPCyLiXrCDcb0KgCIFek7a3dHLBRzCNXrZK/t4ruYZ8sPHno6msPAcyuJLysEPK4s9BJz/JjiMKjcHdYiwNDRnW7Dq0fnUzJVq8neJQfb3TbuTuajZXbnpuZxn81cABO7hV9dX/PWUvtBim0hqlellaDnAfg+6jhBT2ZG8Qrbwc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774946808; c=relaxed/simple; bh=jbEtHsEDK2Bomc3hF3cAan1Khl2EGpeNJ2v4h3lrcHo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=LNtAMAarDFeH0Bs6kwysfKvoxaHtfg8OQ2i+9vNrO/IFvBYVMOrJ2qJ80bsofMH9SYdp8cPxY6YsY81ow59Gs0Vlad3bH5sFzIDe4yBDDyFb4c2O9Ot2L9SzHb8dEVo2yjRUzXitYdLYwYM8WGgGTVMmfR2kAB9QDGVlsphEPyw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=XAsiLeA3; 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="XAsiLeA3" Received: by smtp.kernel.org (Postfix) with ESMTPS id 55308C2BCB4; Tue, 31 Mar 2026 08:46:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774946808; bh=jbEtHsEDK2Bomc3hF3cAan1Khl2EGpeNJ2v4h3lrcHo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=XAsiLeA3r1p+czb2Ogg7x2EVVa0/8ZUy0TCYVGC5EaKJjjPeY2JL1KprUCz+SrIyy K7a6upXh4SSrMrGIlaGUEX+8F1PhblWAWf6WXD95gAsHGGa1fAu/dmMLJHIfLGRK+L zB2l+Ge991JZWOBWFvYiYs2A/UvES+DnkOLjlC0w3aLHgkqGQ6h/ce5nszaVl7kI8R pFv6NqpSV74503AMTl9EgG12IxDvzT31NxxZAQ5KcG6V3Lo3i/tyTEYWWz42AKd0zc eP4kjlz9o6aCu3FSxaoNdqWduzkzHoZhPx5KzqdIh3S5fd1xEbnKvvJY8+zKtM0MQi GQxT6t2s/aaCA== 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 44C63FF60F0; Tue, 31 Mar 2026 08:46:48 +0000 (UTC) From: Cristian Cozzolino via B4 Relay Date: Tue, 31 Mar 2026 11:47:10 +0200 Subject: [PATCH v5 2/6] drm/panel: Add driver for Novatek NT35532 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: <20260331-rimob-new-features-v5-2-5fcf42a29c12@protonmail.com> References: <20260331-rimob-new-features-v5-0-5fcf42a29c12@protonmail.com> In-Reply-To: <20260331-rimob-new-features-v5-0-5fcf42a29c12@protonmail.com> To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Cristian Cozzolino , Dmitry Baryshkov X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774950461; l=41987; i=cristian_ci@protonmail.com; s=20250620; h=from:subject:message-id; bh=Z35WxrGmgnw8+8eduKwHd3hlOqVrTVaIwOh7UXC9wO4=; b=oo6ESExjkSgm+Zglo0tglbsy9QMFYa/cxAZ3BI8Sp53foHYXsDQATMB5zDdw0lUuinchV7q7Q b8YNOQk5xwGABQiwOLDGomJkbtrL6xj2n+xMv7yOT/iJEtd3ija+FlQ X-Developer-Key: i=cristian_ci@protonmail.com; a=ed25519; pk=xH5IvIPUNHV1Q8R0/pq2CfuVFR/wTiAyuyi6IwedjZY= X-Endpoint-Received: by B4 Relay for cristian_ci@protonmail.com/20250620 with auth_id=438 X-Original-From: Cristian Cozzolino Reply-To: cristian_ci@protonmail.com From: Cristian Cozzolino Add support for Novatek NT35532-based 1080p video mode DSI panel. Reviewed-by: Dmitry Baryshkov Signed-off-by: Cristian Cozzolino --- MAINTAINERS | 1 + drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-novatek-nt35532.c | 796 ++++++++++++++++++++++= ++++ 4 files changed, 808 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8617d830b1d2..3c4eef7905d1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8179,6 +8179,7 @@ DRM DRIVER FOR NOVATEK NT35532 PANELS M: Cristian Cozzolino S: Maintained F: Documentation/devicetree/bindings/display/panel/novatek,nt35532.yaml +F: drivers/gpu/drm/panel/panel-novatek-nt35532.c =20 DRM DRIVER FOR NOVATEK NT35560 PANELS M: Linus Walleij diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index d6863b28ddc5..386fb6f1ff50 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -549,6 +549,16 @@ config DRM_PANEL_NOVATEK_NT35510 around the Novatek NT35510 display controller, such as some Hydis panels. =20 +config DRM_PANEL_NOVATEK_NT35532 + tristate "Novatek NT35532-based DSI video mode panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + select DRM_KMS_HELPER + help + Say Y or M here if you want to enable support for Novatek + NT35532-based 1080p video mode DSI panels. + config DRM_PANEL_NOVATEK_NT35560 tristate "Novatek NT35560 DSI command mode panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index a4291dc3905b..7caf60dd3f57 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -54,6 +54,7 @@ obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) +=3D panel-nec-nl8= 048hl11.o obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3051D) +=3D panel-newvision-nv3051d.o obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3052C) +=3D panel-newvision-nv3052c.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35510) +=3D panel-novatek-nt35510.o +obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35532) +=3D panel-novatek-nt35532.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35560) +=3D panel-novatek-nt35560.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35950) +=3D panel-novatek-nt35950.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36523) +=3D panel-novatek-nt36523.o diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35532.c b/drivers/gpu/dr= m/panel/panel-novatek-nt35532.c new file mode 100644 index 000000000000..184f61bca7ca --- /dev/null +++ b/drivers/gpu/drm/panel/panel-novatek-nt35532.c @@ -0,0 +1,796 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device= tree. + * Copyright (c) 2026 Cristian Cozzolino + */ + +#include +#include +#include +#include +#include +#include + +#include