Skip to content

Commit

Permalink
[nrf fromtree] tests: drivers: pwm: add support for nRF54H20 cpuppr PWM
Browse files Browse the repository at this point in the history
Added support for nRF54H20 cpuppr PWM in pwm_api test.

Signed-off-by: Michał Stasiak <[email protected]>
(cherry picked from commit cec083edd1a51e85d45e66764feec7cffd6eb4df)
  • Loading branch information
mstasiaknordic committed Feb 17, 2025
1 parent 106f95b commit c9b0d3d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
&pinctrl {
pwm_default: pwm_default {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 0)>;
};
};
pwm_sleep: pwm_sleep {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 0)>;
low-power-enable;
};
};
};

&pwm130 {
status = "okay";
pinctrl-0 = <&pwm_default>;
pinctrl-1 = <&pwm_sleep>;
pinctrl-names = "default", "sleep";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
&pinctrl {
pwm_default: pwm_default {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 0)>;
};
};
pwm_sleep: pwm_sleep {
group1 {
psels = <NRF_PSEL(PWM_OUT0, 0, 0)>;
low-power-enable;
};
};
};

&pwm130 {
status = "reserved";
interrupt-parent = <&cpuppr_clic>;
pinctrl-0 = <&pwm_default>;
pinctrl-1 = <&pwm_sleep>;
pinctrl-names = "default", "sleep";
};
1 change: 1 addition & 0 deletions tests/drivers/pwm/pwm_api/sysbuild/vpr_launcher/prj.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# nothing here

0 comments on commit c9b0d3d

Please sign in to comment.