From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F7ECFF60F0 for ; Tue, 31 Mar 2026 08:46:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5FE7810E2E1; Tue, 31 Mar 2026 08:46:55 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="XAsiLeA3"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id DF5EE10E144 for ; Tue, 31 Mar 2026 08:46:48 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 972D644528; Tue, 31 Mar 2026 08:46:48 +0000 (UTC) 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 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cristian_ci@protonmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 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. +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) += panel-nec-nl8048hl11.o obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3051D) += panel-newvision-nv3051d.o obj-$(CONFIG_DRM_PANEL_NEWVISION_NV3052C) += panel-newvision-nv3052c.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35510) += panel-novatek-nt35510.o +obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35532) += panel-novatek-nt35532.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35560) += panel-novatek-nt35560.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35950) += panel-novatek-nt35950.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36523) += panel-novatek-nt36523.o diff --git a/drivers/gpu/drm/panel/panel-novatek-nt35532.c b/drivers/gpu/drm/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