ath79: fix TP-Link TL-WA901ND v2 PHY stuck in reset
authorDavid Bauer <mail@david-bauer.net>
Sun, 23 Feb 2020 11:50:30 +0000 (12:50 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sun, 23 Feb 2020 15:17:59 +0000 (16:17 +0100)
Some newer bootloaders for the TP-Link TL-WA901ND put the ethernet PHY
in reset before loading the kernel, thus the LAN interface is not
working in OpenWrt.

Clear the reset to restore ethernet functionality.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ath79/dts/ar9132_tplink_tl-wa901nd-v2.dts

index e55affdf2031c2cf88650ee3ec84391703da6b63..6542ce9e4df20dbc8d924f4819a9ecc1d4cc9354 100644 (file)
        phy12: ethernet-phy@c {
                reg = <0xc>;
                phy-mode = "mii";
+
+               resets = <&rst 8>;
+               reset-names = "phy";
+
+               reset-assert-us = <10000>;
+               reset-deassert-us = <10000>;
        };
 };