Skip to content

Commit

Permalink
tests: drivers: gpio: gpio_more_loops: Enable test on nrf54l20pdk
Browse files Browse the repository at this point in the history
Add overlay required to execute test on nrf54l20pdk.

Signed-off-by: Sebastian Głąb <[email protected]>
  • Loading branch information
nordic-segl authored and rlubos committed Jan 8, 2025
1 parent 21dcbec commit 0543ac7
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/*
* Copyright (c) 2024 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

/ {
/* Test requirements:
* out-gpios[0] wire connected with in-gpios[0],
* out-gpios[1] wire connected with in-gpios[1],
* etc.
* Output-input GPIO pair must have identical active level flag.
*/
test_gpios {
compatible = "gpio-leds";
out_gpios: out_gpios {
gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>, <&gpio2 2 GPIO_ACTIVE_HIGH>,
<&gpio2 4 GPIO_ACTIVE_HIGH>, <&gpio2 6 GPIO_ACTIVE_HIGH>,
<&gpio1 10 GPIO_ACTIVE_HIGH>;
};

in_gpios: in_gpios {
gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>, <&gpio2 3 GPIO_ACTIVE_HIGH>,
<&gpio2 5 GPIO_ACTIVE_HIGH>, <&gpio2 7 GPIO_ACTIVE_HIGH>,
<&gpio1 11 GPIO_ACTIVE_HIGH>;
};
};
};

&gpiote20 {
status = "okay";
};

&gpio1 {
status = "okay";
};

&gpio2 {
status = "okay";
};
2 changes: 2 additions & 0 deletions tests/drivers/gpio/gpio_more_loops/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ tests:
drivers.gpio.gpio_more_loops:
platform_allow:
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
integration_platforms:
- nrf54l15dk/nrf54l15/cpuapp
- nrf54l20pdk/nrf54l20/cpuapp
- nrf54h20dk/nrf54h20/cpuapp
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ manifest:
# https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html
- name: zephyr
repo-path: sdk-zephyr
revision: pull/2407/head
revision: 9761d261943a916443cf6c748ee3daa2915e3546
import:
# In addition to the zephyr repository itself, NCS also
# imports the contents of zephyr/west.yml at the above
Expand Down

0 comments on commit 0543ac7

Please sign in to comment.