Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp691029imp; Wed, 20 Feb 2019 07:23:32 -0800 (PST) X-Google-Smtp-Source: AHgI3IayawmybFc4bQ2t4ImX6xm7nn01ssriKmTX/M8hAfWv2qT4eY0lrODHXpy++QZPRUvYb1h3 X-Received: by 2002:a63:854a:: with SMTP id u71mr29092528pgd.141.1550676212857; Wed, 20 Feb 2019 07:23:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550676212; cv=none; d=google.com; s=arc-20160816; b=d3YollrZTxEvbaFKg0zBvGfzW6PGOb08smEI8tfJiraJRHAvDWOGo0bfYrKgksuuDC tGFx4r4Dp14bJqzNqGQNyEAogUBtplJ4CViEGd0cgklgzwwKaZPv35qO1lp4YYmADaB1 HCJp4msNVi9mDizR3forwgQ69RMSNRk3Yd+6BC8oqXJ0vpB4m2Dd61EmNj55O5PnP5pN MoDkzdFk5090fuM5JE2Xt8gdJeaTgKDWavxEsCsLeYIRDw9aLY/YaboNAppE3xHBwgBo es75yEIvzQZsoVby3PPHXlUZuM8FETWyAR8HbINtzvbThpId1IubvLsuQ4dU4Ys6sG6D thsA== 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; bh=+WVyjpwMSSidgzlubkifK8RVP6e1ubM09TpWFeoW4wo=; b=o8b0HX1EpScWMRuckLPyeHc1lm9CvELS5Rb82m1R6q12XcWRmFcawb3bScM9+PiGSM a8XB1DXtk3vtPmLB2RrIlAQ14TgVV2VlF25Dn5/acaEdb28ofXuiP8jS+lRg4490Le8v otO4eUgigxFrlU3zcDr34cXevPqGr7xXGM8VqMHRwzuIKPal9iPBfJDuBC+7EnzM1fDq CaXYQWMHdmJ8Ct3jAsXQQwwSRBqXZast7N0B9XRhsnNUGJrKNlt0WQT/dwn7KAYCaiHX StRPkkZDfvC0YCx1PmcIKo7xe7O6kAoeLdrRQMMYPwgqWwUpi/nCWWB9z0uDWf6qcsCw ivPw== 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 h22si15705726pgv.198.2019.02.20.07.23.17; Wed, 20 Feb 2019 07:23:32 -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 S1727177AbfBTPWm convert rfc822-to-8bit (ORCPT + 99 others); Wed, 20 Feb 2019 10:22:42 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:44363 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbfBTPWm (ORCPT ); Wed, 20 Feb 2019 10:22:42 -0500 Received: by mail-ed1-f65.google.com with SMTP id b20so20135413edw.11; Wed, 20 Feb 2019 07:22:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=/poT5zSDQYR4xkvE6W+qkDPTxMHyI95yC8gl7wywdao=; b=M6or8s/9s5uCRfQAkd3bXPIyPO0ITtzpVnkcQOUjvBxToB+Mv6o+i7H6M6fRQ0VIvl g0DF63F1WGL7+LyyRaoz8Qbfb9+njABbzijkdVj6tQKDu2ekbwZAoXExg7i4nlMHxSPc AGz0aYVXoYzpblwb63MySw20qrC+IECcWq4TTPx00WOk+VFd+pOn1Ph7+C86vwcCwjr0 lBpbgqZ5czruzjqyPlEhTOQMi3v25QlNuCvlk1+2RxhrSEGHWVBWYe30kzNo6dCW9ivK h0PqxvPhQ7RbBvEF0I8Vp2IZxMaWKLEo5HxfpNct8QGmIMsSo+jr8HAKM5iMQJRnbo8C KJvA== X-Gm-Message-State: AHQUAuYCpfkXTmn8ePhMtG7seqsCYCra3MYxZMs3K5NEQ4pMZvQzGa0p FugxoseVCS5X72yw/Ae5p3nE0X3xeTs= X-Received: by 2002:a17:906:d1c4:: with SMTP id bs4mr24309380ejb.205.1550676159597; Wed, 20 Feb 2019 07:22:39 -0800 (PST) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com. [209.85.128.52]) by smtp.gmail.com with ESMTPSA id h1sm4435290ejx.41.2019.02.20.07.22.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Feb 2019 07:22:38 -0800 (PST) Received: by mail-wm1-f52.google.com with SMTP id h22so4959232wmb.0; Wed, 20 Feb 2019 07:22:38 -0800 (PST) X-Received: by 2002:a1c:f605:: with SMTP id w5mr7366092wmc.116.1550676158191; Wed, 20 Feb 2019 07:22:38 -0800 (PST) MIME-Version: 1.0 References: <20190216182132.12895-1-mans@mansr.com> <20190220090617.aprfndnidcamwcvy@flea> In-Reply-To: From: Chen-Yu Tsai Date: Wed, 20 Feb 2019 23:22:25 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ARM: dts: sun7i: add pinctrl for missing uart mux options To: =?UTF-8?B?TcOlbnMgUnVsbGfDpXJk?= Cc: Maxime Ripard , Rob Herring , Mark Rutland , devicetree , linux-arm-kernel , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 20, 2019 at 7:00 PM Måns Rullgård wrote: > > 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. > > Should we also add this to existing nodes? > > BTW, I really do need all those uart pin options. Note that /omit-if-no-ref/ does not work with dtc -@, as in the node will be removed if no references to it are found within the same file. It will not result in a symbol being created. I have a patch for that but haven't sent it out yet. ChenYu