From patchwork Sun Mar 31 20:29:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 13612298 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 A2FA9CD1292 for ; Sun, 31 Mar 2024 20:30:14 +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=Yjl2+iYzBWBRtkwSUBLgKdCgXUNOlH+oKk35igyc9P4=; b=t6GuYYuixdp670 rHCjptJU8ls1sxOSu5D53BVRkouDQkNNVUsg2W4nXK0eahzYukP9xrLioSvfzHk2WFdFOORgQNrl5 4fTu8iWdCo9TUF6uBUp7abOormOqddJkECl46tfPUz51dVkx41PXnbjWtageuONR4bGuxVbT85Ymp mkPlkuDbcEXGrxjFaNOpM2Pkq+GbqkzfZ/rTjVYbBJIz39GiyoBd/1qmogOVEGUTrKKP6b4TgMvLD DS3UKN7bm6stehZZ44K9DQEpARCpazIGihJddK16ZjoCSluw57RU91Lw5A5qzOLG85EBOiMIFRNtm 2PVt+dxGyP+VYVJE1GEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr1oX-00000006GHJ-1LKm; Sun, 31 Mar 2024 20:30:01 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rr1nn-00000006Frs-2SWg for linux-arm-kernel@lists.infradead.org; Sun, 31 Mar 2024 20:29:18 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-513e6777af4so5755869e87.2 for ; Sun, 31 Mar 2024 13:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711916954; x=1712521754; 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=DlukG6NazrK3+fQsiPdyfNNrXjjyinPofxN9OGJ7wFk=; b=LIOQfGIzcQHxUokTEtjUrBJW7vhXGNmxU3KRu+LNo8Vxo38sy7inGYa9mBO5CHQgOW k8WCIHL3I734bwTM7u3otblavccydMD29LsRSYdDDF6u934R26zcePXDRURLCOqIrzKN 3CrBLIVLeh1u2ZfN4qh8BUjGlm34scniCIoStuzdWAIcconE1dh5YzRe1cqwjbk1sNG0 OBGAuhRKS5XA0kxbRq+L/+BVFJ1Sc8ROH0A5MgAGwBuoA7655jxPB+B9F4eJ5HzlQt5x HQnc2XVBwyrQMQNW0GraV9Fed1fvFAwifYqTZ/qGd8zSjFgZ9rKAQquSzBUoLC6xIqp/ +zfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711916954; x=1712521754; 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=DlukG6NazrK3+fQsiPdyfNNrXjjyinPofxN9OGJ7wFk=; b=tHeQLH4Zq7j6fCBKsqTzA3Gc3NMvYxt36h04+pYt1bfvfbk498/FKakpzjc6aG779g vyZPLp7LdpZlhtuN6Fl/r10cNbtpC3lIaiuRa7jsc97vOIFhzNL4rKZc5ZPoEUZnQWXL FNhA8bzfXGXyv3dzsDOMGNEuJyvSEgYicuP3W2gpEnRYoUjlgDRwX6IDEm5/hug5VCGk gpIq0awJvP1pgDraLG5bPrifokVExWUj6D6HJ8yo+gNUf9XrsBENtzvdGtxbN2+XYuWV IIVHQcd/a9nBwlVXsJV5eYmvdNmlpyIEOQso1W0RKsmegCbKdfe7B29aqi1S/ip80Gz7 LxdA== X-Forwarded-Encrypted: i=1; AJvYcCUeU0mwMmHFW0c0Nnspjo6sk3HsJzERNVH3BPyeGa3ZvmEzZo6+lekGEkNEAEMxP+lPwl85wAuVq/NnGkrTYPF9IhwksdNehyQGU3L7Vf6hgAWtjrE= X-Gm-Message-State: AOJu0YygE1m+vmZ2NxtUvhvzzLoLuBBtcPLSD6bwNqrPYGuHrIqDSAxH yJBV0XEB/iCSxn4tLoXrbSrQf+dMqBVlgaELqEteLuwS9+ozscAEe+2TkhcmZVU= X-Google-Smtp-Source: AGHT+IEb9HdxB5JpSZgAa1LRt6P6K+00fdYiB+zAaY3yLBteTgO+6wYn/j1n5X7T5tM0rh52h2pkLA== X-Received: by 2002:a05:6512:695:b0:516:a2e5:c2eb with SMTP id t21-20020a056512069500b00516a2e5c2ebmr3542883lfe.6.1711916954002; Sun, 31 Mar 2024 13:29:14 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id y25-20020a197519000000b00513cfc2a7aesm1237276lfe.71.2024.03.31.13.29.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 13:29:13 -0700 (PDT) From: Dmitry Baryshkov Date: Sun, 31 Mar 2024 23:29:07 +0300 Subject: [PATCH v2 10/12] drm/imx: ldb: switch to imx_legacy_bridge / drm_bridge_connector MIME-Version: 1.0 Message-Id: <20240331-drm-imx-cleanup-v2-10-d81c1d1c1026@linaro.org> References: <20240331-drm-imx-cleanup-v2-0-d81c1d1c1026@linaro.org> In-Reply-To: <20240331-drm-imx-cleanup-v2-0-d81c1d1c1026@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=6987; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=wCR/6yF/tFKpX9FJhDNMZrhn6GuaANblaXvQmkNgmv4=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmCceQNApwF5LP12j95l7YB8CRPBqexgZsa/00t PWEfryMhquJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZgnHkAAKCRCLPIo+Aiko 1V7qB/4waoMKeeS3egXxxVBBqzflTLL0ZbaJFZM3gkb4QuurCfqrYT60s7JqiAoOrA+0c43PQnl DRj74GZ4/erLmUxV/fqwIyf5QX8E+XAvPdEc1ZVbVoAT7gP6ZVV6pzsOupRx6NnsQsuVhRDhOr3 wiuLn2eSIgu6Jc15CtZwAWjSTOWlO1T4AoOu/pKC+BwpOCRpR2zhWydzPPdTgLLazin2uhTSmHO w+c/mDfAbxuXTqWvxbUxV+Cu8SKtSbugcQMHd9w4BA44oZKqSva0ZgWcmrG/YpaJsk8TAidNZGz TWkS6Jhsg0JiXEPGZ3DgHMHIGX4lhmIx3Q3yv5iVv7WgdoQp 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-20240331_132915_863252_DBD7D43A X-CRM114-Status: GOOD ( 22.99 ) 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 | 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 8aaf2441bcef..3e5c0f4a1d0d 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..10e608f0b040 100644 --- a/drivers/gpu/drm/imx/ipuv3/imx-ldb.c +++ b/drivers/gpu/drm/imx/ipuv3/imx-ldb.c @@ -19,18 +19,17 @@ #include #include -#include