Because of forking paths when Micrel was acquired by Microchip, two devices also exist with the micrel,* prefix bindings. Add these to the KSZ SPI driver so users can use the more capable driver. Signed-off-by: Linus Walleij --- drivers/net/dsa/microchip/ksz_spi.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/dsa/microchip/ksz_spi.c b/drivers/net/dsa/microchip/ksz_spi.c index d8001734b057..c38eda65aaf2 100644 --- a/drivers/net/dsa/microchip/ksz_spi.c +++ b/drivers/net/dsa/microchip/ksz_spi.c @@ -224,6 +224,21 @@ static void ksz_spi_shutdown(struct spi_device *spi) } static const struct of_device_id ksz_dt_ids[] = { + /* + * Legacy Micrel bindings. In 2015 Microchip acquired + * Micrel which is the originator of the KSZ series, and + * devices branded for Micrel already existed, as well as + * some device tree bindings. These two products are identical + * to the same Microchip products. + */ + { + .compatible = "micrel,ksz8864", + .data = &ksz_switch_chips[KSZ8864] + }, + { + .compatible = "micrel,ksz8795", + .data = &ksz_switch_chips[KSZ8795] + }, { .compatible = "microchip,ksz8463", .data = &ksz_switch_chips[KSZ8463] -- 2.54.0