Re: [PATCH v2 2/2] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl

2020-11-10 Thread Vivek Unune
On Mon, Nov 9, 2020 at 12:24 PM Florian Fainelli wrote: > > On Wed, 4 Nov 2020 15:29:52 -0500, Vivek Unune > wrote: > > Now that we have a pin controller, use that instead of manuplating the > > mdio/mdc pins directly. i.e. we no longer require the mdio-mii-mux > &g

Re: [PATCH v2] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions

2020-11-09 Thread Vivek Unune
On Mon, Nov 09, 2020 at 06:28:38PM +0100, Rafał Miłecki wrote: > On 01.11.2020 21:08, Vivek Unune wrote: > > This router has dual paritions to store trx firmware image and > > dual partitions for nvram. The second one in each of these cases acts > > as a backup store. >

Re: [PATCH v2 2/2] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl

2020-11-09 Thread Vivek Unune
On Wed, Nov 4, 2020 at 3:58 PM Vivek Unune wrote: > > On Wed, Nov 04, 2020 at 12:37:45PM -0800, Florian Fainelli wrote: > > > > > > On 11/4/2020 12:29 PM, Vivek Unune wrote: > > > Now that we have a pin controller, use that instead of manuplating the > &g

Re: [PATCH v2 2/2] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl

2020-11-04 Thread Vivek Unune
On Wed, Nov 04, 2020 at 12:37:45PM -0800, Florian Fainelli wrote: > > > On 11/4/2020 12:29 PM, Vivek Unune wrote: > > Now that we have a pin controller, use that instead of manuplating the > > mdio/mdc pins directly. i.e. we no longer require the mdio-mii-mux > > I

[PATCH v2 1/2] ARM: dts: BCM5301X: pinctrl - use correct driver and define mdio pins

2020-11-04 Thread Vivek Unune
BCM47094 version of pinmux uses different driver and supports mdio pinmux pins. Hence, use the correct driver and define the pins. Signed-off-by: Vivek Unune --- --- arch/arm/boot/dts/bcm47094.dtsi | 9 + arch/arm/boot/dts/bcm5301x.dtsi | 2 +- 2 files changed, 10 insertions(+), 1

[PATCH v2 2/2] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl

2020-11-04 Thread Vivek Unune
Now that we have a pin controller, use that instead of manuplating the mdio/mdc pins directly. i.e. we no longer require the mdio-mii-mux Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts| 26 +++ 1 file changed, 4 insertions(+), 22 deletions(-) diff

[PATCH v2 0/2] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl

2020-11-04 Thread Vivek Unune
1. BCM47094 pinctrl - use correct driver and define mdio pins 2. Linksys EA9500 make use of pinctrl and drop mdio-mii-mux Vivek Unune (2): ARM: dts: BCM5301X: pinctrl - use correct driver and define mdio pins ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl Signed-off-by: Vivek

Re: [PATCH v2] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions

2020-11-04 Thread Vivek Unune
On Tue, Nov 03, 2020 at 07:41:59PM -0800, Florian Fainelli wrote: > On Sun, 1 Nov 2020 15:08:03 -0500, Vivek Unune > wrote: > > This router has dual paritions to store trx firmware image and > > dual partitions for nvram. The second one in each of these cases acts >

[PATCH v2] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions

2020-11-01 Thread Vivek Unune
labeled devinfo. 2. It parses second trx image and tries to create second 'linux' partition and fails with - cannot create duplicate 'linux' partition The following patch works around both of these issues. Signed-off-by: Vivek Unune --- V2: - Removed 0x bef

Re: [PATCH] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions

2020-10-26 Thread Vivek Unune
On Mon, Oct 26, 2020 at 06:30:53AM -0700, Florian Fainelli wrote: > > > On 10/26/2020 6:13 AM, Vivek Unune wrote: > > This router has dual paritions to store trx firmware image and > > dual partitions for nvram. The second one in each of these cases acts > > as a

[PATCH] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions

2020-10-26 Thread Vivek Unune
labeled devinfo. 2. It parses second trx image and tries to create second 'linux' partition and fails with - cannot create duplicate 'linux' partition. I've set this partition to read-only for now The following patch works around both of these issues. Signed-off-by: Vivek

Re: [PATCH] ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7

2020-10-22 Thread Vivek Unune
On Thu, Oct 22, 2020 at 01:21:10PM -0700, Florian Fainelli wrote: > On 10/22/20 1:16 PM, Vivek Unune wrote: > > On Wed, Oct 14, 2020 at 03:27:27PM -0400, Vivek Unune wrote: > >> Add ports 5 and 7 which are connected to gmac cores 1 & 2. > >> These will be disabled f

Re: [PATCH] ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7

2020-10-22 Thread Vivek Unune
On Wed, Oct 14, 2020 at 03:27:27PM -0400, Vivek Unune wrote: > Add ports 5 and 7 which are connected to gmac cores 1 & 2. > These will be disabled for now. > > Signed-off-by: Vivek Unune > --- > .../boot/dts/bcm47094-linksys-panamera.dts| 24 +++

[PATCH] ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7

2020-10-14 Thread Vivek Unune
Add ports 5 and 7 which are connected to gmac cores 1 & 2. These will be disabled for now. Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts| 24 +++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dt

Re: [PATCH 2/3] ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7

2020-10-08 Thread Vivek Unune
Thanks Florian, I'll do that! On Thu, Oct 8, 2020 at 10:58 AM Florian Fainelli wrote: > > > > On 10/7/2020 5:32 PM, Andrew Lunn wrote: > >> This router is currently not enabled in Openwrt > > > > You have to be careful here. Not everything runs OpenWRT. You cannot > > break backwards compatibilit

Re: [PATCH 1/3] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl

2020-10-08 Thread Vivek Unune
On Thu, Oct 08, 2020 at 02:26:21AM +0200, Andrew Lunn wrote: > On Wed, Oct 07, 2020 at 05:46:33PM -0400, Vivek Unune wrote: > > On Wed, Oct 07, 2020 at 11:01:34PM +0200, Andrew Lunn wrote: > > > On Wed, Oct 07, 2020 at 03:01:50PM -0400, Vivek Unune wrote: > > > > For

Re: [PATCH 2/3] ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7

2020-10-07 Thread Vivek Unune
On Wed, Oct 07, 2020 at 11:03:27PM +0200, Andrew Lunn wrote: > On Wed, Oct 07, 2020 at 03:01:51PM -0400, Vivek Unune wrote: > > Add port 5 and port 7 which are connected to gmac0 & 1 respectively > > DSA driver will use port 5 as cpu port and this works as well. > > What

Re: [PATCH 1/3] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl

2020-10-07 Thread Vivek Unune
On Wed, Oct 07, 2020 at 11:01:34PM +0200, Andrew Lunn wrote: > On Wed, Oct 07, 2020 at 03:01:50PM -0400, Vivek Unune wrote: > > Forgo the use of mmioreg mdio mux infavor of the pinctrl > > Hi Vivek > > Could you add some more details please. I don't know this > har

[PATCH 3/3] ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions

2020-10-07 Thread Vivek Unune
. It parses second trx image and tries to create second 'linux' partition and fails with - cannot create another 'linux' partition The following patch works around both of these issues. Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts| 41 +++

[PATCH 0/3] ARM: dts: BCM5301X: Linksys EA9500 device tree changes

2020-10-07 Thread Vivek Unune
rg Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Vivek Unune Vivek Unune (3): ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7 ARM: dts: BCM5301X: Linksys EA9500 add fixed partitions .../boo

[PATCH 1/3] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl

2020-10-07 Thread Vivek Unune
Forgo the use of mmioreg mdio mux infavor of the pinctrl Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts| 153 +- arch/arm/boot/dts/bcm5301x.dtsi | 4 +- 2 files changed, 74 insertions(+), 83 deletions(-) diff --git a/arch/arm/boot

[PATCH 2/3] ARM: dts: BCM5301X: Linksys EA9500 add port 5 and port 7

2020-10-07 Thread Vivek Unune
Add port 5 and port 7 which are connected to gmac0 & 1 respectively DSA driver will use port 5 as cpu port and this works as well. Signed-off-by: Vivek Unune --- .../boot/dts/bcm47094-linksys-panamera.dts| 22 +++ 1 file changed, 22 insertions(+) diff --git a/arch/arm/

Re: [PATCH] arm64: dts: rockchip: Fix usb-c on Hugsun X99 TV Box

2019-10-04 Thread Vivek Unune
On Fri, Oct 04, 2019 at 11:45:08PM +0200, Heiko Stuebner wrote: > Hi Vivek, > > Am Montag, 30. September 2019, 01:46:15 CEST schrieb Vivek Unune: > > On Sun, Sep 29, 2019 at 01:22:17PM +0200, Vicente Bergas wrote: > > > On Sunday, September 29, 2019 5:22:30 AM CEST, Vivek

Re: [PATCH] arm64: dts: rockchip: Fix usb-c on Hugsun X99 TV Box

2019-09-29 Thread Vivek Unune
On Sun, Sep 29, 2019 at 01:22:17PM +0200, Vicente Bergas wrote: > On Sunday, September 29, 2019 5:22:30 AM CEST, Vivek Unune wrote: > > Fix usb-c on X99 TV Box. Tested with armbian w/ kernel 5.3 > > > > Signed-off-by: Vivek Unune > > --- > > arch/arm64/boot/d

[PATCH] arm64: dts: rockchip: Fix usb-c on Hugsun X99 TV Box

2019-09-28 Thread Vivek Unune
Fix usb-c on X99 TV Box. Tested with armbian w/ kernel 5.3 Signed-off-by: Vivek Unune --- arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts b/arch/arm64/boot/dts/rockchip

[PATCH v3] ARM: dts: BCM5301X: Add support for Linksys EA9500

2018-06-18 Thread Vivek Unune
C NC)115200 8n1 Tested with OpenWrt built with DSA driver and Kernel v4.14 Signed-off-by: Vivek Unune --- Changes in v3: - Remove unnecessary change to BCH settings - Remove ports 5 & 7 from internal switch for now Changes in v2: - Properly define mdio mux, internal mdio, external mdio,

Re: [PATCH v2] ARM: dts: BCM5301X: Make usb3 phy use mdio phy driver

2018-05-09 Thread Vivek Unune
On Wed, Apr 18, 2018 at 03:31:17PM -0700, Florian Fainelli wrote: > On 04/09/2018 03:31 PM, Vivek Unune wrote: > > Currently, usb3 phy in bcm5301x.dtsi uses platform driver which > > requires register range "ccb-mii" <0x18003000 0x1000>. This range > > overl

Re: [PATCH] ARM: BCM5301X: Fix NAND ECC parameters for Linksys Panamera

2018-04-27 Thread Vivek Unune
On Fri, Apr 27, 2018 at 10:05 AM, Vivek Unune wrote: > On Wed, Apr 25, 2018 at 11:02:04AM +0200, Rafał Miłecki wrote: >> >> The easiest solution: ignore all these "error -74 (ECC error) while >> reading" errors (they may last for few minutes!). I believe UBI should

Re: [PATCH] ARM: BCM5301X: Fix NAND ECC parameters for Linksys Panamera

2018-04-27 Thread Vivek Unune
On Wed, Apr 25, 2018 at 11:02:04AM +0200, Rafał Miłecki wrote: > > [ 13.530863] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while > > reading 64 bytes from PEB 115:0, read only 64 bytes, retry > > [ 13.542763] ubi0 warning: 0xc037c9e4: error -74 (ECC error) while > > reading 64 bytes from

[PATCH v2] ARM: dts: BCM5301X: Make usb3 phy use mdio phy driver

2018-04-09 Thread Vivek Unune
sing proper bus layer") the same usb3 platform driver can now act as usb3 phy mdio driver. Tested on Linksys Panamera (EA9500) Signed-off-by: Vivek Unune --- v2: Disabled usb3_phy by default, then enabled in dts where necessary --- arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts|

Re: [PATCH v2] ARM: dts: BCM5301X: Add support for Linksys EA9500

2018-03-29 Thread Vivek Unune
Hi Florian, On Fri, Mar 9, 2018 at 5:05 PM, Vivek Unune wrote: >> > + >> > + port@5 { >> > + reg = <5>; >> > + ethernet = <&gmac0>; >> > +

[PATCH] ARM: dts: BCM5301X:Make usb3 phy use mdio phy driver

2018-03-15 Thread Vivek Unune
sing proper bus layer") the same usb3 platform driver can now act as usb3 phy mdio driver. Tested on Linksys Panamera (EA9500) Signed-off-by: Vivek Unune --- arch/arm/boot/dts/bcm47094.dtsi | 7 --- arch/arm/boot/dts/bcm5301x.dtsi | 34 ++ 2 files change

Re: [PATCH] ARM: BCM5301X: Fix NAND ECC parameters for Linksys Panamera

2018-03-12 Thread Vivek Unune
Hi Florian, On Mon, Mar 12, 2018 at 03:52:27PM -0700, Florian Fainelli wrote: > On 03/11/2018 03:03 AM, Vivek Unune wrote: > > Hi Rafał, > > > > On Sat, Mar 10, 2018 at 10:41:04PM +0100, Rafał Miłecki wrote: > >> On 10 March 2018 at 18:12, Vivek Unune wrote: >

Re: [PATCH] ARM: BCM5301X: Fix NAND ECC parameters for Linksys Panamera

2018-03-11 Thread Vivek Unune
Hi Rafał, On Sat, Mar 10, 2018 at 10:41:04PM +0100, Rafał Miłecki wrote: > On 10 March 2018 at 18:12, Vivek Unune wrote: > > Using BCH8 gives ecc errors and makes the router unsuable. > > Switching to BCH1 fixes these errors. > > Can you provide CFE's log messages star

[PATCH] ARM: BCM5301X: Fix NAND ECC parameters for Linksys Panamera

2018-03-10 Thread Vivek Unune
Using BCH8 gives ecc errors and makes the router unsuable. Switching to BCH1 fixes these errors. Signed-off-by: Vivek Unune --- arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts b

Re: [PATCH v2] ARM: dts: BCM5301X: Add support for Linksys EA9500

2018-03-09 Thread Vivek Unune
Date: Fri, 9 Mar 2018 16:56:11 -0500 From: Vivek Unune To: Florian Fainelli Cc: ha...@hauke-m.de, zaj...@gmail.com, jonma...@broadcom.com, bcm-kernel-feedback-l...@broadcom.com, robh...@kernel.org, mark.rutl...@arm.com, li...@armlinux.org.uk, linux-arm-ker

[PATCH v2] ARM: dts: BCM5301X: Add support for Linksys EA9500

2018-03-02 Thread Vivek Unune
be ensured by running following command in OpenWrt: bridge vlan add vid 1 dev extsw pvid tagged [1] https://www.spinics.net/lists/arm-kernel/msg590992.html Signed-off-by: Vivek Unune --- Changes in v2: - Properly define mdio mux, internal mdio, external mdio, mii bus - Now we define usb3 phy

[v2] ARM: dts: BCM5301X: Add support for Linksys EA9500

2018-02-22 Thread Vivek Unune
mdio-mii node connected to external mdio [1] https://www.spinics.net/lists/arm-kernel/msg590992.html Signed-off-by: Vivek Unune --- arch/arm/boot/dts/bcm47094-linksys-panamera.dts | 239 +++- arch/arm/boot/dts/bcm47094.dtsi | 6 +- arch/arm/boot/dts

Re: [PATCH] ARM: dts: BCM5301X: Add support for Linksys EA9500

2017-08-19 Thread Vivek Unune
On Mon, Aug 14, 2017 at 12:37 PM, Florian Fainelli wrote: >> >> Please ignore above mib counters. I noticed that I see lot of RxFCSErrors >> and RxSymbolErrors for extswitch. The count for both counters always >> remain same. > > Yes that is not exactly good, it means that the RGMII interface betw

Re: [PATCH] ARM: dts: BCM5301X: Add support for Linksys EA9500

2017-08-13 Thread Vivek Unune
Florian, On Thu, Jun 29, 2017 at 5:04 PM, Vivek Unune wrote: > Florian, > >>> I have managed to use DSA driver and was able detect both internal and >>> external switches. However, I only get packets flowing only through the >>> internal switch. I have used the

Re: [PATCH] ARM: dts: BCM5301X: Add support for Linksys EA9500

2017-06-29 Thread Vivek Unune
Florian, >> I have managed to use DSA driver and was able detect both internal and >> external switches. However, I only get packets flowing only through the >> internal switch. I have used the ip & bridge commands to setup the vlan >> 101 & 102 for lan and wan respectively. >> >> VLAN101 = lan1 l

Re: [PATCH] ARM: dts: BCM5301X: Add support for Linksys EA9500

2017-06-27 Thread Vivek Unune
On Wed, Mar 15, 2017 at 5:19 PM, Florian Fainelli wrote: > On 03/15/2017 01:18 PM, Vivek Unune wrote: >> Thanks Florian. >> >> Let me try this out. First I'll try to figure out how to add a mdio node. >> >> Over the weekend I was trying enable DSA driver, but

Re: [PATCH] ARM: dts: BCM5301X: Add support for Linksys EA9500

2017-03-15 Thread Vivek Unune
again. On Wed, Mar 15, 2017 at 3:49 PM, Florian Fainelli wrote: > On 03/15/2017 12:34 PM, Vivek Unune wrote: >> Andrew, >> >> I'm not entirely sure. But here is what I observed. >> >> Boot loader sets up both the switches. And I can use all 8 ports of

Re: [PATCH] ARM: dts: BCM5301X: Add support for Linksys EA9500

2017-03-15 Thread Vivek Unune
Andrew, I'm not entirely sure. But here is what I observed. Bootloader sets up both the switches. And I can use all 8 ports of the router when I boot Lede. Only the internal switch is detected and configurable via swconfig tool Internal switch is connected to CPU via port 5 same as Netgear R8000.

[PATCH] ARM: dts: BCM5301X: Add support for Linksys EA9500

2017-03-15 Thread Vivek Unune
trx` where 192.168.1.10 is where your tftp server should is running. You may want to reset partial boots using `nvram set partialboot=0 && nvram commit' while at CFE prompt. TODO - Add BCM53125 (secondary switch) to dts - Add robo_reset gpio (pin# 10 active low) to dts Signed-o