From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932270AbcCKN5A (ORCPT ); Fri, 11 Mar 2016 08:57:00 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:8876 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932225AbcCKN4t (ORCPT ); Fri, 11 Mar 2016 08:56:49 -0500 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Fri, 11 Mar 2016 05:56:10 -0800 From: Laxman Dewangan To: , , , , , , CC: , , , , Laxman Dewangan Subject: [PATCH V2 4/5] gpio: DT: Rephrase "gpios" of hog node to support multiple gpios Date: Fri, 11 Mar 2016 19:13:23 +0530 Message-ID: <1457703804-3016-5-git-send-email-ldewangan@nvidia.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1457703804-3016-1-git-send-email-ldewangan@nvidia.com> References: <1457703804-3016-1-git-send-email-ldewangan@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The property "gpios" of GPIO hog node support the multiple GPIO entries. Rephrase the details of this property for this new support. Add details of new property "label" for GPIO label name. Signed-off-by: Laxman Dewangan --- Changes from V1: - Add details for the new property "label". - Resequence series to make this as 4/5 which was 5/5. --- Documentation/devicetree/bindings/gpio/gpio.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio.txt b/Documentation/devicetree/bindings/gpio/gpio.txt index 069cdf6..6270e2d 100644 --- a/Documentation/devicetree/bindings/gpio/gpio.txt +++ b/Documentation/devicetree/bindings/gpio/gpio.txt @@ -162,9 +162,9 @@ gpio-controller's driver probe function. Each GPIO hog definition is represented as a child node of the GPIO controller. Required properties: - gpio-hog: A property specifying that this child node represent a GPIO hog. -- gpios: Store the GPIO information (id, flags, ...). Shall contain the - number of cells specified in its parent node (GPIO controller - node). +- gpios: Store the GPIO information (id, flags, ...). Multiple GPIOs are + possible to list here. Shall contain the number of cells + specified in its parent node (GPIO controller node) per GPIOs. Only one of the following properties scanned in the order shown below. This means that when multiple properties are present they will be searched in the order presented below and the first match is taken as the intended @@ -177,6 +177,11 @@ configuration. Optional properties: - line-name: The GPIO label name. If not present the node name is used. +- label: The GPIO lable name. This can have multiple string for GPIO + label names to match with the GPIOs in "gpios" properties. + If line-name is prosent than name is taken from line-name. If + it is not then the name will be taken from label. If both are + not available then node name is used for GPIO label name. Example of two SOC GPIO banks defined as gpio-controller nodes: -- 2.1.4 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Laxman Dewangan Subject: [PATCH V2 4/5] gpio: DT: Rephrase "gpios" of hog node to support multiple gpios Date: Fri, 11 Mar 2016 19:13:23 +0530 Message-ID: <1457703804-3016-5-git-send-email-ldewangan@nvidia.com> References: <1457703804-3016-1-git-send-email-ldewangan@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1457703804-3016-1-git-send-email-ldewangan@nvidia.com> Sender: linux-kernel-owner@vger.kernel.org To: linus.walleij@linaro.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, mpa@pengutronix.de, swarren@wwwdotorg.org, treding@nvidia.com Cc: bparrot@ti.com, acourbot@nvidia.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Laxman Dewangan List-Id: devicetree@vger.kernel.org The property "gpios" of GPIO hog node support the multiple GPIO entries. Rephrase the details of this property for this new support. Add details of new property "label" for GPIO label name. Signed-off-by: Laxman Dewangan --- Changes from V1: - Add details for the new property "label". - Resequence series to make this as 4/5 which was 5/5. --- Documentation/devicetree/bindings/gpio/gpio.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio.txt b/Documentation/devicetree/bindings/gpio/gpio.txt index 069cdf6..6270e2d 100644 --- a/Documentation/devicetree/bindings/gpio/gpio.txt +++ b/Documentation/devicetree/bindings/gpio/gpio.txt @@ -162,9 +162,9 @@ gpio-controller's driver probe function. Each GPIO hog definition is represented as a child node of the GPIO controller. Required properties: - gpio-hog: A property specifying that this child node represent a GPIO hog. -- gpios: Store the GPIO information (id, flags, ...). Shall contain the - number of cells specified in its parent node (GPIO controller - node). +- gpios: Store the GPIO information (id, flags, ...). Multiple GPIOs are + possible to list here. Shall contain the number of cells + specified in its parent node (GPIO controller node) per GPIOs. Only one of the following properties scanned in the order shown below. This means that when multiple properties are present they will be searched in the order presented below and the first match is taken as the intended @@ -177,6 +177,11 @@ configuration. Optional properties: - line-name: The GPIO label name. If not present the node name is used. +- label: The GPIO lable name. This can have multiple string for GPIO + label names to match with the GPIOs in "gpios" properties. + If line-name is prosent than name is taken from line-name. If + it is not then the name will be taken from label. If both are + not available then node name is used for GPIO label name. Example of two SOC GPIO banks defined as gpio-controller nodes: -- 2.1.4