Message ID | 20240311-drm-imx-cleanup-v1-0-e104f05caa51@linaro.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 A167EC54E67 for <linux-arm-kernel@archiver.kernel.org>; Mon, 11 Mar 2024 11:21:08 +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:MIME-Version:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lFjUrAWj5uY7INks/cmAxfo2Wj+AAVabR+Qhw1TRi8k=; b=u1LXNxceQ0ZxrE 0Pq9jvKa3P1Ms+V0XsWjctt/MT/PXvTnMMrQN7Im45Qu9j5Rkqa+46+pg8jOMVpqPjIrrZq8PUaht YD47xP+GSx0vpbXzcrBSzdPxtEnwblSGOXs8G/lUmzXQEstS8biIE/XcqOYzwnbsLPkyxPfj6Wn5E MXezeFR8dNGhhKG5zjCSqXXoGER8Sfvoh4tcALfxJDiw2zLOTqL8aZ+H1m+IhvU8/2wAHniN5o1ky Stv1eUYhysFCO/wTMfKEDiI4x8XqUnQWYigvmxUMomE7iuqlP28BvDzu0hiw1kHl1meFuZ/nz22dV AEuC+SQ+kWud6j8sBXtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdi1-00000001Fg7-1TFA; Mon, 11 Mar 2024 11:20:45 +0000 Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rjdhy-00000001Fdy-0BGX for linux-arm-kernel@lists.infradead.org; Mon, 11 Mar 2024 11:20:43 +0000 Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2d27184197cso54314751fa.1 for <linux-arm-kernel@lists.infradead.org>; Mon, 11 Mar 2024 04:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710156038; x=1710760838; darn=lists.infradead.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=FfwYDRgWRQCKC9tq+bJEC9b6/f6fAu33v/gxpRKZsjU=; b=FpIlK46Q7Rr65vrsg2w8xOvFul4eH2//nhV8Yxj5rdwb60Wwkn37Negyq7cpDEqw+T JgicAXibNTe4aNSt6KNk/IaAiDXK+s0wD2RJjeOipX3TuWqpKbUk55Ge8+68Eun6mEug F+auhsX6SGvdzFkVle1aGzqftDN8n2FfZL5mc3Ks4k0PDU5ggnFBzjJOY2BTPxRRLivK iwnYRMDD62YULThH7CKwh8ZVAmob9qe1+8xFqNoIcGuCh2knu8a7NOGZErrZZKG4HmWN +O0U64n8UyOrJ3T6JX+Pm5xygs7n0yiU+q9sM1Tv4mH1RDh4Kl4/O+SGIwoSEpkQ67Ef 50+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710156038; x=1710760838; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FfwYDRgWRQCKC9tq+bJEC9b6/f6fAu33v/gxpRKZsjU=; b=s+f+qNqRvd0s9K7HiHjOYLhkwv7tZUlvUPU19TetkYDzjKqqMw29ImLynEuWtULd3m HcrZ3WlCmzKgr/v430kiMESr6Ko1yQtvxPoc5325sF0LYPqsN3LpJmE1TlPCuM9503dy EYCm6aMSz+LNVB08hdhjLPPChoeSWzfcclw/yD4LDq/OtAG++TEqD6j3njhzYEO6H1Zw P0ZSiNfY/Xt2nH9MWr2Vs3O+5HmLXBSiLdGHzAOigA9XUIL0vr08uiBLuYdOjY7RhmBE sBGUjPZ0klhMDanvhwHgd1Eix5ADXaxWvSpCiXXaL1BRrFliwAJaG9h7YIi5s6SkJbTu 48dQ== X-Forwarded-Encrypted: i=1; AJvYcCUQwxu5uS68jrVWo1i579Z9dIz0twiG/aPCoD0QY0cAWm6COhVqXLOTxA6aK+1227j1c6aBIw7IuOHbG3BFTep+9JOx000QLjCg4xHnI0Bt0fHtF2M= X-Gm-Message-State: AOJu0YxdyL4apgJI0+ScwjL+G83cktN5B2oJNqTmirUHV6CdP/pGJ4Un I8n+wQivg9moeIFlaVJXXkl/WmJDOAULXy51LqxEUq3kctx2xvO2VDr68Q9SAwo= X-Google-Smtp-Source: AGHT+IE0sz+dkhtvBYuoYNh/0wTQoTbPhTPeVyMtJ5WatKWJgn54X66Z6d9IlfqQEg+MXbPnlCuzFA== X-Received: by 2002:a05:651c:141e:b0:2d3:3e83:8309 with SMTP id u30-20020a05651c141e00b002d33e838309mr3452454lje.19.1710156037994; Mon, 11 Mar 2024 04:20:37 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 04:20:37 -0700 (PDT) From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Subject: [PATCH 00/12] drm/imx/ipuv3: switch LDB and parallel-display driver to use drm_bridge_connector Date: Mon, 11 Mar 2024 13:20:08 +0200 Message-Id: <20240311-drm-imx-cleanup-v1-0-e104f05caa51@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAOno7mUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDY0MD3ZSiXN3M3Ard5JzUxLzSAl1DA3MTs0TLJHPDNFMloK6CotS0zAq widGxtbUAf3w1x2EAAAA= To: Philipp Zabel <p.zabel@pengutronix.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Maarten Lankhorst <maarten.lankhorst@linux.intel.com>, Maxime Ripard <mripard@kernel.org>, Thomas Zimmermann <tzimmermann@suse.de>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com> Cc: Chris Healy <cphealy@gmail.com>, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2450; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=n56X+wpwlkTkcmdlEomphHkA7aK1W8E6wSSQhWpP62Y=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBl7ukDVZSYHTCgMsmS4v4TYL68h/sP9ZvVQx2+K WAeQfwMw8WJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZe7pAwAKCRCLPIo+Aiko 1eQBB/4yvL/fFt6doOLRiXjbqwqNX7AfOuaa/363KNFHGQ5n/BSZNc2diRkK58WrhBoVvSNjmKb nLi9AeiIX7UnbA+9eNf+5iKqUx9xCF9GH/bg8hJOImmTFWFCf51l9pgWA/RY+SZtYASOh0KHgC+ 6mAV7IF5VwaWzxvTQD2VlpgmjifM9ej+HihY7fEC/pN75hjo1atDvPsDo0QchEy9gDrhvRUa03B 41hKMCw5y/E+/L3V5LQlWbZZcsyxkFq1jm58+6gPjKDd1ZTbU0uyNzu+Q9xWXpcTsERInzAboRd PiW0SIxAo2E5/DJIUWfJNdqOM9TX9/8U+sohAdQv1Y/pJkds 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_042042_133931_5F0A81F9 X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
drm/imx/ipuv3: switch LDB and parallel-display driver to use drm_bridge_connector
|
expand
|
The IPUv3 DRM i.MX driver contains several codepaths for different usescases: both LDB and paralllel-display drivers handle next-bridge, panel and the legacy display-timings DT node on their own. Drop unused ddc-i2c-bus and edid handling (none of the DT files merged upstream ever used these features), switch to panel-bridge driver, removing the need to handle drm_panel codepaths separately and finally switch to drm_bridge_connector, removing requirement for the downstream bridges to create drm_connector on their own. This has been tested on the iMX53 with the DPI panel attached to LDB via LVDS decoder, using all possible usecases (lvds-codec + panel, panel linked directly to LDB node and the display-timings node). Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> --- Dmitry Baryshkov (12): dt-bindings: display: fsl-imx-drm: drop edid property support dt-bindings: display: imx/ldb: drop ddc-i2c-bus property drm/imx: cleanup the imx-drm header drm/imx: parallel-display: drop edid override support drm/imx: ldb: drop custom EDID support drm/imx: ldb: drop custom DDC bus support drm/imx: ldb: switch to drm_panel_bridge drm/imx: parallel-display: switch to drm_panel_bridge drm/imx: add internal bridge handling display-timings DT node drm/imx: ldb: switch to imx_legacy_bridge / drm_bridge_connector drm/imx: parallel-display: switch to imx_legacy_bridge / drm_bridge_connector drm/imx: move imx_drm_connector_destroy to imx-tve .../bindings/display/imx/fsl-imx-drm.txt | 2 - .../devicetree/bindings/display/imx/ldb.txt | 1 - drivers/gpu/drm/imx/ipuv3/Kconfig | 15 ++ drivers/gpu/drm/imx/ipuv3/Makefile | 2 + drivers/gpu/drm/imx/ipuv3/imx-drm-core.c | 7 - drivers/gpu/drm/imx/ipuv3/imx-drm.h | 19 +- drivers/gpu/drm/imx/ipuv3/imx-ldb.c | 201 ++++----------------- drivers/gpu/drm/imx/ipuv3/imx-legacy-bridge.c | 85 +++++++++ drivers/gpu/drm/imx/ipuv3/imx-tve.c | 8 +- drivers/gpu/drm/imx/ipuv3/parallel-display.c | 133 ++------------ 10 files changed, 174 insertions(+), 299 deletions(-) --- base-commit: 1843e16d2df9d98427ef8045589571749d627cf7 change-id: 20240310-drm-imx-cleanup-10746a9b71f5 Best regards,