Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5462834ybl; Tue, 27 Aug 2019 05:11:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqy0RGpL37VhU+vNjO896mGthdhy8a41GBNWgN15oDGQshxY0PlRL9EWKedzLMVIUj52NHJm X-Received: by 2002:a17:90a:a489:: with SMTP id z9mr24337192pjp.24.1566907915294; Tue, 27 Aug 2019 05:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566907915; cv=none; d=google.com; s=arc-20160816; b=RlSD6ekBzL6pk28xkvrq3tq+yIPzbxOD+ScuPHB4mZ8koE+OI1Zlcaq3MpRdAooYg3 6iUmVwT51dyWaXBUYGP1Orvw5jG0uSs4NYYzQuNeNerMpuAybWzikwpZypnDzDe4upGq VL18755Ob7RFJCD3MrvYUs6sNf2wgQ0S2Q3MbG3EyFByGLIDjly2zvMRQ19WtmT0V3m7 6DaGb7VN4NIs3inxQpAfEgMclnbcE/a9TavjBXZUSF6FkT36yO90TGCVO10YS3mJp0ox K1P1DOTQg70stEo8bZMPdV4PrR1LtUJ8tHhOArX1xxdpucSlzYXD8tElckjZj5D/uzsr OvTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cH2fieetrf5ZsJ72ntRbr0GCI8m1AmtIQWWdGD5msHE=; b=EO+Jj++U4Nzh9xwvIdroiLpa82qgIeSLG8eRSL3DlSXoRRICsDpuNM78teUIxKXvfI JpmWZwM0GIqQd06+mPrKwAOjLR/tyqYmWdW5ur+iFKoJKT/sh0uTIe/ica0jP8Od+rwN HGBns+npKqm4fCsFuzezk3S56GSVx3LF979VB7XyMGEoFDftVs9KcQtGga36B2mPNSKY /HEX2LyfREjir7BSrRuki/MhLGp1messJ58E4wDKNTx0olrvlJ2VtN7JThCFiEdnoxZZ 0b9sCR8WAKqq2SZKELSMQeObAy+Kp+qGdbGQ8ZNWErrsECwVhvissFux6B/KW663E6hH 0zVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="a/HU21B1"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f23si1276626plj.241.2019.08.27.05.11.39; Tue, 27 Aug 2019 05:11:55 -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 header.i=@kernel.org header.s=default header.b="a/HU21B1"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728694AbfH0MJe (ORCPT + 99 others); Tue, 27 Aug 2019 08:09:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:38706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725850AbfH0MJe (ORCPT ); Tue, 27 Aug 2019 08:09:34 -0400 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 912AA23407; Tue, 27 Aug 2019 12:09:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566907772; bh=fUcUeDsVMM74MJ34Ry+nmElbDrbiFBZpMPM2hzgixd0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=a/HU21B1cyQ6s40aeFD4kglNlgx/8tu55rjKwGr1G3GYTZwUzCWGnPKMfw7u3icX6 lg9PzWKcnnP3PvbousMWaYQLUOR4BFPYNU1XJ57UIy2rxgYRhPrRY3RZPAkCycs07A mZiI8mDd73MKcYwA2EC9W5/61ATgG6Q4muAxpEMM= Received: by mail-qt1-f178.google.com with SMTP id y26so21024219qto.4; Tue, 27 Aug 2019 05:09:32 -0700 (PDT) X-Gm-Message-State: APjAAAWSwajLxqZMq+KJxMH1hpiFeW+QPdOWQ7CsqddYqm2u4IV7cbR8 E+CfDDoR762oHoIAdCKEppXxMots69Ab2rMTbg== X-Received: by 2002:aed:24f4:: with SMTP id u49mr22702194qtc.110.1566907771556; Tue, 27 Aug 2019 05:09:31 -0700 (PDT) MIME-Version: 1.0 References: <36f62b431f32bc76e92d21e04dc48464aef43869.1566470526.git.agx@sigxcpu.org> In-Reply-To: <36f62b431f32bc76e92d21e04dc48464aef43869.1566470526.git.agx@sigxcpu.org> From: Rob Herring Date: Tue, 27 Aug 2019 07:09:20 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 1/2] dt-bindings: display/bridge: Add binding for NWL mipi dsi host controller To: =?UTF-8?Q?Guido_G=C3=BCnther?= Cc: David Airlie , Daniel Vetter , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Andrzej Hajda , Neil Armstrong , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Lee Jones , dri-devel , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "linux-kernel@vger.kernel.org" , Robert Chiras , Sam Ravnborg , Arnd Bergmann Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 22, 2019 at 5:44 AM Guido G=C3=BCnther wrote: > > The Northwest Logic MIPI DSI IP core can be found in NXPs i.MX8 SoCs. > > Signed-off-by: Guido G=C3=BCnther > --- > .../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.yam= l b/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml > new file mode 100644 > index 000000000000..24d17a6310dc > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/bridge/nwl-dsi.yaml > @@ -0,0 +1,155 @@ > +# SPDX-License-Identifier: GPL-2.0 (GPL-2.0-only OR BSD-2-Clause) is preferred for new bindings. > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/display/bridge/nwl-dsi.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Northwest Logic MIPI-DSI controller on i.MX SoCs > + > +maintainers: > + - Guido G=C3=BAnther > + - Robert Chiras > + > +description: | > + NWL MIPI-DSI host controller found on i.MX8 platforms. This is a dsi b= ridge for > + the SOCs NWL MIPI-DSI host controller. > + > +properties: > + compatible: > + 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 > + > + mux-controls: > + description: > + mux controller node to use for operating the input mux > + > + 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 Don't need a description for common properties unless you have something specific about this device to say. > + > + resets: > + description: > + phandles to the reset controller Same here. > + items: > + - description: dsi byte reset line > + - description: dsi dpi reset line > + - description: dsi esc reset line > + - description: dsi pclk reset line > + > + reset-names: > + items: > + - const: byte > + - const: dpi > + - const: esc > + - const: pclk > + > + ports: > + type: object > + description: > + A node containing DSI input & output port nodes with endpoint > + definitions as documented in > + Documentation/devicetree/bindings/graph.txt. > + > + port@0: These are child nodes of ports. So under ports you need 'properties' with these. And 'required'. > + type: object > + description: > + Input port node to receive pixel data from the > + display controller > + > + port@1: > + type: object > + description: > + DSI output port node to the panel or the next bridge > + in the chain > + > +patternProperties: > + "^panel@[0-9]+$": true This is a node, so: type: object > + > +required: > + - clock-names > + - clocks > + - compatible > + - interrupts > + - mux-controls > + - phy-names > + - phys > + - ports > + - reg > + - reset-names > + - resets Add a: additionalProperties: false > + > +examples: > + - | > + > + mipi_dsi: mipi_dsi@30a00000 { > + #address-cells =3D <1>; > + #size-cells =3D <0>; These need to be listed above. > + compatible =3D "fsl,imx8mq-nwl-dsi"; > + reg =3D <0x30A00000 0x300>; > + clocks =3D <&clk 163>, <&clk 244>, <&clk 245>, <&clk 164>; > + clock-names =3D "core", "rx_esc", "tx_esc", "phy_ref"; > + interrupts =3D <0 34 4>; > + mux-controls =3D <&mux 0>; > + power-domains =3D <&pgc_mipi>; > + resets =3D <&src 0>, <&src 1>, <&src 2>, <&src 3>; > + reset-names =3D "byte", "dpi", "esc", "pclk"; > + phys =3D <&dphy>; > + phy-names =3D "dphy"; > + > + panel@0 { > + compatible =3D "rocktech,jh057n00900"; > + reg =3D <0>; > + port@0 { > + panel_in: endpoint { > + remote-endpoint =3D <&mipi_dsi_out>= ; > + }; > + }; > + }; > + > + ports { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + port@0 { > + reg =3D <0>; > + mipi_dsi_in: endpoint { > + remote-endpoint =3D <&lcdif_mipi= _dsi>; > + }; > + }; > + port@1 { > + reg =3D <1>; > + mipi_dsi_out: endpoint { > + remote-endpoint =3D <&panel_in>= ; > + }; > + }; > + }; > + }; > -- > 2.20.1 >