]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/net/cadence_gem: Support two Ethernet interfaces connected to single MDIO bus
authorGuenter Roeck <linux@roeck-us.net>
Sat, 4 Oct 2025 20:00:46 +0000 (13:00 -0700)
committerAlistair Francis <alistair.francis@wdc.com>
Thu, 23 Oct 2025 23:24:08 +0000 (09:24 +1000)
commite530e5d034daf6865239b94705dd57c8c45cf4e4
tree07f34b6aa4ae6d59c21171c4d7faf6aa9574a5cf
parentd652720ecc6e6b62d358db07fb1b1b4c2578243b
hw/net/cadence_gem: Support two Ethernet interfaces connected to single MDIO bus

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.

To be able to support two PHY instances on a single MDIO bus, two properties
are needed: First, there needs to be a flag indicating if the MDIO bus on
a given Ethernet interface is connected. If not, attempts to read from this
bus must always return 0xffff. Implement this property as phy-connected.
Second, if the MDIO bus on an interface is active, it needs a link to the
consumer interface to be able to provide PHY access for it. Implement this
property as phy-consumer.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20251004200049.871646-2-linux@roeck-us.net>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/net/cadence_gem.c
include/hw/net/cadence_gem.h