Skip to content

Initial support for PIC64-HPSC/HX Ethernet endpoint

Charles Perry linux-devicetree lkml netdev 3 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. v3 Latest3 patches 9 repliesApplied 3/3
  2. v23 patches 3 repliesSuperseded
  3. v14 patches 11 repliesSuperseded

Changes in v3 from the cover letter

- Fix one more "p64h" -> "pic64hpsc"
- Remove .clk_init assignation since it's no longer required (patch 3)

Patches in v3 All 3 applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: net: cdns,macb: add a compatible for Microchip pic64hpscDocumentation/devicetree/bindings/net/cdns,macb.yaml+19 -01 replyApplied
2/3net: macb: add safeguards for jumbo frame larger than 10240drivers/net/ethernet/cadence/macb_main.c+4 -24 repliesApplied
3/3net: macb: add support for Microchip pic64hpsc ethernet endpointdrivers/net/ethernet/cadence/macb_main.c+9 -01 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchConor DooleySimon HormanThéo Lebrun
1/3A-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH net-next v3 0/3] Initial support for PIC64-HPSC/HX Ethernet endpoint

Hello,

This series add basic support for Microchip "PIC64-HPSC" and "PIC64HX" Ethernet endpoint. Both SoCs contain 4 GEM IP with support for MII/RGMII/SGMII/USXGMII at rates of 10M to 10G. Only RGMII and SGMII at a rate of 1G is tested for now. Each GEM IP has 8 priority queues and the revision register reads 0x220c010e.

One particularity of this instantiation of GEM is that the MDIO controller within the GEM IP is disconnected from any physical pin and the SoC rely on another standalone MDIO controller.

The maximum jumbo frame size also seems to be different on PIC64-HPSC/HX (16383) than what most other platforms use (10240). I've found that I need to tweak a bit the MTU calculation for this, otherwise the RXBS field of the DMACFG register overflows. See patch 2 for more details.

PIC64-HPSC/HX also supports other features guarded behind CAPS bit like MACB_CAPS_QBV but I've omitted those intentionally because I didn't test these.

Thanks,
Charles

Changes in v3:
- Fix one more "p64h" -> "pic64hpsc"
- Remove .clk_init assignation since it's no longer required (patch 3)

Changes in v2:
- Use separate compatibles for PIC64-HPSC and PIC64HX
- "p64h" -> "pic64hpsc"
- Merge patch 2 into patch 1

Charles Perry (3):
dt-bindings: net: cdns,macb: add a compatible for Microchip pic64hpsc
net: macb: add safeguards for jumbo frame larger than 10240
net: macb: add support for Microchip pic64hpsc ethernet endpoint

 .../devicetree/bindings/net/cdns,macb.yaml    | 19 +++++++++++++++++++
 drivers/net/ethernet/cadence/macb_main.c      | 15 +++++++++++++--
 2 files changed, 32 insertions(+), 2 deletions(-)
Signature · 1 line
2.47.3