brcm63xx: Fixes and additions to the GPIO assignment of Huawei HW556 leds
authorJonas Gorski <jogo@openwrt.org>
Sun, 30 Jun 2013 13:10:08 +0000 (13:10 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sun, 30 Jun 2013 13:10:08 +0000 (13:10 +0000)
- Some fixes for the incorrect GPIO assignment of leds on Huawei HW556.
- Addition of unassigned (LAN) leds which can be found on the back of the device.

Signed-off-by: Angga Reza Fardana <angga@norture.com>
Patchwork: http://patchwork.openwrt.org/patch/3744/
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 37102

target/linux/brcm63xx/patches-3.9/534-board_hw556.patch
target/linux/brcm63xx/patches-3.9/535-board_rta770w.patch
target/linux/brcm63xx/patches-3.9/801-ssb_export_fallback_sprom.patch

index 828b589e7ae7c59a67b10e5943f27e57ba60e175..c66caf7fe3bd9cd99403933ac83e77a888d9e0c8 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2891,6 +2891,374 @@ static struct board_info __initdata boar
+@@ -2891,6 +2891,488 @@ static struct board_info __initdata boar
        },
  };
  
 +
 +      .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,
 +              },
 +                      .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",
 +              },
 +      },
 +
 +                      .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 = {
 +                      .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 = {
   /* T-Home Speedport W 303V Typ B */
  static struct board_info __initdata board_spw303v = {
        .name                   = "96358-502V",
-@@ -3322,6 +3690,10 @@ static const struct board_info __initcon
+@@ -3322,6 +3804,10 @@ static const struct board_info __initcon
        &board_nb4_fxc_r2,
        &board_ct6373_1,
        &board_HW553,
        &board_spw303v,
        &board_DVAG3810BN,
  #endif
-@@ -3387,13 +3759,37 @@ static void __init boardid_fixup(u8 *boo
+@@ -3387,13 +3873,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();
  
index 7232de6ae054e09e7f6e5a7e9ad6b1d32e59a298..3933d00b5cacff001375fc457837b6d748218f9d 100644 (file)
@@ -61,7 +61,7 @@
  #endif
  
  /*
-@@ -3652,6 +3706,7 @@ static const struct board_info __initcon
+@@ -3766,6 +3820,7 @@ static const struct board_info __initcon
  #ifdef CONFIG_BCM63XX_CPU_6345
        &board_96345gw2,
        &board_rta770bw,
index 7346be3a8d99bc8e3f670a081783ddf08a81e839..58caf68a05963fca1a84e48fadbcd55683d0a8f1 100644 (file)
@@ -8,7 +8,7 @@
  #include <linux/spi/spi.h>
  #include <linux/spi/spi_gpio.h>
  #include <linux/spi/74x164.h>
-@@ -3999,7 +4000,7 @@ static const struct board_info __initcon
+@@ -4113,7 +4114,7 @@ static const struct board_info __initcon
   * bcm4318 WLAN work
   */
  #ifdef CONFIG_SSB_PCIHOST
@@ -17,7 +17,7 @@
        .revision               = 0x02,
        .board_rev              = 0x17,
        .country_code           = 0x0,
-@@ -4019,6 +4020,7 @@ static struct ssb_sprom bcm63xx_sprom =
+@@ -4133,6 +4134,7 @@ static struct ssb_sprom bcm63xx_sprom =
        .boardflags_lo          = 0x2848,
        .boardflags_hi          = 0x0000,
  };