Since the doc example talk about two ranges of 10 gpio pins, I guess the gpio-ranges count should be 10 in both definitions? /Per
From 49759e85c30dae5884efd979f03be475e76ed7d6 Mon Sep 17 00:00:00 2001 From: Per Hallsmark <per.hallsmark@xxxxxxxxxxxxx> Date: Fri, 22 Jan 2016 10:51:14 +0100 Subject: [PATCH] gpio: minor correction in docs Signed-off-by: Per Hallsmark <per.hallsmark@xxxxxxxxxxxxx> --- Documentation/devicetree/bindings/gpio/gpio.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio.txt b/Documentation/devicetree/bindings/gpio/gpio.txt index 069cdf6..ad3d64b 100644 --- a/Documentation/devicetree/bindings/gpio/gpio.txt +++ b/Documentation/devicetree/bindings/gpio/gpio.txt @@ -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 -- 2.5.0