Skip to content

RFC Add DM driver for KSZ9477/KSZ9897/KSZ9567 GbE Switch

Tim Harvey u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net: eth-phy-uclass: allow flexible mii to eth bindingsdrivers/net/eth-phy-uclass.c+18 -230 replies
2/2net: add support for KSZ9477/KSZ9897/KSZ9567 GbE switchMAINTAINERS drivers/net/phy/Kconfig drivers/net/phy/Makefile +1 more+554 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/2] Add DM driver for KSZ9477/KSZ9897/KSZ9567 GbE Switch

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
Signature · 1 line
2.7.4