Skip to content

Commit f12ece6

Browse files
fimohamejhedberg
authored andcommitted
tests: drivers: pwm: Add pwm_api overlay and update yaml file
This commit adds the pwm overlay file for the brd4342a board, enabling pwm support and also updates the pwm tag in siwx917_dk2605a.yaml. Upstream-status: available Signed-off-by: S Mohamed Fiaz <[email protected]> (cherry picked from commit c8fa6c8)
1 parent 6035f0a commit f12ece6

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

boards/silabs/dev_kits/siwx917_dk2605a/siwx917_dk2605a.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ supported:
2222
- wifi
2323
- rtc
2424
- counter
25+
- pwm
2526
vendor: silabs
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright (c) 2025 Silicon Laboratories Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
#include <zephyr/dt-bindings/pwm/pwm.h>
8+
9+
/ {
10+
aliases {
11+
pwm-test = &pwm;
12+
};
13+
};
14+
15+
&pinctrl0 {
16+
pwm_ch: pwm_ch {
17+
group1 {
18+
pinmux = <PWM_0H_HP7>; /* GPIO_7 P20 */
19+
};
20+
};
21+
};
22+
23+
&pwm {
24+
pinctrl-0 = <&pwm_ch>;
25+
pinctrl-names = "default";
26+
27+
pwm_channel1: pwm_channel1 {
28+
pwms = <&pwm 0 1000000>;
29+
};
30+
silabs,pwm-polarity = <PWM_POLARITY_NORMAL>;
31+
status = "okay";
32+
};

0 commit comments

Comments
 (0)