Skip to content

Commit

Permalink
ARM: Kirkwood: Add support LED of OpenBlocks A6
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nobuhiro Iwamatsu authored and Jason Cooper committed Nov 24, 2012
1 parent 5cd0e6e commit 155acbe
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
19 changes: 19 additions & 0 deletions arch/arm/boot/dts/kirkwood-openblocks_a6.dts
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,23 @@
};
};
};

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>;
};
};
};
4 changes: 2 additions & 2 deletions arch/arm/mach-kirkwood/board-openblocks_a6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 155acbe

Please sign in to comment.