Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5152920yba; Tue, 30 Apr 2019 09:59:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsg52lCsoxtazKdeSpUex674ZF9rlWWdkRmJZTdcRjklwb+8jrC1Z3yhgL91+mMNlQZFTa X-Received: by 2002:a17:902:20c9:: with SMTP id v9mr70608760plg.239.1556643575305; Tue, 30 Apr 2019 09:59:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556643575; cv=none; d=google.com; s=arc-20160816; b=h90LnJdBD7aJZFyj2PjDaKd66rS1u0D1kMvd4dpGAF/uzBybQ+RAwbvOfHmAuquHO1 vU3KXKnQeRVk05pJyydxG/NbgDTldFd54m6Lrn93MLHHCat4R78dq7OUZRNXiH7yl8eI IOotBo6tqu98nyvG0f8tP7CAuf8uSi26/1NKzmF4kgfqI2nAI3bNbMz7kBvEb0GlNBzS XBIE4mt1msW0MRN8WYzXP2E1suA69SFTGDFrQQ6ouymCFpu5dDxrCqQKlt1FTCehKizp sWPKc4q7Bq9UmpSTuvdv6wAHQOOIJ7q3Jn4VTv3MmYrsdM5Fbr3huafjahR3erLfD0rE z5aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=gY012Nu/dtyhP8R8zQAclF+nNXKAuXMh+FJfXaykaog=; b=Tfcdmgclq/f1rdUNoMyIkyVIdYrqZpGvvlDpRqJ5Gkdo9sRMbQlJTZFgk1kPHG4CZ3 ryV9aIqphlxZmSd8vN9DRmvEtQovWjg5ds2sVgGB5Pt3khdOSwibL0NIaAbkIc8vX0fu zhalFLA+nXDRsUYu6vedd6yI04U2ZVZjAkG6PgeYBhXey83L+ND4PYjBFRhUDCVUpG7x Y6LUoFuvip0qS9VmKa+dKmqfvjjB0A1r55kItE/cJ7hvep9pQQqe0og9DpOeC2GRyl5S WdwAJl6icy+zumOUoQtWtePelQGZb5rlsdXELR2y1c9pWHRXZe0v2JzzqBFJpU+BwDcF vXlg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k13si10087949pfa.289.2019.04.30.09.59.18; Tue, 30 Apr 2019 09:59:35 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726401AbfD3Q6W (ORCPT + 99 others); Tue, 30 Apr 2019 12:58:22 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:48655 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbfD3Q6W (ORCPT ); Tue, 30 Apr 2019 12:58:22 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id D1245FB03; Tue, 30 Apr 2019 18:58:18 +0200 (CEST) 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 m4ARVJI0QoKf; Tue, 30 Apr 2019 18:58:17 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 15AA24027E; Tue, 30 Apr 2019 18:58:17 +0200 (CEST) Date: Tue, 30 Apr 2019 18:58:17 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Fabio Estevam Cc: Kishon Vijay Abraham I , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , Thierry Reding , Andreas =?iso-8859-1?Q?F=E4rber?= , Martin Blumenstingl , Heiko Stuebner , Johan Hovold , Lucas Stach , Abel Vesa , Li Jun , linux-kernel , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , DRI mailing list , Robert Chiras , Sam Ravnborg , Maxime Ripard Subject: Re: [PATCH v9 2/2] phy: Add driver for mixel mipi dphy found on NXP's i.MX8 SoCs Message-ID: <20190430165817.GB29626@bogon.m.sigxcpu.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fabio, On Tue, Apr 30, 2019 at 01:24:45PM -0300, Fabio Estevam wrote: > Hi Guido, > > On Tue, Apr 30, 2019 at 11:40 AM Guido G?nther wrote: > > > > This adds support for the Mixel DPHY as found on i.MX8 CPUs but since > > this is an IP core it will likely be found on others in the future. So > > instead of adding this to the nwl host driver make it a generic PHY > > driver. > > > > The driver supports the i.MX8MQ. Support for i.MX8QM and i.MX8QXP can be > > added once the necessary system controller bits are in via > > mixel_dphy_devdata. > > > > Co-authored-by: Robert Chiras > > Signed-off-by: Guido G?nther > > I wish I could test it on a imx8m-evk , but there are some other > pieces needed such as Northwest Logic driver, mxsfb changes for > supporting mx8m, OLED panel driver, etc > > Anyway, it looks good to me and I have only a few minor comments: > > > --- > > drivers/phy/freescale/Kconfig | 11 + > > drivers/phy/freescale/Makefile | 1 + > > .../phy/freescale/phy-fsl-imx8-mipi-dphy.c | 506 ++++++++++++++++++ > > 3 files changed, 518 insertions(+) > > create mode 100644 drivers/phy/freescale/phy-fsl-imx8-mipi-dphy.c > > > > diff --git a/drivers/phy/freescale/Kconfig b/drivers/phy/freescale/Kconfig > > index 832670b4952b..a111b130f9d2 100644 > > --- a/drivers/phy/freescale/Kconfig > > +++ b/drivers/phy/freescale/Kconfig > > @@ -3,3 +3,14 @@ config PHY_FSL_IMX8MQ_USB > > depends on OF && HAS_IOMEM > > select GENERIC_PHY > > default ARCH_MXC && ARM64 > > + > > +config PHY_MIXEL_MIPI_DPHY > > + tristate "Mixel MIPI DSI PHY support" > > + depends on OF && HAS_IOMEM > > + select GENERIC_PHY > > + select GENERIC_PHY_MIPI_DPHY > > + select REGMAP_MMIO > > + default ARCH_MXC && ARM64 > > I don't think that this default is a good idea. > > There are imx8m systems that do not have display, so in this case it > does not make sense to always force the build of this driver. O.k. - we can enable this based on imx-nwl later on. I've also addressed your other comments. Will wait for a v10 for a couple of days in case there's more feedback. Thanks, -- Guido