devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/6] net: stmmac: add renesas,rzn1-gmac support
@ 2023-02-09 15:16 Clément Léger
  2023-02-09 15:16 ` [PATCH net-next v3 1/6] net: pcs: rzn1-miic: add pcs_early_setup() function Clément Léger
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: Clément Léger @ 2023-02-09 15:16 UTC (permalink / raw)
  To: Sergey Shtylyov, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Geert Uytterhoeven,
	Magnus Damm, Giuseppe Cavallaro, Alexandre Torgue, Jose Abreu,
	Maxime Coquelin, Russell King, Wong Vee Khee,
	Clément Léger, Kurt Kanzenbach, Revanth Kumar Uppala,
	Tan Tee Min
  Cc: Thomas Petazzoni, Herve Codina, Miquèl Raynal,
	Milan Stevanovic, Jimmy Lalande, Pascal Eberhard,
	Mohammad Athari Bin Ismail, Jon Hunter, netdev, linux-renesas-soc,
	devicetree, linux-kernel, linux-stm32, linux-arm-kernel

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

-- 
2.39.0


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

end of thread, other threads:[~2023-02-21 14:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-09 15:16 [PATCH net-next v3 0/6] net: stmmac: add renesas,rzn1-gmac support Clément Léger
2023-02-09 15:16 ` [PATCH net-next v3 1/6] net: pcs: rzn1-miic: add pcs_early_setup() function Clément Léger
2023-02-09 15:16 ` [PATCH net-next v3 2/6] net: stmmac: add support to use a generic phylink_pcs as PCS Clément Léger
2023-02-09 15:16 ` [PATCH net-next v3 3/6] net: stmmac: add support to provide pcs from platform data Clément Léger
2023-02-09 15:16 ` [PATCH net-next v3 4/6] dt-bindings: net: renesas,rzn1-gmac: Document RZ/N1 GMAC support Clément Léger
2023-02-10 12:01   ` Krzysztof Kozlowski
2023-02-10 12:29     ` Clément Léger
2023-02-09 15:16 ` [PATCH net-next v3 5/6] net: stmmac: add support for RZ/N1 GMAC Clément Léger
2023-02-10 11:09   ` Russell King (Oracle)
2023-02-21 14:45   ` Geert Uytterhoeven
2023-02-09 15:16 ` [PATCH net-next v3 6/6] ARM: dts: r9a06g032: describe GMAC1 Clément Léger
2023-02-14 13:17   ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).