espressif / esp-hosted

Hosted Solution (Linux/MCU) with ESP32 (Wi-Fi + BT + BLE)
Other
666 stars 151 forks source link

esp32-c5 sdio slave #460

Open skylin008 opened 3 weeks ago

skylin008 commented 3 weeks ago

Thank you for shared impressive project. I want to used wifi 2.4G/5G , the only esp32c5 compatible.So, I used the esp32-p4 chip for mcu host , and esp32c5 via sdio connected to esp32-p4 sdio port. How to esp32c5 sdio for sdio slave. Thanks!

mantriyogesh commented 3 weeks ago

Esp32-C5 mass production chipset doesn't have SDIO slave.

Although QSPI would be supported on C5.

skylin008 commented 3 weeks ago

Thanks! Does QSPI can be support SPI slave? How about the QSPI speed as esp32c5 slave

mantriyogesh commented 3 weeks ago

Yes c5 is supported as qspi slave. But yet formal support in esp-hosted slave is not integrated. it is dependent upon full support (minimally, wifi+spi slave together) in esp-idf. Last time we tested individually wifi and spi slave, it worked on different internal branches, but we would check again and come back, if full support is available on ESP-IDF GitHub or not.

Until ESP-IDF support is not public, ESP-Hosted would be blocked upon.

mantriyogesh commented 3 weeks ago

Hello @skylin008 ,

We already have QSPI driver in place , but only for MCU host. QSPI frame structure in use could be referred at https://github.com/espressif/esp-hosted/blob/feature/esp_as_mcu_host/docs/spi_half_duplex.md#3-spi-hd-protocol-used-by-hosted

Although they are configurable, the host and slave need to refer to same frame structure. If host has some different structure (at hardware), slave code could be modified accordingly.

QSPI (half duplex SPI) is currently only supported for MCUs. We would add ESP32-C5 as slave shortly in this. Similarly, For Linux also, the QSPI framing would be important factor, which we would try to generalise while developing Linux SQPI driver.

full duplex spi driver, with single data line (MISO and MOSI) support for C5 is ongoing, we would have some clarity in next week.

skylin008 commented 3 weeks ago

Thank you @mantriyogesh 。