Skip to content

net-next: dsa: mt7530: add support for MT7531

Landen Chao linux-arm-kernel linux-devicetree linux-mediatek lkml netdev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 5 repliesIn review
  2. v46 patches 0 repliesSuperseded
  3. v36 patches 5 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v27 patches19 repliesSuperseded
v16 patches23 repliesSuperseded

Changes in v5 from the cover letter

- Add fixed-link node to dsa cpu port in dts file by suggestion of Vladimir Oltean.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: dsa: mt7530: Refine message in Kconfigdrivers/net/dsa/Kconfig+3 -30 replies
2/6net: dsa: mt7530: Extend device data ready for adding a new hardwaredrivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+234 -740 replies
3/6dt-bindings: net: dsa: add new MT7531 binding to support MT7531Documentation/devicetree/bindings/net/dsa/mt7530.txt+9 -41 reply
4/6net: dsa: mt7530: Add the support of MT7531 switchdrivers/net/dsa/Kconfig drivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+1112 -270 replies
5/6arm64: dts: mt7622: add mt7531 dsa to mt7622-rfb1 boardarch/arm64/boot/dts/mediatek/mt7622-rfb1.dts+57 -60 replies
6/6arm64: dts: mt7622: add mt7531 dsa to bananapi-bpi-r64 boardarch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts+50 -01 reply

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchFlorian FainelliFrank Wunderlich
1/6R-b
2/6
3/6R-b
4/6
5/6
6/6T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH net-next v5 0/6] net-next: dsa: mt7530: add support for MT7531

This patch series adds support for MT7531.

MT7531 is the next generation of MT7530 which could be found on Mediatek router platforms such as MT7622 or MT7629.

It is also a 7-ports switch with 5 giga embedded phys, 2 cpu ports, and the same MAC logic of MT7530. Cpu port 6 only supports SGMII interface. Cpu port 5 supports either RGMII or SGMII in different HW SKU, but cannot be muxed to PHY of port 0/4 like mt7530. Due to support for SGMII interface, pll, and pad setting are different from MT7530.

MT7531 SGMII interface can be configured in following mode:
- 'SGMII AN mode' with in-band negotiation capability
which is compatible with PHY_INTERFACE_MODE_SGMII.
- 'SGMII force mode' without in-band negotiation
which is compatible with 10B/8B encoding of PHY_INTERFACE_MODE_1000BASEX with fixed full-duplex and fixed pause.
- 2.5 times faster clocked 'SGMII force mode' without in-band negotiation which is compatible with 10B/8B encoding of PHY_INTERFACE_MODE_2500BASEX with fixed full-duplex and fixed pause.

v4 -> v5
- Add fixed-link node to dsa cpu port in dts file by suggestion of Vladimir Oltean.

v3 -> v4
- Adjust the coding style by suggestion of Jakub Kicinski. Remove unnecessary jumping label, merge continuous numeric 'switch cases' into one line, and keep the variables longest to shortest (reverse xmas tree).

v2 -> v3
- Keep the same setup logic of mt7530/mt7621 because these series of patches is for adding mt7531 hardware.
- Do not adjust rgmii delay when vendor phy driver presents in order to prevent double adjustment by suggestion of Andrew Lunn.
- Remove redundant 'Example 4' from dt-bindings by suggestion of Rob Herring.
- Fix typo.

v1 -> v2
- change phylink_validate callback function to support full-duplex gigabit only to match hardware capability.
- add description of SGMII interface.
- configure mt7531 cpu port in fastest speed by default.
- parse SGMII control word for in-band negotiation mode.
- configure RGMII delay based on phy.rst.
- Rename the definition in the header file to avoid potential conflicts.
- Add wrapper function for mdio read/write to support both C22 and C45.
- correct fixed-link speed of 2500base-x in dts.
- add MT7531 port mirror setting.

Landen Chao (6):
net: dsa: mt7530: Refine message in Kconfig
net: dsa: mt7530: Extend device data ready for adding a new hardware
dt-bindings: net: dsa: add new MT7531 binding to support MT7531
net: dsa: mt7530: Add the support of MT7531 switch
arm64: dts: mt7622: add mt7531 dsa to mt7622-rfb1 board
arm64: dts: mt7622: add mt7531 dsa to bananapi-bpi-r64 board

 .../devicetree/bindings/net/dsa/mt7530.txt    |   13 +-
 .../dts/mediatek/mt7622-bananapi-bpi-r64.dts  |   50 +
 arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts  |   63 +-
 drivers/net/dsa/Kconfig                       |    6 +-
 drivers/net/dsa/mt7530.c                      | 1192 +++++++++++++++--
 drivers/net/dsa/mt7530.h                      |  259 +++-
 6 files changed, 1467 insertions(+), 116 deletions(-)
Signature · 5 lines
2.17.1
_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek