brcm63xx: Add DT support for CT-6373

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
[jogo: make linux partition writable]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 42238
This commit is contained in:
Jonas Gorski 2014-08-21 11:28:14 +00:00
parent e490cc7e14
commit 1891b08f00
28 changed files with 81 additions and 40 deletions

View file

@ -0,0 +1,30 @@
/dts-v1/;
/include/ "bcm6358.dtsi"
/ {
model = "Comtrend CT-6373";
compatible = "comtrend,ct-6373", "brcm,bcm6358";
};
&pflash {
status = "ok";
linux,part-probe = "bcm63xxpart";
cfe@0 {
label = "CFE";
reg = <0x000000 0x010000>;
read-only;
};
linux@10000 {
label = "linux";
reg = <0x010000 0x7e0000>;
};
nvram@7f0000 {
label = "nvram";
reg = <0x7f0000 0x010000>;
};
};

View file

@ -271,8 +271,6 @@ define Image/Build
# Sagem F@ST2504n
$(call Image/Build/CFE,$(1),F@ST2504n,6362,F@ST2504n,OpenWRT-$(REVISION))
# Comtrend 6373
$(call Image/Build/CFE,$(1),CT6373-1,6358,CT6373)
# Comtrend AR-5381u
$(call Image/Build/CFE,$(1),96328A-1241N,6328,AR-5381u,,--pad 8)
# Comtrend AR-5387un
@ -363,6 +361,8 @@ $(eval $(call CfeImageDTB,AR1004G,ar1004g,96348GW-10,6348,AR1004G))
$(eval $(call CfeImageDTB,CT536_CT5621,ct536plus,96348GW-11,6348,CT536_CT5621))
# Comtrend CT-5365
$(eval $(call CfeImageDTB,CT5365,ct-5365,96348A-122,6348,CT-5365))
# Comtrend CT-6373
$(eval $(call CfeImageDTB,CT6373,ct-6373,CT6373-1,6358,CT-6373))
# D-Link DSL-2740B/DSL-2741B, rev C2
$(eval $(call CfeImageDTB,DSL274XB_C,dsl-274xb-c,96358GW,6358,DSL274XB-C2))
# D-Link DSL-2740B/DSL-2741B, rev C3

View file

@ -13,7 +13,7 @@
/*
* known 3368 boards
*/
@@ -2050,6 +2056,124 @@ static struct board_info __initdata boar
@@ -2050,6 +2056,125 @@ static struct board_info __initdata boar
.num_spis = ARRAY_SIZE(nb4_spi_devices),
};
@ -58,6 +58,7 @@
+
+static struct board_info __initdata board_ct6373_1 = {
+ .name = "CT6373-1",
+ .of_board_id = "comtrend,ct-6373",
+ .expected_cpu_id = 0x6358,
+
+ .has_uart0 = 1,
@ -138,7 +139,7 @@
static struct board_info __initdata board_HW553 = {
.name = "HW553",
.expected_cpu_id = 0x6358,
@@ -2391,6 +2515,7 @@ static const struct board_info __initcon
@@ -2391,6 +2516,7 @@ static const struct board_info __initcon
&board_dsl_274xb_rev_c,
&board_nb4_ser_r0,
&board_nb4_fxc_r1,

View file

@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -2316,6 +2316,74 @@ static struct board_info __initdata boar
@@ -2317,6 +2317,74 @@ static struct board_info __initdata boar
},
}
};
@ -75,7 +75,7 @@
#endif /* CONFIG_BCM63XX_CPU_6358 */
/*
@@ -2518,6 +2586,7 @@ static const struct board_info __initcon
@@ -2519,6 +2587,7 @@ static const struct board_info __initcon
&board_ct6373_1,
&board_HW553,
&board_spw303v,

View file

@ -17,7 +17,7 @@
#define CT6373_PID_OFFSET 0xff80
#define CT6373_74X164_GPIO_BASE 64
@@ -2386,6 +2389,105 @@ static struct board_info __initdata boar
@@ -2387,6 +2390,105 @@ static struct board_info __initdata boar
};
#endif /* CONFIG_BCM63XX_CPU_6358 */
@ -123,7 +123,7 @@
/*
* known 6368 boards
*/
@@ -2589,6 +2691,10 @@ static const struct board_info __initcon
@@ -2590,6 +2692,10 @@ static const struct board_info __initcon
&board_DVAG3810BN,
#endif

View file

@ -58,7 +58,7 @@
static struct board_info __initdata board_rta1025w_16 = {
.name = "RTA1025W_16",
.of_board_id = "dynalink,rta1025w",
@@ -2662,6 +2713,7 @@ static const struct board_info __initcon
@@ -2663,6 +2714,7 @@ static const struct board_info __initcon
&board_96348gw_10,
&board_96348gw_11,
&board_FAST2404,

View file

@ -134,7 +134,7 @@
static struct board_info __initdata board_dsl_274xb_f1 = {
.name = "AW4339U",
.expected_cpu_id = 0x6328,
@@ -2694,6 +2821,7 @@ static const struct board_info __initcon
@@ -2695,6 +2822,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6328
&board_96328avng,
&board_963281TAN,

View file

@ -116,7 +116,7 @@
static struct board_info __initdata board_963281TAN = {
.name = "963281TAN",
.expected_cpu_id = 0x6328,
@@ -2820,6 +2929,7 @@ static const struct board_info __initcon
@@ -2821,6 +2930,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_6328
&board_96328avng,

View file

@ -92,7 +92,7 @@
static struct sprom_fixup __initdata ar5387un_fixups[] = {
{ .offset = 2, .value = 0x05bb },
{ .offset = 65, .value = 0x1204 },
@@ -2929,6 +3014,7 @@ static const struct board_info __initcon
@@ -2930,6 +3015,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_6328
&board_96328avng,

View file

@ -56,7 +56,7 @@
#endif /* CONFIG_BCM63XX_CPU_6345 */
/*
@@ -3028,6 +3077,7 @@ static const struct board_info __initcon
@@ -3029,6 +3078,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_6345
&board_96345gw2,

View file

@ -8,7 +8,7 @@
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_gpio.h>
@@ -2675,6 +2676,405 @@ static struct board_info __initdata boar
@@ -2676,6 +2677,405 @@ static struct board_info __initdata boar
},
};
@ -414,7 +414,7 @@
/* T-Home Speedport W 303V Typ B */
static struct board_info __initdata board_spw303v = {
.name = "96358-502V",
@@ -3113,6 +3513,9 @@ static const struct board_info __initcon
@@ -3114,6 +3514,9 @@ static const struct board_info __initcon
&board_nb4_fxc_r1,
&board_ct6373_1,
&board_HW553,

View file

@ -61,7 +61,7 @@
#endif /* CONFIG_BCM63XX_CPU_6345 */
/*
@@ -3478,6 +3532,7 @@ static const struct board_info __initcon
@@ -3479,6 +3533,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6345
&board_96345gw2,
&board_rta770bw,

View file

@ -135,7 +135,7 @@ Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
#endif /* CONFIG_BCM63XX_CPU_6328 */
/*
@@ -3522,6 +3638,7 @@ static const struct board_info __initcon
@@ -3523,6 +3639,7 @@ static const struct board_info __initcon
&board_963281TAN,
&board_A4001N1,
&board_dsl_274xb_f1,

View file

@ -6,7 +6,7 @@ Signed-off-by: Max Staudt <openwrt.max@enpas.org>
---
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -3477,6 +3477,96 @@ static struct board_info __initdata boar
@@ -3478,6 +3478,96 @@ static struct board_info __initdata boar
.devs = nb6_devices,
.num_devs = ARRAY_SIZE(nb6_devices),
};
@ -103,7 +103,7 @@ Signed-off-by: Max Staudt <openwrt.max@enpas.org>
#endif /* CONFIG_BCM63XX_CPU_6362 */
/*
@@ -3694,6 +3784,7 @@ static const struct board_info __initcon
@@ -3695,6 +3785,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6362
&board_nb6,

View file

@ -94,7 +94,7 @@
* known 6328 boards
*/
#ifdef CONFIG_BCM63XX_CPU_6328
@@ -3952,6 +4039,9 @@ static const struct board_info __initcon
@@ -3953,6 +4040,9 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_3368
&board_cvg834g,
#endif

View file

@ -95,7 +95,7 @@
#endif /* CONFIG_BCM63XX_CPU_6318 */
/*
@@ -4041,6 +4129,7 @@ static const struct board_info __initcon
@@ -4042,6 +4130,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_6318
&board_96318ref,

View file

@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -4121,6 +4121,75 @@ static struct board_info __initdata boar
@@ -4122,6 +4122,75 @@ static struct board_info __initdata boar
#endif /* CONFIG_BCM63XX_CPU_6368 */
/*
@ -76,7 +76,7 @@
* all boards
*/
static const struct board_info __initconst *bcm963xx_boards[] = {
@@ -4201,6 +4270,9 @@ static const struct board_info __initcon
@@ -4202,6 +4271,9 @@ static const struct board_info __initcon
&board_96368mvwg,
&board_96368mvngr,
#endif

View file

@ -61,7 +61,7 @@ Signed-off-by: Adrian Feliks <mexit@o2.pl>
/* BT Voyager 2110 */
static struct board_info __initdata board_V2110 = {
@@ -4241,6 +4287,7 @@ static const struct board_info __initcon
@@ -4242,6 +4288,7 @@ static const struct board_info __initcon
&board_96348A_122,
&board_CPVA502plus,
&board_96348W3,

View file

@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -4233,6 +4233,108 @@ static struct board_info __initdata boar
@@ -4234,6 +4234,108 @@ static struct board_info __initdata boar
},
},
};
@ -109,7 +109,7 @@
#endif /* CONFIG_BCM63XX_CPU_63268 */
/*
@@ -4319,6 +4421,7 @@ static const struct board_info __initcon
@@ -4320,6 +4422,7 @@ static const struct board_info __initcon
#endif
#ifdef CONFIG_BCM63XX_CPU_63268
&board_963269bhr,

View file

@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -4170,6 +4170,131 @@ static struct board_info __initdata boar
@@ -4171,6 +4171,131 @@ static struct board_info __initdata boar
* known 63268/63269 boards
*/
#ifdef CONFIG_BCM63XX_CPU_63268
@ -132,7 +132,7 @@
static struct board_info __initdata board_963269bhr = {
.name = "963269BHR",
.expected_cpu_id = 0x63268,
@@ -4420,6 +4545,7 @@ static const struct board_info __initcon
@@ -4421,6 +4546,7 @@ static const struct board_info __initcon
&board_96368mvngr,
#endif
#ifdef CONFIG_BCM63XX_CPU_63268

View file

@ -8,7 +8,7 @@
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/spi/spi_gpio.h>
@@ -4164,6 +4165,117 @@ static struct board_info __initdata boar
@@ -4165,6 +4166,117 @@ static struct board_info __initdata boar
.has_ohci0 = 1,
.has_ehci0 = 1,
};
@ -126,7 +126,7 @@
#endif /* CONFIG_BCM63XX_CPU_6368 */
/*
@@ -4543,6 +4655,7 @@ static const struct board_info __initcon
@@ -4544,6 +4656,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6368
&board_96368mvwg,
&board_96368mvngr,

View file

@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -4166,6 +4166,116 @@ static struct board_info __initdata boar
@@ -4167,6 +4167,116 @@ static struct board_info __initdata boar
.has_ehci0 = 1,
};
@ -117,7 +117,7 @@
static struct b53_platform_data WAP5813n_b53_pdata = {
.alias = "eth0",
};
@@ -4655,6 +4765,7 @@ static const struct board_info __initcon
@@ -4656,6 +4766,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6368
&board_96368mvwg,
&board_96368mvngr,

View file

@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -4276,6 +4276,116 @@ static struct board_info __initdata boar
@@ -4277,6 +4277,116 @@ static struct board_info __initdata boar
},
};
@ -117,7 +117,7 @@
static struct b53_platform_data WAP5813n_b53_pdata = {
.alias = "eth0",
};
@@ -4766,6 +4876,7 @@ static const struct board_info __initcon
@@ -4767,6 +4877,7 @@ static const struct board_info __initcon
&board_96368mvwg,
&board_96368mvngr,
&board_VR3025u,

View file

@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -4175,6 +4175,96 @@ static struct sprom_fixup __initdata vr3
@@ -4176,6 +4176,96 @@ static struct sprom_fixup __initdata vr3
{ .offset = 115, .value = 0xfad9 },
};
@ -97,7 +97,7 @@
static struct board_info __initdata board_VR3025u = {
.name = "96368M-1541N",
.expected_cpu_id = 0x6368,
@@ -4875,6 +4965,7 @@ static const struct board_info __initcon
@@ -4876,6 +4966,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6368
&board_96368mvwg,
&board_96368mvngr,

View file

@ -1,6 +1,6 @@
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -3222,6 +3222,56 @@ static struct board_info __initdata boar
@@ -3223,6 +3223,56 @@ static struct board_info __initdata boar
.num_spis = ARRAY_SIZE(ct6373_spi_devices),
};
@ -57,7 +57,7 @@
static struct board_info __initdata board_HW553 = {
.name = "HW553",
.expected_cpu_id = 0x6358,
@@ -4949,6 +4999,7 @@ static const struct board_info __initcon
@@ -4950,6 +5000,7 @@ static const struct board_info __initcon
&board_nb4_ser_r0,
&board_nb4_fxc_r1,
&board_ct6373_1,

View file

@ -96,7 +96,7 @@
static struct board_info __initdata board_A4001N1 = {
.name = "963281T_TEF",
.expected_cpu_id = 0x6328,
@@ -4950,6 +5039,7 @@ static const struct board_info __initcon
@@ -4951,6 +5040,7 @@ static const struct board_info __initcon
&board_AR5381u,
&board_AR5387un,
&board_963281TAN,

View file

@ -142,7 +142,7 @@
#endif /* CONFIG_BCM63XX_CPU_6318 */
/*
@@ -5033,6 +5168,7 @@ static const struct board_info __initcon
@@ -5034,6 +5169,7 @@ static const struct board_info __initcon
#ifdef CONFIG_BCM63XX_CPU_6318
&board_96318ref,
&board_96318ref_p300,

View file

@ -22,3 +22,13 @@ define Profile/CT5365/Description
Package set optimized for CT-5365.
endef
$(eval $(call Profile,CT5365))
define Profile/CT6373
NAME:=Comtrend CT-6373
PACKAGES:=kmod-b43 wpad-mini \
kmod-usb2 kmod-usb-ohci
endef
define Profile/CT6373/Description
Package set optimized for CT-6373.
endef
$(eval $(call Profile,CT6373))