ARM: DTS: da850: fix missing #gpio-cells in gpio node
authorPetr Kulhavy <petr@barix.com>
Tue, 5 Apr 2016 09:31:37 +0000 (11:31 +0200)
committerSekhar Nori <nsekhar@ti.com>
Thu, 14 Apr 2016 06:10:24 +0000 (11:40 +0530)
The gpio node is missing the mandatory property #gpio-cells, which is
causing runtime errors when using GPIOs e.g. with gpio-leds or gpio-keys:

"could not get #gpio-cells for /soc/gpio@1e26000"

This fixes the problem and adds the missing parameter.
The value is 2 according to the gpio-davinci.txt binding.

Signed-off-by: Petr Kulhavy <petr@barix.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850.dtsi

index 226cda7..b0e3a4c 100644 (file)
                gpio: gpio@1e26000 {
                        compatible = "ti,dm6441-gpio";
                        gpio-controller;
+                       #gpio-cells = <2>;
                        reg = <0x226000 0x1000>;
                        interrupts = <42 IRQ_TYPE_EDGE_BOTH
                                43 IRQ_TYPE_EDGE_BOTH 44 IRQ_TYPE_EDGE_BOTH