LilyGO T-ETH ELite (ESP32-S3+Ethernet POE) support (#611)
* LilyGO T-ETH ELite (ESP32-S3+Ethernet POE) support * Update W5500Definitions.h * Update README.md --------- Co-authored-by: iranl <iranl@users.noreply.github.com>
This commit is contained in:
@@ -284,6 +284,14 @@ const std::vector<int> Gpio::getDisabledPins() const
|
||||
disabledPins.push_back(ETH_PHY_SPI_MISO_M5_W5500);
|
||||
disabledPins.push_back(ETH_PHY_SPI_MOSI_M5_W5500);
|
||||
break;
|
||||
case 12:
|
||||
disabledPins.push_back(ETH_PHY_CS_ELITE_W5500);
|
||||
disabledPins.push_back(ETH_PHY_IRQ_ELITE_W5500);
|
||||
disabledPins.push_back(ETH_PHY_RST_ELITE_W5500);
|
||||
disabledPins.push_back(ETH_PHY_SPI_SCK_ELITE_W5500);
|
||||
disabledPins.push_back(ETH_PHY_SPI_MISO_ELITE_W5500);
|
||||
disabledPins.push_back(ETH_PHY_SPI_MOSI_ELITE_W5500);
|
||||
break;
|
||||
case 11:
|
||||
disabledPins.push_back(_preferences->getInt(preference_network_custom_cs, -1));
|
||||
disabledPins.push_back(_preferences->getInt(preference_network_custom_irq, -1));
|
||||
|
||||
@@ -5912,6 +5912,7 @@ const std::vector<std::pair<String, String>> WebCfgServer::getNetworkDetectionOp
|
||||
options.push_back(std::make_pair("5", "WT32-ETH01"));
|
||||
options.push_back(std::make_pair("6", "M5STACK PoESP32 Unit"));
|
||||
options.push_back(std::make_pair("7", "LilyGO T-ETH-POE"));
|
||||
options.push_back(std::make_pair("12", "LilyGO T-ETH ELite"));
|
||||
options.push_back(std::make_pair("8", "GL-S10"));
|
||||
options.push_back(std::make_pair("9", "ETH01-Evo"));
|
||||
options.push_back(std::make_pair("11", "Custom LAN module"));
|
||||
|
||||
@@ -10,6 +10,7 @@ enum class NetworkDeviceType
|
||||
WT32_LAN8720,
|
||||
M5STACK_PoESP32_Unit,
|
||||
LilyGO_T_ETH_POE,
|
||||
LilyGO_T_ETH_ELite,
|
||||
GL_S10,
|
||||
ETH01_Evo,
|
||||
CUSTOM
|
||||
|
||||
@@ -14,9 +14,15 @@
|
||||
#define ETH_PHY_SPI_SCK_M5_W5500_S3 5
|
||||
#define ETH_PHY_SPI_MISO_M5_W5500_S3 7
|
||||
#define ETH_PHY_SPI_MOSI_M5_W5500_S3 8
|
||||
#define ETH_PHY_IRQ_ELITE_W5500 14
|
||||
#define ETH_PHY_RST_ELITE_W5500 -1
|
||||
#define ETH_PHY_CS_ELITE_W5500 45
|
||||
#define ETH_PHY_SPI_SCK_ELITE_W5500 48
|
||||
#define ETH_PHY_SPI_MISO_ELITE_W5500 47
|
||||
#define ETH_PHY_SPI_MOSI_ELITE_W5500 21
|
||||
#define ETH_PHY_IRQ_GENERIC_W5500 3
|
||||
#define ETH_PHY_RST_GENERIC_W5500 4
|
||||
#define ETH_PHY_CS_GENERIC_W5500 5
|
||||
#define ETH_PHY_SPI_SCK_GENERIC_W5500 8
|
||||
#define ETH_PHY_SPI_MISO_GENERIC_W5500 9
|
||||
#define ETH_PHY_SPI_MOSI_GENERIC_W5500 10
|
||||
#define ETH_PHY_SPI_MOSI_GENERIC_W5500 10
|
||||
|
||||
@@ -68,6 +68,17 @@ NetworkDevice *NetworkDeviceInstantiator::Create(NetworkDeviceType networkDevice
|
||||
ETH_PHY_SPI_MOSI_M5_W5500,
|
||||
ETH_PHY_W5500);
|
||||
break;
|
||||
case NetworkDeviceType::LilyGO_T_ETH_ELite:
|
||||
device = new EthernetDevice(hostname, preferences, ipConfiguration, "LilyGO T-ETH ELite",
|
||||
ETH_PHY_ADDR_W5500,
|
||||
ETH_PHY_CS_ELITE_W5500,
|
||||
ETH_PHY_IRQ_ELITE_W5500,
|
||||
ETH_PHY_RST_ELITE_W5500,
|
||||
ETH_PHY_SPI_SCK_ELITE_W5500,
|
||||
ETH_PHY_SPI_MISO_ELITE_W5500,
|
||||
ETH_PHY_SPI_MOSI_ELITE_W5500,
|
||||
ETH_PHY_W5500);
|
||||
break;
|
||||
case NetworkDeviceType::CUSTOM:
|
||||
{
|
||||
int custPHY = preferences->getInt(preference_network_custom_phy, 0);
|
||||
|
||||
@@ -46,6 +46,9 @@ NetworkDeviceType NetworkUtil::GetDeviceTypeFromPreference(int hardwareDetect, i
|
||||
return NetworkDeviceType::WiFi;
|
||||
}
|
||||
break;
|
||||
case 12:
|
||||
return NetworkDeviceType::LilyGO_T_ETH_ELite;
|
||||
break;
|
||||
default:
|
||||
Log->println(("Unknown hardware selected, falling back to Wi-Fi."));
|
||||
return NetworkDeviceType::WiFi;
|
||||
|
||||
Reference in New Issue
Block a user