From patchwork Wed Jan 10 01:58:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 10153787 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F11C860223 for ; Wed, 10 Jan 2018 01:59:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2F03201B0 for ; Wed, 10 Jan 2018 01:59:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7C27212DB; Wed, 10 Jan 2018 01:59:06 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 43D29201B0 for ; Wed, 10 Jan 2018 01:59:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=RfXUGtahOM+rD6lsAB3jRIngH4LjaEVDKk0an57tiJE=; b=PhNiR8/E0h3ERAMgkCwaKa1CPi eX72PWjl4O2vLG+/Qll52LuHrpJ2cPI7VhNTgApBvMuAJ6VtAVZ57GI9gDa6sjUbW3pG5gC7Tsygz t7ZTcpuy/FDWYCqkhh1kmdl6i0BxQpO3hbrMrjyQUs+QvMoL0LwTmGHYq/7xU5OrwOVGFb02tNeAn PEjW6CPMdzokv8cvm7XITjTop5DWSk95V3PLWbAs4dt4Ukh//lChvzdIAaV1oT04t9wbr6qHXypbm cpjMNFWj9cncRkSCqRHi+NcfPv2iKAuGjUdETMDXVG1FDhjU1SjGKZM8GW0T1D1XwGsUHJ2NBuaDy zjZe7EHw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eZ5fU-0002y9-Cl; Wed, 10 Jan 2018 01:59:04 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eZ5fQ-0002vr-MK for linux-arm-kernel@lists.infradead.org; Wed, 10 Jan 2018 01:59:02 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2092460BF5; Wed, 10 Jan 2018 01:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1515549531; bh=XBTOAYzzaQyslh69FciUsMtxkZqRRLreBAnDXJMHia8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CtGCa2hJ6hXUpePEZoQb1P6Y0/1EBwi2yta7Z8/80nR0WVKlPVOzL+yY0QHW3/HKm nrlPQqJ0JJNaOX6Mn7xaJIewlN1QKo5zEGH+lkh+tsQHCdTmVWfW57jsPjg/9RIxFT PTshTusQs04dC1ZwxShnF9j/FMvXrIL86RlILAwA= Received: from sboyd-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sboyd@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 4224B60BE6; Wed, 10 Jan 2018 01:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1515549530; bh=XBTOAYzzaQyslh69FciUsMtxkZqRRLreBAnDXJMHia8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g5mDumR81obtMci+5O14jkDh7HDmNFbVc00zNWNmhC0gePbDHVKnz7eiiKbYRNq7v h71szbLUFudyDRb0/tSjgA6uMyfAzpokuNwVj4dq9mWk9s7bprrIY7MSvCdcgULesZ ILsoOyGondH2qRx1OSDsV2Neb+ORmI/AoTqJ7axE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 4224B60BE6 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org From: Stephen Boyd To: Linus Walleij Subject: [PATCH 2/3] dt-bindings: pinctrl: Add a ngpios-ranges property Date: Tue, 9 Jan 2018 17:58:47 -0800 Message-Id: <20180110015848.11480-3-sboyd@codeaurora.org> X-Mailer: git-send-email 2.15.0.374.g5f9953d2c365 In-Reply-To: <20180110015848.11480-1-sboyd@codeaurora.org> References: <20180110015848.11480-1-sboyd@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180109_175900_771008_411025D1 X-CRM114-Status: UNSURE ( 9.49 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Timur Tabi , linux-kernel@vger.kernel.org, Bjorn Andersson , linux-gpio@vger.kernel.org, Andy Shevchenko , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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: Signed-off-by: Stephen Boyd --- I stuck this inside msm8996, but maybe it can go somewhere more generic? Documentation/devicetree/bindings/pinctrl/qcom,msm8996-pinctrl.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/qcom,msm8996-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/qcom,msm8996-pinctrl.txt index aaf01e929eea..8354ab270486 100644 --- a/Documentation/devicetree/bindings/pinctrl/qcom,msm8996-pinctrl.txt +++ b/Documentation/devicetree/bindings/pinctrl/qcom,msm8996-pinctrl.txt @@ -40,6 +40,12 @@ MSM8996 platform. Definition: must be 2. Specifying the pin number and flags, as defined in +- ngpios-ranges: + Usage: optional + Value type: + Definition: Tuples of GPIO ranges (base, size) indicating + GPIOs available for use. + Please refer to ../gpio/gpio.txt and ../interrupt-controller/interrupts.txt for a general description of GPIO and interrupt bindings.