All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next v2 0/7] net-next: dsa: mt7530: add support for MT7531
@ 2020-08-18  7:14 ` Landen Chao
  0 siblings, 0 replies; 53+ messages in thread
From: Landen Chao @ 2020-08-18  7:14 UTC (permalink / raw)
  To: andrew, f.fainelli, vivien.didelot, matthias.bgg, robh+dt, mark.rutland
  Cc: devicetree, netdev, linux-kernel, linux-mediatek, davem,
	sean.wang, opensource, frank-w, dqfext, Landen Chao

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. 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-bnad 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-bnad negotiation
    which is compatible with 10B/8B encoding of
    PHY_INTERFACE_MODE_2500BASEX with fixed full-duplex and fixed pause.

changes between 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 (7):
  net: dsa: mt7530: Refine message in Kconfig
  net: dsa: mt7530: support full-duplex gigabit only
  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    |   71 +-
 .../dts/mediatek/mt7622-bananapi-bpi-r64.dts  |   44 +
 arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts  |   57 +-
 drivers/net/dsa/Kconfig                       |    6 +-
 drivers/net/dsa/mt7530.c                      | 1184 +++++++++++++++--
 drivers/net/dsa/mt7530.h                      |  259 +++-
 6 files changed, 1514 insertions(+), 107 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 53+ messages in thread

end of thread, other threads:[~2020-08-25 19:48 UTC | newest]

Thread overview: 53+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-18  7:14 [PATCH net-next v2 0/7] net-next: dsa: mt7530: add support for MT7531 Landen Chao
2020-08-18  7:14 ` Landen Chao
2020-08-18  7:14 ` [PATCH net-next v2 1/7] net: dsa: mt7530: Refine message in Kconfig Landen Chao
2020-08-18  7:14   ` Landen Chao
2020-08-18  7:14 ` [PATCH net-next v2 2/7] net: dsa: mt7530: support full-duplex gigabit only Landen Chao
2020-08-18  7:14   ` Landen Chao
2020-08-18 15:49   ` Andrew Lunn
2020-08-18 15:49     ` Andrew Lunn
2020-08-18  7:14 ` [PATCH net-next v2 3/7] net: dsa: mt7530: Extend device data ready for adding a new hardware Landen Chao
2020-08-18  7:14   ` Landen Chao
2020-08-18 15:56   ` Andrew Lunn
2020-08-18 15:56     ` Andrew Lunn
2020-08-18 17:31   ` Frank Wunderlich
2020-08-18 17:31     ` Frank Wunderlich
2020-08-18  7:14 ` [PATCH net-next v2 4/7] dt-bindings: net: dsa: add new MT7531 binding to support MT7531 Landen Chao
2020-08-18  7:14   ` Landen Chao
2020-08-25 19:43   ` Rob Herring
2020-08-25 19:43     ` Rob Herring
2020-08-18  7:14 ` [PATCH net-next v2 5/7] net: dsa: mt7530: Add the support of MT7531 switch Landen Chao
2020-08-18  7:14   ` Landen Chao
2020-08-18 15:23   ` Jakub Kicinski
2020-08-18 15:23     ` Jakub Kicinski
2020-08-19  9:50     ` Landen Chao
2020-08-19  9:50       ` Landen Chao
2020-08-18 16:09   ` Andrew Lunn
2020-08-18 16:09     ` Andrew Lunn
2020-08-19  9:44     ` Landen Chao
2020-08-19  9:44       ` Landen Chao
2020-08-19 13:12       ` Andrew Lunn
2020-08-19 13:12         ` Andrew Lunn
2020-08-19 23:46       ` René van Dorst
2020-08-19 23:46         ` René van Dorst
2020-08-20 15:29         ` Chuanhong Guo
2020-08-20 15:29           ` Chuanhong Guo
2020-08-18  7:14 ` [PATCH net-next v2 6/7] arm64: dts: mt7622: add mt7531 dsa to mt7622-rfb1 board Landen Chao
2020-08-18  7:14   ` Landen Chao
2020-08-18 16:10   ` Andrew Lunn
2020-08-18 16:10     ` Andrew Lunn
2020-08-18  7:14 ` [PATCH net-next v2 7/7] arm64: dts: mt7622: add mt7531 dsa to bananapi-bpi-r64 board Landen Chao
2020-08-18  7:14   ` Landen Chao
2020-08-18 16:24   ` Vladimir Oltean
2020-08-18 16:24     ` Vladimir Oltean
2020-08-19  8:15     ` Landen Chao
2020-08-19  8:15       ` Landen Chao
2020-08-19  8:51       ` Vladimir Oltean
2020-08-19  8:51         ` Vladimir Oltean
2020-08-18 17:54 ` Aw: [PATCH net-next v2 0/7] net-next: dsa: mt7530: add support for MT7531 Frank Wunderlich
2020-08-18 17:54   ` Frank Wunderlich
2020-08-19  3:49 ` DENG Qingfang
2020-08-19  3:49   ` DENG Qingfang
2020-08-19  6:57   ` Frank Wunderlich
2020-08-19  7:38   ` Landen Chao
2020-08-19  7:38     ` Landen Chao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.