From nobody Mon Apr 6 10:43:34 2026 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 D9A023A9017 for ; Thu, 2 Apr 2026 09:29:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775122175; cv=none; b=XIYrgazsbwVUgYZdD0xqiQc/P3Aev8o0M1NRUS6P4MA4FD0iZJBbrm8WYBlq6T+bKkSj9zyGaRJT/bwuQCX0o640fkMuA2zhqx2dVaOkB57iGN26sAM+vz9CUId8man3JIFtHtN9jEiYREag494LxSGICbOdi6NUjmd2ifnfS0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775122175; c=relaxed/simple; bh=GIdP0F+pae3NRyR+49u9Bf5LZaZ6S/KLZ2oy+LDaiF4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TAJ9DtiMY2QD7/UKlYGdoWGtwgYmiWAdC+UhPdQQtv2wAhEx02chfAqSgZUbooCSIBVYw3TAGnk/kEOX7SDiTaUSlBXc4d0PtDuCfW8M4vB0p0VhAF8aKnGjX2Rb1O2blVpv0KJkIq9RCyeBFWf6PdKeyGRXnuxjZblH38KkiOg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Wguvos85; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Wguvos85" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id ECE5D4E428B0; Thu, 2 Apr 2026 09:29:18 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id BDC045FDEB; Thu, 2 Apr 2026 09:29:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 5FEF410450A10; Thu, 2 Apr 2026 11:29:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1775122155; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=X+H+4X9YO3ipcewDk33OUw1syajC8W/mpHu58zrzCFo=; b=Wguvos85FtP7hFlO1w79zsU2QzeInIa49kEb9DKt3uykgHq+0Lbq4Ab2fEzROzjsDVmwwY jdIT/tSPgkvwZ20u5bRSe/XbdMCPxGacdcE5nWJD9WCG4D5E0b9gtmaqwl7uKcH/6JysZ3 CvFEpU/zQVYz2unYTGxEBq8iNL7XHvHVGp5f5O38NItiGSp4gMqbmmJi9Rl+denoyyLoJz ftvbPVEhEHM6twxCctx0OeOQvIIvCLjbiZfQzwnyEro4HoNMgazRNTVHnSAtuerafFSEYo ynRy2jkLpRtaqRJOpkmZ3dlM0sEd7f/H4ICTaCU7dpoC1mBf/Upy+XUBZMLl2Q== From: Luca Ceresoli Date: Thu, 02 Apr 2026 11:26:04 +0200 Subject: [PATCH v3 09/11] drm/bridge: imx8mp-hdmi-tx-connector-fixup: show a warning when adding the overlay 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: <20260402-drm-lcdif-dbanc-v3-9-27cd247a0847@bootlin.com> References: <20260402-drm-lcdif-dbanc-v3-0-27cd247a0847@bootlin.com> In-Reply-To: <20260402-drm-lcdif-dbanc-v3-0-27cd247a0847@bootlin.com> To: Marek Vasut , Stefan Agner , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Frank Li , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Liu Ying , Rob Herring , Saravana Kannan Cc: Damon Ding , "Kory Maincent (TI.com)" , =?utf-8?q?Herv=C3=A9_Codina?= , Hui Pu , Ian Ray , Thomas Petazzoni , dri-devel@lists.freedesktop.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Adam Ford , Alexander Stein , Christopher Obbard , Daniel Scally , Emanuele Ghidoli , Fabio Estevam , Francesco Dolcini , Frieder Schrempf , Gilles Talis , =?utf-8?q?Goran_Ra=C4=91enovi=C4=87?= , Heiko Schocher , Josua Mayer , Kieran Bingham , Marco Felsch , Martyn Welch , Oleksij Rempel , Peng Fan , Richard Hu , Shengjiu Wang , Stefan Eichenberger , Vitor Soares , Luca Ceresoli X-Mailer: b4 0.15.1 X-Last-TLS-Session-Version: TLSv1.3 Describing the HDMI connector in device tree is recommended. While the overlay insertion is a workaround to avoid breaking existing devices, every dts should be improved by adding a connector description. Add a warning to make users aware as far as possible. As a warning line cannot hold all the relevant info, add a detailed comment in the code so it easy to find when the warning is seen. Signed-off-by: Luca Ceresoli Reviewed-by: Liu Ying --- Patch added in v3. Kept as a separate comment w.r.t. the patch adding the overlay to let it be added in a later moment in case we want to convert existing dts files before adding the warning. --- .../gpu/drm/bridge/imx/imx8mp-hdmi-tx-connector-fixup.c | 17 +++++++++++++= ++++ 1 file changed, 17 insertions(+) diff --git a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx-connector-fixup.c b/= drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx-connector-fixup.c index dc1736bfc3ac..f6190d86abd0 100644 --- a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx-connector-fixup.c +++ b/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-tx-connector-fixup.c @@ -44,6 +44,23 @@ static int __init imx8mp_hdmi_tx_connector_fixup_init(vo= id) if (endpoint) return 0; =20 + /* + * Boards with an HDMI connector should describe it in a device + * tree node with compatible =3D "hdmi-connector". + * + * If you see this warning, it means such a node was not found and + * a fallback one is added using a device tree overlay. Please add + * one in your device tree, also describing the exact connector + * type (the added overlay assumes Type A as a fallback, but it + * might be wrong). + * + * This node is necessary for modern DRM, where bridge drivers do + * not create a connector (see the DRM_BRIDGE_ATTACH_NO_CONNECTOR + * flag). See https://docs.kernel.org/gpu/drm-kms-helpers.html for + * more info. + */ + pr_warn("Please add a hdmi-connector DT node for imx8mp-hdmi-tx."); + dtbo_start =3D __dtbo_imx8mp_hdmi_tx_connector_fixup_begin; dtbo_size =3D __dtbo_imx8mp_hdmi_tx_connector_fixup_end - __dtbo_imx8mp_hdmi_tx_connector_fixup_begin; --=20 2.53.0