Author: jogo
Date: 2014-12-08 17:10:46 +0100 (Mon, 08 Dec 2014)
New Revision: 43572

Added:
   trunk/target/linux/brcm63xx/dts/td-w8900gb.dts
   trunk/target/linux/brcm63xx/profiles/tp-link.mk
Modified:
   trunk/target/linux/brcm63xx/image/Makefile
   
trunk/target/linux/brcm63xx/patches-3.14/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
   trunk/target/linux/brcm63xx/patches-3.14/505-board_spw500v.patch
   trunk/target/linux/brcm63xx/patches-3.14/506-board_gw6200_gw6000.patch
   
trunk/target/linux/brcm63xx/patches-3.18/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
   trunk/target/linux/brcm63xx/patches-3.18/505-board_spw500v.patch
   trunk/target/linux/brcm63xx/patches-3.18/506-board_gw6200_gw6000.patch
Log:
brcm63xx: add DT support for TD-W8900GB

According to the vendor tarball, the TD-w8900GB's flash has 64k erase
block size, but CFE spans two blocks. So fixup the image offset
accordingly but keep block size at its default (64k).

Signed-off-by: ?\195?\129lvaro Fern?\195?\161ndez Rojas <[email protected]>
[jogo: add commit message, add image offset, change nvram offset]
Signed-off-by: Jonas Gorski <[email protected]>

Copied: trunk/target/linux/brcm63xx/dts/td-w8900gb.dts (from rev 43571, 
trunk/target/linux/brcm63xx/dts/fast2404.dts)
===================================================================
--- trunk/target/linux/brcm63xx/dts/td-w8900gb.dts                              
(rev 0)
+++ trunk/target/linux/brcm63xx/dts/td-w8900gb.dts      2014-12-08 16:10:46 UTC 
(rev 43572)
@@ -0,0 +1,30 @@
+/dts-v1/;
+
+/include/ "bcm6348.dtsi"
+
+/ {
+       model = "TP-Link TD-W8900GB";
+       compatible = "tp-link,td-w8900gb", "brcm,bcm6348";
+};
+
+&pflash {
+       status = "ok";
+
+       linux,part-probe = "bcm63xxpart";
+
+       cfe@0 {
+               label = "CFE";
+               reg = <0x000000 0x020000>;
+               read-only;
+       };
+
+       linux@20000 {
+               label = "linux";
+               reg = <0x020000 0x3d0000>;
+       };
+
+       nvram@3e0000 {
+               label = "nvram";
+               reg = <0x3f0000 0x010000>;
+       };
+};

Modified: trunk/target/linux/brcm63xx/image/Makefile
===================================================================
--- trunk/target/linux/brcm63xx/image/Makefile  2014-12-08 16:10:41 UTC (rev 
43571)
+++ trunk/target/linux/brcm63xx/image/Makefile  2014-12-08 16:10:46 UTC (rev 
43572)
@@ -207,9 +207,6 @@
        # Belkin f5d7633
        $(call Image/Build/CFE,$(1),96348GW-10,6348,F5D7633)
 
-       # TP-Link 8900GB
-       $(call Image/Build/CFE,$(1),96348GW-11,6348,TD8900GB,$(shell printf 
'PRID\x89\x10\x00\x02'))
-
        # Inventel Livebox
        $(call Image/Build/RedBoot,livebox)
 
@@ -329,6 +326,8 @@
 $(eval $(call 
ImageDTB,CFEDTB,GW6200,gw6200,96348GW,6348,GW6200,--rsa-signature "$(shell 
printf '\x99')"))
 # Telsey CPVA642-type (e.g. CPA-ZNTE60T)
 $(eval $(call 
ImageDTB,CFEDTB,CPVA642,cpva642,CPVA642,6358,CPA-ZNTE60T,--signature "Telsey 
Tlc" --signature2 "99.99.999" --second-image-flag "0" --pad 4))
+# TP-Link TD-W8900GB
+$(eval $(call 
ImageDTB,CFEDTB,TDW8900GB,td-w8900gb,96348GW-11,6348,TD-W8900GB,--rsa-signature 
"$(shell printf 'PRID\x89\x10\x00\x02')" --image-offset 0x20000))
 # SFR Neufbox 4
 $(eval $(call 
ImageDTB,CFEDTB,Neufbox4,nb4-ser-r0,96358VW,6358,NEUFBOX4-SER,--rsa-signature 
"OpenWRT-$(REVISION)"))
 $(eval $(call 
ImageDTB,CFEDTB,Neufbox4,nb4-fxc-r1,96358VW,6358,NEUFBOX4-FXC,--rsa-signature 
"OpenWRT-$(REVISION)"))

Modified: 
trunk/target/linux/brcm63xx/patches-3.14/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
===================================================================
--- 
trunk/target/linux/brcm63xx/patches-3.14/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
     2014-12-08 16:10:41 UTC (rev 43571)
+++ 
trunk/target/linux/brcm63xx/patches-3.14/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
     2014-12-08 16:10:46 UTC (rev 43572)
@@ -14,7 +14,7 @@
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -736,6 +736,45 @@ static const struct board_info __initcon
+@@ -736,6 +736,46 @@ static const struct board_info __initcon
  };
  
  static struct of_device_id const bcm963xx_boards_dt[] = {
@@ -40,6 +40,7 @@
 +      { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
 +      { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
 +      { .compatible = "sagem,f@st2404", .data = &board_FAST2404, },
++      { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
 +#endif
 +#ifdef CONFIG_BCM63XX_CPU_6358
 +      { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },

Modified: trunk/target/linux/brcm63xx/patches-3.14/505-board_spw500v.patch
===================================================================
--- trunk/target/linux/brcm63xx/patches-3.14/505-board_spw500v.patch    
2014-12-08 16:10:41 UTC (rev 43571)
+++ trunk/target/linux/brcm63xx/patches-3.14/505-board_spw500v.patch    
2014-12-08 16:10:46 UTC (rev 43572)
@@ -98,6 +98,6 @@
        { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
        { .compatible = "sagem,f@st2404", .data = &board_FAST2404, },
 +      { .compatible = "t-com,spw500v", .data = &board_spw500v, },
+       { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6358
-       { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },

Modified: trunk/target/linux/brcm63xx/patches-3.14/506-board_gw6200_gw6000.patch
===================================================================
--- trunk/target/linux/brcm63xx/patches-3.14/506-board_gw6200_gw6000.patch      
2014-12-08 16:10:41 UTC (rev 43571)
+++ trunk/target/linux/brcm63xx/patches-3.14/506-board_gw6200_gw6000.patch      
2014-12-08 16:10:46 UTC (rev 43572)
@@ -128,6 +128,6 @@
        { .compatible = "t-com,spw500v", .data = &board_spw500v, },
 +      { .compatible = "tecom,gw6000", .data = &board_gw6000, },
 +      { .compatible = "tecom,gw6200", .data = &board_gw6200, },
+       { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6358
-       { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },

Modified: 
trunk/target/linux/brcm63xx/patches-3.18/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
===================================================================
--- 
trunk/target/linux/brcm63xx/patches-3.18/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
     2014-12-08 16:10:41 UTC (rev 43571)
+++ 
trunk/target/linux/brcm63xx/patches-3.18/369-MIPS-BCM63XX-populate-the-compatible-to-board_info-l.patch
     2014-12-08 16:10:46 UTC (rev 43572)
@@ -14,7 +14,7 @@
 
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -736,6 +736,45 @@ static const struct board_info __initcon
+@@ -736,6 +736,46 @@ static const struct board_info __initcon
  };
  
  static struct of_device_id const bcm963xx_boards_dt[] = {
@@ -40,6 +40,7 @@
 +      { .compatible = "davolink,dv-201amr", .data = &board_DV201AMR, },
 +      { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
 +      { .compatible = "sagem,f@st2404", .data = &board_FAST2404, },
++      { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
 +#endif
 +#ifdef CONFIG_BCM63XX_CPU_6358
 +      { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },

Modified: trunk/target/linux/brcm63xx/patches-3.18/505-board_spw500v.patch
===================================================================
--- trunk/target/linux/brcm63xx/patches-3.18/505-board_spw500v.patch    
2014-12-08 16:10:41 UTC (rev 43571)
+++ trunk/target/linux/brcm63xx/patches-3.18/505-board_spw500v.patch    
2014-12-08 16:10:46 UTC (rev 43572)
@@ -98,6 +98,6 @@
        { .compatible = "dynalink,rta1025w", .data = &board_rta1025w_16, },
        { .compatible = "sagem,f@st2404", .data = &board_FAST2404, },
 +      { .compatible = "t-com,spw500v", .data = &board_spw500v, },
+       { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6358
-       { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },

Modified: trunk/target/linux/brcm63xx/patches-3.18/506-board_gw6200_gw6000.patch
===================================================================
--- trunk/target/linux/brcm63xx/patches-3.18/506-board_gw6200_gw6000.patch      
2014-12-08 16:10:41 UTC (rev 43571)
+++ trunk/target/linux/brcm63xx/patches-3.18/506-board_gw6200_gw6000.patch      
2014-12-08 16:10:46 UTC (rev 43572)
@@ -128,6 +128,6 @@
        { .compatible = "t-com,spw500v", .data = &board_spw500v, },
 +      { .compatible = "tecom,gw6000", .data = &board_gw6000, },
 +      { .compatible = "tecom,gw6200", .data = &board_gw6200, },
+       { .compatible = "tp-link,td-w8900gb", .data = &board_96348gw_11, },
  #endif
  #ifdef CONFIG_BCM63XX_CPU_6358
-       { .compatible = "alcatel,rg100a", .data = &board_96358vw2, },

Copied: trunk/target/linux/brcm63xx/profiles/tp-link.mk (from rev 43571, 
trunk/target/linux/brcm63xx/profiles/davolink.mk)
===================================================================
--- trunk/target/linux/brcm63xx/profiles/tp-link.mk                             
(rev 0)
+++ trunk/target/linux/brcm63xx/profiles/tp-link.mk     2014-12-08 16:10:46 UTC 
(rev 43572)
@@ -0,0 +1,15 @@
+#
+# Copyright (C) 2014 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/TDW8900GB
+  NAME:=TP-Link TD-W8900GB
+  PACKAGES:=kmod-b43 wpad-mini
+endef
+define Profile/TDW8900GB/Description
+  Package set optimized for TD-W8900GB.
+endef
+$(eval $(call Profile,TDW8900GB))
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to