From nobody Thu Apr 2 15:44:05 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 BDC792ED154; Fri, 27 Mar 2026 13:30:18 +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=1774618218; cv=none; b=T+bUnO6QzYv4+YM3ypwKsjKt0SKFft+6EpkV9aAflFfavXzclVx9Yyq2uJWFBSvAqsLz18Ouj+P1cU0qwtA/eTJSDbbdxtZHrLLtpdGAWccZ42FObP7JZ1YuoDYnnRs+AC3rj9yLew7n/Zx0hqfOc3lrdcl3xsQrlFi25KsS2wU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774618218; c=relaxed/simple; bh=SRh/0Gs2Dcmn5I/5o2RDnwGwhbDd2FofxA8blrGcTVo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ussM96cIHk4Edq2Kk/5KFAi6ltHi4XYgCdMeSFk2XcCfe2MNVWiv9c/MEvuL8+pqENIy9Y9R7EPfR29I0mwo3/Y7sO0S2tf+Bwh79jg9rzDadMCgJk7AKpPNAJR+lpbgbNwSc7G9sYTaDGBS+4d+HynbdYvoKI8HDsqTGkrjQN8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uYKtxtUc; 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="uYKtxtUc" Received: by smtp.kernel.org (Postfix) with ESMTPS id 79E41C2BC9E; Fri, 27 Mar 2026 13:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774618218; bh=SRh/0Gs2Dcmn5I/5o2RDnwGwhbDd2FofxA8blrGcTVo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=uYKtxtUci4gDi5dUmy35cgohzYmvUIiRkm82SuZrZrXjHp8qgmMObyjGfCdbf2DG4 Uq3WUNSjGJpEIAMvZQwI89viMcX/XtFLK/P+/voEGqsQbEy0V06jHUZBB0KNYf1UgY Aln8HL+REaSG2d5AYeI3uzgr328m3Y91FcK+XeN7b2FyMmAekWaMqxptZAqldXF0R5 uPhhmDr2u6psB1aS/aLlibH1wFYSPngg4FoyT5as0wonvJ3tc56nqg1eUbR5ecerMi aUHdQrmu/fFtEc7Db/sT81WwWohVB4njdXsj7HoE098U9CuFecOoElSnB59CAsYtTu cKuqoNt+AC0Ug== 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 67E5510ED674; Fri, 27 Mar 2026 13:30:18 +0000 (UTC) From: Cristian Cozzolino via B4 Relay Date: Fri, 27 Mar 2026 15:30:47 +0100 Subject: [PATCH v4 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: <20260327-rimob-new-features-v4-1-06edff9c4509@protonmail.com> References: <20260327-rimob-new-features-v4-0-06edff9c4509@protonmail.com> In-Reply-To: <20260327-rimob-new-features-v4-0-06edff9c4509@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 X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774621871; l=3245; i=cristian_ci@protonmail.com; s=20250620; h=from:subject:message-id; bh=1sKg1wNSp6ORtBthsOcQq4FFVXR7zjxG+6BOteGpZ7Y=; b=7CpTe2y+ql7txEfWfJw4k8ayLTDdwVwCONG3xN8gIzxVaGIJt2jayWcfNVL2A91i4+6cgI6wb pVvF7Pz81MaD3ETP/WWPVgUfsqWS5Ny9rh5A5x8JUZxKPF1dKhMLWIN 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. Signed-off-by: Cristian Cozzolino Reviewed-by: Krzysztof Kozlowski --- .../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 80b9074e96ae..792ce6ee8616 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8174,6 +8174,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 Thu Apr 2 15:44:05 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 BDBE9481B1; Fri, 27 Mar 2026 13:30:18 +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=1774618218; cv=none; b=LLFyC79FkKHZTtq5dqbS2Ceb3v1ZQhlfVq+XgvZ90JFK/DtBkcwMDYl1ejBgx1wBO7tekPNeTFdL0L8r65nNYPzelRsmcXJvLjZaNEJ3y2NpwZmLBOM8kQLXT8zzH2RE8VfAzb88OULP1CMyUY8fiJS7BozmFLtliluLls/MlbY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774618218; c=relaxed/simple; bh=g7OIFw5c4E4SUbKGIxW6ilsq4uIIj2fzq7WLuqGt/0g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=hhMrKOJBlayTUXosbt6KNcBy+RO0BlEG/L8tPchaN9vRhAYHO21vvSi4i5DYKOAkTYYaRx9juJwQrVxQ0WgnLU2LBS9PP6Mn7zhpwI/HuxqHpLTsL0zZKrFWyQATivkYKyc/lI5piv3N6KjWz4+Y8LRKaTvtoF234SwzOg6U9Js= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mA7RdZAZ; 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="mA7RdZAZ" Received: by smtp.kernel.org (Postfix) with ESMTPS id 8EF80C2BCB2; Fri, 27 Mar 2026 13:30:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774618218; bh=g7OIFw5c4E4SUbKGIxW6ilsq4uIIj2fzq7WLuqGt/0g=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=mA7RdZAZFcMs6e5XXZDd4PxQvSvHVgSAkT2LHStF1BQdT+dW9NFB0U24kXnlEfTuf z1t4ugrA+TLf4rN3D9DEtu4Dgma8KQnxlzRb77MTQDqycww5BtQwMUkk8th+jLWCIE BTHJqHs3v1HHS3qtRxd2x0+tuChZOqqJ/Jh4zXDXV34r3+12oGcJKDVdVur7sUgB4a ivREEH1ndmw6ax9DyoM/YuEU5L2KTz0akNBg2er5Wphe9JkC+7kl95Nd/ErXeQCuWN O8V+570Ymo0mZw3d0HHosv2mHu83PNuc9yDFMo8G9q1DL5q+Tf85JCgD6jEujAW4uk 2p7P2VA9376pQ== 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 8244F10ED67B; Fri, 27 Mar 2026 13:30:18 +0000 (UTC) From: Cristian Cozzolino via B4 Relay Date: Fri, 27 Mar 2026 15:30:48 +0100 Subject: [PATCH v4 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: <20260327-rimob-new-features-v4-2-06edff9c4509@protonmail.com> References: <20260327-rimob-new-features-v4-0-06edff9c4509@protonmail.com> In-Reply-To: <20260327-rimob-new-features-v4-0-06edff9c4509@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 X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774621871; l=41920; i=cristian_ci@protonmail.com; s=20250620; h=from:subject:message-id; bh=cVh6Vfy0m9x8HTA/0P42Wwd96RLm3jfCppZm78x02bw=; b=14Jyp0Dim7Ja7tZJAPJQSE4vALFz96uyFdFxKVm5bm59kI1p+jRe8KfkW5jyXco7KUaZ+w2b7 bB3KSgkaQCPAYAfBvrTCHlKfmYUcLFXCrh7iyk/mzI0dEWAtizfyH0i 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. Signed-off-by: Cristian Cozzolino Reviewed-by: Dmitry Baryshkov --- 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 792ce6ee8616..f58e9d9ee5c3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -8178,6 +8178,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