arm: mvebu: enable gpio expander over i2c on Mirabox platform
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Tue, 22 Jan 2013 21:10:25 +0000 (22:10 +0100)
committerJason Cooper <jason@lakedaemon.net>
Tue, 12 Mar 2013 11:32:56 +0000 (11:32 +0000)
The Globalscale Mirabox platform can be connected to the JTAG/GPIO box
through the Multi-IO port. The GPIO box use the NXP PCA9505 I/O port
expansion IC to provide 40-bit parallel input/output GPIOs. This patch
enable the use of this expander on the Mirabox.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-370-mirabox.dts

index dd0c57dd9f3096ae40b35e2b4e43fc3c983f3ea1..193ae1467816009ab658eac727f8d563c60d91e0 100644 (file)
                usb@d0051000 {
                        status = "okay";
                };
+
+               i2c@d0011000 {
+                       status = "okay";
+                       clock-frequency = <100000>;
+                       pca9505: pca9505@25 {
+                               compatible = "nxp,pca9505";
+                               gpio-controller;
+                               #gpio-cells = <2>;
+                               reg = <0x25>;
+                       };
+               };
        };
 };