mbox series

[0/3] Allow to specify the PHY number to use with a specific i.MX FEC/ENET Ethernet device

Message ID cover.1593296112.git.jcd@tribudubois.net
Headers show
Series Allow to specify the PHY number to use with a specific i.MX FEC/ENET Ethernet device | expand

Message

Jean-Christophe Dubois June 28, 2020, 8:20 p.m. UTC
The PHY device associated to a specific i.MX Ethernet device is not 
necessarily at address 0 on the MDIO bus.

This patch series adds the ability to set the PHY number on the MDIO bus
for any i.MX6UL based board.

Jean-Christophe Dubois (3):
  Add a phy-num property to the i.MX FEC emulator
  Add the ability to select a different PHY for each i.MX6UL FEC
    interface
  Select MDIO device 2 and 1 as PHY devices for i.MW6UL EVK board.

 hw/arm/fsl-imx6ul.c         | 10 ++++++++++
 hw/arm/mcimx6ul-evk.c       |  2 ++
 hw/net/imx_fec.c            | 24 +++++++++++++++++-------
 hw/net/trace-events         |  4 ++--
 include/hw/arm/fsl-imx6ul.h |  2 ++
 include/hw/net/imx_fec.h    |  1 +
 6 files changed, 34 insertions(+), 9 deletions(-)

Comments

Peter Maydell July 3, 2020, 12:31 p.m. UTC | #1
On Sun, 28 Jun 2020 at 21:21, Jean-Christophe Dubois
<jcd@tribudubois.net> wrote:
>
> The PHY device associated to a specific i.MX Ethernet device is not
> necessarily at address 0 on the MDIO bus.
>
> This patch series adds the ability to set the PHY number on the MDIO bus
> for any i.MX6UL based board.
>
> Jean-Christophe Dubois (3):
>   Add a phy-num property to the i.MX FEC emulator
>   Add the ability to select a different PHY for each i.MX6UL FEC
>     interface
>   Select MDIO device 2 and 1 as PHY devices for i.MW6UL EVK board.



Applied to target-arm.next, thanks.

-- PMM