From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07E75C2BC73 for ; Wed, 4 Dec 2019 12:06:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id BD20720656 for ; Wed, 4 Dec 2019 12:06:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N0SFz7Lx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BD20720656 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sigxcpu.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qR7jhSAY+pxJ27ZJq9lIw9CYgWJTJv13wDj6xn81mQQ=; b=N0SFz7Lx8Z64LH TIse5CTmI4Q/GbCD+GmEBe/ouUruPY17bFmHLSA2m0xEnEM0W+SVXtkJt2VrrcHYkVmUwVz9vC6gC i9UlB611tDVyyDKXfAWeeW/WKb9/MaOq8AytoV5kSl+yvV8M2DczORDfX/XB5ZL8POGfclb1Wepwr Hw0az5ZLGzZommnnu/QiCn/5W88ro1TDykdJtpdf2GAriNbJsuTXyq4LR0h672Hj/LZbnNV+Vokki sLsCwoDPzV5Q+Sdk2MCHAmU/o14c5yWePzfYln7t0t3QFHwqICaK/3KexIt6tWf99h/fo2qLjm1V8 Vl4mhPFVAfomvKLkTZRg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1icTQn-0005S0-92; Wed, 04 Dec 2019 12:06:57 +0000 Received: from honk.sigxcpu.org ([24.134.29.49]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1icTQf-0005Qt-V1 for linux-arm-kernel@lists.infradead.org; Wed, 04 Dec 2019 12:06:54 +0000 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id B1417FB05; Wed, 4 Dec 2019 13:06:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K5KA9HjBBtht; Wed, 4 Dec 2019 13:06:39 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id B70D64964C; Wed, 4 Dec 2019 13:06:38 +0100 (CET) Date: Wed, 4 Dec 2019 13:06:38 +0100 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Robert Chiras Subject: Re: [EXT] [PATCH v8 2/2] drm/bridge: Add NWL MIPI DSI host controller support Message-ID: <20191204120638.GB18094@bogon.m.sigxcpu.org> References: <1575366594.6423.61.camel@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1575366594.6423.61.camel@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191204_040650_501795_116F21D2 X-CRM114-Status: GOOD ( 27.24 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "jernej.skrabec@siol.net" , "kernel@pengutronix.de" , "sam@ravnborg.org" , "narmstrong@baylibre.com" , "airlied@linux.ie" , "festevam@gmail.com" , "s.hauer@pengutronix.de" , "jonas@kwiboo.se" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "a.hajda@samsung.com" , "robh+dt@kernel.org" , "arnd@arndb.de" , dl-linux-imx , "daniel@ffwll.ch" , "shawnguo@kernel.org" , "lee.jones@linaro.org" , "linux-arm-kernel@lists.infradead.org" , "Laurent.pinchart@ideasonboard.com" Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Robert, On Tue, Dec 03, 2019 at 09:50:03AM +0000, Robert Chiras wrote: > Hi Guido, > = > Since your last revision sent, I've done more tests here and found a > few more improvements that could be added to this driver. > See inline. > = > On Lu, 2019-12-02 at 20:35 +0100, Guido G=FCnther wrote: > > Caution: EXT Email > > = > > This adds initial support for the NWL MIPI DSI Host controller found > > on > > i.MX8 SoCs. > > = > > It adds support for the i.MX8MQ but the same IP can be found on > > e.g. the i.MX8QXP. > > = > > It has been tested on the Librem 5 devkit using mxsfb. > > = > > Signed-off-by: Guido G=FCnther > > Co-developed-by: Robert Chiras > > Signed-off-by: Robert Chiras > > Tested-by: Robert Chiras > > --- > > =A0drivers/gpu/drm/bridge/Kconfig=A0=A0=A0|=A0=A0=A016 + > > =A0drivers/gpu/drm/bridge/Makefile=A0=A0|=A0=A0=A0=A03 + > > =A0drivers/gpu/drm/bridge/nwl-dsi.c | 1230 > > ++++++++++++++++++++++++++++++ > > =A0drivers/gpu/drm/bridge/nwl-dsi.h |=A0=A0144 ++++ > > =A04 files changed, 1393 insertions(+) > > =A0create mode 100644 drivers/gpu/drm/bridge/nwl-dsi.c > > =A0create mode 100644 drivers/gpu/drm/bridge/nwl-dsi.h > > = > > diff --git a/drivers/gpu/drm/bridge/Kconfig > > b/drivers/gpu/drm/bridge/Kconfig > > index 34362976cd6f..6fb534f55d22 100644 > > --- a/drivers/gpu/drm/bridge/Kconfig > > +++ b/drivers/gpu/drm/bridge/Kconfig > > @@ -65,6 +65,22 @@ config DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0to DP++. This is used with the i.MX6 i= mx-ldb > > =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0driver. You are likely to say N here. > > = > > +config DRM_NWL_MIPI_DSI > > +=A0=A0=A0=A0=A0=A0=A0tristate "Northwest Logic MIPI DSI Host controlle= r" > > +=A0=A0=A0=A0=A0=A0=A0depends on DRM > > +=A0=A0=A0=A0=A0=A0=A0depends on COMMON_CLK > > +=A0=A0=A0=A0=A0=A0=A0depends on OF && HAS_IOMEM > > +=A0=A0=A0=A0=A0=A0=A0select DRM_KMS_HELPER > > +=A0=A0=A0=A0=A0=A0=A0select DRM_MIPI_DSI > > +=A0=A0=A0=A0=A0=A0=A0select DRM_PANEL_BRIDGE > > +=A0=A0=A0=A0=A0=A0=A0select GENERIC_PHY_MIPI_DPHY > > +=A0=A0=A0=A0=A0=A0=A0select MFD_SYSCON > > +=A0=A0=A0=A0=A0=A0=A0select MULTIPLEXER > > +=A0=A0=A0=A0=A0=A0=A0select REGMAP_MMIO > > +=A0=A0=A0=A0=A0=A0=A0help > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0This enables the Northwest Logic MIPI DSI H= ost controller > > as > > +=A0=A0=A0=A0=A0=A0=A0=A0=A0for example found on NXP's i.MX8 Processors. > > + > > =A0config DRM_NXP_PTN3460 > > =A0=A0=A0=A0=A0=A0=A0=A0tristate "NXP PTN3460 DP/LVDS bridge" > > =A0=A0=A0=A0=A0=A0=A0=A0depends on OF > > diff --git a/drivers/gpu/drm/bridge/Makefile > > b/drivers/gpu/drm/bridge/Makefile > > index 4934fcf5a6f8..c3f3a43e9b8f 100644 > > --- a/drivers/gpu/drm/bridge/Makefile > > +++ b/drivers/gpu/drm/bridge/Makefile > > @@ -16,4 +16,7 @@ obj-$(CONFIG_DRM_ANALOGIX_DP) +=3D analogix/ > > =A0obj-$(CONFIG_DRM_I2C_ADV7511) +=3D adv7511/ > > =A0obj-$(CONFIG_DRM_TI_SN65DSI86) +=3D ti-sn65dsi86.o > > =A0obj-$(CONFIG_DRM_TI_TFP410) +=3D ti-tfp410.o > > +obj-$(CONFIG_DRM_NWL_MIPI_DSI) +=3D nwl-dsi.o > > =A0obj-y +=3D synopsys/ > > + > > +header-test-y +=3D nwl-dsi.h > > diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c > > b/drivers/gpu/drm/bridge/nwl-dsi.c > > new file mode 100644 > > index 000000000000..023191894fe4 > > --- /dev/null > > +++ b/drivers/gpu/drm/bridge/nwl-dsi.c > > @@ -0,0 +1,1230 @@ > > +// SPDX-License-Identifier: GPL-2.0+ > > +/* > > + * i.MX8 NWL MIPI DSI host driver > > + * > > + * Copyright (C) 2017 NXP > > + * Copyright (C) 2019 Purism SPC > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > +#include