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:
parent
897952370e
commit
05b356963a
3 changed files with 45 additions and 0 deletions
|
@ -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::
|
||||
|
||||
ð {
|
||||
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
|
||||
-----------------
|
||||
|
||||
|
|
|
@ -32,4 +32,11 @@
|
|||
};
|
||||
};
|
||||
|
||||
mdio_default: mdio_default {
|
||||
group1 {
|
||||
pinmux = <SMI_MDC_GPIO23>,
|
||||
<SMI_MDIO_GPIO18>;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
|
|
@ -114,3 +114,17 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
ð {
|
||||
phy: phy {
|
||||
compatible = "ethernet-phy";
|
||||
status = "disabled";
|
||||
address = <1>;
|
||||
mdio = <&mdio>;
|
||||
};
|
||||
};
|
||||
|
||||
&mdio {
|
||||
pinctrl-0 = <&mdio_default>;
|
||||
pinctrl-names = "default";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue