mercenaruss / zigstar_gateways

ZigStar LAN/Wifi/POE Gateways
https://zig-star.com
GNU General Public License v3.0
146 stars 45 forks source link

ESPHome and ethernet #35

Closed ssolodennikov closed 10 months ago

ssolodennikov commented 10 months ago

I am trying to make POE GW with EspHome, but cannot get ethernet working.

[D][esp-idf:000]: E (526) esp.emac: emac_esp32_init(349): reset timeout [D][esp-idf:000]: E (526) esp_eth: esp_eth_driver_install(214): init mac failed [E][ethernet:105]: ETH driver install error: (263) ESP_ERR_TIMEOUT [E][component:113]: Component ethernet was marked as failed.

My ethernet config in yaml as follows:

ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO0_IN phy_addr: 1 power_pin: GPIO16

ssolodennikov commented 10 months ago

Correct ethernet config for device HamGeek POE Zigbee 3.0 ois ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO17_OUT phy_addr: 0 power_pin: GPIO12