Skip to content

Commit d2c4dbe

Browse files
carlescufiAnas Nashif
authored andcommitted
Bluetooth: controller: Add PA/LNA GPIO Kconfig option
Signed-off-by: Carles Cufi <[email protected]> Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent ec53508 commit d2c4dbe

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

subsys/bluetooth/controller/Kconfig

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,76 @@ config BT_CTLR_SCAN_REQ_RSSI
397397

398398
endmenu
399399

400+
comment "BLE Controller hardware configuration"
401+
402+
menuconfig BT_CTLR_GPIO_PA
403+
bool "Power Amplifier GPIO interface"
404+
help
405+
Enable GPIO interface to a Power Amplifier. This allows hardware
406+
designs using PA to let the Controller toggle their state based on
407+
radio activity.
408+
409+
if BT_CTLR_GPIO_PA
410+
411+
config BT_CTLR_GPIO_PA_PIN
412+
prompt "Power Amplifier GPIO pin number"
413+
int
414+
help
415+
GPIO Pin number connected to a Power Amplifier.
416+
417+
config BT_CTLR_GPIO_PA_POL_INV
418+
bool "Inverted polarity for the PA pin"
419+
help
420+
Enable inverted polarity (active low) for the PA pin.
421+
422+
config BT_CTLR_GPIO_PA_OFFSET
423+
prompt "Time from PA ON to Tx ready"
424+
int
425+
default 5
426+
range 0 10
427+
help
428+
Time before Tx ready to turn on PA.
429+
430+
endif # BT_CTLR_GPIO_PA
431+
432+
menuconfig BT_CTLR_GPIO_LNA
433+
bool "Low Noise Amplifier GPIO interface"
434+
help
435+
Enable GPIO interface to a Low Noise Amplifier. This allows hardware
436+
designs using LNAs to let the Controller toggle their state based on
437+
radio activity.
438+
439+
if BT_CTLR_GPIO_LNA
440+
441+
config BT_CTLR_GPIO_LNA_PIN
442+
prompt "Low Noise Amplifier GPIO pin number"
443+
int
444+
help
445+
GPIO Pin number connected to a Low Noise Amplifier.
446+
447+
config BT_CTLR_GPIO_LNA_POL_INV
448+
bool "Inverted polarity for the LNA pin"
449+
help
450+
Enable inverted polarity (active low) for the LNA pin.
451+
452+
config BT_CTLR_GPIO_LNA_OFFSET
453+
prompt "Time from LNA ON to Rx ready"
454+
int
455+
default 5
456+
range 0 10
457+
help
458+
Time before Rx ready to turn on LNA.
459+
460+
endif # BT_CTLR_GPIO_LNA
461+
462+
config BT_CTLR_PA_LNA_GPIOTE_CHAN
463+
# Hidden "nRF5 GPIO PA/LNA GPIOTE Channel"
464+
depends on SOC_FAMILY_NRF5 && (BT_CTLR_GPIO_PA || BT_CTLR_GPIO_LNA)
465+
int
466+
default 3
467+
help
468+
Select the nRF5 GPIOTE channel to use for PA/LNA GPIO feature.
469+
400470
comment "BLE Controller debug configuration"
401471

402472
config BT_CTLR_ASSERT_HANDLER

0 commit comments

Comments
 (0)