Skip to content

Commit 699a8a1

Browse files
committed
tests gpio_hogs: Enable for nrf54l15bsim
Enable this test, and provide overlays, in the nrf54l15bsim Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 02edaa4 commit 699a8a1

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* Copyright (c) 2023 Vestas Wind Systems A/S
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/gpio/gpio.h>
8+
9+
/ {
10+
zephyr,user {
11+
output-high-gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
12+
output-low-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;
13+
input-gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
14+
};
15+
};
16+
17+
&gpio0 {
18+
hog1 {
19+
gpio-hog;
20+
gpios = <3 GPIO_ACTIVE_LOW>;
21+
output-high;
22+
};
23+
24+
hog2 {
25+
gpio-hog;
26+
gpios = <4 GPIO_ACTIVE_HIGH>;
27+
output-low;
28+
};
29+
30+
hog3 {
31+
gpio-hog;
32+
gpios = <1 GPIO_ACTIVE_LOW>;
33+
input;
34+
};
35+
};

tests/drivers/gpio/gpio_hogs/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ tests:
1111
- nrf52840dk/nrf52840
1212
- nucleo_g474re
1313
- nrf52_bsim
14+
- nrf54l15bsim/nrf54l15/cpuapp
1415
- mr_canhubk3
1516
- s32z2xxdc2/s32z270/rtu0
1617
- s32z2xxdc2/s32z270/rtu1

0 commit comments

Comments
 (0)