Skip to content

Commit cedf8e9

Browse files
committed
[nrf fromlist] samples: basic: Add overlay for nRF54L15 for basic_pwm example
Adds overlay to use hardware PWM. There is no possilibity to work with all period configuration. Upstream PR: zephyrproject-rtos/zephyr#71812 Signed-off-by: Karol Lasończyk <[email protected]>
1 parent 3733e70 commit cedf8e9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
&pinctrl {
2+
pwm_default: pwm_default {
3+
group1 {
4+
psels = <NRF_PSEL(PWM_OUT0, 1, 8)>;
5+
};
6+
};
7+
pwm_sleep: pwm_sleep {
8+
group1 {
9+
psels = <NRF_PSEL(PWM_OUT0, 1, 8)>;
10+
low-power-enable;
11+
};
12+
};
13+
};
14+
15+
&pwm20 {
16+
status = "okay";
17+
pinctrl-0 = <&pwm_default>;
18+
pinctrl-1 = <&pwm_sleep>;
19+
pinctrl-names = "default", "sleep";
20+
};
21+
22+
/ {
23+
pwmleds {
24+
compatible = "pwm-leds";
25+
pwm_led0: pwm_led_0 {
26+
pwms = <&pwm20 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
27+
};
28+
};
29+
30+
aliases {
31+
pwm-led0 = &pwm_led0;
32+
};
33+
};

0 commit comments

Comments
 (0)