File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
boards/silabs/dev_kits/xg22_ek2710a Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 31
31
};
32
32
};
33
33
34
+ timer0_default: timer0_default {
35
+ group0 {
36
+ pins = <TIMER0_CC0_PA4>;
37
+ drive-push-pull;
38
+ output-high;
39
+ };
40
+ };
41
+
34
42
usart1_default: usart1_default {
35
43
group0 {
36
44
pins = <USART1_TX_PA5>;
Original file line number Diff line number Diff line change 8
8
#include <silabs/xg22/efr32mg22e224f512im40.dtsi>
9
9
#include <zephyr/dt-bindings/input/input-event-codes.h>
10
10
#include <zephyr/dt-bindings/regulator/silabs_dcdc.h>
11
+ #include <zephyr/dt-bindings/pwm/pwm.h>
11
12
#include "xg22_ek2710a-pinctrl.dtsi"
12
13
13
14
/ {
26
27
27
28
aliases {
28
29
led0 = &led0;
30
+ pwm-led0 = &pwm_led0;
29
31
sw0 = &button0;
30
32
watchdog0 = &wdog0;
31
33
42
44
};
43
45
};
44
46
47
+ pwmleds {
48
+ compatible = "pwm-leds";
49
+ pwm_led0: pwm_led_0 {
50
+ pwms = <&timer0_pwm 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
51
+ };
52
+ };
53
+
45
54
buttons {
46
55
compatible = "gpio-keys";
47
56
52
61
};
53
62
};
54
63
64
+ &timer0 {
65
+ status = "okay";
66
+
67
+ timer0_pwm: pwm {
68
+ pinctrl-0 = <&timer0_default>;
69
+ pinctrl-names = "default";
70
+ status = "okay";
71
+ };
72
+ };
73
+
55
74
&cpu0 {
56
75
clock-frequency = <76800000>;
57
76
};
You can’t perform that action at this time.
0 commit comments