Skip to contentSkip to conversation

net: designware: fix for use with current Linux device tree for Meson GX

PATCH In review Heiner Kallweit 3 participants 3 messages Jan 27, 2017 – Feb 9, 2017 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: designware: fix for use with current Linux device tree for Meson GX

In Uboot for Meson GX the compatible string in meson-gxbb.dtsi so far is:
compatible = "amlogic,meson6-dwmac", "snps,dwmac";

On Linux in the same dt file it's
compatible = "amlogic,meson-gx-dwmac", "amlogic,meson-gxbb-dwmac", "snps,dwmac";

To avoid breaking ethernet with the next DT synch from Linux to Uboot (planned as prerequisite for adding Meson GX MMC driver to Uboot) add "amlogic,meson-gx-dwmac" to the compatibility list in the designware driver.

---
 drivers/net/designware.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/designware.c +1 -0
index f242fc6..d519b87 100644
@@ -763,6 +763,7 @@ static const struct udevice_id designware_eth_ids[] = {
 	{ .compatible = "allwinner,sun7i-a20-gmac" },
 	{ .compatible = "altr,socfpga-stmmac" },
 	{ .compatible = "amlogic,meson6-dwmac" },
+	{ .compatible = "amlogic,meson-gx-dwmac" },
 	{ }
 };
 
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 net: designware: fix for use with current Linux device tree for Meson GX

Quoted 6 lines · Heiner Kallweit

In Uboot for Meson GX the compatible string in meson-gxbb.dtsi so far is:
compatible = "amlogic,meson6-dwmac", "snps,dwmac";

On Linux in the same dt file it's
compatible = "amlogic,meson-gx-dwmac", "amlogic,meson-gxbb-dwmac", "snps,dwmac";

Quoted 6 lines

To avoid breaking ethernet with the next DT synch from Linux to Uboot (planned as prerequisite for adding Meson GX MMC driver to Uboot) add "amlogic,meson-gx-dwmac" to the compatibility list in the designware driver.