Skip to content

Commit 2771da8

Browse files
nordic-seglnordic-piks
authored andcommitted
tests: drivers: pwm: Enable PWM loopback test on nRF54L20pdk
Enable execution of PWM gpio_loopback test on nRF54L20pdk. Signed-off-by: Sebastian Głąb <[email protected]>
1 parent 425440d commit 2771da8

File tree

5 files changed

+40
-2
lines changed

5 files changed

+40
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_NRF_REGTOOL_VERBOSITY=1
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
*/
6+
7+
#include <zephyr/dt-bindings/pwm/pwm.h>
8+
#include <zephyr/dt-bindings/gpio/nordic-nrf-gpio.h>
9+
10+
&pinctrl {
11+
pwm20_alt: pwm20_alt {
12+
group1 {
13+
psels = <NRF_PSEL(PWM_OUT0, 1, 10)>;
14+
};
15+
};
16+
17+
pwm20_alt_sleep: pwm20_alt_sleep {
18+
group1 {
19+
psels = <NRF_PSEL(PWM_OUT0, 1, 10)>;
20+
low-power-enable;
21+
};
22+
};
23+
};
24+
25+
&pwm20 {
26+
pinctrl-0 = <&pwm20_alt>;
27+
pinctrl-1 = <&pwm20_alt_sleep>;
28+
pinctrl-names = "default", "sleep";
29+
};
30+
31+
/ {
32+
pwm_to_gpio_loopback: pwm_to_gpio_loopback {
33+
compatible = "test-pwm-to-gpio-loopback";
34+
pwms = <&pwm20 0 0 PWM_POLARITY_NORMAL>;
35+
gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
36+
};
37+
};

tests/drivers/pwm/gpio_loopback/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ CONFIG_TEST_USERSPACE=y
99

1010
CONFIG_PWM=y
1111
CONFIG_GPIO=y
12-
CONFIG_NRF_REGTOOL_VERBOSITY=1

tests/drivers/pwm/gpio_loopback/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ tests:
1515
platform_allow:
1616
- nrf54h20dk/nrf54h20/cpuapp
1717
- nrf54l15dk/nrf54l15/cpuapp
18+
- nrf54l20pdk/nrf54l20/cpuapp
1819
integration_platforms:
1920
- nrf54h20dk/nrf54h20/cpuapp
2021
- nrf54l15dk/nrf54l15/cpuapp

west.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ manifest:
7070
# https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/guides/modules.html
7171
- name: zephyr
7272
repo-path: sdk-zephyr
73-
revision: pull/2487/head
73+
revision: 4d63c4e1f00898e7619321e3d55d3fd61f4918f4
7474
import:
7575
# In addition to the zephyr repository itself, NCS also
7676
# imports the contents of zephyr/west.yml at the above

0 commit comments

Comments
 (0)