boards: arm: nrf9160dk_nrf52840: use UICR gpio-as-nreset property

Instead of the about to be deprecated GPIO_AS_PINRESET.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2023-09-18 11:37:32 +02:00 committed by Carles Cufí
commit 5d6d6f5b65

View file

@ -27,7 +27,7 @@ LOG_MODULE_REGISTER(board_control, CONFIG_BOARD_NRF9160DK_LOG_LEVEL);
* exposes the nRESET function (P0.18 in nRF52840), there is no need to
* provide any additional GPIO configuration for it.
*/
#define RESET_INPUT_IS_PINRESET (IS_ENABLED(CONFIG_GPIO_AS_PINRESET) && \
#define RESET_INPUT_IS_PINRESET (DT_PROP(DT_NODELABEL(uicr), gpio_as_nreset) && \
GET_PORT(reset_input, gpios, 0) == 0 && \
GET_PIN(reset_input, gpios, 0) == 18)
#define USE_RESET_GPIO \