This patch series adds a driver for the Microchip 7-port KSZ9477/KSZ9897/KSZ9567 GbE Switch.
This was tested on an IMX8MM board that has its FEC MAC RGMII connected to the CPU uplink port of a KSZ9897 and I2C controlling the KSZ9897 registers. I found that the UCLASS_ETH_PHY class appears appropriate for binding an mii bus to a eth device however I had to remove some restrictions in the eth_phy_get_mdio_bus() and eth_phy_set_mdio_bus() in order to accomplish this as they only allowed binding a phy to an eth if it was a child node of the eth device. Specific comments I'm looking for here are: - Please verify that I'm using the correct class or if there is a better way to register such that the phy would be bound with a mac. - I'm hoping Peng and Yi Li can review and test my changes to eth-phy-uclass to make sure it still works with whatever boards they added that class - I'm not quite clear how best to handle the configuration of the LED mode. I feel like this should be a dt property honored by both the u-boot driver and the linux driver (ksz9477.c) as the linux driver does a reset on the phy and clobbers the LED configuration. Best Regards, Tim Tim Harvey (2): net: eth-phy-uclass: allow flexible mii to eth bindings net: add support for KSZ9477/KSZ9897/KSZ9567 GbE switch MAINTAINERS | 5 + drivers/net/eth-phy-uclass.c | 41 ++-- drivers/net/phy/Kconfig | 15 ++ drivers/net/phy/Makefile | 1 + drivers/net/phy/ksz9477.c | 533 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 573 insertions(+), 23 deletions(-) create mode 100644 drivers/net/phy/ksz9477.c -- 2.7.4