Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp748646ybi; Fri, 26 Jul 2019 19:06:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2yjmwDIrbnywvkIc1ddW2XTDkRd+agoZuuvstdt6vh3SCxoBZuAU7QqSfcnHA7tzZ1cZn X-Received: by 2002:a17:902:a606:: with SMTP id u6mr92177971plq.275.1564193182525; Fri, 26 Jul 2019 19:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564193182; cv=none; d=google.com; s=arc-20160816; b=Tknjdnasgo7esf6P/G9o90vQve7zMkZSNp+DR0Cotn0xlF8VnPOhqWbUOC5pG1If7t XlCeXuodw2nAy13CMGAZGy1yD+jd/fgYXEZB5pRpmx64POBgCKpTUcNz21HGX3qpjzvt +2+xMmXmQwtHZE5r0816gjtRxaluz2PuZNVI1a2YOCPJWOGPYiYHoQL9bdwreTX7KxXT sPBRBbG/Hvkk1FnXA/fKrEemyylToe6bBJPCUGz4TlEprYVMPc6Vie/VsDnb6bqxLnt1 IoZtT1LEGI5R/qrFB+s2Rjye4mkN0ceMLWjFFJL8YJL6XzDBSw/yQYkNydy1yPJFvNyf jovw== 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:dkim-signature; bh=qz5i7tweR9Foxb2hQzTsbEiiY3mJR2hbXf1THn7U78c=; b=EzjEOVpoLn4OP8QlQ9EXXE/95KI6NAux53ODzeRxWXEIJuLu8r1Tp/RYu8x/Y57EjS sluXdGxQ0gp63SqI31koNQHXhzqXlBhUoA6URln2xGiNkRXtHOex9I/k23t8XzT34wqg MGX4Sw/UW03w/bUgFuKWCeEtlPii5jY0cDoBfeeXiF9IT2/F5yMyq6jWReel2KsI0eJO 3VYWOVLXScJ8BKPW7zTXNLHc21LgFQzJTAOAp68KDvNYnnrB6oywyxd17BxVclB3ksMI RigqLwD5kN98blT+fuhG/G4ccev/bBzdC+egv0X6NLRNhryCQDxHbCmdkhS7b4N0KECB k3dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=IHOZFXWK; 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 h1si18809700pls.183.2019.07.26.19.06.07; Fri, 26 Jul 2019 19:06:22 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=IHOZFXWK; 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 S1727296AbfG0B50 (ORCPT + 99 others); Fri, 26 Jul 2019 21:57:26 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:52528 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfG0B50 (ORCPT ); Fri, 26 Jul 2019 21:57:26 -0400 Received: from pendragon.ideasonboard.com (om126200118163.15.openmobile.ne.jp [126.200.118.163]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 1C7D12E7; Sat, 27 Jul 2019 03:57:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1564192643; bh=uI0bqTAW3t85cdKpK+aJtIq1FdKPSDyFmGcCRL27uww=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IHOZFXWK6i11B9Y5Yp8r4rV/SwPIw8+i8amu6nqTFpW25jE/5BxkgNnqkQ8LXj4ep f0OWUvcY17E0rmisWI5XM2/NqWyAbteTdPbnQCLX+oMpNFeNCrIBv9Sz7/noGheFp4 uB5GA8vnAmhDHDWaaqcza7FOFKEeB9Vcn5UbDOv4= Date: Sat, 27 Jul 2019 04:57:16 +0300 From: Laurent Pinchart To: Guido =?utf-8?Q?G=C3=BCnther?= Cc: David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andrzej Hajda , Neil Armstrong , Jonas Karlman , Jernej Skrabec , Lee Jones , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Robert Chiras Subject: Re: [PATCH 2/3] dt-bindings: display/bridge: Add binding for IMX NWL mipi dsi host controller Message-ID: <20190727015716.GA4902@pendragon.ideasonboard.com> References: <70a5c6617936a4a095e7608b96e3f9fae5ddfbb1.1563983037.git.agx@sigxcpu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <70a5c6617936a4a095e7608b96e3f9fae5ddfbb1.1563983037.git.agx@sigxcpu.org> 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 Guido, Thank you for the patch. On Wed, Jul 24, 2019 at 05:52:25PM +0200, Guido Günther wrote: > The Northwest Logic MIPI DSI IP core can be found in NXPs i.MX8 SoCs. > > Signed-off-by: Guido Günther > --- > .../bindings/display/bridge/imx-nwl-dsi.txt | 89 +++++++++++++++++++ > 1 file changed, 89 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/bridge/imx-nwl-dsi.txt > > diff --git a/Documentation/devicetree/bindings/display/bridge/imx-nwl-dsi.txt b/Documentation/devicetree/bindings/display/bridge/imx-nwl-dsi.txt > new file mode 100644 > index 000000000000..288fdb726d5a > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/bridge/imx-nwl-dsi.txt > @@ -0,0 +1,89 @@ > +Northwest Logic MIPI-DSI on imx SoCs > +===================================== There's one too many =. > + > +NWL MIPI-DSI host controller found on i.MX8 platforms. This is a > +dsi bridge for the for the NWL MIPI-DSI host. s/dsi/DSI/ s/for the for the /for the / > + > +Required properties: > +- compatible: "fsl,-nwl-dsi" > + The following strings are expected: > + "fsl,imx8mq-nwl-dsi" > +- reg: the register range of the MIPI-DSI controller > +- interrupts: the interrupt number for this module It's not just a number but a specifier (with flags). > +- clock, clock-names: phandles to the MIPI-DSI clocks That should be phandles and names. > + The following clocks are expected on all platforms: Expected or required ? s/ on all platforms// as you only support a single platform. > + "core" - DSI core clock > + "tx_esc" - TX_ESC clock (used in escape mode) > + "rx_esc" - RX_ESC clock (used in escape mode) > + "phy_ref" - PHY_REF clock. Clock is managed by the phy. Only > + used to read the clock rate. > +- assigned-clocks: phandles to clocks that require initial configuration > +- assigned-clock-rates: rates of the clocks that require initial configuration > + The following clocks need to have an initial configuration: > + "tx_esc" (20 MHz) and "rx_esc" (80 Mhz). I think those two properties are out of scope for these bindings. > +- phys: phandle to the phy module representing the DPHY > + inside the MIPI-DSI IP block > +- phy-names: should be "dphy" > + > +Optional properties: > +- power-domains phandle to the power domain > +- src phandle to the system reset controller (required on > + i.MX8MQ) Should this use the standard resets property ? > +- mux-sel phandle to the MUX register set (required on i.MX8MQ) > +- assigned-clock-parents phandles to parent clocks that needs to be assigned as > + parents to clocks defined in assigned-clocks This property is also out of scope. > + > +Example: > + mipi_dsi: mipi_dsi@30a00000 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "fsl,imx8mq-nwl-dsi"; > + reg = <0x30A00000 0x300>; > + clocks = <&clk IMX8MQ_CLK_DSI_CORE>, > + <&clk IMX8MQ_CLK_DSI_AHB>, > + <&clk IMX8MQ_CLK_DSI_IPG_DIV>, > + <&clk IMX8MQ_CLK_DSI_PHY_REF>; > + clock-names = "core", "rx_esc", "tx_esc", "phy_ref"; > + assigned-clocks = <&clk IMX8MQ_CLK_DSI_AHB>, > + <&clk IMX8MQ_CLK_DSI_CORE>, > + <&clk IMX8MQ_CLK_DSI_IPG_DIV>; > + assigned-clock-parents = <&clk IMX8MQ_SYS1_PLL_80M>, > + <&clk IMX8MQ_SYS1_PLL_266M>; > + assigned-clock-rates = <80000000>, > + <266000000>, > + <20000000>; > + interrupts = ; > + power-domains = <&pgc_mipi>; > + src = <&src>; > + mux-sel = <&iomuxc_gpr>; > + phys = <&dphy>; > + phy-names = "dphy"; > + status = "okay"; > + > + panel@0 { > + compatible = "..."; > + port { > + panel_in: endpoint { > + remote-endpoint = <&mipi_dsi_out>; > + }; > + }; > + }; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + mipi_dsi_in: endpoint { > + remote-endpoint = <&dcss_disp0_mipi_dsi>; > + }; > + }; > + port@1 { > + reg = <1>; > + mipi_dsi_out: endpoint { > + remote-endpoint = <&panel_in>; > + }; > + }; > + }; The ports should be documented too. There are multiple example bindings available. > + }; -- Regards, Laurent Pinchart