瀏覽代碼

gpio: dwapb: correct gpio-cells in binding document

The example uses gpio-cells = 1 while it should be two (it is even
mentioned in the text above).

Cc: devicetree@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Sebastian Andrzej Siewior 11 年之前
父節點
當前提交
a54aef5072
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Documentation/devicetree/bindings/gpio/snps-dwapb-gpio.txt

+ 2 - 2
Documentation/devicetree/bindings/gpio/snps-dwapb-gpio.txt

@@ -41,7 +41,7 @@ gpio: gpio@20000 {
 	porta: gpio-controller@0 {
 	porta: gpio-controller@0 {
 		compatible = "snps,dw-apb-gpio-port";
 		compatible = "snps,dw-apb-gpio-port";
 		gpio-controller;
 		gpio-controller;
-		#gpio-cells = <1>;
+		#gpio-cells = <2>;
 		snps,nr-gpios = <8>;
 		snps,nr-gpios = <8>;
 		reg = <0>;
 		reg = <0>;
 		interrupt-controller;
 		interrupt-controller;
@@ -53,7 +53,7 @@ gpio: gpio@20000 {
 	portb: gpio-controller@1 {
 	portb: gpio-controller@1 {
 		compatible = "snps,dw-apb-gpio-port";
 		compatible = "snps,dw-apb-gpio-port";
 		gpio-controller;
 		gpio-controller;
-		#gpio-cells = <1>;
+		#gpio-cells = <2>;
 		snps,nr-gpios = <8>;
 		snps,nr-gpios = <8>;
 		reg = <1>;
 		reg = <1>;
 	};
 	};