[PATCH 0/9] Add support for imx8mm-venice-gw7901 and DSA switch

Tim Harvey tharvey at gateworks.com
Thu Jul 1 01:50:01 CEST 2021


The GW7901 is an IMX8M Mini based board with a KSZ9897 switch hanging
off the IMX8M FEC.

In order to support a fixed-link connection to a U-Boot DSA switch some
changes need to be made to the FEC driver.

Additionally, in order to support per-port unique MAC addrs for DSA we
must introduce a mechanism to put the master device in promiscuous mode.

All patches are here including adding the dts for the board as well as a
dsa driver and necessary patches to fec/dsa so that it is clear how this
fits together.

Tim Harvey (9):
  board: gateworks: venice: add imx8mm-gw7901 support
  net: fec: use device sequence vs index when fetching fec
  net: fec: set phy_of_node properly for fixed-link phy
  net: add set_promisc function to enable/disable Promiscuous mode
  net: fec: add set_promisc function
  net: dsa: enable master promisc mode if available and needed
  net: add support for KSZ9477/KSZ9897/KSZ9567 GbE switch
  arm: dts: imx8mm-venice-gw7901.dts: fix dsa switch configuration
  configs: imx8mm_venice_defconfig: add support for gbe switch

 arch/arm/dts/Makefile                         |    1 +
 arch/arm/dts/imx8mm-venice-gw7901-u-boot.dtsi |  118 ++
 arch/arm/dts/imx8mm-venice-gw7901.dts         | 1055 +++++++++++++++++
 board/gateworks/venice/spl.c                  |   55 +-
 configs/imx8mm_venice_defconfig               |    6 +-
 drivers/net/Kconfig                           |    7 +
 drivers/net/Makefile                          |    1 +
 drivers/net/fec_mxc.c                         |   21 +-
 drivers/net/fec_mxc.h                         |    1 +
 drivers/net/ksz9477.c                         |  547 +++++++++
 include/net.h                                 |    2 +
 net/dsa-uclass.c                              |    9 +-
 12 files changed, 1818 insertions(+), 5 deletions(-)
 create mode 100644 arch/arm/dts/imx8mm-venice-gw7901-u-boot.dtsi
 create mode 100644 arch/arm/dts/imx8mm-venice-gw7901.dts
 create mode 100644 drivers/net/ksz9477.c

-- 
2.17.1



More information about the U-Boot mailing list