Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp348106imp; Wed, 20 Feb 2019 01:07:35 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib1gqbfDL0lt9o/2AKQU+WSzO0wPOuoM817/epkVWbNXPAHYzDH/bNg6YeiUcc7wXln9FrV X-Received: by 2002:a63:854a:: with SMTP id u71mr27677824pgd.141.1550653655042; Wed, 20 Feb 2019 01:07:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550653655; cv=none; d=google.com; s=arc-20160816; b=fK4OMx5ReaFfK7+C3WCjo8EzSRbxINvv9K335IWQqyaYhGxLjpQ0eJHa/MIB4szn+Y 4nEI1/x6SLXkOmBAtoLp/g9FpFwHzOK0wxjdU9k+P1EfH2PnS/Q9sJclrTfNNz5Wf4ct L+c3Fe7diG62wM60Bn2dmSFWUasasTj/xC/R3hzS+PeSzxQs79LyhqIPvFc66BD+Noiz 2d2lTMAi/wsI50Pj1UoNd8IPnsI0hvfB21oTXcryCdAqS9ssxmZNJW1aQ28iujGCDAiC f8i6Pte1j11Jsm6QT+VquKWb0o+FHr90HHN3qRqNS6fuogD1fG9h0tvr6ryODrA3xo/n H6aA== 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; bh=CfByUJPuHJ+KX/RCM68c3N9pzlG0Tq4ukSrT5pM1pEo=; b=k1W8oP3oypfal2NB69XPd6TKjtNEbbt5aGqw8wzdV2uugBTxvUvtJdFUGRSNsozeYh jM+UKPfQGdTNoanV6YKvCml7W0/VKDX+EwZ6qoUy2SgbmzvkmaD2bLTQojhSkiUTXSlQ VSoY4Cvv8r/V3ZqAjao2s1CpzjvmW+qjdZZDdCbGmjONsqC+Zs2fCI9Npr+m97ej6MoH C3qaxYuhjpVfThJchmGhkMxTH1TH5txlrN0B8OvLya74sBhKptHr0EoyAYZ/Z+MQ8eri eRODmVl87I8xxaJ+6bSWyV0SPFSaX59Lshh5rxXvcaj4BVdqIp4s4fqB098/VA67+J87 E4DA== 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 g98si20061956plb.99.2019.02.20.01.07.19; Wed, 20 Feb 2019 01:07:35 -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 S1726667AbfBTJGV (ORCPT + 99 others); Wed, 20 Feb 2019 04:06:21 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:39073 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725778AbfBTJGV (ORCPT ); Wed, 20 Feb 2019 04:06:21 -0500 Received: from localhost (aaubervilliers-681-1-81-190.w90-88.abo.wanadoo.fr [90.88.23.190]) (Authenticated sender: maxime.ripard@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 0DAF2240016; Wed, 20 Feb 2019 09:06:17 +0000 (UTC) Date: Wed, 20 Feb 2019 10:06:17 +0100 From: Maxime Ripard To: Chen-Yu Tsai Cc: Mans Rullgard , Rob Herring , Mark Rutland , devicetree , linux-arm-kernel , linux-kernel Subject: Re: [PATCH] ARM: dts: sun7i: add pinctrl for missing uart mux options 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" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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--