Add the dwmac driver support for T-HEAD TH1520 SoC.
Since the clk part isn't mainlined, so SoC dts(i) changes are not
included in this series. However, it can be tested by using fixed-clock.
Jisheng Zhang (3):
dt-bindings: net: snps,dwmac: allow dwmac-3.70a to set pbl properties
dt-bindings: net: add T-HEAD dwmac support
net: stmmac: add glue layer for T-HEAD TH1520 SoC
.../devicetree/bindings/net/snps,dwmac.yaml | 2 +
.../devicetree/bindings/net/thead,dwmac.yaml | 87 +++++
drivers/net/ethernet/stmicro/stmmac/Kconfig | 11 +
drivers/net/ethernet/stmicro/stmmac/Makefile | 1 +
.../net/ethernet/stmicro/stmmac/dwmac-thead.c | 304 ++++++++++++++++++
5 files changed, 405 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/thead,dwmac.yaml
create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-thead.c
--
2.40.1
snps dwmac 3.70a also supports setting pbl related properties, such as
"snps,pbl", "snps,txpbl", "snps,rxpbl" and "snps,no-pbl-x8".
Signed-off-by: Jisheng Zhang <[email protected]>
---
Documentation/devicetree/bindings/net/snps,dwmac.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index a916701474dc..7626289157df 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -659,6 +659,7 @@ allOf:
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- snps,dwmac-3.50a
+ - snps,dwmac-3.70a
- snps,dwmac-4.10a
- snps,dwmac-4.20a
- snps,dwmac-5.20
--
2.40.1