Skip to contentSkip to conversation

Documentation: minor correction of gpio dts example

PATCH In review [email protected] 2 participants 2 messages Jan 27, 2016 – Jan 28, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: minor correction of gpio dts example

From: Per Hallsmark <[email protected]>

As the example brings up two ranges of 10 pins each, the count should be 10 in both range definitions.

---
 Documentation/devicetree/bindings/gpio/gpio.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/gpio/gpio.txt +1 -1
index 069cdf6..ad3d64b 100644
@@ -252,7 +252,7 @@ Example 1:
 		compatible = "fsl,qe-pario-bank-e", "fsl,qe-pario-bank";
 		reg = <0x1460 0x18>;
 		gpio-controller;
-		gpio-ranges = <&pinctrl1 0 20 10>, <&pinctrl2 10 50 20>;
+		gpio-ranges = <&pinctrl1 0 20 10>, <&pinctrl2 10 50 10>;
 	};
 
 Here, a single GPIO controller has GPIOs 0..9 routed to pin controller
Signature · 1 line
2.5.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · On Thu, Jan 28, 2016 at 12:38 AM, <[email protected]> wrote:

From: Per Hallsmark <[email protected]>

As the example brings up two ranges of 10 pins each, the count should be 10 in both range definitions.

---
 Documentation/devicetree/bindings/gpio/gpio.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/gpio/gpio.txt +0 -0
index 069cdf6..ad3d64b 100644

Documentation/devicetree/bindings/gpio/gpio.txt Example 1: · line 255

Quoted 5 lines
Documentation/devicetree/bindings/gpio/gpio.txt +1 -1
@@ -252,7 +252,7 @@ Example 1:
                compatible = "fsl,qe-pario-bank-e", "fsl,qe-pario-bank";
                reg = <0x1460 0x18>;
                gpio-controller;
-               gpio-ranges = <&pinctrl1 0 20 10>, <&pinctrl2 10 50 20>;
+               gpio-ranges = <&pinctrl1 0 20 10>, <&pinctrl2 10 50 10>;

Looks correct wrt. the description that follows, thanks!

One nit: please make sure to run scripts/get_maintainer.pl on your patch and email the maintainers of the subsystem you are submitting to directly. It usually makes your email more visible in their inboxes than if you send to the mailing-list only.