]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: zynq_gem: Add support for new compatible str with xlnx prefix
authorMichal Simek <michal.simek@amd.com>
Fri, 9 Dec 2022 15:19:29 +0000 (16:19 +0100)
committerMichal Simek <michal.simek@amd.com>
Tue, 10 Jan 2023 07:15:54 +0000 (08:15 +0100)
cdns prefix was deprecated and replaced by xlnx one.

Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/7d1312d741349451b36558baa3e9132247303992.1670599167.git.michal.simek@amd.com
drivers/net/zynq_gem.c

index 507b19b759757c72745bcfae4f08142bdd6b5350..fe98bcfb2b63ab351c9d39cc49840bde2647a99e 100644 (file)
@@ -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" },
        { }