[PATCHv4 1/3] net: ethernet: mediatek: support MT7621 SoC ethernet hardware

2019-01-29 Thread gerg
From: Bjørn Mork The Mediatek MT7621 SoC contains the same ethernet hardware module as used on a number of other MediaTek SoC parts. There are some minor differences to deal with but we can use the same driver to support them all. This patch is based on work by Bjørn Mork , and his original patc

[PATCHv4 2/3] net: dsa: mt7530: support the 7530 switch on the Mediatek MT7621 SoC

2019-01-29 Thread gerg
From: Greg Ungerer The MediaTek MT7621 SoC device contains a 7530 switch, and the existing linux kernel 7530 DSA switch driver can be used with it. The bulk of the changes required stem from the 7621 having different regulator and pad setup. The existing setup of these in the 7530 driver appears

[PATCHv4 3/3] dt-bindings: net: dsa: add new MT7530 binding to support MT7621

2019-01-29 Thread gerg
From: Greg Ungerer Add devicetree binding to support the compatible mt7530 switch as used in the MediaTek MT7621 SoC. Signed-off-by: Greg Ungerer Reviewed-by: Andrew Lunn --- Documentation/devicetree/bindings/net/dsa/mt7530.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) v1: i

[PATCHv4 0/3]: net: dsa: mt7530: support MT7530 in the MT7621 SoC

2019-01-29 Thread gerg
This is the fourth version of a patch series supporting the MT7530 switch as used in the MediaTek MT7621 SoC. Unlike the MediaTek MT7623 the MT7621 is built around a dual core MIPS CPU architecture. But inside it uses basically the same 7530 switch. This series resolves all issues I had with pre

[PATCHv3 2/3] net: dsa: mt7530: support the 7530 switch on the Mediatek MT7621 SoC

2019-01-20 Thread gerg
From: Greg Ungerer The MediaTek MT7621 SoC device contains a 7530 switch, and the existing linux kernel 7530 DSA switch driver can be used with it. The bulk of the changes required stem from the 7621 having different regulator and pad setup. The existing setup of these in the 7530 driver appears

[PATCHv3 1/3] net: ethernet: mediatek: support MT7621 SoC ethernet hardware

2019-01-20 Thread gerg
From: Bjørn Mork The Mediatek MT7621 SoC contains the same ethernet hardware module as used on a number of other MediaTek SoC parts. There are some minor differences to deal with but we can use the same driver to support them all. This patch is based on work by Bjørn Mork , and his original patc

[PATCHv3 3/3] dt-bindings: net: dsa: add new MT7530 binding to support MT7621

2019-01-20 Thread gerg
From: Greg Ungerer Add devicetree binding to support the compatible mt7530 switch as used in the MediaTek MT7621 SoC. Signed-off-by: Greg Ungerer --- Documentation/devicetree/bindings/net/dsa/mt7530.txt | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) v1: initial patch v2: use separ

[PATCHv3 0/3]: net: support MT7530 switch in the MT7621 SoC

2019-01-20 Thread gerg
This is the third version of a patch series supporting the MT7530 switch as used in the MediaTek MT7621 SoC. Unlike the MediaTek MT7623 the MT7621 is built around a dual core MIPS CPU architecture. But inside it uses basically the same 7530 switch. This series resolves all issues I had with prev

[PATCHv2 3/4] net: dsa: mt7530: support the 7530 switch on the Mediatek MT7621 SoC

2019-01-13 Thread gerg
From: Greg Ungerer The MediaTek MT7621 SoC device contains a 7530 switch, and the existing linux kernel 7530 DSA switch driver can be used with it. The bulk of the changes required stem from the 7621 having different regulator and pad setup. The existing setup of these in the 7530 driver appears

[PATCHv2 4/4] dt-bindings: net: dsa: add new MT7530 binding to support MT7621

2019-01-13 Thread gerg
From: Greg Ungerer Add devicetree binding to support the compatible mt7530 switch as used in the MediaTek MT7621 SoC. Signed-off-by: Greg Ungerer --- Documentation/devicetree/bindings/net/dsa/mt7530.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) v1: initial patch v2: changed to u

[PATCHv2 2/4] net: ethernet: mediatek: do not force autonegiation at init

2019-01-13 Thread gerg
From: Greg Ungerer Do not attempt to force a port phy auto-ngeotiation during the driver init phase. It is not necessary and results in a warning at system boot up: mtk_soc_eth 1e10.ethernet: generated random MAC address be:e7:d4:9d:7d:b0 mtk_soc_eth 1e10.ethernet: connected mac 0 to PHY

[PATCHv2 0/4]: net: dsa: mt7530: support MT7530 in the MT7621 So

2019-01-13 Thread gerg
This is the second version of a patch series supporting the MT7530 switch as used in the MediaTek MT7621 SoC. Unlike the MediaTek MT7623 the MT7621 is built around a dual core MIPS CPU architecture. But inside it uses basically the same 7530 switch. These patches resolves all issues I had with v

[PATCHv2 1/4] net: ethernet: mediatek: support MT7621 SoC ethernet hardware

2019-01-13 Thread gerg
From: Bjørn Mork The Mediatek MT7621 SoC contains the same ethernet hardware module as used on a number of other MediaTek SoC parts. There are some minor differences to deal with but we can use the same driver to support them all. This patch is based on work by Bjørn Mork , and his original patc

[PATCH 3/3] dt-bindings: net: dsa: add new bindings MT7530

2018-11-29 Thread gerg
From: Greg Ungerer Add descriptive entries for the new bindings introduced to support the MT7530 implementation in the MediaTek MT7621 SoC. New bindings added for: mediatek,no-clock-regulator mediatek,mfc-has-cpuport Signed-off-by: Greg Ungerer --- Documentation/devicetree/bindings/net/d

[PATCH 1/3] net: dsa: mt7530: make clock/regulator setup optional

2018-11-29 Thread gerg
From: Greg Ungerer At least one device that contains the MediaTek MT7530 switch module does not need the clock and regulator setup parts of the MT7530 DSA driver. That setup looks to be very specific to the MT7623. The MediaTek MT7621 SoC device contains a 7530 switch, but its MIPS CPU cores and

[PATCH 2/3] net: dsa: mt7530: optional setting CPU field in MFC register

2018-11-29 Thread gerg
From: Greg Ungerer Some versions of the MediaTek MT7530 switch have a CPU port number and enable bit in their MFC register. The MT7530 instance on the MediaTek MT7621 SoC is one that does for example. The switch will not work without these fields being correctly setup on these devices. Create a

[PATCH 0/3]: net: dsa: mt7530: support MT7530 in the MT7621 SoC

2018-11-29 Thread gerg
I have been working towards supporting the MT7530 switch as used in the MediaTek MT7621 SoC. Unlike the MediaTek MT7623 the MT7621 is built around a dual core MIPS CPU architecture. But underneath it is what appears to be the same 7530 switch. The following 3 patches are more of an RFC than anythi