net: dsa: microchip: add KSZ9896 switch support
authorRomain Naour <romain.naour@skf.com>
Fri, 2 Sep 2022 10:16:07 +0000 (12:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Sep 2022 09:39:06 +0000 (10:39 +0100)
commit2eb3ff3c09082bb4792f2149cf6582e2626a5e30
treec68ad3a1eb851c8fc8005ae3a7cefa341dc66ccf
parent2786bcff28bd88955fc61adf9cb7370fbc182bad
net: dsa: microchip: add KSZ9896 switch support

Add support for the KSZ9896 6-port Gigabit Ethernet Switch to the
ksz9477 driver.

Although the KSZ9896 is already listed in the device tree binding
documentation since a1c0ed24fe9b (dt-bindings: net: dsa: document
additional Microchip KSZ9477 family switches) the chip id
(0x00989600) is not recognized by ksz_switch_detect() and rejected
by the driver.

The KSZ9896 is similar to KSZ9897 but has only one configurable
MII/RMII/RGMII/GMII cpu port.

Signed-off-by: Romain Naour <romain.naour@skf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz_common.c
drivers/net/dsa/microchip/ksz_common.h
drivers/net/dsa/microchip/ksz_spi.c