net: add support for KSZ9477/KSZ9897/KSZ9567 GbE switch
authorTim Harvey <tharvey@gateworks.com>
Wed, 30 Jun 2021 23:50:08 +0000 (16:50 -0700)
committerStefano Babic <sbabic@denx.de>
Sat, 10 Jul 2021 16:12:42 +0000 (18:12 +0200)
commit668e205098215acf13f72b892aea9267dc23dd19
tree5628f52a0f12a3d5cd3cb63cf161e4e39582638d
parent431f9d72ffa76031808cb2ed9c90d1da3621c8de
net: add support for KSZ9477/KSZ9897/KSZ9567 GbE switch

The Microchip KSZ9477/KSZ9897/KSZ9567 7-Port Gigabit Ethernet Switches
support SGMII/RGMII/MII/RMII with register access via SPI, I2C, or MDIO.

This driver currently supports I2C register access but SPI or MDIO register
access can be easily added at a later time.

Tagging is not implemented and instead the active port is tracked to
avoid needing a tag to store port information.

This was tested with the imx8mm-venice-gw7901 board which has a
KSZ9897S switch with an IMX8MM FEC MAC master connected via RGMII_ID.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/ksz9477.c [new file with mode: 0644]