File tree 15 files changed +138
-0
lines changed
drivers/gpio/gpio_more_loops
zephyr/drivers/gpio/gpio_basic_api
15 files changed +138
-0
lines changed Original file line number Diff line number Diff line change 642
642
- " tests/drivers/uart/**/*"
643
643
- " tests/subsys/event_manager_proxy/**/*"
644
644
- " tests/zephyr/drivers/comparator/**/*"
645
+ - " tests/zephyr/drivers/gpio/**/*"
645
646
- " tests/zephyr/drivers/flash/**/*"
646
647
- " tests/zephyr/drivers/i2c/**/*"
647
648
- " tests/zephyr/drivers/mspi/**/*"
Original file line number Diff line number Diff line change 920
920
/tests /subsys /zigbee / @ nrfconnect/ncs-zigbee
921
921
/tests /zephyr /drivers /comparator / @ nrfconnect/ncs-low-level-test
922
922
/tests /zephyr /drivers /flash /common / @ nrfconnect/ncs-low-level-test @ nrfconnect/ncs-ll-ursus
923
+ /tests /zephyr /drivers /gpio / @ nrfconnect/ncs-low-level-test
923
924
/tests /zephyr /drivers /i2c /i2c_bme688 / @ nrfconnect/ncs-low-level-test
924
925
/tests /zephyr /drivers /i2c /i2c_target_api / @ nrfconnect/ncs-low-level-test
925
926
/tests /zephyr /drivers /mspi /api / @ nrfconnect/ncs-low-level-test @ nrfconnect/ncs-ll-ursus
Original file line number Diff line number Diff line change @@ -1594,3 +1594,8 @@ ci_tests_zephyr_boards_nrf_comp:
1594
1594
files :
1595
1595
- nrf/tests/zephyr/boards/nrf/comp/
1596
1596
- zephyr/tests/boards/nrf/comp/
1597
+
1598
+ ci_tests_zephyr_drivers_gpio :
1599
+ files :
1600
+ - nrf/tests/zephyr/drivers/gpio/
1601
+ - zephyr/tests/drivers/gpio/
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2025 Nordic Semiconductor ASA
3
+ *
4
+ * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
+ */
6
+
7
+ / {
8
+ /* Test requirements:
9
+ * out-gpios[0] wire connected with in-gpios[0],
10
+ * out-gpios[1] wire connected with in-gpios[1],
11
+ * etc.
12
+ * Output-input GPIO pair must have identical active level flag.
13
+ */
14
+ test_gpios {
15
+ compatible = "gpio-leds";
16
+ out_gpios: out_gpios {
17
+ gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
18
+ };
19
+
20
+ in_gpios: in_gpios {
21
+ gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
22
+ };
23
+ };
24
+ };
25
+
26
+ &gpiote20 {
27
+ status = "okay";
28
+ };
29
+
30
+ &gpio1 {
31
+ status = "okay";
32
+ };
Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ tests:
14
14
platform_allow :
15
15
- nrf54l15dk/nrf54l15/cpuapp
16
16
- nrf54l20pdk/nrf54l20/cpuapp
17
+ - nrf54l09pdk/nrf54l09/cpuapp
17
18
- nrf54h20dk/nrf54h20/cpuapp
18
19
integration_platforms :
19
20
- nrf54l15dk/nrf54l15/cpuapp
20
21
- nrf54l20pdk/nrf54l20/cpuapp
22
+ - nrf54l09pdk/nrf54l09/cpuapp
21
23
- nrf54h20dk/nrf54h20/cpuapp
Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright (c) 2025 Nordic Semiconductor ASA
3
+ #
4
+ # SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
+ #
6
+
7
+ cmake_minimum_required (VERSION 3.20.0)
8
+
9
+ find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
10
+ project (gpio_basic_api)
11
+
12
+ FILE (GLOB app_sources ${ZEPHYR_BASE} /tests/drivers/gpio/gpio_basic_api/src/main.c ${ZEPHYR_BASE} /tests/drivers/gpio/gpio_basic_api/src/test *.c)
13
+ target_sources (app PRIVATE ${app_sources} )
14
+ target_sources_ifdef(CONFIG_GPIO_EMUL app PRIVATE ${ZEPHYR_BASE} /tests/drivers/gpio/gpio_basic_api/src/gpio_emul_callback.c)
Original file line number Diff line number Diff line change
1
+ source "tests/drivers/gpio/gpio_basic_api/Kconfig"
Original file line number Diff line number Diff line change
1
+ This sample extends the same-named Zephyr sample to verify it
2
+ with Nordic development kits.
3
+
4
+ Source code and basic configuration files can be found in the corresponding folder structure in zephyr/tests/drivers/i2c/i2c_target_api.
Original file line number Diff line number Diff line change
1
+ CONFIG_SKIP_PULL_TEST=y
Original file line number Diff line number Diff line change
1
+ / {
2
+ resources {
3
+ compatible = "test-gpio-basic-api";
4
+ out-gpios = <&gpio1 10 0>;
5
+ in-gpios = <&gpio1 11 0>;
6
+ };
7
+ };
8
+
9
+ &gpiote20 {
10
+ status = "okay";
11
+ };
12
+
13
+ &gpio1 {
14
+ status = "okay";
15
+ };
Original file line number Diff line number Diff line change
1
+ CONFIG_SKIP_PULL_TEST=y
Original file line number Diff line number Diff line change
1
+ / {
2
+ resources {
3
+ compatible = "test-gpio-basic-api";
4
+ out-gpios = <&gpio1 10 0>;
5
+ in-gpios = <&gpio1 11 0>;
6
+ };
7
+ };
8
+
9
+ &gpiote20 {
10
+ status = "okay";
11
+ };
12
+
13
+ &gpio1 {
14
+ status = "okay";
15
+ };
Original file line number Diff line number Diff line change
1
+ description : |
2
+ This binding provides resources required to build and run the
3
+ tests/drivers/gpio/gpio_basic_api test in Zephyr.
4
+
5
+ compatible : " test-gpio-basic-api"
6
+
7
+ properties :
8
+ out-gpios :
9
+ type : phandle-array
10
+ required : true
11
+ description : |
12
+ Identity of a GPIO that will be configured as an output. This
13
+ must be on the same device as in-gpios, and physically
14
+ connected to in-gpios.
15
+
16
+ in-gpios :
17
+ type : phandle-array
18
+ required : true
19
+ description : |
20
+ Identity of a GPIO that will be configured as an input. This
21
+ must be on the same device as out-gpios,and physically
22
+ connected to out-gpios.
Original file line number Diff line number Diff line change
1
+ CONFIG_GPIO=y
2
+ CONFIG_GPIO_GET_CONFIG=y
3
+ CONFIG_ZTEST=y
4
+ CONFIG_ENTROPY_GENERATOR=y
5
+ CONFIG_TEST_RANDOM_GENERATOR=y
6
+ #CONFIG_TEST_USERSPACE=y
Original file line number Diff line number Diff line change
1
+ common :
2
+ tags :
3
+ - drivers
4
+ - gpio
5
+ - ci_tests_zephyr_drivers_gpio
6
+ depends_on : gpio
7
+ harness : ztest
8
+ harness_config :
9
+ fixture : gpio_loopback
10
+
11
+ tests :
12
+ nrf.extended.drivers.gpio.2pin :
13
+ integration_platforms :
14
+ - nrf54l09pdk/nrf54l09/cpuapp
15
+ - nrf54l20pdk/nrf54l20/cpuapp
16
+ platform_allow :
17
+ - nrf54l09pdk/nrf54l09/cpuapp
18
+ - nrf54l20pdk/nrf54l20/cpuapp
You can’t perform that action at this time.
0 commit comments