File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 11
11
#include "boosterpack_connector.dtsi"
12
12
#include "lp_em_cc2340r5-pinctrl.dtsi"
13
13
#include <zephyr/dt-bindings/gpio/gpio.h>
14
+ #include <zephyr/dt-bindings/pwm/pwm.h>
14
15
#include <zephyr/dt-bindings/input/input-event-codes.h>
15
16
16
17
/ {
31
32
sw0 = &btn0;
32
33
sw1 = &btn1;
33
34
watchdog0 = &wdt0;
35
+ pwm-led0 = &pwm_green;
36
+ pwm-led1 = &pwm_red;
34
37
};
35
38
36
39
leds {
47
50
};
48
51
};
49
52
53
+ pwmleds {
54
+ compatible = "pwm-leds";
55
+
56
+ pwm_green: pwm_led_0 {
57
+ pwms = <&pwm6 0 1000 PWM_POLARITY_NORMAL>;
58
+ label = "Green PWM LED";
59
+ };
60
+
61
+ pwm_red: pwm_led_1 {
62
+ pwms = <&pwm5 0 1000 PWM_POLARITY_NORMAL>;
63
+ label = "Red PWM LED";
64
+ };
65
+ };
66
+
50
67
keys {
51
68
compatible = "gpio-keys";
52
69
106
123
&adc0_ch8>;
107
124
pinctrl-names = "default";
108
125
};
126
+
127
+ &lgpt1 {
128
+ clk-prescale = <0>;
129
+ status = "okay";
130
+ };
131
+
132
+ &lgpt2 {
133
+ clk-prescale = <0>;
134
+ status = "okay";
135
+ };
136
+
137
+ &pwm5 {
138
+ pinctrl-0 = <&pwm5_default>;
139
+ pinctrl-names = "default";
140
+ status = "okay";
141
+ };
142
+
143
+ &pwm6 {
144
+ pinctrl-0 = <&pwm6_default>;
145
+ pinctrl-names = "default";
146
+ status = "okay";
147
+ };
You can’t perform that action at this time.
0 commit comments