Skip to content
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

bluetooth: espressif: add TX power level option #80712

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions soc/espressif/esp32/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ config GDBSTUB_BUF_SZ

endif # GDBSTUB config

config BT_CTLR
default y if BT

endif # SOC_SERIES_ESP32 config
3 changes: 3 additions & 0 deletions soc/espressif/esp32c3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ config FLASH_SIZE
config FLASH_BASE_ADDRESS
default $(dt_node_reg_addr_hex,/soc/flash-controller@60002000/flash@0)

config BT_CTLR
default y if BT

endif # SOC_SERIES_ESP32C3
3 changes: 3 additions & 0 deletions soc/espressif/esp32s3/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ config FLASH_SIZE
config FLASH_BASE_ADDRESS
default $(dt_node_reg_addr_hex,/soc/flash-controller@60002000/flash@0)

config BT_CTLR
default y if BT

endif # SOC_SERIES_ESP32S3
52 changes: 46 additions & 6 deletions subsys/bluetooth/controller/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,29 @@ choice BT_CTLR_TX_PWR
The value set here represents the actual default power level fed
to the antenna.

config BT_CTLR_TX_PWR_PLUS_21
bool "+21 dBm"
depends on SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_PLUS_18
bool "+18 dBm"
depends on SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_PLUS_15
bool "+15 dBm"
depends on SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_PLUS_12
bool "+12 dBm"
depends on SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_PLUS_10
bool "+10 dBm"
depends on SOC_SERIES_NRF54HX

config BT_CTLR_TX_PWR_PLUS_9
bool "+9 dBm"
depends on SOC_SERIES_NRF54HX
depends on SOC_SERIES_NRF54HX || SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_PLUS_8
bool "+8 dBm"
Expand All @@ -337,7 +353,7 @@ config BT_CTLR_TX_PWR_PLUS_7

config BT_CTLR_TX_PWR_PLUS_6
bool "+6 dBm"
depends on HAS_HW_NRF_RADIO_TX_PWR_HIGH || SOC_SERIES_NRF54HX || SOC_COMPATIBLE_NRF54LX
depends on HAS_HW_NRF_RADIO_TX_PWR_HIGH || SOC_SERIES_NRF54HX || SOC_COMPATIBLE_NRF54LX || SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_PLUS_5
bool "+5 dBm"
Expand All @@ -349,7 +365,7 @@ config BT_CTLR_TX_PWR_PLUS_4

config BT_CTLR_TX_PWR_PLUS_3
bool "+3 dBm"
depends on SOC_COMPATIBLE_NRF52X || SOC_COMPATIBLE_NRF53X || SOC_SERIES_NRF54HX || SOC_COMPATIBLE_NRF54LX
depends on SOC_COMPATIBLE_NRF52X || SOC_COMPATIBLE_NRF53X || SOC_SERIES_NRF54HX || SOC_COMPATIBLE_NRF54LX || SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_PLUS_2
bool "+2 dBm"
Expand All @@ -372,7 +388,7 @@ config BT_CTLR_TX_PWR_MINUS_2

config BT_CTLR_TX_PWR_MINUS_3
bool "-3 dBm"
depends on SOC_COMPATIBLE_NRF53X || SOC_COMPATIBLE_NRF54LX
depends on SOC_COMPATIBLE_NRF53X || SOC_COMPATIBLE_NRF54LX || SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_MINUS_4
bool "-4 dBm"
Expand All @@ -383,7 +399,7 @@ config BT_CTLR_TX_PWR_MINUS_5

config BT_CTLR_TX_PWR_MINUS_6
bool "-6 dBm"
depends on SOC_COMPATIBLE_NRF53X || SOC_COMPATIBLE_NRF54LX
depends on SOC_COMPATIBLE_NRF53X || SOC_COMPATIBLE_NRF54LX || SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_MINUS_7
bool "-7 dBm"
Expand All @@ -394,7 +410,7 @@ config BT_CTLR_TX_PWR_MINUS_8

config BT_CTLR_TX_PWR_MINUS_9
bool "-9 dBm"
depends on SOC_COMPATIBLE_NRF54LX
depends on SOC_COMPATIBLE_NRF54LX || SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_MINUS_10
bool "-10 dBm"
Expand All @@ -407,12 +423,28 @@ config BT_CTLR_TX_PWR_MINUS_14
bool "-14 dBm"
depends on SOC_COMPATIBLE_NRF54LX

config BT_CTLR_TX_PWR_MINUS_15
bool "-15 dBm"
depends on SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_MINUS_16
bool "-16 dBm"

config BT_CTLR_TX_PWR_MINUS_18
bool "-18 dBm"
depends on SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_MINUS_20
bool "-20 dBm"

config BT_CTLR_TX_PWR_MINUS_21
bool "-21 dBm"
depends on SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_MINUS_24
bool "-24 dBm"
depends on SOC_FAMILY_ESPRESSIF_ESP32

config BT_CTLR_TX_PWR_MINUS_26
bool "-26 dBm"
depends on SOC_COMPATIBLE_NRF54LX
Expand All @@ -437,6 +469,10 @@ endchoice

config BT_CTLR_TX_PWR_DBM
int
default 21 if BT_CTLR_TX_PWR_PLUS_21
default 18 if BT_CTLR_TX_PWR_PLUS_18
default 15 if BT_CTLR_TX_PWR_PLUS_15
default 12 if BT_CTLR_TX_PWR_PLUS_12
default 10 if BT_CTLR_TX_PWR_PLUS_10
default 9 if BT_CTLR_TX_PWR_PLUS_9
default 8 if BT_CTLR_TX_PWR_PLUS_8
Expand All @@ -460,8 +496,12 @@ config BT_CTLR_TX_PWR_DBM
default -10 if BT_CTLR_TX_PWR_MINUS_10
default -12 if BT_CTLR_TX_PWR_MINUS_12
default -14 if BT_CTLR_TX_PWR_MINUS_14
default -15 if BT_CTLR_TX_PWR_MINUS_15
default -16 if BT_CTLR_TX_PWR_MINUS_16
default -18 if BT_CTLR_TX_PWR_MINUS_18
default -20 if BT_CTLR_TX_PWR_MINUS_20
default -21 if BT_CTLR_TX_PWR_MINUS_21
default -24 if BT_CTLR_TX_PWR_MINUS_24
default -26 if BT_CTLR_TX_PWR_MINUS_26
default -30 if BT_CTLR_TX_PWR_MINUS_30
default -40 if BT_CTLR_TX_PWR_MINUS_40
Expand Down
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ manifest:
groups:
- hal
- name: hal_espressif
revision: 0f1874284f5dee0d49cb23f44f756e7be404e7b7
revision: pull/355/head
path: modules/hal/espressif
west-commands: west/west-commands.yml
groups:
Expand Down
Loading