Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp403208imp; Wed, 20 Feb 2019 02:18:00 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibs4yEv8ssrZ3odPPiMbEXOqz46lRKk4U9eFCgCFJ2VDyH9GmFZmcTilfblLsbrqbZnsi8u X-Received: by 2002:a17:902:63:: with SMTP id 90mr28319605pla.122.1550657880015; Wed, 20 Feb 2019 02:18:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550657880; cv=none; d=google.com; s=arc-20160816; b=wCxQXuT74eDeux7RPoxqte09hLhNk7BDUN688XQMPc0Yq346W8t75906KzlOfTzmNN LmLPvx2+xR0uFEVIPmRWOXH66emE9P3Yz+Q4cuAj3Kl3wbWetNkBxK5qEQlNyJVjLm/7 9ct3PRU+rDiiAg4kwt20g9ECMmc4M3i76i8WKvPMI6rA9BWHuv2NxgbhGIgnCMnoQ618 wDEjhDuymz513a7s1hH7ble9SR7e+ock6ZacW8d3D3ZScXPTtdmQ5ldm0UCz792ugR9r qprCun2N7H8flnaLg8ZNVKuTSPwL4L4BbJvboF+LsCOStA7oHozR+g0++82dJNPkdJB+ knqw== 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:mime-version :user-agent:message-id:in-reply-to:date:references:subject:cc:to :from; bh=aj2jRfb4KVOWGGoiMpTNALxTK9hYVcRFCiHfebusxYs=; b=uTxVRCMmyMkNm9/M1UUfIRpw6PcN9WZi2GI73ScihMA/mMiD3z17Ruk0tUzL2dm8Y/ O22/94Q3Ytls6VfBT81mdoHY5U3dwJ3NjxvF+ng3TyksaUpXHueadoORtM8HXGgfjlgF yAnd8d1Ul1B3hAgBSxCEB9h7p/b99rV3hpW5dPpfg29FgubePug0WZm2Vplz+rPP3JXB rFf2Dg8wCwiX2SgoVBO3jCapOoUvTqi1wz0tVh1KQseX0k7CCfryEQhk4u2aPvv2tDfK hsDQ2PTbfMA51EL0AoMZS47W+taJ2Wg+20iiOlv3XrMaKkzSjdRXxS/j66e0sHdZLfcB M54Q== 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 y19si18223615pfc.229.2019.02.20.02.17.44; Wed, 20 Feb 2019 02:18:00 -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 S1727055AbfBTKRG convert rfc822-to-8bit (ORCPT + 99 others); Wed, 20 Feb 2019 05:17:06 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:43956 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfBTKRG (ORCPT ); Wed, 20 Feb 2019 05:17:06 -0500 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 8F1BA15632; Wed, 20 Feb 2019 10:17:04 +0000 (GMT) From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= To: Maxime Ripard Cc: Chen-Yu Tsai , Rob Herring , Mark Rutland , devicetree , linux-arm-kernel , linux-kernel Subject: Re: [PATCH] ARM: dts: sun7i: add pinctrl for missing uart mux options References: <20190216182132.12895-1-mans@mansr.com> <20190220090617.aprfndnidcamwcvy@flea> Date: Wed, 20 Feb 2019 10:17:04 +0000 In-Reply-To: <20190220090617.aprfndnidcamwcvy@flea> (Maxime Ripard's message of "Wed, 20 Feb 2019 10:06:17 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Maxime Ripard writes: > 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 = "uart0"; >> > }; >> > >> > + uart0_pf_pins: uart0-pf-pins { >> > + pins = "PF2", "PF4"; >> > + function = "uart0"; >> > + }; >> >> 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. >> >> So please add this to all the new nodes. It seems to work regardless whether >> you add it before or after the label, though having it after the label seems >> 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. Thanks, I'd missed that directive. It always seems needlessly annoying to make everybody working on a new board to add those nodes separately. -- M?ns Rullg?rd