net: dsa: microchip: add KSZ9896 to KSZ9477 I2C driver
authorRomain Naour <romain.naour@skf.com>
Fri, 2 Sep 2022 10:16:08 +0000 (12:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Sep 2022 09:39:06 +0000 (10:39 +0100)
Add support for the KSZ9896 6-port Gigabit Ethernet Switch to the
ksz9477 driver. The KSZ9896 supports both SPI (already in) and I2C.

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

index 9996651..8fbc122 100644 (file)
@@ -92,6 +92,10 @@ static const struct of_device_id ksz9477_dt_ids[] = {
                .data = &ksz_switch_chips[KSZ9477]
        },
        {
+               .compatible = "microchip,ksz9896",
+               .data = &ksz_switch_chips[KSZ9896]
+       },
+       {
                .compatible = "microchip,ksz9897",
                .data = &ksz_switch_chips[KSZ9897]
        },