Skip to content

Commit 9b2d9f0

Browse files
gmccollisterdavem330
authored andcommitted
net: dsa: microchip: add ksz9567 to ksz9477 driver
Add support for the KSZ9567 7-Port Gigabit Ethernet Switch to the ksz9477 driver. The KSZ9567 supports both SPI and I2C. Oddly the ksz9567 is already in the device tree binding documentation. Signed-off-by: George McCollister <[email protected]> Reviewed-by: Marek Vasut <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 20e0377 commit 9b2d9f0

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

drivers/net/dsa/microchip/ksz9477.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,15 @@ static const struct ksz_chip_data ksz9477_switch_chips[] = {
15291529
.cpu_ports = 0x07, /* can be configured as cpu port */
15301530
.port_cnt = 3, /* total port count */
15311531
},
1532+
{
1533+
.chip_id = 0x00956700,
1534+
.dev_name = "KSZ9567",
1535+
.num_vlans = 4096,
1536+
.num_alus = 4096,
1537+
.num_statics = 16,
1538+
.cpu_ports = 0x7F, /* can be configured as cpu port */
1539+
.port_cnt = 7, /* total physical port count */
1540+
},
15321541
};
15331542

15341543
static int ksz9477_switch_init(struct ksz_device *dev)

drivers/net/dsa/microchip/ksz9477_i2c.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ MODULE_DEVICE_TABLE(i2c, ksz9477_i2c_id);
7777
static const struct of_device_id ksz9477_dt_ids[] = {
7878
{ .compatible = "microchip,ksz9477" },
7979
{ .compatible = "microchip,ksz9897" },
80+
{ .compatible = "microchip,ksz9567" },
8081
{},
8182
};
8283
MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);

drivers/net/dsa/microchip/ksz9477_spi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ static const struct of_device_id ksz9477_dt_ids[] = {
8181
{ .compatible = "microchip,ksz9893" },
8282
{ .compatible = "microchip,ksz9563" },
8383
{ .compatible = "microchip,ksz8563" },
84+
{ .compatible = "microchip,ksz9567" },
8485
{},
8586
};
8687
MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);

0 commit comments

Comments
 (0)