From patchwork Sun Jun 2 12:04:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13682815 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 02ABAC25B74 for ; Sun, 2 Jun 2024 12:05:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zwZs2NYVAVBJe5kfwT9nu5Yevv/j2CiIkmfbz/Oiaz8=; b=iFaa9vRo5RerzJ Qqi89Pg1sI/xxL7UKiTkr5cu8X5QTatqeWX+UY64y79DD9FOtwznt7Dt5l/iA1+O2AzCoTfdYR2Ih 5sCuTQlBqtdwid3SkuFGkSZa+zblinFCDGRIMimpr3crgLOIKk+TQBu1gOcnNz70JClPmv9orJB+U /4pvNjnE1IY+9IX2j+R1i5n9f3Tsx2P/9GZdU2q5fEz5YkFcWnRv1dG7/xrrqQYzWSOoEDyLqs/VE oinRmo2NJbYBdAlluxXxu1S2G6lVyop22XEKgxBJvBy/Acux5IrP6TLhwIJKnrRAE9HrNh4nQp9E8 OntioWLV518sk/hs2pcg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sDjxc-0000000EBix-0Huc; Sun, 02 Jun 2024 12:05:16 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sDjxI-0000000EBOG-1DwG for linux-arm-kernel@lists.infradead.org; Sun, 02 Jun 2024 12:04:58 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5295e488248so3745976e87.2 for ; Sun, 02 Jun 2024 05:04:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717329895; x=1717934695; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Psv1wSWeGLezc3EhvyN1NOaGwwYnkeJXu6K8/l6sJNc=; b=fjDQODEq7QsbyBJVEYT9n6PWzUobfghI6UtoLtA4fg0CHuuYe4e3vULO4CFu7S5mMV qpVj9HEferKAFsVsh8T2Pt7QT4NEtdP6r/t5ccLOTTTU1rcqC5e4/o7YTEGexnX/Cbif N/FRcYX/U1DpHoIIFV5IjDsB13jQ1KmwjQNA3fs8lm9i87hVkrC6c2Lgpn4Sm7Qt5D55 KtK37tMh1GPXbQ1HKzRzbiYX+mtZMeXU13/PQ5py3lG4RTO7zoxJLGvMig+YyHEzRs5W z+fmoIX30glAbhuwsj6yTj9If8+BDjBkM86AzcfT7OsRYHtUhkYxSPfoBK2f6cYFAdxd 8JnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717329895; x=1717934695; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Psv1wSWeGLezc3EhvyN1NOaGwwYnkeJXu6K8/l6sJNc=; b=HU0/FPX1n01Drqagr8OyCSSKzgdLllH9o4vTgbKN3kDbO/uRy+9nf4T5HGmQdKP06j gNupYMPv0BziTp1j/uQgGN1kB07ftLlHprgg0dWTywseurTATf5YQ/o+YBrxcYwC/UXZ wqyHXb8c0dY83Kt6JoHIH4JUv037Lbb6dofvrxtdnsC0T8YlBPpH+swRmlN+dNgwE8mk b2GnUhAA+zDwqGL32kIoFpDIQlxaq3yWvseBH8qEkPJnLOZSMJwUEx7T4y7q46Z2two5 42Szere43x0T7zcRhlQEdnD0iJ4dEZhNRnbhRkHj7VSBAraWcnK2bYyz5iL8yrPvU1tq UM7w== X-Forwarded-Encrypted: i=1; AJvYcCWnVe1qdC5XBBe0xQwd9WYCu8UZI6gUc854jiwKeV1RbZWvqorj/U8SoaTbsSWdfsBSep4AEDphr6OWaUn5+6nJ3EPJ8bZXF1TRgMOqF+eDbYk5D60= X-Gm-Message-State: AOJu0YzLH04NtKUN1YKi1uGTcuEwzae4HdAnAFTJTgwwY/Tq6HL/UIQ+ /6/BXKIU91BXOCYfkR50OYlken+3yjNc7f+QzFlx0RdQd57BV4NPOEd1XbTK98Y= X-Google-Smtp-Source: AGHT+IGJ82B9sogYpCSNkw6KytA9AiqcQ8nb7GL9c08zIo2SpwP+zgiNfG/dGL4v7u4vt9Kh/PLfZA== X-Received: by 2002:a05:6512:2009:b0:523:bbcd:ed5f with SMTP id 2adb3069b0e04-52b895a0b0fmr3610131e87.33.1717329894782; Sun, 02 Jun 2024 05:04:54 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b8b56867fsm759398e87.44.2024.06.02.05.04.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jun 2024 05:04:54 -0700 (PDT) From: Dmitry Baryshkov Date: Sun, 02 Jun 2024 15:04:50 +0300 Subject: [PATCH v3 10/12] drm/imx: ldb: switch to imx_legacy_bridge / drm_bridge_connector MIME-Version: 1.0 Message-Id: <20240602-drm-imx-cleanup-v3-10-e549e2a43100@linaro.org> References: <20240602-drm-imx-cleanup-v3-0-e549e2a43100@linaro.org> In-Reply-To: <20240602-drm-imx-cleanup-v3-0-e549e2a43100@linaro.org> To: Philipp Zabel , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: Chris Healy , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=6956; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=9THPTWDLEWz30Ibjsd2CQ6FkoAikde54Swf5aa2vQIk=; b=owGbwMvMwMXYbdNlx6SpcZXxtFoSQ1pM/N0L1a5drx688Gi2D3q2woVvi7uTdaTBu5QeIf2IL wvSvs7pZDRmYWDkYpAVU2TxKWiZGrMpOezDjqn1MINYmUCmMHBxCsBEbhew/49dtK/eNoUjXP+s ttvZHzklXtkyG1Y32MkefHDQ3vH9G/f51oUypk9TVrzYp8NwLSf7kdB2pr1aGoe01k7mVP7pkLh J7ZTQQuvil5q1TW/NLrfrltw5PyPxQm7Errj/lVNmvQjUU28xeBGvwLHEudlEefPvJxsUTDe9a9 7C/31nUfNN/9sn9tf2thwxyW7cXv+r6ZfdszubuiPqgueJrQ3Puc9g+UpARJdZ7cy7NG51i1uKn wwf3mhfmT15kZ97RU5rZMtB6TVaW77/dzxondxjXdiwb/s1Gytndd17/NEGE893x3VXhkfoP2A+ WBFe5qjZwP6jWPlF95xbf1PC1ebG2btbczKoibQLbl8KAA== X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240602_050456_465207_DFFCC2D9 X-CRM114-Status: GOOD ( 22.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Use the imx_legacy bridge driver instead of handlign display modes via the connector node. All existing usecases already support attaching using the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag, while the imx_legacy bridge doesn't support creating connector at all. Switch to drm_bridge_connector at the same time. Signed-off-by: Dmitry Baryshkov Reviewed-by: Philipp Zabel --- drivers/gpu/drm/imx/ipuv3/Kconfig | 1 + drivers/gpu/drm/imx/ipuv3/imx-ldb.c | 103 ++++++++++-------------------------- 2 files changed, 30 insertions(+), 74 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3/Kconfig b/drivers/gpu/drm/imx/ipuv3/Kconfig index f083d313d1d3..5a40c878ebb0 100644 --- a/drivers/gpu/drm/imx/ipuv3/Kconfig +++ b/drivers/gpu/drm/imx/ipuv3/Kconfig @@ -32,6 +32,7 @@ config DRM_IMX_LDB select MFD_SYSCON select DRM_BRIDGE select DRM_PANEL_BRIDGE + select DRM_IMX_LEGACY_BRIDGE help Choose this to enable the internal LVDS Display Bridge (LDB) found on i.MX53 and i.MX6 processors. diff --git a/drivers/gpu/drm/imx/ipuv3/imx-ldb.c b/drivers/gpu/drm/imx/ipuv3/imx-ldb.c index bc7ad9697130..ff74018ac5cd 100644 --- a/drivers/gpu/drm/imx/ipuv3/imx-ldb.c +++ b/drivers/gpu/drm/imx/ipuv3/imx-ldb.c @@ -19,17 +19,16 @@ #include #include -#include