From 07ec18f088898635e36dd1673c07841d65abf69d Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Fri, 23 Feb 2024 13:04:37 +0900 Subject: [PATCH] boards: spresense: Add reset control on BLE1507 Add-on board Add reset pin selection on BLE1507 Add-on board. --- boards/arm/cxd56xx/spresense/Kconfig | 15 +++++++++++++++ boards/arm/cxd56xx/spresense/include/board.h | 6 ++++++ 2 files changed, 21 insertions(+) diff --git a/boards/arm/cxd56xx/spresense/Kconfig b/boards/arm/cxd56xx/spresense/Kconfig index 1b6fded184..e2b6d51c43 100644 --- a/boards/arm/cxd56xx/spresense/Kconfig +++ b/boards/arm/cxd56xx/spresense/Kconfig @@ -838,6 +838,21 @@ config CXD56_EMMC_POWER_PIN_UART2_CTS endchoice +choice + prompt "BLE1507 Add-on board Reset Pin selection" + default CXD56_BLE1507_RESET_PIN_NONE + +config CXD56_BLE1507_RESET_PIN_NONE + bool "None" + +config CXD56_BLE1507_RESET_PIN_I2S0_DATA_IN + bool "Use PIN I2S0_DATA_IN" + +config CXD56_BLE1507_RESET_PIN_EMMC_DATA2 + bool "Use PIN EMMC_DATA2" + +endchoice + config CXD56_GNSS_ADDON bool "CXD5610 GNSS Add-on board" default n diff --git a/boards/arm/cxd56xx/spresense/include/board.h b/boards/arm/cxd56xx/spresense/include/board.h index e518e1f8c7..3806c433f1 100644 --- a/boards/arm/cxd56xx/spresense/include/board.h +++ b/boards/arm/cxd56xx/spresense/include/board.h @@ -201,7 +201,13 @@ enum board_power_device POWER_AUDIO_MUTE = PMIC_GPO(6), POWER_IMAGE_SENSOR = PMIC_GPO(4), +#if defined(CONFIG_CXD56_BLE1507_RESET_PIN_I2S0_DATA_IN) + POWER_BTBLE = CHIP_GPIO(PIN_I2S0_DATA_IN), +#elif defined(CONFIG_CXD56_BLE1507_RESET_PIN_EMMC_DATA2) + POWER_BTBLE = CHIP_GPIO(PIN_EMMC_DATA2), +#else POWER_BTBLE = PMIC_NONE, +#endif POWER_SENSOR = PMIC_NONE, #if defined(CONFIG_CXD56_EMMC_POWER_PIN_I2S0_BCK) POWER_EMMC = CHIP_GPIO(PIN_I2S0_BCK),