From nobody Thu Apr 2 17:18:17 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