Skip to content

Commit d9e2b0c

Browse files
Ayush1325carlescufi
authored andcommitted
samples: blinky_pwm: add overlay for bcf
- Add and test pwm for beagleconnect freedom Signed-off-by: Ayush Singh <[email protected]>
1 parent 02d71a1 commit d9e2b0c

File tree

1 file changed

+37
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)