Using the ethernet example with only MAC

ziadome
Posts: 1
Joined: Wed Aug 21, 2019 1:58 pm

Using the ethernet example with only MAC

Postby ziadome » Thu Aug 22, 2019 2:17 pm

    The setup is this: https://www.olimex.com/Products/IoT/ESP ... e-hardware
    I have connected this device to a KSZ9893 LAN Switch Chip, and so far what I can do is write and read the registers in the KSZ9893 Chip via SPI. This works good.
      All the IDF ethernet components for the supported chips has PHY ports, and all of it has a .c driver file in the esp_eth directory. The KSZ9893 has 3 ports, two of them are PHY ports, BUT the third port, that is connected to the ESP device has no integrated PHY. This port supposed to be communicating via RMII. But the supported LAN chips like the LAN8720 or the DM9051 have PHY ports connected to the ESP32, this one doesn't have one.
        As I looked into the https://github.com/espressif/esp-idf/tr ... sp_eth/src , both the esp_eth_mac_dm9051.c and esp_eth_mac_esp32.c rely on the specified chip's phy driver, like the esp_eth_phy_dm9051.c and the esp_eth_phy_lan8720.c
        So if there isn't an integrated PHY, what would be the proper way to do this?

        Who is online

        Users browsing this forum: No registered users and 80 guests