From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-184.mta0.migadu.com (out-184.mta0.migadu.com [91.218.175.184]) (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 77A4D375AA8 for ; Sun, 12 Apr 2026 11:39:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.184 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775994000; cv=none; b=nJ0tJ8oqGeI4DwnSGmHl9Xp7ZOJoX/j2BbRjRJcfxI6d0b9sTnsTBkTCavy0coJRzk1MCh+7eIiUB3mF91iAj0H1aQ6trUwgsGt5oT5Ex5BTcxHRrSSS8rqqoy642b+sNUDWpilzvCOdZcgQ/LUgcVeyj8bndE0YBbbfxgdpPEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775994000; c=relaxed/simple; bh=+7YAwx+nEicA0T9X0WiQfktNQ2hqHZFTJEduc/8Ww+k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=oqYZZXqk2FA+uSW8CS3VCDCw1HFkukn9fGSIjdTUzejJvlF5tXHUL5KafwaHUxVIl892ZzHuhTvARvGg3bs+rEbv14lXYtzeHV5/e/DzQHWsqVohqE1yDcoBT6NkBUTdz1n/5I15l8L7p2QNiB5YByk4uydzBSdFkWWYkfouOA4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool; spf=pass smtp.mailfrom=packett.cool; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b=lU6nKKel; arc=none smtp.client-ip=91.218.175.184 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=packett.cool Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=packett.cool Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=packett.cool header.i=@packett.cool header.b="lU6nKKel" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=packett.cool; s=key1; t=1775993996; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ylsu9Y5o2SCxsYagGgX6pZIWYd0qVXmNywyb7btE/gk=; b=lU6nKKelfxByzWMT8Ea0wt2Cp+0w8AmkL8V+oQ7x2LtQBC4si5GFxgOJ3FdwIziKjb47zC T0QwBYnPcPuyccBtltDUgZLU9SbBb+fHguxJjHV7N27uik7gAd1PNxa1cdJt6m9XRbiIMw iYM2glph7ygxy65nMBiVPfrtoggmxMiUSudSuL/aU0BepcKNyiXsbHtPaIPKgK74caXzrt O1b5aJrlameRQ2ExdTMd9gdn8lRrkXDLGQJr0ykQwcke3fvQ38OAqZH0l91XYatBDWNXiz ckUoB4P0RebSrYhn20fVE9tKu/hw0atcjNkVKwfBxQ2NgZGUVC3OxRFAQjrJOA== From: Val Packett To: Neil Armstrong , Jessica Zhang , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: Val Packett , Rob Clark , Dmitry Baryshkov , Krzysztof Kozlowski , Alicja Michalska , dri-devel@lists.freedesktop.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 2/2] drm/panel: Add driver for Novatek NT37701 based OLED panels Date: Sun, 12 Apr 2026 08:00:45 -0300 Message-ID: <20260412113851.355944-3-val@packett.cool> In-Reply-To: <20260412113851.355944-1-val@packett.cool> References: <20260412113851.355944-1-val@packett.cool> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Add a driver for panels with the NT37701 DDIC, starting with the Tianma panel (unknown model) used in the Motorola Edge 30 (dubai) smartphone. Signed-off-by: Val Packett --- drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-novatek-nt37701.c | 532 ++++++++++++++++++ 2 files changed, 533 insertions(+) create mode 100644 drivers/gpu/drm/panel/panel-novatek-nt37701.c diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index a4291dc3905b..183f968a5333 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -60,6 +60,7 @@ obj-$(CONFIG_DRM_PANEL_NOVATEK_NT36523) += panel-novatek-nt36523.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_NT37700F) += panel-novatek-nt37700f.o +obj-m += panel-novatek-nt37701.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT37801) += panel-novatek-nt37801.o obj-$(CONFIG_DRM_PANEL_NOVATEK_NT39016) += panel-novatek-nt39016.o obj-$(CONFIG_DRM_PANEL_MANTIX_MLAF057WE51) += panel-mantix-mlaf057we51.o diff --git a/drivers/gpu/drm/panel/panel-novatek-nt37701.c b/drivers/gpu/drm/panel/panel-novatek-nt37701.c new file mode 100644 index 000000000000..ea8a208fecb2 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-novatek-nt37701.c @@ -0,0 +1,532 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2026, The Linux Foundation. All rights reserved. + * Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree: + * Copyright (c) 2013, The Linux Foundation. All rights reserved. + */ + +#include +#include +#include +#include +#include +#include + +#include