]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
gpio: DT: Rephrase "gpios" of hog node to support multiple gpios
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 8 Mar 2016 11:23:16 +0000 (16:53 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 20 Oct 2016 17:45:13 +0000 (10:45 -0700)
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.

Change-Id: If5e89a14300e7b4493016d8d77ac40c664513e82
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1239706
Reviewed-by: Suresh Mangipudi <smangipudi@nvidia.com>
GVS: Gerrit_Virtual_Submit

Documentation/devicetree/bindings/gpio/gpio.txt

index 069cdf6f9dace228fe8fd97dc63c2d861273fc03..6270e2ddb7b88e81874cf2729ba711d414e48028 100644 (file)
@@ -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: