Received: by 10.223.185.116 with SMTP id b49csp907198wrg; Fri, 23 Feb 2018 08:38:13 -0800 (PST) X-Google-Smtp-Source: AH8x224iZfhiJ2eZ/eMo8MR5eCYEspde70qZC2jdbgFmV+T+iiWXDOCmer7aymTEEdlVVDczTS7g X-Received: by 2002:a17:902:14cb:: with SMTP id y11-v6mr2278813plg.294.1519403893625; Fri, 23 Feb 2018 08:38:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519403893; cv=none; d=google.com; s=arc-20160816; b=OzxEd/xQ5gH0YzyqkJEQ/rJ+QupuTWrOotkq/3fVSUCwSMxGhgOgCuO5Re6ibA/vQG /vnYFwm3VdNWG+jHNoiazaRKA9SnwDmYsC6ppium6XQ3U3bXQif6F8h9+L+fpGW5UvmS yWUVhcp5XHPkwLA7+r99Ymce+Rnv81stpviRFpfTGgd1TzGx/ukhLiBryweZXKM9eu4O GztckYUaQzj5FhqIHABwoTHSbGIo2RDUMw0oqt8MIowa89T9X0fvz+JmzFJc6mIEejqr 2yWSFwKKuaM8a7mKuhMOL5jYgI3kW1upkRbd9tHbtmHO2O4+NmRSbI8SnpEYX2UyBkju lljQ== 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:dkim-signature:arc-authentication-results; bh=0FkhhcKR0tPb7L4EAvHTrmVBC42TjIvFiqvlGiGhEbo=; b=acKwNGII3nWYHUbtcYFFwD39msRPVFpzxvXJtOT2xNAVnVMojfU6M/jTBqO+77eXZk 0dUiYbxZJ162XuMwKybbe5+d7XNyQB3E7Oc0FemjioqGwG5IvFcDf5jaQEQcM826k6zg NVCEfqFZuJNcTxOm9jv+esnVRfKWpeztYyY1jqKDi24uIB47tNPg1Wk3nAl6sIk8cttO naOqyJrn5/6g5CfFNie+AUps1EQJCll2rplu6Xhje2WVLCpNZdbEy1+/oxxKceI/GsAr 59mSmLvoesQ5pQHOmyS7y2yUBjIc5iWcfDx5v8PWua1o6Ec1v6zvRv11mAXFy/vQMKgp anNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SqCdAqx0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f187si1713854pgc.322.2018.02.23.08.37.58; Fri, 23 Feb 2018 08:38:13 -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; dkim=pass header.i=@linaro.org header.s=google header.b=SqCdAqx0; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751825AbeBWQhV (ORCPT + 99 others); Fri, 23 Feb 2018 11:37:21 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:41284 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751770AbeBWQhS (ORCPT ); Fri, 23 Feb 2018 11:37:18 -0500 Received: by mail-pl0-f68.google.com with SMTP id k8so5177415pli.8 for ; Fri, 23 Feb 2018 08:37:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=0FkhhcKR0tPb7L4EAvHTrmVBC42TjIvFiqvlGiGhEbo=; b=SqCdAqx0dkAJY91mid0oRzGcH400iVLC94jxN24qqL689fYnCBcCgZj9afGfr4cCn3 /8+lwCgm8JpiQ2CQ4t4EunSNDZt1m87UhVGruANEQu3nrpudwSLiJaErblds1iD3vyZ9 rIhsetnodIpRl/HVKk6kzAzOBXHjmRvfV83OM= 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:user-agent; bh=0FkhhcKR0tPb7L4EAvHTrmVBC42TjIvFiqvlGiGhEbo=; b=m6ZCujt5JWEKDHCuAIiKRb2mQ66OzgGl3Z8KE4ZAiiZK+9wNam8o2JPOm4rTr8adPW AT9CL11bwiXk8InW1Nr+mbq6xOhPdPWe4wWtgdwpi7Soo7VOnPG0Bs/tlBBeqcK8VUIt 8i8ReHxLGp4E+aiTMt7VW7PQN33uRQp1We8PQ8iKaR6CdKCKnRbhA1eca49lS9TxufpP MgFnEvjwlA0yn9Va24c0dfI59tJEd52lk+48Ml6OIkPovV3jwuhw1jxfNVwkaxwy8HGg M8xtqyIEaeBU5GWXfOYVEvVXo1JDrOV5dWO95Bw4gTQKBaWBAroOShHAuSFklPOywGSC 1RxA== X-Gm-Message-State: APf1xPDaMro4+WeVDOFDMnZ17UEOBoOfEawAGa7OIiR0K5JsPeqC/RxZ 8DmRICAjI3OcVRzKRqlZXfI69g== X-Received: by 2002:a17:902:3381:: with SMTP id b1-v6mr2353312plc.20.1519403838037; Fri, 23 Feb 2018 08:37:18 -0800 (PST) Received: from bjorns-mbp-2.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id j13sm6494313pfk.174.2018.02.23.08.37.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Feb 2018 08:37:17 -0800 (PST) Date: Fri, 23 Feb 2018 08:37:14 -0800 From: Bjorn Andersson To: Stephen Boyd , Rob Herring Cc: Linus Walleij , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Timur Tabi , Andy Shevchenko , linux-gpio@vger.kernel.org, Grant Likely , devicetree@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: pinctrl: Add a reserved-gpio-ranges property Message-ID: <20180223163714.GM93895@bjorns-mbp-2.lan> References: <20180126011400.2191-1-sboyd@codeaurora.org> <20180126011400.2191-2-sboyd@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180126011400.2191-2-sboyd@codeaurora.org> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 25 Jan 17:13 PST 2018, Stephen Boyd wrote: + Rob > Some qcom platforms make some GPIOs or pins unavailable for use > by non-secure operating systems, and thus reading or writing the > registers for those pins will cause access control issues. > Introduce a DT property to describe the set of GPIOs that are > available for use so that higher level OSes are able to know what > pins to avoid reading/writing. > > Cc: Grant Likely > Cc: > Signed-off-by: Stephen Boyd Acked-by: Bjorn Andersson Regards, Bjorn > --- > Documentation/devicetree/bindings/gpio/gpio.txt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/gpio/gpio.txt b/Documentation/devicetree/bindings/gpio/gpio.txt > index b5de08e3b1a2..c22b56680fc8 100644 > --- a/Documentation/devicetree/bindings/gpio/gpio.txt > +++ b/Documentation/devicetree/bindings/gpio/gpio.txt > @@ -151,9 +151,9 @@ in a lot of designs, some using all 32 bits, some using 18 and some using > first 18 GPIOs, at local offset 0 .. 17, are in use. > > If these GPIOs do not happen to be the first N GPIOs at offset 0...N-1, an > -additional bitmask is needed to specify which GPIOs are actually in use, > -and which are dummies. The bindings for this case has not yet been > -specified, but should be specified if/when such hardware appears. > +additional set of tuples is needed to specify which GPIOs are unusable, with > +the reserved-gpio-ranges binding. This property indicates the start and size > +of the GPIOs that can't be used. > > Optionally, a GPIO controller may have a "gpio-line-names" property. This is > an array of strings defining the names of the GPIO lines going out of the > @@ -178,6 +178,7 @@ gpio-controller@00000000 { > gpio-controller; > #gpio-cells = <2>; > ngpios = <18>; > + reserved-gpio-ranges = <0 4>, <12 2>; > gpio-line-names = "MMC-CD", "MMC-WP", "VDD eth", "RST eth", "LED R", > "LED G", "LED B", "Col A", "Col B", "Col C", "Col D", > "Row A", "Row B", "Row C", "Row D", "NMI button", > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >