Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5290378ybl; Tue, 10 Dec 2019 03:42:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzJqoUe5ZQddrZlraYL2aOquuVMqZaqKjwt8BGvMEseINhAaxDa1TZoWQRGZX7e5FyNb39I X-Received: by 2002:a05:6830:12d0:: with SMTP id a16mr25618553otq.8.1575978127791; Tue, 10 Dec 2019 03:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575978127; cv=none; d=google.com; s=arc-20160816; b=Sn15S1nJpmfX6KRrgAgto0BTDc2tRa1ksjK1D1JXSQu3pWkdvqEqRLhrtQr9hjfIXy 6IwxDceNZbUbgr3mxP3NnNVHZIbMOOP+PEtr3fygL0096GqH95aT9staPGF7k03V8/Ie aMyiQcSRMT6jk5BbtXQJ9lCHMcLaM94ewMEXA5TkaxbB5xAWy2iCeav3IXrUXRJlAaNn uRELUq+PDblFfzo34Xqjif94XT47PwWzRt4yAUfMW2Kk2vUmy4qYC2xdxPDh1+uiSGFO 2jD5aD2YIXoKgo/0QASt1hYDtAHTaqnm+ZIK4I8E7JIcrnUcAQR8o2nvIe1BiWuvQCfz 8Mpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from; bh=vtDykWgwCIkJ/WBOGekWcWkEi0UKdBi+x4+aOUIlFxk=; b=Hi0+swLVkJPv7qqeDIonTWsei0/xseDnHOVTV/4PtZnXjEcD6XA5ooo20cPohv2I3T o1DVghWfPVkgZ0NJc7tGNZGwCei8q0MT1z7YpFJDn7OiTQ2q+6dqxeBL0oO4GfaLeuah d9UQcGJuLZ+g7o8PaBabA7NL09yYCfF/mCE8u21+Eh1TtObuQ0EPusm2kdP++r+5YihR c7KloT6eW7Bgz/zp1PXYYEtVX0Nlu/Fa43VKW8RkODG0WmHdNtRhsUfzf/q7LZsOGA/g tZK5Pu+mAwZ2F4TSBM/qmz8cqgzlciNL3qsI0Acxk/C0ocShaEvqL14Pw8EaScJSWkjg 3xjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q125si737643oib.208.2019.12.10.03.41.55; Tue, 10 Dec 2019 03:42:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727540AbfLJLlZ (ORCPT + 99 others); Tue, 10 Dec 2019 06:41:25 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56460 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727325AbfLJLlY (ORCPT ); Tue, 10 Dec 2019 06:41:24 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: aratiu) with ESMTPSA id 507ED28B5FF From: Adrian Ratiu To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-rockchip@lists.infradead.org Cc: kernel@collabora.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-imx@nxp.com, Andrzej Hajda , Laurent Pinchart , Jonas Karlman , Jernej Skrabec Subject: Re: [Linux-stm32] [PATCH v4 0/4] Genericize DW MIPI DSI bridge and add i.MX 6 driver In-Reply-To: <20191202193359.703709-1-adrian.ratiu@collabora.com> References: <20191202193359.703709-1-adrian.ratiu@collabora.com> Date: Tue, 10 Dec 2019 13:41:46 +0200 Message-ID: <871rtc2yrp.fsf@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 02 Dec 2019, Adrian Ratiu wrote: > Having a generic Synopsis DesignWare MIPI-DSI host controller > bridge driver is a very good idea, however the current > implementation has hardcoded quite a lot of the register layouts > used by the two supported SoC vendors, STM and Rockchip, which > use IP cores v1.30 and v1.31. > > This makes it hard to support other SoC vendors like the FSL/NXP > i.MX 6 which use older v1.01 cores or future versions because, > based on history, layout changes should also be expected in new > DSI versions / SoCs. > > This patch series converts the bridge and platform drivers to > access registers via generic regmap APIs and allows each > platform driver to configure its register layout via struct > reg_fields, then adds support for the host controller found on > i.MX 6. > > I only have i.MX hardware with MIPI-DSI panel and relevant > documentation available for testing so I'll really appreciate it > if someone could test the series on Rockchip and > STM... eyeballing register fields could only get me so far, so > sorry in advance for any breakage! > > Many thanks to Boris Brezillon > for suggesting the regmap solution and to Liu Ying > for doing the initial i.MX platform > driver implementation. > > This series applies on top of latest linux-next tree, > next-20191202. > > v3 -> v4: > * Added commmit message to dt-binding patch (Neil) * Converted > the dt-binding to yaml dt-schema format (Neil) * Small DT node > + driver fixes (Rob) * Renamed platform driver to reflect it's > only for i.MX v6 (Fabio) * Added small panel example to the > host controller DT binding > > v2 -> v3: > * Added const declarations to dw-mipi-dsi.c structs (Emil) * > Fixed Reviewed-by tags and cc'd some more relevant ML (Emil) > > v1 -> v2: > * Moved register definitions & regmap initialization into > bridge module. Platform drivers get the regmap via plat_data > after calling the bridge probe (Emil). I've been told I forgot to explicitly CC some of the maintainers, sorry about that! Added a few more persons to CC. > > Adrian Ratiu (4): > drm: bridge: dw_mipi_dsi: access registers via a regmap > drm: bridge: dw_mipi_dsi: abstract register access using reg_fields > drm: imx: Add i.MX 6 MIPI DSI host driver > dt-bindings: display: add i.MX6 MIPI DSI host controller doc > > .../display/imx/fsl,mipi-dsi-imx6.yaml | 136 ++++ > drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 699 +++++++++++++----- > drivers/gpu/drm/imx/Kconfig | 7 + > drivers/gpu/drm/imx/Makefile | 1 + > drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c | 378 ++++++++++ > .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 17 +- > drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 34 +- > include/drm/bridge/dw_mipi_dsi.h | 2 +- > 8 files changed, 1067 insertions(+), 207 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.24.0 > > _______________________________________________ > Linux-stm32 mailing list > Linux-stm32@st-md-mailman.stormreply.com > https://st-md-mailman.stormreply.com/mailman/listinfo/linux-stm32