net: stmmac: add SL2610 ethernet support
Subsystems (5)
v4 cover net: stmmac: add SL2610 ethernet support
This series add Synaptics SL2610 ethernet support.
since v3:
- use test_and_set_bit() etc. instead of link list + mutex for mdio owner
since v2:
- remove sl2610 clk IDs, reset IDs dependency from dt-binding's example
- add mdio owner validation per Andrew suggestion
since v1:
- switch to one MDIO bus solution instead of MDIO demultiplexer
- remove patches to add eth nodes to dtsi and enable eth for rdk. They will be sent separately
- add constraints for interrupts, clocks, resets and so on
- update dt-bindings example
- use .set_phy_intf_sel()
- use PHY_INTF_SEL_RGMII and PHY_INTF_SEL_RMII
A consolidated MAINTAINERS update will follow once the subsystem series have merged, avoiding overlapping changes to the Synaptics entry.
Jisheng Zhang (2):
dt-bindings: net: Add Synaptics SL2610 DWMAC
net: stmmac: Add glue layer for Synaptics SL2610 SoC
.../devicetree/bindings/net/snps,dwmac.yaml | 1 + .../bindings/net/syna,sl2610-dwmac.yaml | 124 +++++++++++++ drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 ++ drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../net/ethernet/stmicro/stmmac/dwmac-syna.c | 167 ++++++++++++++++++ 5 files changed, 304 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-syna.c
Signature · 1 line
2.55.0
PATCH v4 1/2 dt-bindings: net: Add Synaptics SL2610 DWMAC
Describe the Synaptics SL2610 integration of DWMAC 5.20. The PHY interface mode and the routing of the shared MDC/MDIO signals are controlled through system-controller registers.
Add the compatible to the common DWMAC schema and show a PHY connected to MAC1's MDIO bus in the example.
--- .../devicetree/bindings/net/snps,dwmac.yaml | 1 + .../bindings/net/syna,sl2610-dwmac.yaml | 124 ++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml
Documentation/devicetree/bindings/net/snps,dwmac.yaml +1 -0
@@ -120,6 +120,7 @@ properties: - sophgo,sg2044-dwmac - starfive,jh7100-dwmac - starfive,jh7110-dwmac + - syna,sl2610-dwmac - tesla,fsd-ethqos - thead,th1520-gmac - ultrarisc,dp1000-gmac
Documentation/devicetree/bindings/net/syna,sl2610-dwmac.yaml new file +124 -0
124 lines not on this page · raw message
Signature · 1 line
2.55.0
PATCH v4 2/2 net: stmmac: Add glue layer for Synaptics SL2610 SoC
In reply to Jisheng ZhangAdd dwmac glue driver to support the DesignWare-based GMAC controllers in the Synaptics SL2610 SoC.
--- drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 ++ drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + .../net/ethernet/stmicro/stmmac/dwmac-syna.c | 167 ++++++++++++++++++ 3 files changed, 179 insertions(+) create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-syna.c
drivers/net/ethernet/stmicro/stmmac/Kconfig +11 -0
@@ -310,6 +310,17 @@ config DWMAC_SUN55I stmmac device driver. This driver is used for A523/T527 GMAC200 ethernet controller. +config DWMAC_SYNA + tristate "Synaptics SL2610 DWMAC support" + depends on OF && HAS_DMA && (ARCH_BERLIN || COMPILE_TEST) + select MFD_SYSCON + help + Support for the Synaptics SL2610 DesignWare Ethernet MAC glue. + This configures the PHY interface through the system controller. + + To compile this driver as a module, choose M here. The module + will be called dwmac-syna. + config DWMAC_THEAD tristate "T-HEAD dwmac support" depends on OF && (ARCH_THEAD || COMPILE_TEST)
drivers/net/ethernet/stmicro/stmmac/Makefile +1 -0
@@ -35,6 +35,7 @@ obj-$(CONFIG_DWMAC_STM32) += dwmac-stm32.o obj-$(CONFIG_DWMAC_SUNXI) += dwmac-sunxi.o obj-$(CONFIG_DWMAC_SUN8I) += dwmac-sun8i.o obj-$(CONFIG_DWMAC_SUN55I) += dwmac-sun55i.o +obj-$(CONFIG_DWMAC_SYNA) += dwmac-syna.o obj-$(CONFIG_DWMAC_THEAD) += dwmac-thead.o obj-$(CONFIG_DWMAC_ULTRARISC) += dwmac-ultrarisc.o obj-$(CONFIG_DWMAC_DWC_QOS_ETH) += dwmac-dwc-qos-eth.o
drivers/net/ethernet/stmicro/stmmac/dwmac-syna.c new file +167 -0
167 lines not on this page · raw message
Signature · 1 line
2.55.0