Skip to content

Commit dd7cfbc

Browse files
adamkondraciukdleach02
authored andcommitted
test: drivers: pwm: add fast PWM
Add fast PWM instance for nRF54H20 device. Signed-off-by: Adam Kondraciuk <[email protected]>
1 parent 1637443 commit dd7cfbc

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
&pinctrl {
2+
pwm_default: pwm_default {
3+
group1 {
4+
psels = <NRF_PSEL(PWM_OUT0, 7, 0)>;
5+
};
6+
};
7+
pwm_sleep: pwm_sleep {
8+
group1 {
9+
psels = <NRF_PSEL(PWM_OUT0, 7, 0)>;
10+
low-power-enable;
11+
};
12+
};
13+
};
14+
15+
&pwm120 {
16+
status = "okay";
17+
pinctrl-0 = <&pwm_default>;
18+
pinctrl-1 = <&pwm_sleep>;
19+
pinctrl-names = "default", "sleep";
20+
memory-regions = <&dma_fast_region>;
21+
};

tests/drivers/pwm/pwm_api/testcase.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ tests:
2121
or dt_alias_exists("pwm-3")) and CONFIG_DT_HAS_NXP_FLEXIO_ENABLED and
2222
CONFIG_DT_HAS_NXP_FLEXIO_PWM_ENABLED
2323
depends_on: pwm
24+
drivers.pwm.pwm_fast:
25+
extra_args: DTC_OVERLAY_FILE="boards/nrf54h20dk_nrf54h20_cpuapp_fast.overlay"
26+
platform_allow:
27+
- nrf54h20dk/nrf54h20/cpuapp

0 commit comments

Comments
 (0)