Message ID | 20200730195749.4922-1-bruno.thomsen@gmail.com |
---|---|
Headers | show |
Series | Improve MDIO Ethernet PHY reset | expand |
From: Bruno Thomsen <bruno.thomsen@gmail.com> Date: Thu, 30 Jul 2020 21:57:45 +0200 > This patch series is a result of trying to upstream a new device > tree for a TQMa7D based board[1][2]. Initial this DTS used some > deprecated PHY reset properties on the FEC device; NXP Ethernet > MAC also known as Freescale Fast Ethernet Controller. > > When switching from FEC properties[3]: > "phy-reset-gpios" > "phy-reset-duration" > "phy-reset-post-delay" > > To MDIO PHY properties[4]: > "reset-gpios" > "reset-assert-us" > "reset-deassert-us" > > The result was that no Ethernet PHY device was detected on boot. > > This issue could be worked around by disabling PHY type ID auto- > detection by using "ethernet-phy-id0022.1560" as compatible > string and not "ethernet-phy-ieee802.3-c22". > > Upstreaming a DTS with this workaround was not accepted, so I > digged into the MDIO reset flow and found that it had a few > missing parts compared to the deprecated FEC reset function. > After some more testing and logic analyzer traces it was > revealed that the failed PHY communication was due to missing > initial device reset. ... Series applied, thank you.