Skip to content

Move Loongson1 MAC arch-code to the driver dir

Keguang Zhang linux-devicetree linux-mips lkml netdev 5 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 7 repliesApplied 3/3
  2. v44 patches 10 repliesSuperseded
  3. v34 patches 13 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches15 repliesSuperseded
v15 patches20 repliesSuperseded

Patches in v5 All 3 applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: mfd: syscon: Add compatibles for Loongson-1 sysconDocumentation/devicetree/bindings/mfd/syscon.yaml+2 -02 repliesApplied
2/3dt-bindings: net: Add Loongson-1 Ethernet ControllerDocumentation/devicetree/bindings/net/loongson,ls1b-gmac.yaml Documentation/devicetree/bindings/net/loongson,ls1c-emac.yaml MAINTAINERS+228 -01 replyApplied
3/3net: stmmac: Add glue layer for Loongson-1 SoCMAINTAINERS drivers/net/ethernet/stmicro/stmmac/Kconfig drivers/net/ethernet/stmicro/stmmac/Makefile +1 more+222 -01 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchKrzysztof KozlowskiSerge Semin
SeriesR-b
1/3A-b R-b
2/3R-b R-b
3/3R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/3] Move Loongson1 MAC arch-code to the driver dir

In order to convert Loongson1 MAC platform devices to the devicetree nodes, Loongson1 MAC arch-code should be moved to the driver dir. Add dt-binding document and update MAINTAINERS file accordingly.

In other words, this patchset is a preparation for converting Loongson1 platform devices to devicetree.

Changelog
V4 -> V5: Replace stmmac_probe_config_dt() with devm_stmmac_probe_config_dt()
Replace stmmac_pltfr_probe() with devm_stmmac_pltfr_probe() Squash patch 4 into patch 2 and 3
V3 -> V4: Add Acked-by tag from Krzysztof Kozlowski
Add "|" to description part
Amend "phy-mode" property
Drop ls1x_dwmac_syscon definition and its instances Drop three redundant fields from the ls1x_dwmac structure Drop the ls1x_dwmac_init() method.
Update the dt-binding document entry of Loongson1 Ethernet Some minor improvements
V2 -> V3: Split the DT-schema file into loongson,ls1b-gmac.yaml
and loongson,ls1c-emac.yaml (suggested by Serge Semin) Change the compatibles to loongson,ls1b-gmac and loongson,ls1c-emac Rename loongson,dwmac-syscon to loongson,ls1-syscon Amend the title
Add description
Add Reviewed-by tag from Krzysztof Kozlowski
Change compatibles back to loongson,ls1b-syscon
and loongson,ls1c-syscon
Determine the device ID by physical
base address(suggested by Serge Semin)
Use regmap instead of regmap fields
Use syscon_regmap_lookup_by_phandle()
Some minor fixes
Update the entries of MAINTAINERS
V1 -> V2: Leave the Ethernet platform data for now
Make the syscon compatibles more specific
Fix "clock-names" and "interrupt-names" property
Rename the syscon property to "loongson,dwmac-syscon" Drop "phy-handle" and "phy-mode" requirement
Revert adding loongson,ls1b-dwmac/loongson,ls1c-dwmac to snps,dwmac.yaml
Fix the build errors due to CONFIG_OF being unset Change struct reg_field definitions to const
Rename the syscon property to "loongson,dwmac-syscon" Add MII PHY mode for LS1C
Improve the commit message

Keguang Zhang (3):
dt-bindings: mfd: syscon: Add compatibles for Loongson-1 syscon
dt-bindings: net: Add Loongson-1 Ethernet Controller
net: stmmac: Add glue layer for Loongson-1 SoC

 .../devicetree/bindings/mfd/syscon.yaml       |   2 +
 .../bindings/net/loongson,ls1b-gmac.yaml      | 114 ++++++++++
 .../bindings/net/loongson,ls1c-emac.yaml      | 113 ++++++++++
 MAINTAINERS                                   |   2 +
 drivers/net/ethernet/stmicro/stmmac/Kconfig   |  11 +
 drivers/net/ethernet/stmicro/stmmac/Makefile  |   1 +
 .../ethernet/stmicro/stmmac/dwmac-loongson1.c | 209 ++++++++++++++++++
 7 files changed, 452 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/loongson,ls1b-gmac.yaml
 create mode 100644 Documentation/devicetree/bindings/net/loongson,ls1c-emac.yaml
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-loongson1.c

base-commit: 98897dc735cf6635f0966f76eb0108354168fb15

Signature · 1 line
2.39.2