Skip to content

net: stmmac: add renesas,rzn1-gmac support

Clément Léger linux-arm-kernel linux-devicetree linux-renesas-soc lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 5 repliesIn review
  2. v26 patches 4 repliesSuperseded
  3. v16 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- Sort out the bindings compatible

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: pcs: rzn1-miic: add pcs_early_setup() functiondrivers/net/pcs/pcs-rzn1-miic.c include/linux/pcs-rzn1-miic.h+15 -00 replies
2/6net: stmmac: add support to use a generic phylink_pcs as PCSdrivers/net/ethernet/stmicro/stmmac/common.h drivers/net/ethernet/stmicro/stmmac/stmmac_main.c drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c+4 -40 replies
3/6net: stmmac: add support to provide pcs from platform datadrivers/net/ethernet/stmicro/stmmac/stmmac_main.c include/linux/stmmac.h+4 -00 replies
4/6dt-bindings: net: renesas,rzn1-gmac: Document RZ/N1 GMAC supportDocumentation/devicetree/bindings/net/renesas,rzn1-gmac.yaml+67 -02 replies
5/6net: stmmac: add support for RZ/N1 GMACdrivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c+132 -02 replies
6/6ARM: dts: r9a06g032: describe GMAC1arch/arm/boot/dts/r9a06g032.dtsi+18 -01 reply

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH net-next v3 0/6] net: stmmac: add renesas,rzn1-gmac support

The rzn1-gmac instance is connected to a PCS (MIIC). In order to use this pcs, add support in the sttmac driver to set a generic phylink pcs device instead of the xpcs only. Moreover, it adds support to provide a phylink pcs device from the stmmac platform data and use it with the driver. It also adds the bindings and the new rzn1-gmac driver that retrieve this pcs from the device-tree.

---
V3:
- Sort out the bindings compatible

V2:
- Remove patch that moves phylink_start() earlier in init
- Add miic_early_qsetup() which allows initializing some miic port earlier to provide a RX clock to stmmac IP
- Call miic_early_setup() in rzn1 stmmac driver
- Fix bindings

Clément Léger (6):
net: pcs: rzn1-miic: add pcs_early_setup() function
net: stmmac: add support to use a generic phylink_pcs as PCS
net: stmmac: add support to provide pcs from platform data
dt-bindings: net: renesas,rzn1-gmac: Document RZ/N1 GMAC support
net: stmmac: add support for RZ/N1 GMAC
ARM: dts: r9a06g032: describe GMAC1

 .../bindings/net/renesas,rzn1-gmac.yaml       |  67 ++++++++++
 arch/arm/boot/dts/r9a06g032.dtsi              |  18 +++
 drivers/net/ethernet/stmicro/stmmac/Kconfig   |  11 ++
 drivers/net/ethernet/stmicro/stmmac/Makefile  |   1 +
 drivers/net/ethernet/stmicro/stmmac/common.h  |   2 +
 .../net/ethernet/stmicro/stmmac/dwmac-rzn1.c  | 120 ++++++++++++++++++
 .../net/ethernet/stmicro/stmmac/stmmac_main.c |   8 +-
 .../net/ethernet/stmicro/stmmac/stmmac_mdio.c |   1 +
 drivers/net/pcs/pcs-rzn1-miic.c               |  12 ++
 include/linux/pcs-rzn1-miic.h                 |   3 +
 include/linux/stmmac.h                        |   1 +
 11 files changed, 240 insertions(+), 4 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/renesas,rzn1-gmac.yaml
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-rzn1.c
Signature · 1 line
2.39.0