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: 13612289 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D07A01487F2 for ; Sun, 31 Mar 2024 20:29:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711916957; cv=none; b=ReSn0OlGaQj6P0M6S0nS09ussOXtycIH4bm3DW1HKXZSm2FVADM62zgPG+Of+nKVBY3724apia3ZCOxL3OZT3cqEOu2xIF5gIUTpLC+ufRCmauQjAddSyNuWuJ7vAdH86oE8GvDy66DYI85tsIEa+VyJDCd/d2OWLIWhaBUzuQs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711916957; c=relaxed/simple; bh=wCR/6yF/tFKpX9FJhDNMZrhn6GuaANblaXvQmkNgmv4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UjlTJcE4rYh73XVU6MAV4KpTUwyq/USxScHPkcPjf7ZGJ4+RV+/VoYSdvYwkcFZzyeN9T/SQ2ul5jVlihn1K+VkJ7rVtG3m5BJi1+RwOjNJEE5dgnxoN8R1zzYNq0jbgWVdHueYrkWSFRqWB85M2aJp02zDMnwhQSluwpQ5PvKg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=QHKfXajL; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="QHKfXajL" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-513e6777af4so5755867e87.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.linux.dev; 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=QHKfXajLFpDosUPYjkWzIsWxiL1/8jQNw1NEazkiKj98FAEFoATrRgnrR3Ay2Wnmsq Q97DHH+hvpMe+/XPEpN4kZSFKIBKfcpW2uO5COGvI//2B+GDy/w7FaspYIZx+uVFIDOj 3HWJU8gAZulxtK2unB79uhvAs5laMKj85AFTFn8A4eEPlmiK0jnG3qlgpsJvb65rKeAN 0aFmjC6QLCzb6Kh4lRQLIz2Cm1T5ofjv3v3YBw9KVJfPw0n6PTr0OjbkIhcfU8JFip/2 RtJj9hFOZwMzezFiduLDv3GMYA5ItZdPjTJnz7rs2R4pl1/zy82o+Dj9pUr1VtTxlT6f Rpog== 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=TZfpSx6cM9HEhXPZA6D764vLt6Ws1grOraIaqUUaJmgxAbPf1w98IyY4oiFiOeaC9i EVOgtC9ZmK0tDS733qZGmqx+0FAxy5kVUuF1qc95y/X3YAZJmhEnZGg8n6hpYD83kf8t uma7tmduR+KI1cS+gM+CkjU5SuCv+i7fUvT6BiynzE1aBcBICSlWrj6vOqYLqK4iOjeg kUMHXVjs0X12bpVdWUc3ChYQiT9Mpfnt3yigfDO1G3GJRGnylLj1aNG5bN4Xv8GXmZZ/ UlRfMTPhtpHu5MgRF5aW7uzFz5xLM5Xn2oVGh33YUxvM2lnHR/lnhC1ES9mu+ZdytvLp h8ng== X-Forwarded-Encrypted: i=1; AJvYcCVYmz63iDMC1uz9mHPXDNdmu4fCOX/+8baSLo8mi2evde4+NsVNucXRTrEjyvj28R7xP509maBRCvrBylKMA8LU1crP X-Gm-Message-State: AOJu0YyRMNsmIbAJnvEquiq0Y+hzSVSIQ1MKJlQYz9+p1EF1GpdjYEQx wOwQl839OO9qHOOipSp7IE8JUdNbhtFiNtJ5DnmDZ25lH0pL2ZbGGW6hmOoYoeo= 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 Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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 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