File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 11
11
#include <ti/mspm0/g/mspm0g1x0x_g3x0x-pinctrl.dtsi>
12
12
#include <zephyr/dt-bindings/clock/mspm0_clock.h>
13
13
#include <zephyr/dt-bindings/gpio/gpio.h>
14
+ #include <zephyr/dt-bindings/pwm/pwm.h>
14
15
15
16
/ {
16
17
model = "TI LP_MSPM0G3507/MSPM0G3507";
17
18
compatible = "ti,mspm0g3507";
18
19
19
20
aliases {
20
21
led0 = &led0;
22
+ pwm-led0 = &pwm_led0;
21
23
};
22
24
23
25
chosen {
36
38
label = "Blue LED";
37
39
};
38
40
};
41
+
42
+ pwm_leds {
43
+ compatible = "pwm-leds";
44
+
45
+ pwm_led0: pwm_led0 {
46
+ pwms = <&pwma0 0 PWM_MSEC(100) PWM_POLARITY_NORMAL>;
47
+ };
48
+ };
39
49
};
40
50
41
51
&cpu0 {
105
115
pinctrl-0 = <&uart0_tx_pa10 &uart0_rx_pa11>;
106
116
pinctrl-names = "default";
107
117
};
118
+
119
+ &pwma0 {
120
+ status = "okay";
121
+
122
+ pinctrl-0 = <&tima0_ccp0_pa0>;
123
+ pinctrl-names = "default";
124
+ ti,cc-index = <0>;
125
+ ti,pwm-mode = "EDGE_ALIGN";
126
+ ti,period = <1000>;
127
+ };
You can’t perform that action at this time.
0 commit comments