Skip to content

Add support for Nuvoton MA35D1 GMAC

Joey Lu linux-arm-kernel linux-devicetree lkml netdev openbmc 15 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v15 Latest3 patches 0 repliesNew 2 of 3 applied
  2. v143 patches 2 repliesSuperseded
  3. v133 patches 1 replySuperseded
Earlier versions · 12
VersionPostedPatchesRepliesStatus
v123 patches5 repliesSuperseded
v113 patches2 repliesSuperseded
v103 patches2 repliesSuperseded
v93 patches2 repliesSuperseded
v8 posting 2/23 patches6 repliesSuperseded
v8 posting 1/23 patches1 replySuperseded
v73 patches10 repliesSuperseded
v63 patches7 repliesSuperseded
v53 patches5 repliesSuperseded
v43 patches6 repliesSuperseded
v33 patches10 repliesSuperseded
v23 patches4 repliesSuperseded

Changes in v15 from the cover letter

- Return error correctly in probe function.

Patches in v15 2 of 3 applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: net: nuvoton: Add schema for Nuvoton MA35 family GMACDocumentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml Documentation/devicetree/bindings/net/snps,dwmac.yaml+141 -00 repliesApplied
2/3arm64: dts: nuvoton: Add Ethernet nodesarch/arm64/boot/dts/nuvoton/ma35d1-iot-512m.dts arch/arm64/boot/dts/nuvoton/ma35d1-som-256m.dts arch/arm64/boot/dts/nuvoton/ma35d1.dtsi+101 -00 replies
3/3net: stmmac: dwmac-nuvoton: Add dwmac glue for Nuvoton MA35 familydrivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile drivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c+149 -00 repliesApplied

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)Andrew Lunn
1/3R-b
2/3
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v15 thread

Cover letter [PATCH net-next v15 0/3] Add support for Nuvoton MA35D1 GMAC

This patch series is submitted to add GMAC support for Nuvoton MA35D1 SoC platform. This work involves implementing a GMAC driver glue layer based on Synopsys DWMAC driver framework to leverage MA35D1's dual GMAC interface capabilities.

Overview:
1. Added a GMAC driver glue layer for MA35D1 SoC, providing support for the platform's two GMAC interfaces.
2. Added device tree settings, with specific configurations for our development boards:
a. SOM board: Configured for two RGMII interfaces.
b. IoT board: Configured with one RGMII and one RMII interface.
3. Added dt-bindings for the GMAC interfaces.

v15:
- Return error correctly in probe function.

v14:
- Fixed dt_binding_check compilation errors in the YAML file.

v13:
- Fixed YAML with dt_binding_check
- Added callback for plat_dat->phy_interface
- Updated PHY-related setting helper function
- Renamed registers and values to avoid misleading names

v12:
- Drop private structure nvt_priv_data
- Fix error propagation to preserve probe deferral
- Refactor internal delay handling into a dedicated helper
- Move FIFO and filter configuration from driver to Device Tree
- Update DT binding to include "snps,dwmac-3.70a" compatible

v11:
- Propagate syscon lookup errors to allow proper probe deferral.

v10:
- Update DTS/DTSI files to follow proper hierarchy and port modeling

v9:
- Fixed file permissions. (YAML, driver, DTS)
- Moved phy-handle and PHY-related properties from SoC dtsi to board dts.

v8:
Changes since v7:
- Rebased onto the latest net-next.
- Removed unused symbol.
- stmmac parent driver now reads hardware features directly to support Wake-on-LAN via magic packet, so PMT-related overrides in this driver have been removed.
- Update dwmac-nuvoton driver:
- Update the license to GPL.
- Improve the description in Kconfig.

v7:
- Update dwmac-nuvoton driver
- Update probe function to use stmmac_pltfr_probe instead.

v6:
- Update dwmac-nuvoton driver
- Use NVT as the previx for all functions, structs, and defines.
- Remove unnecessary comments.

v5:
- Update yaml
- Remove the properties already defined in snps dwmac.
- Update dwmac-nuvoton driver
- Add a comment to explain the override of PMT flag.

v4:
- Update yaml
- Remove unnecessary property 'select'.
- Remove unnecessary compatible entries and fix items.
- Specify number of entries for 'reg'.
- Remove already defined property 'phy-handle'.
- Update example.
- Modify the property internal path delay to match the driver.
- Update dtsi
- Move 'status' to be the last property.
- Update dwmac-nuvoton driver
- Use remove instead of remove_new.
- Use dev_err_probe instead.

v3:
- Update yaml
- Fix for dt_binding_check warnings & errors.
- Add compatible in snps dwmac.
- Update dtsi
- Update dtsi to follow examples in yaml.
- Update dwmac-nuvoton driver
- Fix for auto build test warnings.
- Invalid path delay arguments will be returned.

v2:
- Update yaml
- Rename file to align with the compatible property.
- Add an argument to syscon to replace mac-id,
with corresponding descriptions.
- Use tx-internal-delay-ps and rx-internal-delay-ps properties for configurable path delay with corresponding descriptions, allowing selection between GMAC internal and PHY.
- Add all supported phy-mode options.
- Remove unused properties.
- Update dtsi
- Modify syscon configuration to include an argument for GMAC interface selection.
- Update dwmac-nuvoton driver
- Remove redundant device information print statements.
- Remove non-global parameters.
- Retrieve GMAC interface selection from the syscon argument.
- Parse Tx and Rx path delays by correct properties.
- Update configurations to support Wake-on-LAN.

Joey Lu (3):
dt-bindings: net: nuvoton: Add schema for Nuvoton MA35 family GMAC
arm64: dts: nuvoton: Add Ethernet nodes
net: stmmac: dwmac-nuvoton: Add dwmac glue for Nuvoton MA35 family

 .../bindings/net/nuvoton,ma35d1-dwmac.yaml    | 140 ++++++++++++++++++
 .../devicetree/bindings/net/snps,dwmac.yaml   |   1 +
 .../boot/dts/nuvoton/ma35d1-iot-512m.dts      |  25 ++++
 .../boot/dts/nuvoton/ma35d1-som-256m.dts      |  24 +++
 arch/arm64/boot/dts/nuvoton/ma35d1.dtsi       |  52 +++++++
 drivers/net/ethernet/stmicro/stmmac/Kconfig   |  12 ++
 drivers/net/ethernet/stmicro/stmmac/Makefile  |   1 +
 .../ethernet/stmicro/stmmac/dwmac-nuvoton.c   | 136 +++++++++++++++++
 8 files changed, 391 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/nuvoton,ma35d1-dwmac.yaml
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-nuvoton.c
Signature · 1 line
2.43.0