Skip to content

Support mt7531 on BPI-R2 Pro

Frank Wunderlich linux-arm-kernel linux-devicetree linux-mediatek linux-rockchip lkml netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 6 repliesApplied 6/6
  2. v36 patches 13 repliesSuperseded
  3. v2 RFC1 patch 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC1 patch8 repliesSuperseded

Changes in v4 from the cover letter

- rebase on 5.19-rc1
- some changes in bindings-document and fix wrong squashing from v3

Patches in v4 All 6 applied

#Subject and filesSizeRepliesApplied
1/6dt-bindings: net: dsa: convert binding for mediatek switchesDocumentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml Documentation/devicetree/bindings/net/dsa/mt7530.txt+406 -3271 replyApplied
2/6net: dsa: mt7530: rework mt7530_hw_vlan_{add,del}drivers/net/dsa/mt7530.c+12 -181 replyApplied
3/6net: dsa: mt7530: rework mt753[01]_setupdrivers/net/dsa/mt7530.c+21 -41 replyApplied
4/6net: dsa: mt7530: get cpu-port via dp->cpu_dp instead of constantdrivers/net/dsa/mt7530.c drivers/net/dsa/mt7530.h+20 -81 replyApplied
5/6dt-bindings: net: dsa: make reset optional and add rgmii-mode to mt7531Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml+3 -51 replyApplied
6/6arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro boardarch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts+48 -01 replyApplied

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchVladimir OlteanRob HerringFlorian Fainelli
1/6R-b
2/6R-b R-b
3/6R-b R-b
4/6R-b R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/6] Support mt7531 on BPI-R2 Pro

From: Frank Wunderlich <[email protected]>

This Series add Support for the mt7531 switch on Bananapi R2 Pro board.

This board uses port5 of the switch to conect to the gmac0 of the rk3568 SoC.

Currently CPU-Port is hardcoded in the mt7530 driver to port 6.

Compared to v1 the reset-Patch was dropped as it was not needed and CPU-Port-changes are completely rewriten based on suggestions/code from Vladimir Oltean (many thanks to this).
In DTS Patch i only dropped the status-property that was not needed/ignored by driver.

Due to the Changes i also made a regression test on mt7623 bpi-r2 (mt7623 soc + mt7530) and bpi-r64 (mt7622 soc + mt7531) with cpu- port 6. Tests were done directly (ipv4 config on dsa user port) and with vlan-aware bridge including vlan that was tagged outgoing on dsa user port.

v4:
- rebase on 5.19-rc1
- some changes in bindings-document and fix wrong squashing from v3

Frank Wunderlich (6):
dt-bindings: net: dsa: convert binding for mediatek switches
net: dsa: mt7530: rework mt7530_hw_vlan_{add,del}
net: dsa: mt7530: rework mt753[01]_setup
net: dsa: mt7530: get cpu-port via dp->cpu_dp instead of constant
dt-bindings: net: dsa: make reset optional and add rgmii-mode to

    mt7531

arm64: dts: rockchip: Add mt7531 dsa node to BPI-R2-Pro board

 .../bindings/net/dsa/mediatek,mt7530.yaml     | 404 ++++++++++++++++++
 .../devicetree/bindings/net/dsa/mt7530.txt    | 327 --------------
 .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts   |  48 +++
 drivers/net/dsa/mt7530.c                      |  82 ++--
 drivers/net/dsa/mt7530.h                      |   1 -
 5 files changed, 505 insertions(+), 357 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
 delete mode 100644 Documentation/devicetree/bindings/net/dsa/mt7530.txt
Signature · 1 line
2.34.1