File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (c) 2025 Pete Johanson
3
+ * Copyright (c) 2025 Silicon Laboratories Inc.
3
4
*
4
5
* SPDX-License-Identifier: Apache-2.0
5
6
*/
56
57
bias-pull-up;
57
58
};
58
59
};
60
+
61
+ timer0_default: timer0_default {
62
+ group0 {
63
+ pins = <TIMER0_CC0_PA7>;
64
+ drive-push-pull;
65
+ output-high;
66
+ };
67
+ };
59
68
};
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (c) 2025 Pete Johanson
3
+ * Copyright (c) 2025 Silicon Laboratories Inc.
3
4
*
4
5
* SPDX-License-Identifier: Apache-2.0
5
6
*/
6
7
7
8
/dts-v1/;
8
9
#include <silabs/xg24/efr32mg24b220f1536im48.dtsi>
10
+ #include <zephyr/dt-bindings/pwm/pwm.h>
9
11
#include "xiao_mg24-pinctrl.dtsi"
10
12
#include "seeed_xiao_connector.dtsi"
11
13
26
28
/* These aliases are provided for compatibility with samples */
27
29
aliases {
28
30
led0 = &led0;
31
+ pwm-led0 = &pwm_led0;
29
32
watchdog0 = &wdog0;
30
33
};
31
34
37
40
label = "LED 0";
38
41
};
39
42
};
43
+
44
+ pwmleds {
45
+ compatible = "pwm-leds";
46
+
47
+ pwm_led0: pwm_led_0 {
48
+ pwms = <&timer0_pwm 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
49
+ label = "PWM LED 0";
50
+ };
51
+ };
52
+ };
53
+
54
+ &timer0 {
55
+ status = "okay";
56
+
57
+ timer0_pwm: pwm {
58
+ pinctrl-0 = <&timer0_default>;
59
+ pinctrl-names = "default";
60
+ status = "okay";
61
+ };
40
62
};
41
63
42
64
&cpu0 {
You can’t perform that action at this time.
0 commit comments