Skip to content

Commit 4219bdf

Browse files
rob-robinson-14rlubos
authored andcommitted
tests: drivers: pwm: Add nRF7120 to platform allow list
Add nRF7120 to platform allow and integration platforms for pwm_instance test and pwm_gpio_loopback test Signed-off-by: Robert Robinson <[email protected]>
1 parent e5d6866 commit 4219bdf

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

tests/drivers/pwm/pwm_instances/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ tests:
1313
- nrf54lm20dk/nrf54lm20a/cpuapp
1414
- [email protected]/nrf54ls05b/cpuapp
1515
- nrf54ls05dk/nrf54ls05b/cpuapp
16+
- nrf7120pdk/nrf7120/cpuapp
1617
integration_platforms:
1718
- nrf54h20dk/nrf54h20/cpuapp
1819
- nrf54l15dk/nrf54l15/cpuapp
1920
- nrf54lm20dk/nrf54lm20a/cpuapp
2021
- nrf54ls05dk/nrf54ls05b/cpuapp
22+
- nrf7120pdk/nrf7120/cpuapp
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: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2025 Nordic Semiconductor ASA
3+
*
4+
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
* Test requires wire connection between:
6+
* - PWM22 OUT[0] at P1.14 <-> GPIO input at P1.00
7+
* - PWM22 OUT[1] at P1.02 <-> GPIO input at P1.03
8+
*/
9+
10+
/ {
11+
zephyr,user {
12+
pwms = <&pwm22 0 160000 PWM_POLARITY_NORMAL>,
13+
<&pwm22 1 160000 PWM_POLARITY_NORMAL>;
14+
gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>,
15+
<&gpio1 3 GPIO_ACTIVE_HIGH>;
16+
};
17+
};
18+
19+
&pinctrl {
20+
pwm22_alt: pwm22_alt {
21+
group1 {
22+
psels = <NRF_PSEL(PWM_OUT0, 1, 14)>,
23+
<NRF_PSEL(PWM_OUT1, 1, 2)>;
24+
};
25+
};
26+
27+
pwm22_alt_sleep: pwm22_alt_sleep {
28+
group1 {
29+
psels = <NRF_PSEL(PWM_OUT0, 1, 14)>,
30+
<NRF_PSEL(PWM_OUT1, 1, 2)>;
31+
low-power-enable;
32+
};
33+
};
34+
};
35+
36+
&pwm22 {
37+
pinctrl-0 = <&pwm22_alt>;
38+
pinctrl-1 = <&pwm22_alt_sleep>;
39+
pinctrl-names = "default", "sleep";
40+
status = "okay";
41+
};

tests/zephyr/drivers/pwm/pwm_gpio_loopback/testcase.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,7 @@ tests:
1212
platform_allow:
1313
- [email protected]/nrf54ls05b/cpuapp
1414
- nrf54ls05dk/nrf54ls05b/cpuapp
15+
- nrf7120pdk/nrf7120/cpuapp
1516
integration_platforms:
1617
- nrf54ls05dk/nrf54ls05b/cpuapp
18+
- nrf7120pdk/nrf7120/cpuapp

0 commit comments

Comments
 (0)