Merge branch 'bugfix/eth_plus_wifi_doc_v5.3' into 'release/v5.3'

docs(esp_eth): added warning to not use ESP32 as ETH CLK source with WiFi (v5.3)

See merge request espressif/esp-idf!33245
This commit is contained in:
David Čermák
2024-09-11 16:31:05 +08:00
4 changed files with 17 additions and 11 deletions

View File

@@ -62,13 +62,11 @@ menu "Ethernet"
bool "Output RMII clock from GPIO0 (Experimental!)" bool "Output RMII clock from GPIO0 (Experimental!)"
default n default n
help help
GPIO0 can be set to output a pre-divided PLL clock (test only!). GPIO0 can be set to output a pre-divided PLL clock. Enabling this option will configure
Enabling this option will configure GPIO0 to output a 50MHz clock. GPIO0 to output a 50MHz clock. In fact this clock doesn't have directly relationship with
In fact this clock doesn't have directly relationship with EMAC peripheral. EMAC peripheral. Sometimes this clock may not work well with your PHY chip.
Sometimes this clock won't work well with your PHY chip. You might need to WARNING: If you want the Ethernet to work with WiFi, dont select ESP32 as RMII CLK output
add some extra devices after GPIO0 (e.g. inverter). as it would result in clock instability!
Note that outputting RMII clock on GPIO0 is an experimental practice.
If you want the Ethernet to work with WiFi, don't select GPIO0 output mode for stability.
if !ETH_RMII_CLK_OUTPUT_GPIO0 if !ETH_RMII_CLK_OUTPUT_GPIO0
config ETH_RMII_CLK_OUT_GPIO config ETH_RMII_CLK_OUT_GPIO
@@ -78,6 +76,8 @@ menu "Ethernet"
default 17 default 17
help help
Set the GPIO number to output RMII Clock. Set the GPIO number to output RMII Clock.
WARNING: If you want the Ethernet to work with WiFi, dont select ESP32 as RMII CLK output
as it would result in clock instability!
endif # !ETH_RMII_CLK_OUTPUT_GPIO0 endif # !ETH_RMII_CLK_OUTPUT_GPIO0
endif # ETH_RMII_CLK_OUTPUT endif # ETH_RMII_CLK_OUTPUT

View File

@@ -51,6 +51,8 @@ typedef enum {
/** /**
* @brief RMII Clock GPIO number Options for ESP32 * @brief RMII Clock GPIO number Options for ESP32
* *
* @warning If you want the Ethernet to work with WiFi, dont select ESP32 as RMII CLK output as it would result in clock instability.
*
*/ */
typedef enum { typedef enum {
/** /**
@@ -64,10 +66,8 @@ typedef enum {
/** /**
* @brief Output RMII Clock from internal APLL Clock available at GPIO0 * @brief Output RMII Clock from internal APLL Clock available at GPIO0
* *
* @note GPIO0 can be set to output a pre-divided PLL clock (test only!). Enabling this option will configure GPIO0 to output a 50MHz clock. * @note GPIO0 can be set to output a pre-divided PLL clock. Enabling this option will configure GPIO0 to output a 50MHz clock.
* In fact this clock doesnt have directly relationship with EMAC peripheral. Sometimes this clock wont work well with your PHY chip. * In fact this clock doesnt have directly relationship with EMAC peripheral. Sometimes this clock may not work well with your PHY chip.
* You might need to add some extra devices after GPIO0 (e.g. inverter). Note that outputting RMII clock on GPIO0 is an experimental practice.
* If you want the Ethernet to work with WiFi, dont select GPIO0 output mode for stability.
* *
*/ */
EMAC_APPL_CLK_OUT_GPIO = 0, EMAC_APPL_CLK_OUT_GPIO = 0,

View File

@@ -165,6 +165,9 @@ The Ethernet driver is composed of two parts: MAC and PHY.
* Force the PHY device to reset status (as the case **a** in the picture). **This could fail for some PHY device** (i.e., it still outputs signals to GPIO0 even in reset state). * Force the PHY device to reset status (as the case **a** in the picture). **This could fail for some PHY device** (i.e., it still outputs signals to GPIO0 even in reset state).
.. warning::
If you want the **Ethernet to work with Wi-Fi**, dont select ESP32 as source of ``REF_CLK`` as it would result in ``REF_CLK`` instability. Either disable Wi-Fi or use a PHY or an external oscillator as the ``REF_CLK`` source.
.. only:: not esp32 .. only:: not esp32
.. note:: .. note::

View File

@@ -165,6 +165,9 @@
* 强制复位 PHY 设备(对应图中的选项 **a**)。**此种方法并不适用于所有 PHY 设备** (即便处于复位状态,某些 PHY 设备仍会向 GPIO0 输出信号)。 * 强制复位 PHY 设备(对应图中的选项 **a**)。**此种方法并不适用于所有 PHY 设备** (即便处于复位状态,某些 PHY 设备仍会向 GPIO0 输出信号)。
.. warning::
如希望 **以太网与 Wi-Fi 一起工作**,不要选择 ESP32 作为 ``REF_CLK`` 的源,因为这会导致 ``REF_CLK`` 不稳定。可以选择禁用 Wi-Fi或使用 PHY 或外部振荡器作为 ``REF_CLK`` 的源。
.. only:: not esp32 .. only:: not esp32
.. note:: .. note::