mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-07 13:12:49 +00:00
Fixes issues caused in GPIO driver due to overlapping GPIOTE channel use in nRF5 software PWM driver and in Bluetooth controller for implementing PA/LNA feature. The issue is solved by assigning the base and available channel count for GPIOTE considering whether PWM and/or PA/LNA feature is selected in the Kconfig. Fixes #8815. Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
81 lines
1.8 KiB
Plaintext
81 lines
1.8 KiB
Plaintext
# Kconfig.nrf5 - Nordic Semiconductor nRF5x GPIO configuration options
|
|
#
|
|
# Copyright (c) 2016-2018 Nordic Semiconductor ASA
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig GPIO_NRF5
|
|
bool "Nordic Semiconductor nRF5x-based GPIO driver"
|
|
depends on GPIO && SOC_FAMILY_NRF
|
|
select HAS_DTS_GPIO if SOC_SERIES_NRF52X
|
|
help
|
|
Enable GPIO driver for nRF5 line of MCUs.
|
|
|
|
if GPIO_NRF5
|
|
|
|
config GPIO_NRF5_P0
|
|
bool "nRF5x GPIO Port P0"
|
|
help
|
|
Enable nRF5 GPIO port P0 config options.
|
|
|
|
config GPIO_NRF5_P1
|
|
bool "nRF5x GPIO Port P1"
|
|
depends on SOC_NRF52840
|
|
help
|
|
Enable nRF5 GPIO port P1 config options.
|
|
|
|
if !HAS_DTS_GPIO
|
|
|
|
config GPIO_NRF5_P0_DEV_NAME
|
|
string "GPIO Port P0 Device Name"
|
|
depends on GPIO_NRF5_P0
|
|
default "GPIO_0"
|
|
help
|
|
Specify the device name to be used for the GPIO port.
|
|
|
|
config GPIO_NRF5_P1_DEV_NAME
|
|
string "GPIO Port P1 Device Name"
|
|
depends on GPIO_NRF5_P1
|
|
default "GPIO_1"
|
|
help
|
|
Specify the device name to be used for the GPIO port.
|
|
|
|
config GPIOTE_NRF5_IRQ_PRI
|
|
int "GPIOTE interrupt priority"
|
|
depends on GPIO_NRF5_P0 || GPIO_NRF5_P1
|
|
range 0 2 if SOC_SERIES_NRF51X
|
|
range 0 5 if SOC_SERIES_NRF52X
|
|
default 2 if SOC_SERIES_NRF51X
|
|
default 5 if SOC_SERIES_NRF52X
|
|
help
|
|
nRF5 GPIOTE IRQ priority.
|
|
|
|
config GPIOTE_NRF5_IRQ
|
|
int "GPIOTE interrupt number"
|
|
depends on GPIO_NRF5_P0 || GPIO_NRF5_P1
|
|
range 6 6 if SOC_SERIES_NRF51X
|
|
range 6 6 if SOC_SERIES_NRF52X
|
|
default 6 if SOC_SERIES_NRF51X
|
|
default 6 if SOC_SERIES_NRF52X
|
|
help
|
|
nRF5 GPIOTE IRQ priority.
|
|
|
|
endif # !HAS_DTS_GPIO
|
|
|
|
config GPIO_NRF5_INIT_PRIORITY
|
|
int "nRF5 GPIO initialization priority"
|
|
default 40
|
|
help
|
|
Initialization priority for nRF5 GPIO.
|
|
|
|
config GPIO_NRF5_GPIOTE_CHAN_BASE
|
|
# hidden
|
|
int
|
|
default 0
|
|
default 1 if (BT_CTLR_GPIO_PA || BT_CTLR_GPIO_LNA)
|
|
default 3 if PWM_NRF5_SW
|
|
default 4 if (BT_CTLR_GPIO_PA || BT_CTLR_GPIO_LNA) && PWM_NRF5_SW
|
|
|
|
endif # GPIO_NRF5
|