[PATCH] net: mv88e6xxx: Fix ingress rate removal for mv6131 chips

2016-08-22 Thread Jamie Lentin
The PORT_RATE_CONTROL register works differently on 88e6095/6095f/6131 in comparison to 6123/61/65, and 0x0 disables. The distinction was lost Linux 4.1 --> 4.2 Signed-off-by: Jamie Lentin --- Tested on a Netgear WNR854T With a mv88e6131 switch chip, on top of Andrew Lunn's 6131 tagg

Re: [PATCH 0/4] Fix MV88E6131 tagging

2016-08-22 Thread Jamie Lentin
back support for switches which only support DSA, by allowing the drivers to dynamically indicate the tagging protocol they support to the DSA core. This needs to be dynamic since the mv88e6xxx has to support two protocols. Thanks go to Jamie Lentin for reporting the problem, helping debug it

Re: [PATCH v0 00/10] Convert Netgear WNR854T to devicetree

2016-07-19 Thread Jamie Lentin
lt;1000>; - duplex = <1>; -}; }; here you do need the fixed link, otherwise it thinks there is a PHY connected and tried to do auto-negotiation. That will never work. Andrew -- Jamie Lentin

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-19 Thread Jamie Lentin
On Sun, 17 Jul 2016, Rob Herring wrote: On Sat, Jul 16, 2016 at 03:29:04PM +0100, Jamie Lentin wrote: This is a router based on the mv88f5181 chipset. http://www.netgear.com/support/product/WNR854T.aspx http://wiki.openwrt.org/toh/netgear/wnr854t Signed-off-by: Jamie Lentin

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-19 Thread Jamie Lentin
GPIO controller is available. I was also hoping that we could get to the point where pci_common_init() is only used for legacy machines without DT and without multiplatform, it seems I missed a couple of users here. Arnd -- Jamie Lentin

Re: [PATCH v0 00/10] Convert Netgear WNR854T to devicetree

2016-07-17 Thread Jamie Lentin
useful to shed the background noise and/or try something in particular. Thanks for the help! Andrew [0] https://github.com/lentinj/linux/tree/wnr854t-support-v0b-net-next-experiment [1] https://github.com/lentinj/linux/tree/wnr854t-support-v0a-rebase-4.7-rc7 -- Jamie Lentin

Re: [PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-17 Thread Jamie Lentin
On Sat, 16 Jul 2016, Arnd Bergmann wrote: On Saturday, July 16, 2016 3:29:04 PM CEST Jamie Lentin wrote: + +#define WNR854T_PCI_SLOT0_OFFS 7 +#define WNR854T_PCI_SLOT0_IRQ_PIN 4 + +static void __init wnr854t_pci_preinit(void) +{ + int pin; + + /* +* Configure PCI GPIO

[PATCH v0 01/10] arm: orion5x: Add required properties for orion-wdt to DT node

2016-07-16 Thread Jamie Lentin
orion-wdt refuses to start without these properties defined, so lift definitions out of kirkwood/dove.dtsi Signed-off-by: Jamie Lentin --- arch/arm/boot/dts/orion5x.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/orion5x.dtsi b/arch/arm/boot/dts

[PATCH v0 10/10] arm: orion5x: Configure Netgear WNR854T network port LEDs

2016-07-16 Thread Jamie Lentin
The default bootloader leaves the LEDs orange, and the 88E1121R driver applies it's own inappropriate configuration. Configure as per manual, i.e. orange = 100 / green = 1000 / blink = activity Signed-off-by: Jamie Lentin --- arch/arm/boot/dts/orion5x-netgear-wnr854t.dts

[PATCH v0 06/10] arm: orion5x: Add DT-based support for Netgear WNR854T

2016-07-16 Thread Jamie Lentin
This is a router based on the mv88f5181 chipset. http://www.netgear.com/support/product/WNR854T.aspx http://wiki.openwrt.org/toh/netgear/wnr854t Signed-off-by: Jamie Lentin --- .../bindings/arm/marvell/marvell,orion5x.txt | 1 + arch/arm/boot/dts/Makefile | 1

[PATCH v0 04/10] arm: orion5x: Generalise mv88f5181l pinctrl support for 88f5181

2016-07-16 Thread Jamie Lentin
As far as I'm aware the mv88f5181-b1 and mv88f5181l are the same at the pinctrl level, so re-use the definitions for both. Signed-off-by: Jamie Lentin --- .../bindings/pinctrl/marvell,orion-pinctrl.txt | 4 ++-- drivers/pinctrl/mvebu/pinctrl-orion.c

[PATCH v0 03/10] arm: orion5x: Add clk support for mv88f5181

2016-07-16 Thread Jamie Lentin
Referring to values in the u-boot port, add support for the mv88f5181 Signed-off-by: Jamie Lentin --- .../devicetree/bindings/clock/mvebu-core-clock.txt | 1 + drivers/clk/mvebu/orion.c | 70 ++ 2 files changed, 71 insertions(+) diff --git a

[PATCH v0 00/10] Convert Netgear WNR854T to devicetree

2016-07-16 Thread Jamie Lentin
ollowing patch: https://github.com/lentinj/linux/commit/d6b7b4695b7dcbf36d0663aea9cb4ecd65a1ada8 ...but this is probably a matter for another thread. Cheers, [0] http://thread.gmane.org/gmane.linux.network/120616/focus=121320 [1] https://github.com/lentinj/linux/commit/a4bceebb08ecdc25a4d49e23f2abad2148

[PATCH v0 08/10] net: phy: Try looking for a phy-handle property to find the OF node

2016-07-16 Thread Jamie Lentin
If PHY is registered via. a DSA switch, the MDIO bus the phy is on does not exist in devicetree, but there may be a reference to the PHY node on the physical MDIO bus to use. Signed-off-by: Jamie Lentin --- drivers/net/phy/marvell.c | 22 -- 1 file changed, 16 insertions

[PATCH v0 02/10] arm: orion5x: Add documentation for SoC and board bindings

2016-07-16 Thread Jamie Lentin
Copy the format for kirkwood/dove to orion5x Signed-off-by: Jamie Lentin --- .../bindings/arm/marvell/marvell,orion5x.txt | 23 ++ 1 file changed, 23 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/marvell/marvell,orion5x.txt diff --git a

[PATCH v0 07/10] arm: orion5x: Remove old non-DT-based WNR854T support

2016-07-16 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- arch/arm/mach-orion5x/Makefile| 1 - arch/arm/mach-orion5x/wnr854t-setup.c | 185 -- 2 files changed, 186 deletions(-) delete mode 100644 arch/arm/mach-orion5x/wnr854t-setup.c diff --git a/arch/arm/mach-orion5x/Makefile

[PATCH v0 09/10] net: phy: Re-attempt custom DT configuration after configuration

2016-07-16 Thread Jamie Lentin
marvell,reg-init is generally used to apply a custom LED configuration on boot. However this is then blatted in m88e1121_config_aneg when the interface is brought up. Re-apply any custom configuration afterwards, to keep custom LED configuration. Signed-off-by: Jamie Lentin --- drivers/net/phy

[PATCH v0 05/10] arm: orion5x: Add DT include for mv88f5181

2016-07-16 Thread Jamie Lentin
Signed-off-by: Jamie Lentin --- .../bindings/arm/marvell/marvell,orion5x.txt | 1 + arch/arm/boot/dts/orion5x-mv88f5181.dtsi | 35 ++ 2 files changed, 36 insertions(+) create mode 100644 arch/arm/boot/dts/orion5x-mv88f5181.dtsi diff --git a/Documentation