Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp944019ybl; Thu, 22 Aug 2019 07:13:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1WLCQtCa+4+Fv84FmJCyOKIQeJciNEUr3FufXI26MVvT4AECoTih164Be73ZxDtsK7FKe X-Received: by 2002:a63:6206:: with SMTP id w6mr33672447pgb.428.1566483228149; Thu, 22 Aug 2019 07:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566483228; cv=none; d=google.com; s=arc-20160816; b=lY8VANBZaDU0uBEHgrEfu6dYRj2nKG2VQF792WDx3ykH0E08l15MHoVnjySGWS7x0B 927CYgyGw31OOtGtZeQVjuTa9Rz4DQwInaicOvo8ODhCdauStsp7X3iA4IdAZ0akde+a AlnT5so9Y2ZTMuH5U5eUwF3PPRzLVOhz52QzjWcM48xdZW9NXQenNHDj85gl08Pq1K7f AweG03MrPuIRIM5T+wP0bDyBW7FFoaZnRCShbj15wqJDqkxIJh9TPp1ZZJt8t6w0yj2Q HNhOhf76UhRkf3iJ15PpiCEUvo/jkshCKpLRJMVatbB4g76I+JBTV/2/IzM2hrFoGg/s 3QMw== 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=eK1/WjVGBtYCxEcRbjazm9xtRrga3uJPvjzcv6GRZ8M=; b=DvoBeXacjrfy19Z8aShC2ybaE6V3T0kEApjL3FyOeE2FSxhVXAyDA9yTzqwln66231 Eos0lnuAaeEmlOkDb6I9zlAlz/boUjkR5EbCeKFohrlQJq7YDWKsmCltti/mdf9s4ACL L/vx1sJfvEJ41ZWPBohTAA9UpEDQAwRGSD1rJnXJndyfnC9l5MtrUVoHwRMy1RFbdRHL GSgy+pzeIIyNpY3wshjSpqTft0KfXYYt1MIp8L9RMuJlUf3we84CQBgKzcGRxu4GjO9I SdM5Ny02LQ99Wgjr/PEnFpAbXhv33W2+Mg+i8eUamJQlmRMaM6UDrP8IUfLIoc1G2Wcv P4kA== 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 c11si13688652pls.57.2019.08.22.07.13.32; Thu, 22 Aug 2019 07:13:48 -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 S2387899AbfHVKtj (ORCPT + 99 others); Thu, 22 Aug 2019 06:49:39 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:35112 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732378AbfHVKtj (ORCPT ); Thu, 22 Aug 2019 06:49:39 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 9B2CFFB03; Thu, 22 Aug 2019 12:49:36 +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 IjpzZFxuq1Vk; Thu, 22 Aug 2019 12:49:34 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 80E444014F; Thu, 22 Aug 2019 12:49:34 +0200 (CEST) Date: Thu, 22 Aug 2019 12:49:34 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Laurent Pinchart 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 , Sam Ravnborg Subject: Re: [PATCH v2 2/3] dt-bindings: display/bridge: Add binding for NWL mipi dsi host controller Message-ID: <20190822104934.GB28060@bogon.m.sigxcpu.org> References: <9c906bb6592424acdb1a67447a482e010a113b49.1565367567.git.agx@sigxcpu.org> <20190821181518.GB26759@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190821181518.GB26759@pendragon.ideasonboard.com> 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 Laurent, thanks for having a look! On Wed, Aug 21, 2019 at 09:15:18PM +0300, Laurent Pinchart wrote: > Hi Guido, > > Thank you for the patch. > > On Fri, Aug 09, 2019 at 06:24:22PM +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/nwl-dsi.yaml | 155 ++++++++++++++++++ > > 1 file changed, 155 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml > > > > diff --git a/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml b/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml > > new file mode 100644 > > index 000000000000..5ed8bc4a4d18 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml > > @@ -0,0 +1,155 @@ > > +# SPDX-License-Identifier: GPL-2.0 > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/display/bridge/imx-nwl-dsi.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Northwest Logic MIPI-DSI on imx SoCs > > + > > +maintainers: > > + - Guido G?nther > > + - Robert Chiras > > + > > +description: | > > + NWL MIPI-DSI host controller found on i.MX8 platforms. This is a dsi bridge for > > + the SOCs NWL MIPI-DSI host controller. > > + > > +properties: > > + compatible: > > + oneOf: > > + - items: > > + - const: fsl,imx8mq-nwl-dsi > > + > > + reg: > > + maxItems: 1 > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: DSI core clock > > + - description: RX_ESC clock (used in escape mode) > > + - description: TX_ESC clock (used in escape mode) > > + - description: PHY_REF clock > > + > > + clock-names: > > + items: > > + - const: core > > + - const: rx_esc > > + - const: tx_esc > > + - const: phy_ref > > + > > + phys: > > + maxItems: 1 > > + description: > > + A phandle to the phy module representing the DPHY > > + > > + phy-names: > > + items: > > + - const: dphy > > + > > + power-domains: > > + maxItems: 1 > > + description: > > + A phandle to the power domain > > + > > + resets: > > + maxItems: 4 > > + description: > > + A phandle to the reset controller > > + > > + reset-names: > > + items: > > + - const: byte > > + - const: dpi > > + - const: esc > > + - const: pclk > > + > > + mux-sel: > > + maxItems: 1 > > + description: > > + A phandle to the MUX register set > > Did you mean the MUX syscon ? A phandle to a register set sounds a bit > strange. That one is gone in v3 in favour of mux-controls. > > > + > > + port: > > + type: object > > + description: > > + A input put or output port node. > > s/input put/input/ Thanks! I've shuffled this around in v3 and added some more detail. Cheers, -- Guido > > > + > > + ports: > > + type: object > > + description: > > + A node containing DSI input & output port nodes with endpoint > > + definitions as documented in > > + Documentation/devicetree/bindings/graph.txt. > > + > > +patternProperties: > > + "^panel@[0-9]+$": true > > + > > +allOf: > > + - if: > > + properties: > > + compatible: > > + contains: > > + enum: > > + - fsl,imx8mq-nwl-dsi > > + then: > > + required: > > + - resets > > + - reset-names > > + - mux-sel > > + > > +required: > > + - compatible > > + - reg > > + - interrupts > > + - clocks > > + - clock-names > > + - phys > > + - phy-names > > + > > +examples: > > + - | > > + > > + mipi_dsi: mipi_dsi@30a00000 { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + compatible = "fsl,imx8mq-nwl-dsi"; > > + reg = <0x30A00000 0x300>; > > + clocks = <&clk 163>, <&clk 244>, <&clk 245>, <&clk 164>; > > + clock-names = "core", "rx_esc", "tx_esc", "phy_ref"; > > + interrupts = <0 34 4>; > > + power-domains = <&pgc_mipi>; > > + resets = <&src 0>, <&src 1>, <&src 2>, <&src 3>; > > + reset-names = "byte", "dpi", "esc", "pclk"; > > + mux-sel = <&iomuxc_gpr>; > > + phys = <&dphy>; > > + phy-names = "dphy"; > > + > > + panel@0 { > > + compatible = "..."; > > + port@0 { > > + 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 = <&lcdif_mipi_dsi>; > > + }; > > + }; > > + port@1 { > > + reg = <1>; > > + mipi_dsi_out: endpoint { > > + remote-endpoint = <&panel_in>; > > + }; > > + }; > > + }; > > + }; > > -- > Regards, > > Laurent Pinchart >