]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: ti: am65-cpsw-nuss: Update driver to use kernel DT
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 6 Jul 2020 08:06:54 +0000 (13:36 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 13 Jul 2020 15:28:34 +0000 (20:58 +0530)
Kernel DT has CPSW ports under ethernet-ports subnode. Update the driver
to look for the same.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/net/ti/am65-cpsw-nuss.c

index 753a11730039daf19530d3e0669b1d511d5c5da6..971bdcdfda991b311c5a6921f5f920960057f541 100644 (file)
@@ -686,7 +686,7 @@ static int am65_cpsw_probe_cpsw(struct udevice *dev)
                                AM65_CPSW_CPSW_NU_ALE_BASE;
        cpsw_common->mdio_base = cpsw_common->ss_base + AM65_CPSW_MDIO_BASE;
 
-       ports_np = dev_read_subnode(dev, "ports");
+       ports_np = dev_read_subnode(dev, "ethernet-ports");
        if (!ofnode_valid(ports_np)) {
                ret = -ENOENT;
                goto out;