From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH] ARM: dts: sun7i: add pinctrl for missing uart mux options Date: Wed, 20 Feb 2019 10:06:17 +0100 Message-ID: <20190220090617.aprfndnidcamwcvy@flea> References: <20190216182132.12895-1-mans@mansr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="foh6urmif5xrrhfj" Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Chen-Yu Tsai Cc: Mans Rullgard , Rob Herring , Mark Rutland , devicetree , linux-arm-kernel , linux-kernel List-Id: devicetree@vger.kernel.org --foh6urmif5xrrhfj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 20, 2019 at 04:58:49PM +0800, Chen-Yu Tsai wrote: > On Sun, Feb 17, 2019 at 2:21 AM Mans Rullgard wrote: > > > > This adds pinctrl settings for various missing uart options. > > > > Signed-off-by: Mans Rullgard > > --- > > arch/arm/boot/dts/sun7i-a20.dtsi | 45 ++++++++++++++++++++++++++++++++ > > 1 file changed, 45 insertions(+) > > > > diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i= -a20.dtsi > > index af5b067a5f83..2295ff5adf48 100644 > > --- a/arch/arm/boot/dts/sun7i-a20.dtsi > > +++ b/arch/arm/boot/dts/sun7i-a20.dtsi > > @@ -944,6 +944,31 @@ > > function =3D "uart0"; > > }; > > > > + uart0_pf_pins: uart0-pf-pins { > > + pins =3D "PF2", "PF4"; > > + function =3D "uart0"; > > + }; >=20 > We've had the policy of not adding pinctrl nodes that aren't used in-tree, > to avoid bloating up the blob size. However DTC 1.4.7 introduced the new > /omit-if-no-ref/ directive, which would make the compiler discard marked > nodes if they aren't referenced. >=20 > So please add this to all the new nodes. It seems to work regardless whet= her > you add it before or after the label, though having it after the label se= ems > to make vim syntax highlighting happier. It also works (both for dtc and vim) if we put it on the previous line, so something like: /omit-if-no-ref/ uart0_pf_pins: uart0-pf-pins { }; And it does have the advantage of keeping the same line width, which could get pretty long on some nodes. Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --foh6urmif5xrrhfj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXG0YiQAKCRDj7w1vZxhR xXzVAP9ijrsG7dQ9ZkgmVB+wYx/3Y8mdnIpj0J1trQGPtzNyiQD/as1MQ3MQA2eo /lMgL7JN23+8+YbQ3x8rN3XItEkscAw= =rn9g -----END PGP SIGNATURE----- --foh6urmif5xrrhfj--