From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FD1B606A31C for ; Thu, 26 Nov 2026 13:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Al6Bzy8h Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 68DD610E332; Thu, 26 Nov 2026 13:46:14 +0000 (UTC) Received: from tor.source.kernel.org (tor.source.kernel.org [172.105.4.254]) by gabe.freedesktop.org (Postfix) with ESMTPS id 85F0A10E332 for ; Thu, 26 Nov 2026 13:46:08 +0000 (UTC) Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 0A64B6344C; Thu, 26 Nov 2026 13:46:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CC4611F000E0; Thu, 26 Nov 2026 13:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795700767; bh=LpCQaTekFEeyqZMNoHTvHNWTZGVrsIL1ToHn2ap47Sg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Al6Bzy8h+tbTvECl3QO04WDeA7Q1+g+vC028/Zf2jWKzhAl7ZxGRX3AYITkIKJ5Ex i7WB9B/CkgwpJdUXd8S6k2MSsez136gPIZFjatw/zAqckBgsjtiqeo+QVqw2JR2flo F7PLWh8kYfv1+iA+vzCcoEwuEkQJGaanD3J+nhwh+CtwXe9SUELXVe/xbMt5YoZ4o/ +eIe6qZ2FoNcBe148w01zL5LKhsI33TPMlDsaWXTXMEQD4idUiCNXdTqLbV6eC22k3 G5AbW73hzqPUpuCHfq8fhTMG0bmejV7OlqAfimasscg7SXCO/nfOdstNz3opfQe/W9 v1ePHfcdbGvFQ== From: Vladimir Zapolskiy To: Neil Armstrong , Jessica Zhang , Ritesh Kumar , Rob Herring , Krzysztof Kozlowski , Bjorn Andersson , Konrad Dybcio Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , dri-devel@lists.freedesktop.org, Conor Dooley , devicetree@vger.kernel.org, Abel Vesa , linux-arm-msm@vger.kernel.org Subject: [PATCH v2 06/10] drm/panel: novatek-nt36672e: Verify the number of D-PHY data lanes Date: Thu, 26 Nov 2026 15:45:04 +0200 Message-ID: <20261126134508.320700-7-vz@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20261126134508.320700-1-vz@kernel.org> References: <20261126134508.320700-1-vz@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 The NT36672E panel in the MIPI D-PHY mode is connected over 4 data lanes, a mismatching device tree description results in a panel, which won't work. Get the PHY type of the DSI link from the PHY of the DSI host, and get the number of data lanes from the DSI host endpoint to check the match. Signed-off-by: Vladimir Zapolskiy --- .../gpu/drm/panel/panel-novatek-nt36672e.c | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36672e.c b/drivers/gpu/drm/panel/panel-novatek-nt36672e.c index 4836751b7d5d..cc3f4d251f55 100644 --- a/drivers/gpu/drm/panel/panel-novatek-nt36672e.c +++ b/drivers/gpu/drm/panel/panel-novatek-nt36672e.c @@ -5,14 +5,18 @@ #include #include #include +#include #include #include #include +#include #include #include