-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
base: main
Are you sure you want to change the base?
boards: seeed: xiao_esp32c6 external antenna support #90059
Conversation
1826bde
to
d1744d6
Compare
d1744d6
to
22f751f
Compare
This PR adds adds The RF switch node and support for the extenal antenna. Signed-off-by: Mario Paja <mariopaja@hotmail.com>
22f751f
to
676792e
Compare
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 |
|
@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); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default n |
This PR adds The RF switch node and support for the extenal antenna.
Based on: XIAO ESP32C6 Getting Started