From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) (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 64B2D302CBE for ; Wed, 1 Oct 2025 14:01:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759327289; cv=none; b=Xj12j2CmM5KK6uAisMVrotMYNmpW4kO7iEX4L7BVtFg98K0q6q6TqKvwnzOdjjGwYXmwra3aGGp8qtHFSqwgCAdj/7P0GgjNYeqpZE12AGT+5PB78e3BHdgcfktiyS36G0iRjWqr9BcyDWQsEnrvDHKD6lhwBiUFvH0lBZwOVYQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759327289; c=relaxed/simple; bh=GJNDhxub6moSf5dVoQJVC6If4fwe7Aburnmsrn5xQ2M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K7vWG3g2cdcJqGUbfArhV10Z48nZzUKYGPHA2MOgoMtn8oB+F6+0rbWIe4NXV3XVJu2W6k9AHPf95irKlMOs7CoAF2o5QWhgnA8hrw2LLcci8gX1Z0SlJhCMV+zTstM0a9ybwdXnl1F9QS8hL+1hGNZ7V9djpQa/t/Q5TFtv89k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=W8iKltC3; arc=none smtp.client-ip=209.85.221.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W8iKltC3" Received: by mail-wr1-f66.google.com with SMTP id ffacd0b85a97d-3f0134ccc0cso4944460f8f.1 for ; Wed, 01 Oct 2025 07:01:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1759327285; x=1759932085; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iKalYOaQVukRfcIPCAvRc5wI6gF1gNZA953ELCi2+qs=; b=W8iKltC3Kp5ay9y3HqUK5rVhHr216dmhMMO+uTv2oCYH4XxRx7W3I86N50AdQjxcvC heDp8ZMUQNPHafsWPQHVti8wBQe6HNevipd2nPGpoCrTkiDsRrWrO6Tf87Byog6TL81Z 6CVJtTEjzlrEABHOj0MAk9ASbZ6/hZ8dcmy58rEAbiuMc6/42j09Qo2PcDZUHO9f0Gxu JVGiQhUfywL6RtydlJOKQreQ6tina2u7W2vW+eWe2UT422c7klia/z0mWlA82/ottpus FoZB0drpYFZdDPcgs+svR1yb5bBQks8T/qUCRt6fsCOJ/k3WTFJ08IVIxLdPxEprQsjZ 1ZrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759327285; x=1759932085; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iKalYOaQVukRfcIPCAvRc5wI6gF1gNZA953ELCi2+qs=; b=cNQinLyNR1G1bgQ5D5YguGDDO8OcIAx/Fsj1SlQ/tWVkQhU//0sT8akWGb5WahsYfN ZNEGuur5XRX1GCBidCIbS8VUQ2uCm097KAp5/IJwtm3EeDVf5GVMcdrP6tSm0RL7Sqn7 wsCeBTm4LQlF+Lex+7xcBaQFJWWYMhSQvGCoR1yJ/pG9Gs/Hpoz8i6qsG/iyIX0Q62cH fSVu5Z3VSxNwyUmMfLRdL6L2SZ1NlACZDxk/q08897cMo+r9JgekRgyR2xxXtkGCRpF+ DVsuwKyWr2PfLeuOCbfRsA5ZH3Gd/0b0VLRjZ/dTg/qs8Is12rTYTQH8fPFZ9E3k382K gzLQ== X-Forwarded-Encrypted: i=1; AJvYcCXJDfyKT5evdjkqN9vjwrZirsFj//HlEZZPiP/aZT/oWyWGakyN4iVxBa6hR3sivwhQM3I3ue/UTZ0ImKD9@vger.kernel.org X-Gm-Message-State: AOJu0YxBr62T1aXBcRiyzmi9/5zSd3mPJW4vf5lwwmaKoGfZzirpM5U4 J8qVAu11s5nrALyMbJLeycORuY1ioTEq86tuPZj2F3Ygcvd7EC8sHMkj X-Gm-Gg: ASbGncvxnOf1pFYvsiyNSyfvn6oLjSTVIsZuOVIv6mYM7yms+j7JyHAaWLIatO8WEnR NY8mKmomJpbZ7Sfn1/JYpCkA+twUhKicmWjzkJK/MPf9Qi6ZhTlJL6dwlfo86s/gwzuP190y7W0 qIliwn2zCdspEQCiU0rWz3D/XWy80q5/nnkTI/g5ozgJZPrTinp5elMuxG0+bdMKqPUbZrvFwr3 iWH1flHrsZnuSEmKFkipTEm3+OA63k3dHOZB+wlo1Qcobm9OWFas3TOxUFD6FbMZXWU5eMtg0ox GiJ97hOJYjl61cIw+Mj8DbYna2f83smA1iuBpmbYNGDc7yKFeBjTQOUW43/R25G6m293nvSCimL 6+wOJ3MOx6/t8B3JrcU25qXzJNd6CxfVKhbEF7UcEmSrDmHvw1DmDMZq8xJjflGpb+425kamCAY vgaJCQzyHURiGX/5LW26h+unLCNjm9kIDPODfBFY6eERFbVk/quxuxRw== X-Google-Smtp-Source: AGHT+IFpkvgyHXyw/+Pkpw85BpuMOmx154wGF/+ane8tu9MLaY4HwbF+NiWDdGeiau8jpLrDHs4J2g== X-Received: by 2002:a05:6000:607:b0:3eb:9447:b97a with SMTP id ffacd0b85a97d-4255781a64fmr2951941f8f.54.1759327282771; Wed, 01 Oct 2025 07:01:22 -0700 (PDT) Received: from LAPTOP-AMJDAUEJ.soton.ac.uk (globalprotect-nat-extbord.soton.ac.uk. [152.78.0.24]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-40fb89065b5sm27029828f8f.17.2025.10.01.07.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Oct 2025 07:01:22 -0700 (PDT) From: Junjie Cao To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Sean Paul , Marijn Suijten , Antonino Maniscalco , Jonathan Marek , Eugene Lepshy , Jun Nie Cc: Junjie Cao , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org Subject: [PATCH 3/3] drm/panel: Add Novatek NT36532 panel driver Date: Wed, 1 Oct 2025 21:59:14 +0800 Message-ID: <20251001135914.13754-4-caojunjie650@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251001135914.13754-1-caojunjie650@gmail.com> References: <20251001135914.13754-1-caojunjie650@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a driver for panels using the Novatek NT36532 Display Driver IC, including support for the CSOT PPC100HB1-1, found in the OnePlus Pad 2 tablets. Signed-off-by: Junjie Cao --- MAINTAINERS | 7 + drivers/gpu/drm/panel/Kconfig | 10 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-novatek-nt36532.c | 437 ++++++++++++++++++ 4 files changed, 455 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt36532.c diff --git a/MAINTAINERS b/MAINTAINERS index 0c8281ea4cc6..1394b26269b8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7914,6 +7914,13 @@ T: git https://gitlab.freedesktop.org/drm/misc/kernel.git F: Documentation/devicetree/bindings/display/panel/novatek,nt36523.yaml F: drivers/gpu/drm/panel/panel-novatek-nt36523.c +DRM DRIVER FOR NOVATEK NT36532 PANELS +M: Junjie Cao +S: Maintained +T: git https://gitlab.freedesktop.org/drm/misc/kernel.git +F: Documentation/devicetree/bindings/display/panel/novatek,nt36532.yaml +F: drivers/gpu/drm/panel/panel-novatek-nt36532.c + DRM DRIVER FOR NOVATEK NT36672A PANELS M: Sumit Semwal S: Maintained diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 407c5f6a268b..a2ef5be43c96 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -520,6 +520,16 @@ config DRM_PANEL_NOVATEK_NT36523 around the Novatek NT36523 display controller, such as some Boe panels used in Xiaomi Mi Pad 5 and 5 Pro tablets. +config DRM_PANEL_NOVATEK_NT36532 + tristate "Novatek NT36532-based MIPI-DSI panels" + depends on OF + depends on DRM_MIPI_DSI + help + Say Y here if you want to enable support for the panels built + around the Novatek NT36532 display controller, such as some + CSOT panels used in OnePlus Pad 2 tablets. These panels are + typically dual-DSI and may use DSC (Display Stream Compression). + config DRM_PANEL_NOVATEK_NT36672A tristate "Novatek NT36672A DSI panel" depends on OF diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index 3615a761b44f..56b4e362890c 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -51,6 +51,7 @@ obj-$(CONFIG_DRM_PANEL_NOVATEK_NT35510) += panel-novatek-nt35510.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 +obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36532) += panel-novatek-nt36532.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36672A) += panel-novatek-nt36672a.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36672E) += panel-novatek-nt36672e.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT37801) += panel-novatek-nt37801.o diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36532.c b/drivers/gpu/drm/panel/panel-novatek-nt36532.c new file mode 100644 index 000000000000..a2f550801f34 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-novatek-nt36532.c @@ -0,0 +1,437 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Novatek NT36532 DriverIC panels driver + * Based on the template generated by linux-mdss-dsi-panel-driver-generator + * + * Copyright (c) 2025 Junjie Cao + */ + +#include +#include +#include +#include +#include +#include +#include + +#include