From: Michal Simek Date: Fri, 9 Dec 2022 15:19:29 +0000 (+0100) Subject: net: zynq_gem: Add support for new compatible str with xlnx prefix X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=4b422a12df73aacd961318b99072470e5b15755e;p=u-boot.git net: zynq_gem: Add support for new compatible str with xlnx prefix cdns prefix was deprecated and replaced by xlnx one. Acked-by: Krzysztof Kozlowski Signed-off-by: Michal Simek Link: https://lore.kernel.org/r/7d1312d741349451b36558baa3e9132247303992.1670599167.git.michal.simek@amd.com --- diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 507b19b759..fe98bcfb2b 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -821,7 +821,8 @@ static int zynq_gem_probe(struct udevice *dev) if (priv->interface == PHY_INTERFACE_MODE_SGMII && phy.dev) { if (IS_ENABLED(CONFIG_DM_ETH_PHY)) { - if (device_is_compatible(dev, "cdns,zynqmp-gem")) { + if (device_is_compatible(dev, "cdns,zynqmp-gem") || + device_is_compatible(dev, "xlnx,zynqmp-gem")) { ret = gem_zynqmp_set_dynamic_config(dev); if (ret) { dev_err @@ -922,8 +923,11 @@ static int zynq_gem_of_to_plat(struct udevice *dev) } static const struct udevice_id zynq_gem_ids[] = { + { .compatible = "xlnx,versal-gem", .data = RXCLK_EN }, { .compatible = "cdns,versal-gem", .data = RXCLK_EN }, + { .compatible = "xlnx,zynqmp-gem" }, { .compatible = "cdns,zynqmp-gem" }, + { .compatible = "xlnx,zynq-gem" }, { .compatible = "cdns,zynq-gem" }, { .compatible = "cdns,gem" }, { }