Skip to content

Commit 4084fe8

Browse files
mstasiaknordicrlubos
authored andcommitted
[nrf fromtree] samples: basic: add support for nRF54H20 cpuppr PWM
Added support for nRF54H20 cpuppr PWM in blinky_pwm and fade_led sample. Signed-off-by: Michał Stasiak <[email protected]> (cherry picked from commit 5b34d77)
1 parent 2099f12 commit 4084fe8

File tree

6 files changed

+52
-0
lines changed

6 files changed

+52
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include <zephyr/dt-bindings/pwm/pwm.h>
2+
3+
/ {
4+
aliases {
5+
pwm-led0 = &pwm_led2;
6+
};
7+
8+
pwmleds {
9+
compatible = "pwm-leds";
10+
pwm_led2: pwm_led_2 {
11+
pwms = <&pwm130 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
12+
};
13+
};
14+
};
15+
16+
&pwm130 {
17+
status = "okay";
18+
pinctrl-0 = <&pwm130_default>;
19+
pinctrl-1 = <&pwm130_sleep>;
20+
pinctrl-names = "default", "sleep";
21+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
&pwm130 {
2+
status = "reserved";
3+
interrupt-parent = <&cpuppr_clic>;
4+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# nothing here
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include <zephyr/dt-bindings/pwm/pwm.h>
2+
3+
/ {
4+
aliases {
5+
pwm-led0 = &pwm_led2;
6+
};
7+
8+
pwmleds {
9+
compatible = "pwm-leds";
10+
pwm_led2: pwm_led_2 {
11+
pwms = <&pwm130 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
12+
};
13+
};
14+
};
15+
16+
&pwm130 {
17+
status = "okay";
18+
pinctrl-0 = <&pwm130_default>;
19+
pinctrl-1 = <&pwm130_sleep>;
20+
pinctrl-names = "default", "sleep";
21+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
&pwm130 {
2+
status = "reserved";
3+
interrupt-parent = <&cpuppr_clic>;
4+
};
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# nothing here

0 commit comments

Comments
 (0)