From fb5ee609a0f0082faa2ef012637f61825d58a857 Mon Sep 17 00:00:00 2001 From: Alberto Escolar Piedras Date: Mon, 4 Nov 2024 18:14:42 +0100 Subject: [PATCH] tests gpio_hogs: Enable for nrf54l15bsim Enable this test, and provide overlays, in the nrf54l15bsim Signed-off-by: Alberto Escolar Piedras --- .../nrf54l15bsim_nrf54l15_cpuapp.overlay | 35 +++++++++++++++++++ tests/drivers/gpio/gpio_hogs/testcase.yaml | 1 + 2 files changed, 36 insertions(+) create mode 100644 tests/drivers/gpio/gpio_hogs/boards/nrf54l15bsim_nrf54l15_cpuapp.overlay diff --git a/tests/drivers/gpio/gpio_hogs/boards/nrf54l15bsim_nrf54l15_cpuapp.overlay b/tests/drivers/gpio/gpio_hogs/boards/nrf54l15bsim_nrf54l15_cpuapp.overlay new file mode 100644 index 00000000000..6bf18e1faa1 --- /dev/null +++ b/tests/drivers/gpio/gpio_hogs/boards/nrf54l15bsim_nrf54l15_cpuapp.overlay @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2023 Vestas Wind Systems A/S + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#include + +/ { + zephyr,user { + output-high-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; + output-low-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>; + input-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; + }; +}; + +&gpio0 { + hog1 { + gpio-hog; + gpios = <3 GPIO_ACTIVE_LOW>; + output-high; + }; + + hog2 { + gpio-hog; + gpios = <4 GPIO_ACTIVE_HIGH>; + output-low; + }; + + hog3 { + gpio-hog; + gpios = <1 GPIO_ACTIVE_LOW>; + input; + }; +}; diff --git a/tests/drivers/gpio/gpio_hogs/testcase.yaml b/tests/drivers/gpio/gpio_hogs/testcase.yaml index 998d68d7c67..81b9a1d8d60 100644 --- a/tests/drivers/gpio/gpio_hogs/testcase.yaml +++ b/tests/drivers/gpio/gpio_hogs/testcase.yaml @@ -11,6 +11,7 @@ tests: - nrf52840dk/nrf52840 - nucleo_g474re - nrf52_bsim + - nrf54l15bsim/nrf54l15/cpuapp - mr_canhubk3 - s32z2xxdc2/s32z270/rtu0 - s32z2xxdc2/s32z270/rtu1