From patchwork Mon Mar 11 11:20:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13588655 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 D1E16C54E58 for ; Mon, 11 Mar 2024 11:22:35 +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=9T88WTb3VMyVWEYLShxfptTlD8aJ9JQBCupiKZEGCNg=; b=Zor+C1ygr1x+Qf nBewb7KY/Ef3+zOSgzLFg+IpRpa/JhM12GknojPvDaYU5+ueqN1JnjW7VqRDnMW/SysmAznrjEB1y cswj2N5hSAsWMSe/0KGtd0GjWuT/kFrcAhI3vWjr7M/xI0HiUR5HfKKwptzPfcHpAamf5QbllWwsj jYji8EqQTDMe2YR40k49O7ij0Syz7WP53MmvAAXk/gYIyVL6IvvgymitHzUKZ4DgCSfBkiSiImQEM qssiTuGWJVhY44xKeHMhsC45e40EpTAzKiXTcRuZJ2YUWQvZvuSesCosHZJd6RDBdF6DtopCEguWk v2Rfu6HxJpO7KQpWpG9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdjc-00000001Gfr-2Yql; Mon, 11 Mar 2024 11:22:24 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdi5-00000001Fhx-0sWy for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2024 11:20:53 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2d109e82bd0so57545021fa.3 for ; Mon, 11 Mar 2024 04:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710156047; x=1710760847; 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=QJK48DZXSr/5AkPi4/t7u5Zi6emJ5qg5sN5jW9/objc=; b=ZDZ1oNcWz2LAZ5vAMGzn2i410MH7DWC1In4VvLv5odbJZqqyTzmxfuoOvVQrXt/rhA Uva+agMVnTzgcvs9SKRpHph/kA2SZ3LQMeV9ou85XybhgA0qpDIujOVgGNlik3AgEqhx 3j1AtDHja+PwNB2M3tQwW83hSc2lB/3jT0J++axeq2KBZH/hduuHkqGo7mouQGqLE1ll pyofL4uPXiWWyNQKlF65WveCmo76ddFHOvjG895nwUVTngYKQ4Ldq0BD0vgaRH6s6/KQ /VVtRPHRPjblJQDovnKEqgxD+Ohdsfuw52e4eyf58n8tMf5aGznwaS3sVb4UCaC75gCF e17g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710156047; x=1710760847; 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=QJK48DZXSr/5AkPi4/t7u5Zi6emJ5qg5sN5jW9/objc=; b=rMRgRfpez+eN7Ww9ZxFD4AXq3IzWZkNxzz1hrhULl9JYPgKwKaKVrgmByne5lUcMDl 7kpG38Am+yeeYwHvibPzzLGAxh64TIR1yWPVhidJVObyxUP18f0HsNEkpB+v6DjevS0m 4XGxEc4b3BVA/bVy+i5HvJBQqBWUYtrIZUyARuLO2EqSy7FyiAHu3tiwZ7oZkljN+VjB Q6y6knf5bJrxCHpwXr8k43HRbZO49MAXynGPLC61Wf7BKCxPs2pJISNISz9VqaR1hyw6 Ev7kO1epzon+smy/H5oUTK7zfcfQvzOqpV4sL2ov4F/Uvq0vazhgpUiKC1bbt11RrJdW rlbA== X-Forwarded-Encrypted: i=1; AJvYcCXQSwpN3NxyCCQYW0mtwRTKW+dEK8yYut6fFGK5X5Y0hYImcA5Lbu/qWkSAiXnyuRAIphNicr2nt+B0l+tZDkjS/phMOCXV3Ma/5tCiTAtigzhO2OM= X-Gm-Message-State: AOJu0YysKu0kcIRvmgRRpKkNOITiObbfyaqc+3r0QK0YYDVas//riytG UuGqDNMrUhMRaxJCobVz0wCgZXTKyCCqaJKn51SHFOczN7zRBPJjWDD9urhuEL0= X-Google-Smtp-Source: AGHT+IG1/i8rgtxmep3hUGXbRushzFp9Ad6WkRyc/SX1zThpevPnmWtOKvna1/sbAc57cyIU7ha73A== X-Received: by 2002:a2e:9c9a:0:b0:2d2:6ed5:e45a with SMTP id x26-20020a2e9c9a000000b002d26ed5e45amr3497683lji.12.1710156047097; Mon, 11 Mar 2024 04:20:47 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id by10-20020a05651c1a0a00b002d2aa0b0d01sm1075200ljb.82.2024.03.11.04.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 04:20:46 -0700 (PDT) From: Dmitry Baryshkov Date: Mon, 11 Mar 2024 13:20:18 +0200 Subject: [PATCH 10/12] drm/imx: ldb: switch to imx_legacy_bridge / drm_bridge_connector MIME-Version: 1.0 Message-Id: <20240311-drm-imx-cleanup-v1-10-e104f05caa51@linaro.org> References: <20240311-drm-imx-cleanup-v1-0-e104f05caa51@linaro.org> In-Reply-To: <20240311-drm-imx-cleanup-v1-0-e104f05caa51@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=6822; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=mxqxcoV4ywHN4eRiFdbf9wh8Q/v6lSDoITt0+PUutvI=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBl7ukEbA1Mk28fKywnUCRBjFDy98932CZYFRLYg 6ZPZqvOgBWJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZe7pBAAKCRCLPIo+Aiko 1WAwCACB/ueqYnYQhWGKCt49o1RIVn4xuhow2xGa5GqhlntPVPDJ+hEwT7PqmHBY/VZhbwozIhr rvwmj/IIe2nh1cPtQ3t7sxdbyW/LQz8yx0SuI7xXZigMm/UrU+pQ3aPIYsuZ40vCQYL+nES4ZHN scISduv5glpkuKPLZvU0tQatrJs8KPjEbpMlahFeZz61c2HRuhhl696ARB04w2lb7x0fdSok75i 4hArju0y9yqEhbGLQy+2zJcaQlZLJIM9Td+lArfYuShT2ORrdG/DDIyGkMEEu06KpqaLrE5jNfF sQS1tu1WfKKHdp7RY5RcOIZ52BOX6UsZY0BBb/npU/hPyvA2 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-20240311_042049_523074_C99D4672 X-CRM114-Status: GOOD ( 23.28 ) 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 --- drivers/gpu/drm/imx/ipuv3/Kconfig | 1 + drivers/gpu/drm/imx/ipuv3/imx-ldb.c | 102 ++++++++++-------------------------- 2 files changed, 29 insertions(+), 74 deletions(-) diff --git a/drivers/gpu/drm/imx/ipuv3/Kconfig b/drivers/gpu/drm/imx/ipuv3/Kconfig index 119e1431177f..35518ecb1c6f 100644 --- a/drivers/gpu/drm/imx/ipuv3/Kconfig +++ b/drivers/gpu/drm/imx/ipuv3/Kconfig @@ -33,6 +33,7 @@ config DRM_IMX_LDB depends on DRM_BRIDGE select DRM_PANEL 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 74b41a507219..b29253df40ec 100644 --- a/drivers/gpu/drm/imx/ipuv3/imx-ldb.c +++ b/drivers/gpu/drm/imx/ipuv3/imx-ldb.c @@ -19,12 +19,10 @@ #include #include -#include