ARM: Kirkwood: Add support LED of OpenBlocks A6
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Fri, 23 Nov 2012 20:24:09 +0000 (05:24 +0900)
committerJason Cooper <jason@lakedaemon.net>
Sat, 24 Nov 2012 02:59:12 +0000 (02:59 +0000)
OpenBlocks A6 has three leds via GPIO. This supports them.
And this fix typo about led, because hardware manual has typo.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/kirkwood-openblocks_a6.dts
arch/arm/mach-kirkwood/board-openblocks_a6.c

index e80c9d0..49d3d74 100644 (file)
                        };
                };
        };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               led-red {
+                       label = "obsa6:red:stat";
+                       gpios = <&gpio1 9 1>;
+               };
+
+               led-green {
+                       label = "obsa6:green:stat";
+                       gpios = <&gpio1 10 1>;
+               };
+
+               led-yellow {
+                       label = "obsa6:yellow:stat";
+                       gpios = <&gpio1 11 1>;
+               };
+        };
 };
index e71f984..815fc64 100644 (file)
@@ -55,8 +55,8 @@ static unsigned int openblocks_a6_mpp_config[] __initdata = {
        MPP38_GPIO, /* INIT */
        MPP39_GPIO, /* USB OC */
        MPP41_GPIO, /* LED: Red */
-       MPP42_GPIO, /* LED: Yellow */
-       MPP43_GPIO, /* LED: Green */
+       MPP42_GPIO, /* LED: Green */
+       MPP43_GPIO, /* LED: Yellow */
        0,
 };