Send openwrt-devel mailing list submissions to
openwrt-devel@lists.openwrt.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
or, via email, send a message with subject or body 'help' to
openwrt-devel-requ...@lists.openwrt.org
You can reach the person managing the list at
openwrt-devel-ow...@lists.openwrt.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of openwrt-devel digest..."
Today's Topics:
1. [PATCH] [brcm63xx] Fixes and additions to the GPIO assignment
of Huawei HW556 leds (Angga Reza Fardana)
----------------------------------------------------------------------
Message: 1
Date: Tue, 28 May 2013 18:14:01 +0200
From: Angga Reza Fardana <an...@norture.com>
To: openwrt-devel@lists.openwrt.org
Subject: [OpenWrt-Devel] [PATCH] [brcm63xx] Fixes and additions to the
GPIO assignment of Huawei HW556 leds
Message-ID:
<caoe_+6yuhv1itbpsqtqsgxeiwc_p0_dx8krakwnchh+bjer...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hello all!
This is my first contribution to the development of OpenWrt :)
Patch description:
- Some fixes for the incorrect GPIO assignment of leds on Huawei HW556.
- Removal of non-functioning led assignments to
GPIO pin 6.
- Addition of unassigned (LAN) leds which can be found on the back of the
device.
Signed-off-by: Angga Reza Fardana <an...@norture.com>
---
diff --git a/target/linux/brcm63xx/patches-3.8/534-board_hw556.patch
b/target/linux/brcm63xx/patches-3.8/534-board_hw556.patch
index fb0afa4..f4ec045 100644
--- a/target/linux/brcm63xx/patches-3.8/534-board_hw556.patch
+++ b/target/linux/brcm63xx/patches-3.8/534-board_hw556.patch
@@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2856,6 +2856,374 @@ static struct board_info __initdata boar
+@@ -2856,6 +2856,470 @@ static struct board_info __initdata boar
},
};
@@ -50,12 +50,6 @@
+ .active_low = 1,
+ .default_trigger = "default-on",
+ },
-+ {
-+ .name = "HW556:red:all",
-+ .gpio = 6,
-+ .active_low = 1,
-+ .default_trigger = "default-on",
-+ },
+ },
+
+ .buttons = {
@@ -122,12 +116,12 @@
+
+ .leds = {
+ {
-+ .name = "HW556:red:message",
++ .name = "HW556:green:lan1",
+ .gpio = 0,
+ .active_low = 1,
+ },
+ {
-+ .name = "HW556:red:hspa",
++ .name = "HW556:green:lan2",
+ .gpio = 1,
+ .active_low = 1,
+ },
@@ -143,10 +137,44 @@
+ .default_trigger = "default-on",
+ },
+ {
-+ .name = "HW556:red:all",
-+ .gpio = 6,
++ .name = "HW556:red:message",
++ .gpio = 12,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan1",
++ .gpio = 13,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:hspa",
++ .gpio = 15,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan2",
++ .gpio = 22,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:green:lan3",
++ .gpio = 23,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan3",
++ .gpio = 26,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:green:lan4",
++ .gpio = 27,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan4",
++ .gpio = 28,
+ .active_low = 1,
-+ .default_trigger = "default-on",
+ },
+ },
+
@@ -236,11 +264,45 @@
+ .default_trigger = "default-on",
+ },
+ {
-+ .name = "HW556:red:all",
-+ .gpio = 6,
-+ .active_low = 1,
-+ .default_trigger = "default-on",
-+ },
++ .name = "HW556:green:lan1",
++ .gpio = 12,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan1",
++ .gpio = 13,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:green:lan2",
++ .gpio = 15,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan2",
++ .gpio = 22,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:green:lan3",
++ .gpio = 23,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan3",
++ .gpio = 26,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:green:lan4",
++ .gpio = 27,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan4",
++ .gpio = 28,
++ .active_low = 1,
++ },
+ },
+
+ .buttons = {
@@ -329,10 +391,44 @@
+ .default_trigger = "default-on",
+ },
+ {
-+ .name = "HW556:red:all",
-+ .gpio = 6,
++ .name = "HW556:green:lan1",
++ .gpio = 12,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan1",
++ .gpio = 13,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:green:lan2",
++ .gpio = 15,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan2",
++ .gpio = 22,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:green:lan3",
++ .gpio = 23,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan3",
++ .gpio = 26,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:green:lan4",
++ .gpio = 27,
++ .active_low = 1,
++ },
++ {
++ .name = "HW556:red:lan4",
++ .gpio = 28,
+ .active_low = 1,
-+ .default_trigger = "default-on",
+ },
+ },
+
@@ -375,7 +471,7 @@
/* T-Home Speedport W 303V Typ B */
static struct board_info __initdata board_spw303v = {
.name = "96358-502V",
-@@ -3284,6 +3652,10 @@ static const struct board_info __initcon
+@@ -3284,6 +3748,10 @@ static const struct board_info __initcon
&board_nb4_fxc_r2,
&board_ct6373_1,
&board_HW553,
@@ -386,7 +482,7 @@
&board_spw303v,
&board_DVAG3810BN,
#endif
-@@ -3349,13 +3721,37 @@ static void __init boardid_fixup(u8 *boo
+@@ -3349,13 +3817,37 @@ static void __init boardid_fixup(u8 *boo
struct bcm_tag *tag = (struct bcm_tag *)(boot_addr + CFE_OFFSET_64K);
char *board_name = (char *)bcm63xx_nvram_get_name();
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20130528/8c6bdc02/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
------------------------------
End of openwrt-devel Digest, Vol 89, Issue 80
*********************************************