Skip to content

Commit f9a755c

Browse files
Ayush1325dpgeorge
authored andcommitted
zephyr/boards: Enable PWM on beagleconnect_freedom.
Enable PWM config for bcf. Signed-off-by: Ayush Singh <[email protected]>
1 parent c9c39b8 commit f9a755c

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

ports/zephyr/boards/beagleconnect_freedom.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Hardware features
2+
CONFIG_PWM=y
23
CONFIG_I2C=y
34
CONFIG_SPI=y
45

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/*
2+
* Copyright (c) 2024 Ayush Singh <[email protected]>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&pinctrl {
8+
/* MB1 PWM */
9+
pwm0_default: pwm0_default {
10+
pinmux = <17 IOC_PORT_MCU_PORT_EVENT1>;
11+
bias-disable;
12+
drive-strength = <2>;
13+
};
14+
15+
/* MB2 PWM */
16+
pwm1_default: pwm1_default {
17+
pinmux = <19 IOC_PORT_MCU_PORT_EVENT3>;
18+
bias-disable;
19+
drive-strength = <2>;
20+
};
21+
};
22+
23+
&gpt0 {
24+
status = "okay";
25+
};
26+
27+
&gpt1 {
28+
status = "okay";
29+
};
30+
31+
&pwm0 {
32+
status = "okay";
33+
pinctrl-0 = <&pwm0_default>;
34+
pinctrl-names = "default";
35+
};
36+
37+
&pwm1 {
38+
status = "okay";
39+
pinctrl-0 = <&pwm1_default>;
40+
pinctrl-names = "default";
41+
};

0 commit comments

Comments
 (0)