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: 13682788 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 gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 EEE0EC27C4F for ; Sun, 2 Jun 2024 12:05:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 28D8B10E141; Sun, 2 Jun 2024 12:05:09 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="lOrKeq1R"; dkim-atps=neutral Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9BDC310E138 for ; Sun, 2 Jun 2024 12:04:56 +0000 (UTC) Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-52b938587a4so822705e87.1 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.freedesktop.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=lOrKeq1RE9/4ddZ2xOQ2js8cmlNYBVUbSVtg76ld1++fCFAUGXwjSxlsruukfvpUkz 3eoBbu+BLTlIwr+Xa9uVjvwBKokIjBFW7qJ3Sc1QuWDw8ftZwr29oriYZPg8PTehR902 cCJiyNQ3Ipagekx9Lt1siQ7draQ/im6VrJHGbqFKQQs1TuIU+ca5+m/96Ww09OnClN9y SIlgdd5pDVr4r+ZfoKLzaadcp5MZNb9pm1FmnKE3dRsNYhCM7Ah/38sbUuah1FyV7WEO sIgJAPlAq9be0oB1WY/8i8PJmdmxE74UF+1JfO7PcsWHGwk7dNind3zN1Nwv8GoWJ/Pk yxHg== 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=gGelhjrjCIm6f0CAPAxFN8bcC8gCn7WFXteiZ1FF9XS9OxiYXm8rlhNaqdiIjB2YaN IaCPt2uTQ2qmn6Ug6AIZ50Z28uROCuLb0woUawVELpydxorNs5FmhkuAnOGWkjun5q30 s1W8K+Iw+oBLxwd3SKRleyGx0gWWBVYhUqJcrNjQiBCGCSRTr/GXvytmvSEiIb+95MbY uMMQSUPaR+23DfHPMfCIQHWhkuZ6RzDpGCsvyLKKFZHdEW8z6k6U4SO6wiTdAQq7n+8B +AJRSXfDEcGXseewV33HXUunoNrssagoxHiEBjPq2jRrFBozs9rHdEkzQt8uzL0QCtm6 PzkA== X-Forwarded-Encrypted: i=1; AJvYcCW+N8bRqKW6lQ5poiubGx+OSQaoQY4+ZY42b9RXHokyQc57OHnspUv0e4KKwgptGikHU13b3t7phcC393q59jJWmZMrXs1crxkWvO8+DGM6 X-Gm-Message-State: AOJu0YwUhXBDoEFhlDc/aDXXJHp2E3hZQqnYqA1X+37cHFg2ZKh6rBD2 xElT1EGGyRusdvFlrIQzgI8CSYneKaHOHAQpcph0RylezmcsamI4Xcu3QyFmECM= 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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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