Skip to content

Commit 5406259

Browse files
nordic-babukartben
authored andcommitted
tests: drivers: gpio_hogs: Add nrf54 platforms.
Add overlays and entries in testcase.yaml to enable tests execution on nrf54 DKs. Signed-off-by: Bartlomiej Buczek <bartlomiej.buczek@nordicsemi.no>
1 parent 80b9040 commit 5406259

File tree

3 files changed

+64
-0
lines changed

3 files changed

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

tests/drivers/gpio/gpio_hogs/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ tests:
99
- native_sim/native/64
1010
- frdm_k64f
1111
- nrf52840dk/nrf52840
12+
- nrf54l15dk/nrf54l15/cpuapp
13+
- nrf54h20dk/nrf54h20/cpuapp
1214
- nucleo_g474re
1315
- nrf52_bsim
1416
- nrf5340bsim/nrf5340/cpuapp

0 commit comments

Comments
 (0)