Skip to content

RFC net: dsa: MT7530: Convert to PHYLINK and add support for port 5

René van Dorst linux-devicetree linux-mediatek linux-mips netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 31 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: dsa: mt7530: Convert to PHYLINK APIdrivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+187 -5925 replies
2/5dt-bindings: net: dsa: mt7530: Add support for port 5Documentation/devicetree/bindings/net/dsa/mt7530.txt+215 -00 replies
3/5net: dsa: mt7530: Add support for port 5drivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+159 -40 replies
4/5dt-bindings: net: dsa: mt7530: Add mediatek,ephy-handle to isolate ext. phyDocumentation/devicetree/bindings/net/dsa/mt7530.txt+115 -13 replies
5/5net: dsa: mt7530: Add mediatek,ephy-handle to isolate external phydrivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+30 -03 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC net-next 0/5] net: dsa: MT7530: Convert to PHYLINK and add support for port 5

Here by I am sending my current patches for review. I want to know if I am on the right track.

1. 0001-net-dsa-mt7530-Convert-to-PHYLINK-API.patch This patch converts mt7530 to PHYLINK API.
2. 0002-dt-bindings-net-dsa-mt7530-Add-support-for-port-5.patch
3. 0003-net-dsa-mt7530-Add-support-for-port-5.patch These 2 patches adding support for port 5 of the switch.

Optional:
4. 0004-dt-bindings-net-dsa-mt7530-Add-mediatek-ephy-handle-.patch
5. 0005-net-dsa-mt7530-Add-mediatek-ephy-handle-to-isolate-e.patch These 2 patches adding property "mediatek,ephy-handle". When set, it puts the external phy in isolation mode. This allows the switch PHY of port 0/4 to interface with 2nd GMAC of the SOC. The external phy, 2nd GMAC and switch port 5 shares the same MII bus.

FWIW: Also working on converting the mediatek ethernet driver to PHYLINK. This need a bit more work duo to the SGMII work and support hardware which I don't have.
https://github.com/vDorst/linux-1/commit/54004b807cba0dcec1653c1c290c2e5aae5127c2

René van Dorst (5):
net: dsa: mt7530: Convert to PHYLINK API
dt-bindings: net: dsa: mt7530: Add support for port 5
net: dsa: mt7530: Add support for port 5
dt-bindings: net: dsa: mt7530: Add mediatek,ephy-handle to isolate
ext. phy
net: dsa: mt7530: Add mediatek,ephy-handle to isolate external phy

 .../devicetree/bindings/net/dsa/mt7530.txt    | 329 ++++++++++++++++
 drivers/net/dsa/mt7530.c                      | 366 +++++++++++++++---
 drivers/net/dsa/mt7530.h                      |  39 ++
 3 files changed, 688 insertions(+), 46 deletions(-)
Signature · 1 line
2.20.1