Skip to content

boards: seeed: xiao_esp32c6 external antenna support #90059

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mariopaja
Copy link
Contributor

@mariopaja mariopaja commented May 16, 2025

This PR adds The RF switch node and support for the extenal antenna.

Based on: XIAO ESP32C6 Getting Started

@mariopaja mariopaja force-pushed the xiao_esp32c6_wifi_antenna_switch branch 5 times, most recently from 1826bde to d1744d6 Compare May 16, 2025 12:05
@mariopaja mariopaja force-pushed the xiao_esp32c6_wifi_antenna_switch branch from d1744d6 to 22f751f Compare May 16, 2025 12:06
This PR adds adds The RF switch node and support for
the extenal antenna.

Signed-off-by: Mario Paja <mariopaja@hotmail.com>
@mariopaja mariopaja force-pushed the xiao_esp32c6_wifi_antenna_switch branch from 22f751f to 676792e Compare May 16, 2025 12:08
@msalau
Copy link
Contributor

msalau commented May 16, 2025

Hello @mariopaja

There are hooks for board initialization:

To make the hooks functional they should be enabled in Kconfig:

config BOARD_XIAO_ESP32C6
+	select BOARD_EARLY_INIT_HOOK
+	select BOARD_LATE_INIT_HOOK

I think these hooks were added for scenarios like yours.

Best regards
Maksim

@mariopaja
Copy link
Contributor Author

@msalau Thank you for the input! I will have a look into it :)

return 0;
}

SYS_INIT(board_init, POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
Copy link
Collaborator

Choose a reason for hiding this comment

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

use board hook

@@ -37,6 +37,17 @@
watchdog0 = &wdt0;
};

rf_switch {
compatible = "gpio-keys";
rf_switch_en: rf_switch_en {
Copy link
Collaborator

Choose a reason for hiding this comment

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

newline here (line 42) and between child nodes


config XIAO_ESP32C6_EXT_ANTENNA
bool "XIAO ESP32C6 External Antenna"
default n
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
default n

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants