Received: by 10.223.185.116 with SMTP id b49csp3807773wrg; Tue, 6 Mar 2018 05:24:54 -0800 (PST) X-Google-Smtp-Source: AG47ELt9PoymxRYykiZro3mPrr6ekzaSIxblAScyhuo6I1u9s6MuKpjv9Qialzquhvw4RKLF/RJk X-Received: by 10.98.212.80 with SMTP id u16mr18987382pfl.58.1520342694737; Tue, 06 Mar 2018 05:24:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520342694; cv=none; d=google.com; s=arc-20160816; b=mt/MT4jp/iuD6aXnUCpXWpZEJP4XP3BCneKg3o/F3eqjoPtDhdL3ouGo96VF2qQD1o 3idH0RK3mEwoqNxEkBIFAK8mUw9jPvnbNitkWtOBzXlC91n8HxcmnuWqb5so0gp4vT4N 65nrtHp6xLCC3tVoPH+gJ0ObesVB8hkLL/2HJB/Y2mUGa3KeliDPYk4qanYpo18XC717 nnqxp7QzoZwq+WIe3CGJH6qeXLByDhgAYpYHOiFfoo6l7xQyS7S44MEbGlutmZRWni53 WJbkx2hoKupbVbAsJnnkRz750VZQeFZQLbyo4aVu3Rm9PA6hiWlKUiO7HNF5/HN6m7KU svOg== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=4qLaaBwepyjUHGOGPp8eZEwmm6cYknA/OQaNttwow8w=; b=RwrLnSUuUdIAlukgIsAfylaFmCjH4f21eNT8HAF0JLcfYpBSov3NPOw7444SwaLOTe N5Y/qJF2R10/oIxNw2qGxHO5oX1MLao4BWoqVa5VRhC6sd+QQjGOx9XsspqJzwwcZNUa 1iNLpxMK1zkoV5TwDqpfuYy6mtxoat2mboi821NLgqjE8CvKUs/vaTP+FSO8kZ3/TsCN 1b254LQtX5vOsni40QcRGq6PhtWt9xxnBbrC0ihhAM6+vhdCnk2qZKqTYJhm/qIFH0vs W69k2KW+Ltd+tWItJLUcw3NV2ONx1+oOXNtKH6FwzADxkWDSXEFkVAhSCf1AO11QRe7E eIdA== 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 196si12048161pfv.144.2018.03.06.05.24.40; Tue, 06 Mar 2018 05:24:54 -0800 (PST) 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 S1753590AbeCFNXX (ORCPT + 99 others); Tue, 6 Mar 2018 08:23:23 -0500 Received: from mail.bootlin.com ([62.4.15.54]:34159 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbeCFNXV (ORCPT ); Tue, 6 Mar 2018 08:23:21 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 80CBD20938; Tue, 6 Mar 2018 14:23:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [185.94.189.190]) by mail.bootlin.com (Postfix) with ESMTPSA id D3779204AD; Tue, 6 Mar 2018 14:23:07 +0100 (CET) Date: Tue, 6 Mar 2018 14:23:07 +0100 From: Maxime Ripard To: Rob Herring Cc: Mark Brown , Thierry Reding , Chen-Yu Tsai , Mark Rutland , dri-devel@lists.freedesktop.org, Gustavo Padovan , Daniel Vetter , Maarten Lankhorst , Sean Paul , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni Subject: Re: [PATCH v2 04/10] dt-bindings: display: Add Allwinner MIPI-DSI bindings Message-ID: <20180306132307.onmqodndydwu3v5s@flea.lan> References: <20180301221543.szhh75wplyq4rvhd@rob-hp-laptop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xrbqrypybnr7yb3y" Content-Disposition: inline In-Reply-To: <20180301221543.szhh75wplyq4rvhd@rob-hp-laptop> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xrbqrypybnr7yb3y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Rob, On Thu, Mar 01, 2018 at 04:15:43PM -0600, Rob Herring wrote: > On Wed, Feb 21, 2018 at 10:20:28AM +0100, Maxime Ripard wrote: > > From: Maxime Ripard > >=20 > > The Allwinner SoCs usually come with a DSI encoder. Add a binding for i= t. > >=20 > > Signed-off-by: Maxime Ripard > > --- > > Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt | 84 +++= ++++- > > 1 file changed, 84 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/display/sunxi/sun= 6i-dsi.txt > >=20 > > diff --git a/Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.= txt b/Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt > > new file mode 100644 > > index 000000000000..cbcc673b9bcc > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/sunxi/sun6i-dsi.txt > > @@ -0,0 +1,84 @@ > > +Allwinner A31 DSI Encoder > > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > > + > > +The DSI pipeline consists of two separate blocks: the DSI controller > > +itself, and its associated D-PHY. > > + > > +DSI Encoder > > +----------- > > + > > +The DSI Encoder generates the DSI signal from the TCON's. > > + > > +Required properties: > > + - compatible: value must be one of: > > + * allwinner,sun6i-a31-mipi-dsi > > + - reg: base address and size of memory-mapped region > > + - interrupts: interrupt associated to this IP > > + - clocks: phandles to the clocks feeding the DSI encoder > > + * bus: the DSI interface clock > > + * mod: the DSI module clock > > + - clock-names: the clock names mentioned above > > + - phys: phandle to the D-PHY > > + - phy-names: must be "dphy" > > + - resets: phandle to the reset controller driving the encoder > > + > > + - ports: A ports node with endpoint definitions as defined in > > + Documentation/devicetree/bindings/media/video-interfaces.txt. The > > + port should be the input endpoint, usually coming from the > > + associated TCON. > > + > > +Any MIPI-DSI device attached to this should be described according to > > +the bindings defined in ../mipi-dsi-bus.txt > > + > > +D-PHY > > +----- > > + > > +Required properties: > > + - compatible: value must be one of: > > + * allwinner,sun6i-a31-mipi-dphy > > + - reg: base address and size of memory-mapped region > > + - clocks: phandles to the clocks feeding the DSI encoder > > + * bus: the DSI interface clock > > + * mod: the DSI module clock > > + - clock-names: the clock names mentioned above > > + - resets: phandle to the reset controller driving the encoder > > + > > +Example: > > + > > +dsi0: dsi@1ca0000 { > > + compatible =3D "allwinner,sun6i-a31-mipi-dsi"; > > + reg =3D <0x01ca0000 0x1000>; > > + interrupts =3D ; > > + clocks =3D <&ccu CLK_BUS_MIPI_DSI>, > > + <&ccu CLK_DSI_SCLK>; > > + clock-names =3D "bus", "mod"; > > + resets =3D <&ccu RST_BUS_MIPI_DSI>; > > + phys =3D <&dphy0>; > > + phy-names =3D "dphy"; > > + #address-cells =3D <1>; > > + #size-cells =3D <0>; > > + > > + panel@0 { > > + compatible =3D "huarui,lhr050h41"; > > + reg =3D <0>; > > + power-gpios =3D <&pio 1 7 GPIO_ACTIVE_HIGH>; /* PB07 */ > > + reset-gpios =3D <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL05 */ > > + backlight =3D <&pwm_bl>; > > + }; > > + > > + port { > > + dsi0_in_tcon0: endpoint { > > + remote-endpoint =3D <&tcon0_out_dsi0>; > > + }; > > + }; >=20 > Kind of odd to have a mixture of panel and port. I guess that's valid=20 > though. I guess the most elegant way would have been to have the panel also part of the OF graph, but we have to conform to the generic DSI panels as well :) > I'd recommend you put port under ports node so if you ever have=20 > another port you are not mixing unit-address spaces. Ok, I'll do that. > With that, >=20 > Reviewed-by: Rob Herring Thanks! Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --xrbqrypybnr7yb3y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlqeljoACgkQ0rTAlCFN r3SsBA/+Mc752L8vTvUgInFjgUhUnrblwMEQcm7aNO+iqgNm1AYbp4FY3zenX9Ba EoXsqdfxeBaaP1B1tSkQzSjOFKIiCpkv+fTFed0cXSQcd/Fohc27CVljiKaYB+em 90g2HMdxqpaPWOKlDrH62q6JKnlYin+/9E4C80gtLD2YcimocpgrveH4myqqVcao rujWljkmX7kRY9hySxDorNx2ciQCm7l9OTvLIYv0zuacGnx31LKHpw9ZtGiukA4A 3GTq4uQrlV1eez/Vg8zosEmgfshHL5tpci1L0h3HVswSaZAKYd2SfoUVC3C1QF/k GsEokCASAN2tvaeNiZKFfxQ6uY34tzTewO1X4KDGEXhkwJ0qq3DyL5OQ14o7FcMr vMFNDD+8knnh89qVatYYc1xnvF6Rkp6M6ggUQ8TggclQxb17qPm7eufEnWRj38eL rrAax/NVqZetlLRh7QX5Ulc2heIRk7THGl5/S0/hOF9QwBcil+A0tqg3JvC/Zs+i SS1FeRlyD7mvKq1Hkb+hdSOLnYC4m+z5P80vdb90b9y0+y+3r4QgH/EEhW1hm8TV CO/ggT7Eyu98Yfr7i/mxC/BCbkCCJOw61LSB9GMuuwbZTr1aFUofTUTUxqUTM7Nv sAwQqm9ONeiD6JefhI8VN98Z0mFOgZdZBcI4CWZrVuzESe6cJnI= =eTXM -----END PGP SIGNATURE----- --xrbqrypybnr7yb3y--