mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
59c2f9eaad
Technicolor TG582n has a similar PCB as the OpenWrt's ADB P.DG A4001N1 with LEDs connected to different GPIO PINs in active low configuration. Hardware: * Board ID: DANT-1 * SoC: Broadcom BCM6328 (rev b0) @ 320MHz, CPU BMIPS4350 * RAM DDR2: 64 Mbyte - Winbond W9751G6KB-25 * Serial flash: 16 Mbyte - MXIC MX25L6445EMI * Ethernet: 4x Ethernet 10/100 baseT * Wifi 2.4GHz: Broadcom Corporation BCM43227 Wireless Network Adapter (rev 30) * LEDs: 2x Power, 1x Ethernet, 1x Broadband, 2x Wi-Fi, 2x WPS, 4x ethernet * Buttons: 1x Reset, 1x WPS, 1x WiFi * UART: 1x TTL 115200n8, VCC GND TX RX, on J3 connector (short R62 and R63) Installation via CFE: * Stock CFE has to be overwritten with a generic 6328 one that can upload .bin images with no signature check (cfe6328_configured.bin) * Connect a serial port to the board * Stop the CFE boot process after power on by pressing enter * Set static IP 192.168.2.10 and subnet mask 255.255.255.0 * Navigate to http://192.168.2.50/ * Upload the OpenWrt image file PCB: |GPIO: |TG582n: LED2R |488(08) |red Power LED2G |484(04) |green Power LED10R |486(06) | LED13G |485(05) |green Ethernet LED11R |494(14) | LED14G |491(11) |green Broadband LED5R |487(07) |red Internet LED5G |481(01) |green Internet LED12R |498(18) | LED12G |499(19) | LED6R |482(02) |red Wi-Fi LED6G |483(03) |green Wi-Fi LED7R |490(10) |red WPS LED7G |489(09) |green WPS LED4 |508(28) |ethernet port 4 LED3 |507(27) |ethernet port 3 LED9 |506(26) |ethernet port 2 LED8 |505(25) |ethernet port 1 SW3 |503(23) |key Reset SW5 |504(24) |key WPS SW4 |495(15) |key Wi-Fi SW6 |493(13) | SW1 |492(12) | Signed-off-by: Daniele Castro <danielecastro@hotmail.it> [Fix base-files, refresh patch] Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
145 lines
3.0 KiB
Diff
145 lines
3.0 KiB
Diff
--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
|
+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
|
|
@@ -1915,6 +1915,117 @@ static struct board_info __initdata boar
|
|
};
|
|
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
|
|
|
+#ifdef CONFIG_BCM63XX_CPU_6362
|
|
+static struct board_info __initdata board_dgnd3700v2 = {
|
|
+ .name = "96362ADVN2xh",
|
|
+ .expected_cpu_id = 0x6362,
|
|
+
|
|
+ .has_pci = 1,
|
|
+ .has_ohci0 = 1,
|
|
+ .has_ehci0 = 1,
|
|
+ .num_usbh_ports = 2,
|
|
+
|
|
+ .has_enetsw = 1,
|
|
+ .enetsw = {
|
|
+ .used_ports = {
|
|
+ [4] = {
|
|
+ .used = 1,
|
|
+ .phy_id = 0xff,
|
|
+ .bypass_link = 1,
|
|
+ .force_speed = 1000,
|
|
+ .force_duplex_full = 1,
|
|
+ .name = "RGMII",
|
|
+ },
|
|
+ },
|
|
+ },
|
|
+};
|
|
+
|
|
+static struct board_info __initdata board_fast2504n = {
|
|
+ .name = "F@ST2504n",
|
|
+ .expected_cpu_id = 0x6362,
|
|
+
|
|
+ .has_enetsw = 1,
|
|
+ .enetsw = {
|
|
+ .used_ports = {
|
|
+ [0] = {
|
|
+ .used = 1,
|
|
+ .phy_id = 1,
|
|
+ .name = "Port 1",
|
|
+ },
|
|
+ [1] = {
|
|
+ .used = 1,
|
|
+ .phy_id = 2,
|
|
+ .name = "Port 2",
|
|
+ },
|
|
+ [2] = {
|
|
+ .used = 1,
|
|
+ .phy_id = 3,
|
|
+ .name = "Port 3",
|
|
+ },
|
|
+ [3] = {
|
|
+ .used = 1,
|
|
+ .phy_id = 4,
|
|
+ .name = "Port 4",
|
|
+ },
|
|
+ },
|
|
+ },
|
|
+};
|
|
+
|
|
+static struct board_info __initdata board_hg253s_v2 = {
|
|
+ .name = "hg253s",
|
|
+ .expected_cpu_id = 0x6362,
|
|
+
|
|
+ .has_ohci0 = 1,
|
|
+ .has_ehci0 = 1,
|
|
+ .num_usbh_ports = 1,
|
|
+
|
|
+ .has_enetsw = 1,
|
|
+ .enetsw = {
|
|
+ .used_ports = {
|
|
+ [4] = {
|
|
+ .used = 1,
|
|
+ .phy_id = 0xff,
|
|
+ .bypass_link = 1,
|
|
+ .force_speed = 1000,
|
|
+ .force_duplex_full = 1,
|
|
+ .timing_sel = 1,
|
|
+ .name = "RGMII",
|
|
+ },
|
|
+
|
|
+ [5] = {
|
|
+ .used = 1,
|
|
+ .phy_id = 24,
|
|
+ .timing_sel = 1,
|
|
+ .name = "WAN",
|
|
+ },
|
|
+ },
|
|
+ },
|
|
+};
|
|
+
|
|
+static struct board_info __initdata board_nb6 = {
|
|
+ .name = "NB6",
|
|
+ .expected_cpu_id = 0x6362,
|
|
+
|
|
+ .has_ohci0 = 1,
|
|
+ .has_ehci0 = 1,
|
|
+ .num_usbh_ports = 2,
|
|
+
|
|
+ .has_enetsw = 1,
|
|
+ .enetsw = {
|
|
+ .used_ports = {
|
|
+ [4] = {
|
|
+ .used = 1,
|
|
+ .phy_id = 0xff,
|
|
+ .bypass_link = 1,
|
|
+ .force_speed = 1000,
|
|
+ .force_duplex_full = 1,
|
|
+ .name = "RGMII",
|
|
+ },
|
|
+ },
|
|
+ },
|
|
+};
|
|
+#endif /* CONFIG_BCM63XX_CPU_6362 */
|
|
+
|
|
/*
|
|
* all boards
|
|
*/
|
|
@@ -1997,6 +2108,12 @@ static const struct board_info __initcon
|
|
&board_nb4_fxc_r1,
|
|
&board_spw303v,
|
|
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
|
+#ifdef CONFIG_BCM63XX_CPU_6362
|
|
+ &board_dgnd3700v2,
|
|
+ &board_fast2504n,
|
|
+ &board_hg253s_v2,
|
|
+ &board_nb6,
|
|
+#endif /* CONFIG_BCM63XX_CPU_6362 */
|
|
};
|
|
|
|
static struct of_device_id const bcm963xx_boards_dt[] = {
|
|
@@ -2091,6 +2208,10 @@ static struct of_device_id const bcm963x
|
|
{ .compatible = "telsey,cpva642", .data = &board_CPVA642, },
|
|
#endif /* CONFIG_BCM63XX_CPU_6358 */
|
|
#ifdef CONFIG_BCM63XX_CPU_6362
|
|
+ { .compatible = "huawei,hg253s-v2", .data = &board_hg253s_v2, },
|
|
+ { .compatible = "netgear,dgnd3700-v2", .data = &board_dgnd3700v2, },
|
|
+ { .compatible = "sagem,fast-2504n", .data = &board_fast2504n, },
|
|
+ { .compatible = "sfr,neufbox-6-sercomm-r0", .data = &board_nb6, },
|
|
#endif /* CONFIG_BCM63XX_CPU_6362 */
|
|
#ifdef CONFIG_BCM63XX_CPU_6368
|
|
#endif /* CONFIG_BCM63XX_CPU_6368 */
|