[PATCH 1/2] arm: dts: renesas: gr-peach: Specify ethernet PHY reset timings
Marek Vasut <[email protected]>
| Newsgroups | org.kernel.vger.linux-renesas-soc,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
The LAN8710Ai reference manual [1] DS00002164C page 61 FIGURE 5-3: POWER-ON NRST & CONFIGURATION STRAP TIMING does not indicate how long should the system wait after deassertion of the PHY reset and before start of communication with the PHY via MDIO. Opt for 300 us which should cover every timing option, including the 16 us delay required for MDIO to switch to 25 MHz listed in Note: in Chapter 3.8.5 RESETS. The LAN8710Ai reference manual [1] DS00002164C page 61 TABLE 5-8: POWER-ON NRST & CONFIGURATION STRAP TIMING VALUES row tSR Stable supply voltages to reset high is at minimum 10 ms. Set DT property reset-assert-us to 25ms because the LAN8710Ai RM does not explicitly spell out how long the reset has to be asserted, but this at least covers the worst case scenario. [1] https://ww1.microchip.com/downloads/aemDocuments/documents/UNG/ProductDocuments/DataSheets/LAN8710A-LAN8710Ai-Data-Sheet-DS00002164.pdf Signed-off-by: Marek Vasut <[email protected]> --- Cc: Conor Dooley <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Rob Herring <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] --- arch/arm/boot/dts/renesas/r7s72100-gr-peach.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/renesas/r7s72100-gr-peach.dts b/arch/arm/boot/dts/renesas/r7s72100-gr-peach.dts index 23ddec2176857..2477db9e5aaca 100644 --- a/arch/arm/boot/dts/renesas/r7s72100-gr-peach.dts +++ b/arch/arm/boot/dts/renesas/r7s72100-gr-peach.dts @@ -128,8 +128,10 @@ phy0: ethernet-phy@0 { compatible = "ethernet-phy-id0007.c0f0", "ethernet-phy-ieee802.3-c22"; reg = <0>; reset-gpios = <&port4 2 GPIO_ACTIVE_LOW>; reset-delay-us = <5>; + reset-assert-us = <25000>; + reset-deassert-us = <300>; }; }; -- 2.53.0