[LEDE-DEV] [PATCH v2] brcm63xx: Add Comtrend AR-5315u support

2017-03-19 Thread Daniel Gonzalez Cabanelas
Add support for the Comtrend AR-5315u router This a BCM6318 based board, 64 MB RAM, 16 MB SPI flash, with an onboard BCM43217 wifi, 4 ethernet ports and 1 USB host port Signed-off-by: Daniel Gonzalez Cabanelas --- Change in v2: - add missing comtrend compatible brand for DTS .../linux

[LEDE-DEV] [PATCH] lantiq: fix missing otg_cap on danube platform

2017-07-29 Thread Daniel Gonzalez Cabanelas
USB doesn't work in some danube boards because otg_cap is missing since previous changes made on the USB-dwc2 lantiq driver. Fix it. Tested on the ARV7518PW router. Signed-off-by: Daniel Gonzalez Cabanelas --- ...ke-the-lantiq-settings-match-vendor-drive.patch

[LEDE-DEV] [PATCH v3] brcm63xx: Add Comtrend AR-5315u support

2017-08-12 Thread Daniel Gonzalez Cabanelas
Add support for the Comtrend AR-5315u router This a BCM6318 based board, 64 MB RAM, 16 MB SPI flash, with an onboard BCM43217 wifi, 4 ethernet ports and 1 USB host port Signed-off-by: Daniel Gonzalez Cabanelas --- Change in v2: - add missing comtrend compatible brand for DTS Change in v3

[LEDE-DEV] [PATCH] brcm63xx: Add Sercomm AD1018 support

2017-08-20 Thread Daniel Gonzalez Cabanelas
h SPI flash chips. Therefore hardware modding for soldering a new SPI flash chip is required to make the board work with LEDE (tested and working OK). Signed-off-by: Daniel Gonzalez Cabanelas --- .../linux/brcm63xx/base-files/etc/board.d/01_leds | 3 + .../brcm63xx/base-files/etc/board.d/02_ne

[LEDE-DEV] [PATCH v2] brcm63xx: Add Sercomm AD1018 support

2017-08-31 Thread Daniel Gonzalez Cabanelas
ng to let the user choose a NOR chip of any size (8, 16 or 32 MB). Signed-off-by: Daniel Gonzalez Cabanelas --- Change in v2: - rename the board at dts for indicating this is a firmware for SPI NOR flash chips, and minor changes - add USB LED --- .../linux/brcm63xx/base-files/etc/board.d/01

[LEDE-DEV] [PATCH] ar71xx: WNDR4300: use the switch LED trigger on the WAN port

2017-09-03 Thread Daniel Gonzalez Cabanelas
The WAN port on the Netgear WNDR4300 router has two LEDs, amber and green. Use the switch LED trigger to behave as the rest of the LAN HW controlled LEDs - Green: 1 Gbps - Amber: 100/10 Mbps Signed-off-by: Daniel Gonzalez Cabanelas --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 3

[LEDE-DEV] [PATCH] brcm63xx: Tune the network configuration for several routers

2018-02-21 Thread Daniel Gonzalez Cabanelas
- DGND3700v1: fix port numbers, they're in reverse order - FaST2704n: there is no WAN port identified as such, only 4 LAN - AD1018: configure the "FIBRE" port as WAN Signed-off-by: Daniel Gonzalez Cabanelas --- target/linux/brcm63xx/base-files/etc/board.d/02_network | 10 +++

[LEDE-DEV] [PATCH] brcm63xx: Add Observa VH4032N support

2016-11-30 Thread Daniel Gonzalez Cabanelas
h all BCM6368 based boards (known bug, GPIO LAN-LED mux is lost at boot time). The wifi chip is an onboard Broadcom BCM43222. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network b/target/linux/brcm63xx/base-files/etc/board.d/02_network

[LEDE-DEV] [PATCH] brcm63xx: fix BCM6368 switch hw LEDs

2016-12-02 Thread Daniel Gonzalez Cabanelas
erase those bits to let the LEDs blink with LAN activity. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/patches-4.4/805-bcm6368-dont_erase_ephy_ledmux.patch b/target/linux/brcm63xx/patches-4.4/805-bcm6368-dont_erase_ephy_ledmux.patch new file mode 100644 index 00

[LEDE-DEV] [PATCH v2] brcm63xx: Add Observa VH4032N support

2016-12-03 Thread Daniel Gonzalez Cabanelas
ff-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network b/target/linux/brcm63xx/base-files/etc/board.d/02_network index c20caf9..c83aa62 100755 --- a/target/linux/brcm63xx/base-files/etc/board.d/02_network +++ b/target/linux/brcm63xx/base-files/etc/bo

[LEDE-DEV] [PATCH] brcm63xx: fix internal phy registers

2016-12-17 Thread Daniel Gonzalez Cabanelas
function, which matches with the one used by the "Broadcom PHY driver" (brcm_fet_config_intr at broadcom.c). brcm63xx internal phy uses the same registers as the ones defined in brcmphy.h for fast ethernet, use them instead. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/ta

[LEDE-DEV] [PATCH v2] brcm63xx: fix internal net phy interrupt config

2016-12-18 Thread Daniel Gonzalez Cabanelas
The internal phy is using wrong registers for the config interrupt function, causing incorrect behavior when detecting the link activity. Fix it. We cannot use the bcm_phy_config_intr function from the bcm-phy-lib.c because it uses different registers from brcm63xx. The old function was right, so

[LEDE-DEV] [PATCH] ar71xx: GPIO driver backport

2017-01-31 Thread Daniel Gonzalez Cabanelas
on is adopted. The intention is to integrate the patch into the stable release 17.01 Patch tested in an AR7240 based board. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/ar71xx/config-4.4 b/target/linux/ar71xx/config-4.4 index 4b2f736..d3ecf4d 100644 --- a/target/linux/ar71xx/c

[LEDE-DEV] [PATCH] brcm63xx: fix external IRQ edge type sense

2017-02-07 Thread Daniel Gonzalez Cabanelas
Fix the register for configuring rising/falling edge Rising should be sense=1, and falling sense=0. The old driver used these values, but the new one have them flipped. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/patches-4.4/321-irqchip-add-support-for-bcm6345

[LEDE-DEV] [PATCH 2/4] brcm63xx: CPVA642+: fix image generation

2017-02-14 Thread Daniel Gonzalez Cabanelas
Fix typo, erase pointless option and allow to build the image. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/image/bcm63xx.mk b/target/linux/brcm63xx/image/bcm63xx.mk index 0749c29..969d75f 100644 --- a/target/linux/brcm63xx/image/bcm63xx.mk +++ b/target/linux

[LEDE-DEV] [PATCH 1/4] brcm63xx: CPVA642+: fix LEDs and buttons at DTS

2017-02-14 Thread Daniel Gonzalez Cabanelas
Leds are wrong and a button is missing, fix them. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/dts/cpva502plus.dts b/target/linux/brcm63xx/dts/cpva502plus.dts index 6d9b5d3..3ddc459 100644 --- a/target/linux/brcm63xx/dts/cpva502plus.dts +++ b/target/linux/brcm63xx

[LEDE-DEV] [PATCH 3/4] brcm63xx: CPVA642+: fix userspace support

2017-02-14 Thread Daniel Gonzalez Cabanelas
Fix board name typo, fix network configuration and add a led trigger. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds b/target/linux/brcm63xx/base-files/etc/board.d/01_leds index 7d208cc..61f685e 100755 --- a/target/linux/brcm63xx/base

[LEDE-DEV] [PATCH 4/4] brcm63xx: CPVA642+: add SPROM wifi

2017-02-14 Thread Daniel Gonzalez Cabanelas
Add SPROM wifi to the kernel board data. After this fix, the wifi won't work anyway due the lack of RAM memory (16 MB). It will throw a kernel panic when loading the b43 drivers. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/patches-4.4/519_board_CPVA502plus.

[LEDE-DEV] [PATCH] ar71xx: WNDR4300: Fix network vlan IDs

2017-02-20 Thread Daniel Gonzalez Cabanelas
The Netgear WNDR4300 has the VLAN IDs flipped in LuCi, fix it. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network index e08d7dd..a55e50a 100755 --- a/target/linux/ar71xx/base-files

[LEDE-DEV] [PATCH] ar71xx: WNDR4300: Fix switch HW controlled LEDs

2017-02-20 Thread Daniel Gonzalez Cabanelas
/100 Mbps link. 4Hz for 100Mbps, 2Hz for 10Mbps Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wndr4300.c index 2884c6c..2a00a0e 100644 --- a/target/linux/ar71xx/files/arch/mips

[LEDE-DEV] [RFC] AR8327 driver: implementing get_port_stats function

2017-02-25 Thread Daniel Gonzalez Cabanelas
Currently the switch LED trigger only shows link status, but not traffic activity by blinking the LEDs on the AR8316/AR8327 switch. It turns out that the get_port_stats is missing. I've made this patch, which works ok. But I'm not sure if there is any reason to not implement this function. And

Re: [LEDE-DEV] [RFC] AR8327 driver: implementing get_port_stats function

2017-02-27 Thread Daniel Gonzalez Cabanelas
> Fetching the entire port stats only to look up two fields seems rather > excessive. Please make a function instead that will look up the register > number and fetch only the relevant registers. > The lookup can be further simplified by adding an enum for the mib_stats > array index. > > - Felix

[LEDE-DEV] [PATCH] brcm63xx: Add Comtrend AR-5315u support

2017-03-01 Thread Daniel Gonzalez Cabanelas
Add support for the Comtrend AR-5315u router This a BCM6318 based board, 64 MB RAM, 16 MB SPI flash, with an onboard BCM43217 wifi, 4 ethernet ports and 1 USB host port Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds b/target/linux

[LEDE-DEV] [PATCH] brcm63xx: Setup BCM6318 pinmux to make the switch LEDs work

2017-03-02 Thread Daniel Gonzalez Cabanelas
Add BCM6318 to GPIO_MODE internal switch port leds setup. As with BCM6368 the pinmux for the switch LEDs in BCM6318 is also lost when LEDE initializes the peripherals. Fix it. Signed-off-by: Daniel Gonzalez Cabanelas --- ...rcm63xx-setup-pinctrl-for-internal-switch-leds-on-b.patch | 12

[LEDE-DEV] [PATCH] brcm63xx: fix Livebox1 support

2016-08-01 Thread Daniel Gonzalez Cabanelas
e RedBoot (uppercase matters). It still don't work (bad partition offsets and sizes detected) so disable it. - Add status led - Set eth0 as the LAN port, for coherence with RedBoot and comfortability. - Add led triggers Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linu

[LEDE-DEV] [PATCH 1/3] brcm63xx: fix Livebox 1 support: DTS

2016-08-16 Thread Daniel Gonzalez Cabanelas
Fix the DTS file for the Livebox 1 routers: - leds are totally wrong, fix them. - no failsafe button, use button 1 for this purpose - part probe wrong, it should be RedBoot (uppercase matters) Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts b

[LEDE-DEV] [PATCH 2/3] brcm63xx: fix Livebox 1 support: image

2016-08-16 Thread Daniel Gonzalez Cabanelas
Fix Image generation for the Livebox 1 - missing "relocate-kernel", wrong "LOADADDR", fix it Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index f5de673..beed8e9 100644 --- a/target/linux/brc

[LEDE-DEV] [PATCH 3/3] brcm63xx: fix Livebox 1 support: config files

2016-08-16 Thread Daniel Gonzalez Cabanelas
Fix configuration files for the Livebox 1 routers. - Add status led - Set eth0 as the LAN port, for coherence with RedBoot and comfortability. - Add led triggers Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_leds b/target/linux/brcm63xx

[LEDE-DEV] [PATCH] brcm63xx: implement gpio to irq

2016-08-18 Thread Daniel Gonzalez Cabanelas
e GPIO line. Signed-off-by: Daniel Gonzalez Cabanelas diff --git a/target/linux/brcm63xx/patches-4.4/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch b/target/linux/brcm63xx/patches-4.4/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch index 92b0e71..0d6f8ce 100644 --- a/target/linux/brcm

[LEDE-DEV] [PATCH v2 2/5] brcm63xx: fix Livebox 1 support: DTS

2016-08-29 Thread Daniel Gonzalez Cabanelas
Fix the DTS file for the Livebox 1 routers: - leds are totally wrong, fix them. Signed-off-by: Daniel Gonzalez Cabanelas --- change in v2: Split changes in DTS file --- diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts b/target/linux/brcm63xx/dts/livebox-blue-5g.dts index 0df5fa8

[LEDE-DEV] [PATCH v2 3/5] brcm63xx: fix Livebox 1 support: DTS

2016-08-29 Thread Daniel Gonzalez Cabanelas
Fix the DTS file for the Livebox 1 routers: - part probe wrong, it should be RedBoot (uppercase matters) Signed-off-by: Daniel Gonzalez Cabanelas --- change in v2: Split changes in DTS file --- diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts b/target/linux/brcm63xx/dts/livebox-blue

[LEDE-DEV] [PATCH v2 1/5] brcm63xx: fix Livebox 1 support: DTS

2016-08-29 Thread Daniel Gonzalez Cabanelas
Fix the DTS file for the Livebox 1 routers: - no failsafe button, use button 1 for this purpose Signed-off-by: Daniel Gonzalez Cabanelas --- change in v2: Split changes in DTS file Tune button labels --- diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts b/target/linux/brcm63xx/dts

[LEDE-DEV] [PATCH v2 5/5] brcm63xx: fix Livebox 1 support: config files

2016-08-29 Thread Daniel Gonzalez Cabanelas
Fix configuration files for the Livebox 1 routers. - Add status led - Set eth0 as the LAN port, for coherence with RedBoot and comfortability. - Add led triggers Signed-off-by: Daniel Gonzalez Cabanelas --- change in v2: Split changes in DTS file --- diff --git a/target/linux/brcm63xx/base-files

[LEDE-DEV] [PATCH v2 4/5] brcm63xx: fix Livebox 1 support: image

2016-08-29 Thread Daniel Gonzalez Cabanelas
Fix Image generation for the Livebox 1 - missing "relocate-kernel", wrong "LOADADDR", fix it Signed-off-by: Daniel Gonzalez Cabanelas --- change in v2: Split changes in DTS file --- diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile in

[LEDE-DEV] [RFC] brcm63xx: Add NAND flash support

2018-04-13 Thread Daniel Gonzalez Cabanelas
Hi, since the adoption of the Linux kernel 4.9 there are available drivers for NAND flash in the brcm63xx target. However these drivers only support brcm NAND versions 4.0 and and up, giving support only for BCM6362 and BCM63268 SoCs I've made a patch for including the versions present in BCM63