boards: xtensa/esp32_ethernet_kit: Add Ethernet support

Configures ESP32 Ethernet support for the esp32_ethernet_kit board

Signed-off-by: Grant Ramsay <grant.ramsay@hotmail.com>
This commit is contained in:
Grant Ramsay 2022-09-20 19:53:10 +12:00 committed by Anas Nashif
commit 05b356963a
3 changed files with 45 additions and 0 deletions

View file

@ -495,6 +495,30 @@ You can debug an application in the usual way. Here is an example for the :ref:`
:board: esp32_ethernet_kit
:goals: debug
Enabling Ethernet
-----------------
Enable Ethernet MAC, PHY and MDIO; add these to your device tree overlay::
&eth {
status = "okay";
};
&phy {
status = "okay";
};
&mdio {
status = "okay";
};
Enable Ethernet in KConfig::
CONFIG_ETH_ESP32=y
CONFIG_NETWORKING=y
CONFIG_NET_L2_ETHERNET=y
Board Init
-----------------

View file

@ -32,4 +32,11 @@
};
};
mdio_default: mdio_default {
group1 {
pinmux = <SMI_MDC_GPIO23>,
<SMI_MDIO_GPIO18>;
};
};
};

View file

@ -114,3 +114,17 @@
};
};
};
&eth {
phy: phy {
compatible = "ethernet-phy";
status = "disabled";
address = <1>;
mdio = <&mdio>;
};
};
&mdio {
pinctrl-0 = <&mdio_default>;
pinctrl-names = "default";
};