Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp442906pxf; Wed, 7 Apr 2021 03:30:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzP6ufMEk6Q4krBygsPvu+TztRUaAFF/cNRi/QWoEMQIgvUF1o5+IJVLEPV87giuU0DCjsP X-Received: by 2002:a02:9382:: with SMTP id z2mr2865905jah.120.1617791445250; Wed, 07 Apr 2021 03:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617791445; cv=none; d=google.com; s=arc-20160816; b=vkdQC4OLULRX2U8R0qjx5cU2gB5AACymm4R/SrXgG2TyJyFu3gooCXzo3C0EdXaM90 v36buiwUno8bU+4vyxMlr32T/uEZOKsk9YI5GSFigja+rPIFZx70SxT5KQEo/txPl6Pj xjHXG1NiFiSDy77LLk3H5GhE/i5/tQMNAykmGzPMPGV0evVdpFr8yEhi02IDJ/CYFRsY Pb5t/aQHvLNZsF1TsLaNnE7/Ron5UTp+lHmVKcRfKswlpp7vfktdFYJ0Y2co2IFDwLby ZBZ+emjofCmkpLEXsZx+AhGIIjdaSpS6cu0qAmYoJKHDZLEzTT8BOucw3i7G8H8rAMP1 5ezQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=6QPhKZsquLIEpX7e3NC/9vIpJz8EUh2fOFvHLn8Y5pw=; b=PsQqVxCR4PPzvm9H1Y7TQMqs15Do5TLtNw+bqTri4yAL75uJPeoxqaaobXiSqy/4no tAPaWnZ3A+OzT5rj6iDbmF1yLHWPJjr2pjkS1tfl56LGevhL7Cm/Jb/27OiEuuu1hKEf /pCht7SdbU+Kvzm28drrQFcw3wvPmieJ9ofBQ9p5S9VpLwToJiSNcxvPjYvnSfwblTgR tR/3KGsdJZ/kU8S94Wfz11X5JD0UtCl4678HsYo/5xaV3Md44rTCIYbc31W1IXp6i2+J ptbcc6Hz3dXfqXVb13DISG/z7C8jxKiMQlZOkpWqHh0yztMzFEqO/BnNOd/JcmtWUido AO+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r74si20806532ior.80.2021.04.07.03.30.30; Wed, 07 Apr 2021 03:30:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234350AbhDFRlB (ORCPT + 99 others); Tue, 6 Apr 2021 13:41:01 -0400 Received: from mail-oi1-f179.google.com ([209.85.167.179]:44771 "EHLO mail-oi1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230167AbhDFRlA (ORCPT ); Tue, 6 Apr 2021 13:41:00 -0400 Received: by mail-oi1-f179.google.com with SMTP id a8so15935268oic.11; Tue, 06 Apr 2021 10:40:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6QPhKZsquLIEpX7e3NC/9vIpJz8EUh2fOFvHLn8Y5pw=; b=S3wCtFSocVFiEJY5W0pFVjU3fELWkZGaczm9mnJMOcQ+jPjYVURLkpHEmxdw7HbTf7 MI+IkIMml2pWoJhzn3kNVP5KUUazFJb1FueZwSF0cJjZ+pddDWSiDsbZ0jAN7m9Mjw/g LpSVpqmgvl8ckCfd+/pcCJXnbJEWwdGke3tg3bWGIx6k4nkctl+8+TkyidhnmTPTOGs8 C+fsMTCxue30HtTbzVderSMcL6K+kTPyR6G3bZkaeGHMcbSXOmLedwRZcJdYURT6MULL 8m4WCJ+zkWhzPhPnbuFDCzmhKbOuYI+0RfrGK9SZvD9LS4IgmTlYEz8n2jHmz85o1Oha 0giw== X-Gm-Message-State: AOAM533JKtNpOCBIJo0Rhx6KiYwUrzw3ehfH2DAiuGsF/KIsoqmavB0h 1xsnFauBpasuN92N3et24A== X-Received: by 2002:aca:4187:: with SMTP id o129mr4173846oia.10.1617730852367; Tue, 06 Apr 2021 10:40:52 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id l81sm3876263oif.31.2021.04.06.10.40.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 10:40:51 -0700 (PDT) Received: (nullmailer pid 2016914 invoked by uid 1000); Tue, 06 Apr 2021 17:40:50 -0000 Date: Tue, 6 Apr 2021 12:40:50 -0500 From: Rob Herring To: Saravana Kannan Cc: Ilya Lipnitskiy , Frank Rowand , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , stable Subject: Re: [PATCH] of: property: do not create device links from *nr-gpios Message-ID: <20210406174050.GA1963300@robh.at.kernel.org> References: <20210405031436.2465475-1-ilya.lipnitskiy@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 05, 2021 at 01:18:56PM -0700, Saravana Kannan wrote: > On Mon, Apr 5, 2021 at 1:10 PM Ilya Lipnitskiy > wrote: > > > > Hi Saravana, > > > > On Mon, Apr 5, 2021 at 1:01 PM Saravana Kannan wrote: > > > > > > On Sun, Apr 4, 2021 at 8:14 PM Ilya Lipnitskiy > > > wrote: > > > > > > > > [,]nr-gpios property is used by some GPIO drivers[0] to indicate > > > > the number of GPIOs present on a system, not define a GPIO. nr-gpios is > > > > not configured by #gpio-cells and can't be parsed along with other > > > > "*-gpios" properties. > > > > > > > > scripts/dtc/checks.c also has a special case for nr-gpio{s}. However, > > > > nr-gpio is not really special, so we only need to fix nr-gpios suffix > > > > here. > > > > > > The only example of this that I see is "snps,nr-gpios". > > arch/arm64/boot/dts/apm/apm-shadowcat.dtsi uses "apm,nr-gpios", with > > parsing code in drivers/gpio/gpio-xgene-sb.c. There is also code in > > drivers/gpio/gpio-adnp.c and drivers/gpio/gpio-mockup.c using > > "nr-gpios" without any vendor prefix. > > Ah ok. I just grepped the DT files. I'm not sure what Rob's position > is on supporting DT files not in upstream. Thanks for the > clarification. If it's something we had documented, then we have to support it (also conditioned on someone noticing). I'm hoping we can just delete APM and other defunct ARM server DTs soon, but we could update them to use 'ngpios' instead. gpio-mockup doesn't have a binding, so no DT ABI. Hard to tell if gpio-adnp.c has any users. Rob