Skip to content

Commit 5748565

Browse files
nordic-seglnordicjm
authored andcommitted
[nrf fromtree] tests: drivers: pwm: pwm_gpio_loopback: Enable test on nrf54lm20dk
Add overlay required to run the test on nrf54lm20dk/nrf54lm20a/cpuapp. Signed-off-by: Sebastian Głąb <[email protected]> (cherry picked from commit 25b90ac)
1 parent 79d7da4 commit 5748565

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SKIP_EDGE_NUM=4
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* Test requires jumper between:
6+
* - PWM20 OUT[0] at P1.29 <-> GPIO input at P1.00
7+
*/
8+
9+
/ {
10+
zephyr,user {
11+
pwms = <&pwm20 0 160000 PWM_POLARITY_NORMAL>;
12+
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
13+
};
14+
};
15+
16+
&pinctrl {
17+
pwm20_alt: pwm20_alt {
18+
group1 {
19+
psels = <NRF_PSEL(PWM_OUT0, 1, 29)>;
20+
};
21+
};
22+
23+
pwm20_alt_sleep: pwm20_alt_sleep {
24+
group1 {
25+
psels = <NRF_PSEL(PWM_OUT0, 1, 29)>;
26+
low-power-enable;
27+
};
28+
};
29+
};
30+
31+
&pwm20 {
32+
status = "okay";
33+
pinctrl-0 = <&pwm20_alt>;
34+
pinctrl-1 = <&pwm20_alt_sleep>;
35+
pinctrl-names = "default", "sleep";
36+
};

tests/drivers/pwm/pwm_gpio_loopback/testcase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ tests:
2020
platform_allow:
2121
- nrf54h20dk/nrf54h20/cpuapp
2222
- nrf54l15dk/nrf54l15/cpuapp
23+
- nrf54lm20dk/nrf54lm20a/cpuapp
2324
- ophelia4ev/nrf54l15/cpuapp

0 commit comments

Comments
 (0)