summaryrefslogtreecommitdiffstatshomepage
path: root/docs/esp32
diff options
context:
space:
mode:
authorrobert-hh <robert@hammelrath.com>2024-03-03 12:54:33 +0100
committerDamien George <damien@micropython.org>2024-03-08 16:55:08 +1100
commitcdfc6c159f6b51f67fd314a1dd4a61d5c18d5d93 (patch)
tree0e53b82208c6cedec1bfec2fb55a57b3843ea818 /docs/esp32
parentaf67be7adc4b76fead096fecd445ddeb6cc2c513 (diff)
downloadmicropython-cdfc6c159f6b51f67fd314a1dd4a61d5c18d5d93.tar.gz
micropython-cdfc6c159f6b51f67fd314a1dd4a61d5c18d5d93.zip
esp32/network_lan: Add a separate argument to set PHY power pin.
Prior to this commit, the pin defined for power would be used by the esp_idf driver to reset the PHY. That worked, but sometimes the MDIO configuration started before the power was fully settled, leading to an error. With the change in this commit, the power for the PHY is independently enabled in network_lan.c with a 100ms delay to allow the power to settle. A separate define for a reset pin is provided, even if the PHY reset pin is rarely connected. Fixes issue #14013. Signed-off-by: robert-hh <robert@hammelrath.com>
Diffstat (limited to 'docs/esp32')
-rw-r--r--docs/esp32/quickref.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/esp32/quickref.rst b/docs/esp32/quickref.rst
index 9c77dc402e..6c07c584d3 100644
--- a/docs/esp32/quickref.rst
+++ b/docs/esp32/quickref.rst
@@ -128,6 +128,7 @@ The keyword arguments for the constructor defining the PHY type and interface ar
- mdc=pin-object # set the mdc and mdio pins.
- mdio=pin-object
+- reset=pin-object # set the reset pin of the PHY device.
- power=pin-object # set the pin which switches the power of the PHY device.
- phy_type=<type> # Select the PHY device type. Supported devices are PHY_LAN8710,
PHY_LAN8720, PH_IP101, PHY_RTL8201, PHY_DP83848 and PHY_KSZ8041