aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorNobuhiro Iwamatsu <iwamatsu@nigauri.org>2012-11-23 15:24:09 -0500
committerJason Cooper <jason@lakedaemon.net>2012-11-23 21:59:12 -0500
commit155acbe7f7bf7563239ff4d188634930512d0c02 (patch)
treee3e1599d7835aff4bca66ab3dec1addbab747cd6 /arch
parent5cd0e6e79bc1064f26a137a33217a7dfbd541a50 (diff)
ARM: Kirkwood: Add support LED of OpenBlocks A6
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/kirkwood-openblocks_a6.dts19
-rw-r--r--arch/arm/mach-kirkwood/board-openblocks_a6.c4
2 files changed, 21 insertions, 2 deletions
diff --git a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
index e80c9d0c4ee9..49d3d74d4d38 100644
--- a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
+++ b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
@@ -76,4 +76,23 @@
76 }; 76 };
77 }; 77 };
78 }; 78 };
79
80 gpio-leds {
81 compatible = "gpio-leds";
82
83 led-red {
84 label = "obsa6:red:stat";
85 gpios = <&gpio1 9 1>;
86 };
87
88 led-green {
89 label = "obsa6:green:stat";
90 gpios = <&gpio1 10 1>;
91 };
92
93 led-yellow {
94 label = "obsa6:yellow:stat";
95 gpios = <&gpio1 11 1>;
96 };
97 };
79}; 98};
diff --git a/arch/arm/mach-kirkwood/board-openblocks_a6.c b/arch/arm/mach-kirkwood/board-openblocks_a6.c
index e71f984b6d3c..815fc6451d52 100644
--- a/arch/arm/mach-kirkwood/board-openblocks_a6.c
+++ b/arch/arm/mach-kirkwood/board-openblocks_a6.c
@@ -55,8 +55,8 @@ static unsigned int openblocks_a6_mpp_config[] __initdata = {
55 MPP38_GPIO, /* INIT */ 55 MPP38_GPIO, /* INIT */
56 MPP39_GPIO, /* USB OC */ 56 MPP39_GPIO, /* USB OC */
57 MPP41_GPIO, /* LED: Red */ 57 MPP41_GPIO, /* LED: Red */
58 MPP42_GPIO, /* LED: Yellow */ 58 MPP42_GPIO, /* LED: Green */
59 MPP43_GPIO, /* LED: Green */ 59 MPP43_GPIO, /* LED: Yellow */
60 0, 60 0,
61}; 61};
62 62