Skip to content

Conversation

@mniestroj
Copy link
Member

Recently WiFi ESP32 driver was introduced into
drivers/wifi/esp32/ (utilizing WiFi radio in SoC) and it already caused
confusion as there was existing drivers/wifi/esp/ directory for ESP-AT
driver (utilizing external WiFi chip, by communicating using AT
commands). So question has arisen whether it is good to merge both,
while they are totally different drivers.

Rename ESP-AT driver to be placed in drivers/wifi/esp_at/, so that it is
easier to figure out difference between "esp32" and "esp_at" just by
looking at driver name. Rename also DT compatible and all Kconfig
options for the same reason.

See discussion in #32081 with this proposal.

@mniestroj mniestroj requested review from sylvioalves and tsvehagen May 6, 2021 11:37
@github-actions github-actions bot added area: Boards area: Devicetree area: Devicetree Binding PR modifies or adds a Device Tree binding area: Networking area: Shields Shields (add-on boards) labels May 6, 2021
@mniestroj mniestroj force-pushed the wifi-esp-rename-to-esp-at branch 3 times, most recently from 93269fa to 253890b Compare May 6, 2021 12:46
Copy link
Contributor

@galak galak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good. Would suggest updating the Help/Kconfig text to clarify 'AT command' support.

@mniestroj mniestroj force-pushed the wifi-esp-rename-to-esp-at branch from 253890b to ce05b8c Compare May 6, 2021 12:59
Recently WiFi ESP32 driver (utilizing WiFi radio in ESP32 SoC) was
introduced into drivers/wifi/esp32/ and it already caused confusion as
there was existing drivers/wifi/esp/ directory for ESP-AT
driver (utilizing external WiFi chip, by communicating using AT commands
from any serial capable platform). So question has arisen whether it is
good to merge both, while they are totally different drivers.

Rename ESP-AT driver to be placed in drivers/wifi/esp_at/, so that it is
easier to figure out difference between "esp32" and "esp_at" just by
looking at driver name. Rename also DT compatible and all Kconfig
options for the same reason.

Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
@mniestroj mniestroj force-pushed the wifi-esp-rename-to-esp-at branch from ce05b8c to 715a0af Compare May 6, 2021 13:08
@galak galak added the Release Notes To be mentioned in the release notes label May 6, 2021
@galak
Copy link
Contributor

galak commented May 6, 2021

@mniestroj doesn't need to be in this PR, but we should add a comment in the release notes about this change.

menuconfig WIFI_ESP
bool "Espressif ESP8266 and ESP32 support"
menuconfig WIFI_ESP_AT
bool "Espressif AT Command support"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this clear enough description? I'm not sure. Possible ideas: Espressif devices via AT commands, Espressif devices via serial, Espressif ESP8266/ESP32 via AT commands, etc.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea behind Espressif AT Command ... was that this WiFi driver implements/utilizes AT commands defined by Espressif. So more like "Espressif's AT command interface". With proposed Espressif devices via ... it suggests that only Espressif devices could be used. This is true for now, but in theory someone could implement exactly the same functionality on other vendor's WiFi chip, but just conforming to the same AT commands as esp-at repository does. In the end, I don't have strong preference here.

@nashif nashif merged commit b4854de into zephyrproject-rtos:master May 6, 2021
@mniestroj mniestroj deleted the wifi-esp-rename-to-esp-at branch May 7, 2021 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards area: Devicetree Binding PR modifies or adds a Device Tree binding area: Devicetree area: Networking area: Shields Shields (add-on boards) area: Wi-Fi Wi-Fi Release Notes To be mentioned in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants