Commit 9b2d9f05 authored by George McCollister's avatar George McCollister Committed by David S. Miller

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: default avatarGeorge McCollister <george.mccollister@gmail.com>
Reviewed-by: default avatarMarek Vasut <marex@denx.de>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 20e03777
...@@ -1529,6 +1529,15 @@ static const struct ksz_chip_data ksz9477_switch_chips[] = { ...@@ -1529,6 +1529,15 @@ static const struct ksz_chip_data ksz9477_switch_chips[] = {
.cpu_ports = 0x07, /* can be configured as cpu port */ .cpu_ports = 0x07, /* can be configured as cpu port */
.port_cnt = 3, /* total port count */ .port_cnt = 3, /* total port count */
}, },
{
.chip_id = 0x00956700,
.dev_name = "KSZ9567",
.num_vlans = 4096,
.num_alus = 4096,
.num_statics = 16,
.cpu_ports = 0x7F, /* can be configured as cpu port */
.port_cnt = 7, /* total physical port count */
},
}; };
static int ksz9477_switch_init(struct ksz_device *dev) static int ksz9477_switch_init(struct ksz_device *dev)
......
...@@ -77,6 +77,7 @@ MODULE_DEVICE_TABLE(i2c, ksz9477_i2c_id); ...@@ -77,6 +77,7 @@ MODULE_DEVICE_TABLE(i2c, ksz9477_i2c_id);
static const struct of_device_id ksz9477_dt_ids[] = { static const struct of_device_id ksz9477_dt_ids[] = {
{ .compatible = "microchip,ksz9477" }, { .compatible = "microchip,ksz9477" },
{ .compatible = "microchip,ksz9897" }, { .compatible = "microchip,ksz9897" },
{ .compatible = "microchip,ksz9567" },
{}, {},
}; };
MODULE_DEVICE_TABLE(of, ksz9477_dt_ids); MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);
......
...@@ -81,6 +81,7 @@ static const struct of_device_id ksz9477_dt_ids[] = { ...@@ -81,6 +81,7 @@ static const struct of_device_id ksz9477_dt_ids[] = {
{ .compatible = "microchip,ksz9893" }, { .compatible = "microchip,ksz9893" },
{ .compatible = "microchip,ksz9563" }, { .compatible = "microchip,ksz9563" },
{ .compatible = "microchip,ksz8563" }, { .compatible = "microchip,ksz8563" },
{ .compatible = "microchip,ksz9567" },
{}, {},
}; };
MODULE_DEVICE_TABLE(of, ksz9477_dt_ids); MODULE_DEVICE_TABLE(of, ksz9477_dt_ids);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment