-
Notifications
You must be signed in to change notification settings - Fork 7.8k
boards: seeed: xiao_esp32c6 external antenna support #90059
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
boards: seeed: xiao_esp32c6 external antenna support #90059
Conversation
1826bde
to
d1744d6
Compare
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
boards/seeed/xiao_esp32c6/Kconfig
Outdated
|
||
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 |
@@ -37,6 +37,17 @@ | |||
watchdog0 = &wdt0; | |||
}; | |||
|
|||
rf_switch { | |||
compatible = "gpio-keys"; |
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.
AFAIK gpio-keys
is meant for inputs not outputs.
I don't know about any generic GPIO output driver, so gpio-leds
is the best candidate.
Other boards use it for generic outputs too.
E.g.
heltec_wifi_lora32_v2/heltec_wifi_lora32_v2_procpu.dts
heltec_wifi_lora32_v2/board_init.c
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.
Actually good point, you need to create a custom DTS binding, use of LED for this is not allowed
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.
@nordicjm would dts/bindings/output/gpio-switch.yaml
be okay. I guess then this would have to be added in a separate PR
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.
@mariopaja a board can have custom dts bindings.
E.g.:
arduino/opta/dts/bindings/gpio-power-switches.yaml
arduino/opta/arduino_opta-common.dtsi#L35
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.
Thank you :D
7839e88
to
ad8031d
Compare
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
f869dea
to
98fdd90
Compare
52b6cf0
to
3899893
Compare
3899893
to
62e8008
Compare
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.
unless this is going to be made a soc hook then remove the soc Kconfig
This PR adds adds The RF switch node and support for the extenal antenna. Signed-off-by: Mario Paja <mariopaja@hotmail.com>
62e8008
to
e845b8a
Compare
|
This PR adds The RF switch node and support for the extenal antenna.
Based on: XIAO ESP32C6 Getting Started