Skip to content

Fix Ethernet interface support for microchip-icicle-kit

Guenter Roeck qemu-arm qemu-devel qemu-riscv 1 version Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4hw/net/cadence_gem: Support two Ethernet interfaces connected to single MDIO bushw/net/cadence_gem.c include/hw/net/cadence_gem.h+21 -61 reply
2/4hw/riscv: microchip_pfsoc: Connect Ethernet PHY channelshw/riscv/microchip_pfsoc.c+4 -01 reply
3/4hw/net/cadence_gem: Add pcs-enabled propertyhw/net/cadence_gem.c include/hw/net/cadence_gem.h+7 -11 reply
4/4microchip icicle: Enable PCS on Cadence Ethernethw/riscv/microchip_pfsoc.c+2 -01 reply

Reviews trailers per patch

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

PatchAlistair Francis
1/4A-b
2/4A-b
3/4A-b
4/4A-b

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

Read the v1 thread

Cover letter [PATCH 0/4] Fix Ethernet interface support for microchip-icicle-kit

The Microchip PolarFire SoC Icicle Kit supports two Ethernet interfaces. The PHY on each may be connected to separate MDIO busses, or both may be connected on the same MDIO bus using different PHY addresses. Add support for it to the Cadence GEM emulation.

The Linux kernel checks the PCS disabled bit in the R_DESCONF register to determine if SGMII is supported. If the bit is set, SGMII support is disabled. Since the Microchip Icicle devicetree file configures SGMII interface mode, enabling the Ethernet interfaces fails when booting the Linux kernel. Add support for clearing the PCS disabled bit.

----------------------------------------------------------------
Guenter Roeck (4):
hw/net/cadence_gem: Support two Ethernet interfaces connected to single MDIO bus hw/riscv: microchip_pfsoc: Connect Ethernet PHY channels hw/net/cadence_gem: Add pcs-enabled property
microchip icicle: Enable PCS on Cadence Ethernet

 hw/net/cadence_gem.c         | 31 ++++++++++++++++++++++++-------
 hw/riscv/microchip_pfsoc.c   |  6 ++++++
 include/hw/net/cadence_gem.h |  4 ++++
 3 files changed, 34 insertions(+), 7 deletions(-)