netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] riscv: sophgo: Add ethernet support for SG2044
@ 2024-10-25  1:09 Inochi Amaoto
  2024-10-25  1:09 ` [PATCH v2 1/4] dt-bindings: net: snps,dwmac: Add dwmac-5.30a version Inochi Amaoto
                   ` (4 more replies)
  0 siblings, 5 replies; 21+ messages in thread
From: Inochi Amaoto @ 2024-10-25  1:09 UTC (permalink / raw)
  To: Chen Wang, Andrew Lunn, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Inochi Amaoto, Alexandre Torgue, Jose Abreu,
	Maxime Coquelin, Richard Cochran, Paul Walmsley, Palmer Dabbelt,
	Albert Ou, Giuseppe Cavallaro
  Cc: Yixun Lan, Longbin Li, Inochi Amaoto, netdev, devicetree,
	linux-kernel, linux-stm32, linux-arm-kernel, linux-riscv

The ethernet controller of SG2044 is Synopsys DesignWare IP with
custom clock. Add glue layer for it.

Since v2, these patch depends on that following patch that provides
helper function to compute rgmii clock:
https://lore.kernel.org/netdev/20241013-upstream_s32cc_gmac-v3-4-d84b5a67b930@oss.nxp.com/

Changed from v1:
1. patch 2: remove sophgo,syscon as this mac delay is resolved.
2. patch 2: apply all the properties unconditionally.
3. patch 4: remove sophgo,syscon code as this mac delay is resolved.
4. patch 4: use the helper function to compute rgmii clock.
5. patch 4: use remove instead of remove_new for the platform driver.

Inochi Amaoto (4):
  dt-bindings: net: snps,dwmac: Add dwmac-5.30a version
  dt-bindings: net: Add support for Sophgo SG2044 dwmac
  net: stmmac: platform: Add snps,dwmac-5.30a IP compatible string
  net: stmmac: Add glue layer for Sophgo SG2044 SoC

 .../devicetree/bindings/net/snps,dwmac.yaml   |   4 +
 .../bindings/net/sophgo,sg2044-dwmac.yaml     | 124 ++++++++++++++++++
 drivers/net/ethernet/stmicro/stmmac/Kconfig   |  11 ++
 drivers/net/ethernet/stmicro/stmmac/Makefile  |   1 +
 .../ethernet/stmicro/stmmac/dwmac-sophgo.c    | 109 +++++++++++++++
 .../ethernet/stmicro/stmmac/stmmac_platform.c |   3 +-
 6 files changed, 251 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/net/sophgo,sg2044-dwmac.yaml
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-sophgo.c

--
2.47.0


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

end of thread, other threads:[~2024-10-30  0:43 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-25  1:09 [PATCH v2 0/4] riscv: sophgo: Add ethernet support for SG2044 Inochi Amaoto
2024-10-25  1:09 ` [PATCH v2 1/4] dt-bindings: net: snps,dwmac: Add dwmac-5.30a version Inochi Amaoto
2024-10-27 20:35   ` Krzysztof Kozlowski
2024-10-25  1:09 ` [PATCH v2 2/4] dt-bindings: net: Add support for Sophgo SG2044 dwmac Inochi Amaoto
2024-10-27 20:38   ` Krzysztof Kozlowski
2024-10-27 23:32     ` Inochi Amaoto
2024-10-28  7:06       ` Krzysztof Kozlowski
2024-10-28  7:16         ` Inochi Amaoto
2024-10-29 13:27           ` Krzysztof Kozlowski
2024-10-30  0:43             ` Inochi Amaoto
2024-10-25  1:09 ` [PATCH v2 3/4] net: stmmac: platform: Add snps,dwmac-5.30a IP compatible string Inochi Amaoto
2024-10-25 14:44   ` Alexander Lobakin
2024-10-25 23:32     ` Inochi Amaoto
2024-10-25  1:10 ` [PATCH v2 4/4] net: stmmac: Add glue layer for Sophgo SG2044 SoC Inochi Amaoto
2024-10-25 14:36   ` kernel test robot
2024-10-25 14:53   ` Alexander Lobakin
2024-10-25 23:27     ` Inochi Amaoto
2024-10-25 15:48   ` kernel test robot
2024-10-25 19:34   ` kernel test robot
2024-10-25 13:08 ` [PATCH v2 0/4] riscv: sophgo: Add ethernet support for SG2044 Simon Horman
2024-10-25 23:24   ` Inochi Amaoto

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).