From 32a858e254b3c6f53dc4969f62b830fbb51cf8ee Mon Sep 17 00:00:00 2001 From: robert-hh Date: Sun, 25 Dec 2022 14:34:33 +0100 Subject: [PATCH] esp32/boards: Add board definition for Olimex ESP32 PoE boards. The major setting is about the PHY interface configuration. The configuration matches the Olimex ESP32 Gateway as well. Tested with esp-idf v4.2.4 and Olimex ESP32 POE boards. --- .../esp32/boards/OLIMEX_ESP32_POE/board.json | 24 +++++++++++++++++++ ports/esp32/boards/OLIMEX_ESP32_POE/board.md | 4 ++++ .../OLIMEX_ESP32_POE/mpconfigboard.cmake | 5 ++++ .../boards/OLIMEX_ESP32_POE/mpconfigboard.h | 2 ++ .../boards/OLIMEX_ESP32_POE/sdkconfig.board | 4 ++++ 5 files changed, 39 insertions(+) create mode 100644 ports/esp32/boards/OLIMEX_ESP32_POE/board.json create mode 100644 ports/esp32/boards/OLIMEX_ESP32_POE/board.md create mode 100644 ports/esp32/boards/OLIMEX_ESP32_POE/mpconfigboard.cmake create mode 100644 ports/esp32/boards/OLIMEX_ESP32_POE/mpconfigboard.h create mode 100644 ports/esp32/boards/OLIMEX_ESP32_POE/sdkconfig.board diff --git a/ports/esp32/boards/OLIMEX_ESP32_POE/board.json b/ports/esp32/boards/OLIMEX_ESP32_POE/board.json new file mode 100644 index 0000000000..f3b1402bb1 --- /dev/null +++ b/ports/esp32/boards/OLIMEX_ESP32_POE/board.json @@ -0,0 +1,24 @@ +{ + "deploy": [ + "../deploy.md" + ], + "docs": "", + "features": [ + "BLE", + "WiFi", + "MicroSD", + "Battery Charging", + "Ethernet", + "PoE", + "Breadboard friendly" + ], + "id": "esp32", + "images": [ + "ESP32-POE-ISO-1.jpg" + ], + "mcu": "esp32", + "product": "ESP32", + "thumbnail": "", + "url": "https://www.olimex.com/", + "vendor": "Olimex" +} diff --git a/ports/esp32/boards/OLIMEX_ESP32_POE/board.md b/ports/esp32/boards/OLIMEX_ESP32_POE/board.md new file mode 100644 index 0000000000..1e2dbb744a --- /dev/null +++ b/ports/esp32/boards/OLIMEX_ESP32_POE/board.md @@ -0,0 +1,4 @@ +The following files are daily firmware for Olimex ESP32 boards with Ethernet. +They match the boards ESP32 ETH-PoE, ESP32 ETH-PoE-ISO and ESP32 Gateway. + +This firmware is compiled using ESP-IDF v4.x. diff --git a/ports/esp32/boards/OLIMEX_ESP32_POE/mpconfigboard.cmake b/ports/esp32/boards/OLIMEX_ESP32_POE/mpconfigboard.cmake new file mode 100644 index 0000000000..c460b07d5e --- /dev/null +++ b/ports/esp32/boards/OLIMEX_ESP32_POE/mpconfigboard.cmake @@ -0,0 +1,5 @@ +set(SDKCONFIG_DEFAULTS + boards/sdkconfig.base + boards/sdkconfig.ble + boards/OLIMEX_ESP32_POE/sdkconfig.board +) diff --git a/ports/esp32/boards/OLIMEX_ESP32_POE/mpconfigboard.h b/ports/esp32/boards/OLIMEX_ESP32_POE/mpconfigboard.h new file mode 100644 index 0000000000..c8458e35fa --- /dev/null +++ b/ports/esp32/boards/OLIMEX_ESP32_POE/mpconfigboard.h @@ -0,0 +1,2 @@ +#define MICROPY_HW_BOARD_NAME "Olimex ESP32 ETH" +#define MICROPY_HW_MCU_NAME "ESP32" diff --git a/ports/esp32/boards/OLIMEX_ESP32_POE/sdkconfig.board b/ports/esp32/boards/OLIMEX_ESP32_POE/sdkconfig.board new file mode 100644 index 0000000000..15ffbf3a67 --- /dev/null +++ b/ports/esp32/boards/OLIMEX_ESP32_POE/sdkconfig.board @@ -0,0 +1,4 @@ +CONFIG_ETH_PHY_INTERFACE_RMII=y +CONFIG_ETH_RMII_CLK_OUTPUT=y +CONFIG_ETH_RMII_CLK_OUT_GPIO=17 +CONFIG_LWIP_LOCAL_HOSTNAME="ESP32_POE"