Skip to content

Commit

Permalink
mpc85xx: define reset-delay for WS-AP3825i eth PHY
Browse files Browse the repository at this point in the history
The WS-AP3825i uses Atheros PHYs which according to the datasheet
require the reset to be asserted for at least 1 ms.

This fixes broken eth1 upon soft-reboot. eth0 is no affected, as the
ifup / ifdown cycle in preinit prevents this issue from happening when
the system is ready.

Reported-by: Tom Herbers <freifunk@tomherbers.de>
Signed-off-by: David Bauer <mail@david-bauer.net>
  • Loading branch information
blocktrron committed Apr 25, 2022
1 parent 2b5fa44 commit 8b3c313
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,16 @@
interrupts = <3 1 0 0>;
reg = <0x5>;
reset-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <10000>;
};

phy2: ethernet-phy@2 {
interrupts = <1 1 0 0>;
reg = <0x6>;
reset-gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <10000>;
};
};

Expand Down

0 comments on commit 8b3c313

Please sign in to comment.