Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp734436ybg; Tue, 9 Jun 2020 11:24:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzV4xkKxYI6SRRijP5crbaTUx0BLp29Xs3asqVHF48pKeW/rQ8eY7f1xcA3xYKMf79g3ENJ X-Received: by 2002:a05:6402:a42:: with SMTP id bt2mr20548797edb.42.1591727092214; Tue, 09 Jun 2020 11:24:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591727092; cv=none; d=google.com; s=arc-20160816; b=QOSK5Mrc1WCMwG7j3m5rLFgRu+7HWuESwyoA49Qk08IVnTsGMV1QPtyXCpIDmZFWCK oiqNykiRqEPrx92UFoq1eRR+1BI3Py7vvbzrCKB/uXG6ncWWO8rBGim6K6dJZyGVLUCu 85eVlb0olBTrMGfhOrcnMSrrtjK/F0DEd72EPF583/k5smpmY9juyRh6TslqkN6oZXjZ oREfBCqjlH0k/fXDq2t26LAwYa96P5HhVbfe1IhESCj9d2+rSTui5CTtgR/ZyFeHk6ds 7Em4QH8sQrb0cZxeEA6KLypoO9imuuQKOw50ZNQickTVAr+wwnS/K6eF2kyKPE1EgrEh p75g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=iWZeVvfY/yuDw+V7kfZfVeLI6SpPoHKH2qUHBvwRiVU=; b=yq9IJMqPmxmZbUG13eF9JKo9KyO6ST4ItcW/VeamjrVYrHLEjblqYMBREU0Xe1xbEs AQ4tVGD5g3YEdK6WP/PILrTe2B+puPnFOlweoqUT/EyOhEscg0xBp9R6KKSNqj3NyjuN bbSMEjHUzcJGlldtb/Bsn6PjE9Vmkn8eIoEIfj8NUDzNBUThbRAMp5io6K+CMxlcnB3A yrB5qKq8GWB/Ox+0l4KJWCXT2bCvCMSmlUMRHfEGibVs+/7o9E492VQ/Lh9whBOnXx0t 4u9MASs/nZLebEAZAC2YCF2KH2uytVnpBqO7YlE4MbQnOu47mPL94rfFQP0ALXN8Ewzg m3/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gt18si10420660ejb.467.2020.06.09.11.24.29; Tue, 09 Jun 2020 11:24:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389011AbgFISVx (ORCPT + 99 others); Tue, 9 Jun 2020 14:21:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732325AbgFIRsd (ORCPT ); Tue, 9 Jun 2020 13:48:33 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6611C05BD1E; Tue, 9 Jun 2020 10:48:33 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aratiu) with ESMTPSA id 132B52A3B67 From: Adrian Ratiu To: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, Laurent Pinchart Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Heiko Stuebner , Philippe CORNU , Yannick FERTRE , Jernej Skrabec , Andrzej Hajda , Jonas Karlman , linux-imx@nxp.com, kernel@collabora.com, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v9 00/11] Genericize DW MIPI DSI bridge and add i.MX 6 driver Date: Tue, 9 Jun 2020 20:49:48 +0300 Message-Id: <20200609174959.955926-1-adrian.ratiu@collabora.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [Re-submitting to cc dri-devel, sorry about the noise] Hello all, v9 cleanly applies on top of latest next-20200609 tree. v9 does not depend on other patches as the last binding doc has been merged. All feedback up to this point has been addressed. Specific details in individual patch changelogs. The biggest changes are the deprecation of the Synopsys DW bridge bind() API in favor of of_drm_find_bridge() and .attach callbacks, the addition of a TODO entry which outlines future planned bridge driver refactorings and a reordering of some i.MX 6 patches to appease checkpatch. The idea behind the TODO is to get this regmap and i.MX 6 driver merged and then do the rest of refactorings in-tree because it's easier and the refactorings themselves are out-of-scope of this series which is adding i.MX 6 support and is quite big already, so please, if there are more refactoring ideas, let's add them to the TODO doc. :) I intend to tackle those after this series is merged to avoid two complex inter-dependent simultaneous series. As always more testing is welcome especially on Rockchip and STM SoCs. Big thank you to everyone who has contributed to this up to now, Adrian Adrian Ratiu (11): drm: bridge: dw_mipi_dsi: add initial regmap infrastructure drm: bridge: dw_mipi_dsi: abstract register access using reg_fields drm: bridge: dw_mipi_dsi: add dsi v1.01 support drm: bridge: dw_mipi_dsi: remove bind/unbind API dt-bindings: display: add i.MX6 MIPI DSI host controller doc ARM: dts: imx6qdl: add missing mipi dsi properties drm: imx: Add i.MX 6 MIPI DSI host platform driver drm: stm: dw-mipi-dsi: let the bridge handle the HW version check drm: bridge: dw-mipi-dsi: split low power cfg register into fields drm: bridge: dw-mipi-dsi: fix bad register field offsets Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan .../display/imx/fsl,mipi-dsi-imx6.yaml | 112 +++ Documentation/gpu/todo.rst | 25 + arch/arm/boot/dts/imx6qdl.dtsi | 8 + drivers/gpu/drm/bridge/synopsys/Kconfig | 1 + drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 713 ++++++++++++------ drivers/gpu/drm/imx/Kconfig | 8 + drivers/gpu/drm/imx/Makefile | 1 + drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c | 399 ++++++++++ .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 7 +- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 16 +- 10 files changed, 1059 insertions(+), 231 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c -- 2.27.0