[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 <dgcb...@gmail.com> diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index f5de673..beed8e9

[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 <dgcb...@gmail.com> diff --git a/target/linux/brcm63xx/base-files/etc/board.d/01_l

[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 <dgcb...@gmail.com> diff --git a/target/linux/brcm63xx/patches-4.4/321-irqch

[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 <dgcb...@gmail.com> 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

[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 <dgcb...@gmail.com> 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/

[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.

[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 <dgcb...@gmail.com> diff --git a/target/linux/brcm63xx/patch

[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 <dgcb...@gmail.com> 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/

[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 <dgcb...@gmail.com> 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/bcm6

[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 <dgcb...@gmail.com> 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

[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 <dgcb...@gmail.com> diff --git a/target/linux/brcm63

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: implement gpio to irq

2016-08-18 Thread Daniel Gonzalez Cabanelas
e GPIO line. Signed-off-by: Daniel Gonzalez Cabanelas <dgcb...@gmail.com> 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

[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 <dgcb...@gmail.com> --- 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 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 <dgcb...@gmail.com> --- change in v2: Split changes in DTS file --- diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts b/target/linux/br

[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 <dgcb...@gmail.com> --- change in v2: Split changes in DTS file Tune button labels --- diff --git a/target/linux/brcm63xx/dts/livebox-blue-5g.dts b/

[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 <dgcb...@gmail.com> --- change in v2: Split changes in DTS file --- diff --git a/target

[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 <dgcb...@gmail.co

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

2016-12-03 Thread Daniel Gonzalez Cabanelas
-by: Daniel Gonzalez Cabanelas <dgcb...@gmail.com> 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

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

2016-11-30 Thread Daniel Gonzalez Cabanelas
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 <dgcb...@gmail.com> diff --git a/target/linux/brcm63xx/base-files/etc/board.d/02_network b/target/linux/brcm63xx/base-files/etc/b

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

2016-12-02 Thread Daniel Gonzalez Cabanelas
those bits to let the LEDs blink with LAN activity. Signed-off-by: Daniel Gonzalez Cabanelas <dgcb...@gmail.com> 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

[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,

[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 <dgcb...@gmail.com> --- Change in v2: - add missing comtrend compatible brand f

[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 <dgcb...@gmail.com> diff --git a/target/linux/brcm63xx/base-files/etc/b

[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 <dgcb...@gmail.com> --- target/linux/ar71xx/base-fil

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

2017-08-31 Thread Daniel Gonzalez Cabanelas
to let the user choose a NOR chip of any size (8, 16 or 32 MB). Signed-off-by: Daniel Gonzalez Cabanelas <dgcb...@gmail.com> --- 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-fil

[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 <dgcb...@gmail.com> --- target/linux/brcm63xx/base-files/etc/board.d

[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