Re: [OpenWrt-Devel] [PATCH][bcm63xx]: CPVA502+ board fixes

2014-06-30 Thread Jonas Gorski
On Wed, Apr 23, 2014 at 7:04 PM, dani dgcb...@gmail.com wrote:
 Some fixes for Telsey CPVA502+ bcm6348 routers:
 - reset the external PHY (eth1) with proper platform code, not using a led 
 definiton
 - eth1 is an external phy, not a switch, deleted forced link speed
 - fixed led color

 Patch made for 3.14 kernel patches.

Thanks, applied. In the future, please fix all kernel versions.


Jonas
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH][bcm63xx]: CPVA502+ board fixes

2014-04-23 Thread dani
Some fixes for Telsey CPVA502+ bcm6348 routers:
- reset the external PHY (eth1) with proper platform code, not using a led 
definiton
- eth1 is an external phy, not a switch, deleted forced link speed
- fixed led color

Patch made for 3.14 kernel patches.
 
Signed-off-by: Daniel Gonzalez dgcb...@gmail.com
Index: target/linux/brcm63xx/patches-3.14/519_board_CPVA502plus.patch
===
--- target/linux/brcm63xx/patches-3.14/519_board_CPVA502plus.patch  
(revision 40563)
+++ target/linux/brcm63xx/patches-3.14/519_board_CPVA502plus.patch  
(working copy)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1153,6 +1153,46 @@ static struct board_info __initdata boar
+@@ -1153,6 +1153,42 @@ static struct board_info __initdata boar
},
},
  };
@@ -21,8 +21,6 @@
 +  .enet1 = {
 +  .has_phy= 1,
 +  .phy_id = 0,
-+  .force_speed_100= 1,
-+  .force_duplex_full  = 1,
 +  },
 +
 +  .leds = {
@@ -32,22 +30,20 @@
 +  .active_low = 1,
 +  },
 +  {
-+  .name   = CPVA502+:green:link,
++  .name   = CPVA502+:amber:link,
 +  .gpio   = 5,
 +  .active_low = 1,
 +  },
-+  {
-+  .name   = CPVA502+:green:feth1, /* FIXME:does 
gpio4 enable eth1 phy? */
-+  .gpio   = 4,
-+  .active_low = 1,
-+  },
 +  },
++
++  .ephy_reset_gpio= 4,
++  .ephy_reset_gpio_flags  = GPIOF_INIT_HIGH,
 +};
 +
  #endif
  
  /*
-@@ -2234,6 +2274,7 @@ static const struct board_info __initcon
+@@ -2234,6 +2270,7 @@ static const struct board_info __initcon
board_V2110,
board_ct536_ct5621,
board_96348A_122,
Index: 
target/linux/brcm63xx/patches-3.14/520-bcm63xx-add-support-for-96368MVWG-board.patch
===
--- 
target/linux/brcm63xx/patches-3.14/520-bcm63xx-add-support-for-96368MVWG-board.patch
(revision 40563)
+++ 
target/linux/brcm63xx/patches-3.14/520-bcm63xx-add-support-for-96368MVWG-board.patch
(working copy)
@@ -10,7 +10,7 @@
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2238,6 +2238,85 @@ static struct board_info __initdata boar
+@@ -2234,6 +2234,85 @@ static struct board_info __initdata boar
  #endif
  
  /*
@@ -96,7 +96,7 @@
   * all boards
   */
  static const struct board_info __initconst *bcm963xx_boards[] = {
-@@ -2292,6 +2371,10 @@ static const struct board_info __initcon
+@@ -2288,6 +2367,10 @@ static const struct board_info __initcon
board_HW553,
board_spw303v,
  #endif
@@ -107,7 +107,7 @@
  };
  
  /*
-@@ -2473,12 +2556,25 @@ void __init board_prom_init(void)
+@@ -2469,12 +2552,25 @@ void __init board_prom_init(void)
bcm63xx_pci_enabled = 1;
if (BCMCPU_IS_6348())
val |= GPIO_MODE_6348_G2_PCI;
Index: 
target/linux/brcm63xx/patches-3.14/521-bcm63xx-add-support-for-96368MVNgr-board.patch
===
--- 
target/linux/brcm63xx/patches-3.14/521-bcm63xx-add-support-for-96368MVNgr-board.patch
   (revision 40563)
+++ 
target/linux/brcm63xx/patches-3.14/521-bcm63xx-add-support-for-96368MVNgr-board.patch
   (working copy)
@@ -9,7 +9,7 @@
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -2314,6 +2314,72 @@ static struct board_info __initdata boar
+@@ -2310,6 +2310,72 @@ static struct board_info __initdata boar
.has_ohci0 = 1,
.has_ehci0 = 1,
  };
@@ -82,7 +82,7 @@
  #endif
  
  /*
-@@ -2374,6 +2440,7 @@ static const struct board_info __initcon
+@@ -2370,6 +2436,7 @@ static const struct board_info __initcon
  
  #ifdef CONFIG_BCM63XX_CPU_6368
board_96368mvwg,
Index: 
target/linux/brcm63xx/patches-3.14/523-MIPS-BCM63XX-add-963281TAN-reference-board.patch
===
--- 
target/linux/brcm63xx/patches-3.14/523-MIPS-BCM63XX-add-963281TAN-reference-board.patch
 (revision 40563)
+++ 
target/linux/brcm63xx/patches-3.14/523-MIPS-BCM63XX-add-963281TAN-reference-board.patch
 (working copy)
@@ -86,7 +86,7 @@
  #endif
  
  /*
-@@ -2423,6 +2493,7 @@ static const struct board_info __initcon
+@@ -2419,6 +2489,7 @@ static const struct board_info __initcon
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6328
board_96328avng,
Index: target/linux/brcm63xx/patches-3.14/524-board_dsl_274xb_rev_f.patch
===
---