File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
boards/sparkfun/thing_plus_matter_mgm240p Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 29
29
};
30
30
};
31
31
32
+ timer0_default: timer0_default {
33
+ group0 {
34
+ pins = <TIMER0_CC0_PA8>;
35
+ drive-push-pull;
36
+ output-high;
37
+ };
38
+ };
39
+
32
40
/* configuration for uart0 device, default state */
33
41
usart0_default: usart0_default {
34
42
group0 {
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (c) 2024 Daikin Comfort Technologies North America, Inc.
3
3
* Copyright (c) 2020 TriaGnoSys GmbH
4
+ * Copyright (c) 2025 Silicon Laboratories Inc.
4
5
*
5
6
* SPDX-License-Identifier: Apache-2.0
6
7
*/
7
8
8
9
/dts-v1/;
9
10
#include <silabs/xg24/mgm240pb32vna.dtsi>
11
+ #include <zephyr/dt-bindings/pwm/pwm.h>
10
12
#include "sparkfun_thing_plus_matter_mgm240p-pinctrl.dtsi"
11
13
#include <zephyr/dt-bindings/input/input-event-codes.h>
12
14
#include <zephyr/dt-bindings/regulator/silabs_dcdc.h>
26
28
27
29
aliases {
28
30
led0 = &blue_led;
31
+ pwm-led0 = &blue_pwm_led;
29
32
spi0 = &eusart1;
30
33
watchdog0 = &wdog0;
31
34
};
38
41
};
39
42
};
40
43
44
+ pwmleds {
45
+ compatible = "pwm-leds";
46
+
47
+ blue_pwm_led: pwm_led_0 {
48
+ pwms = <&timer0_pwm 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
49
+ label = "blue";
50
+ };
51
+ };
52
+
41
53
wake_up_trigger: gpio-wake-up {
42
54
compatible = "silabs,gecko-wake-up-trigger";
43
55
gpios = <&gpioa 5 GPIO_ACTIVE_LOW>;
44
56
};
45
57
};
46
58
59
+ &timer0 {
60
+ status = "okay";
61
+
62
+ timer0_pwm: pwm {
63
+ pinctrl-0 = <&timer0_default>;
64
+ pinctrl-names = "default";
65
+ status = "okay";
66
+ };
67
+ };
68
+
47
69
&cpu0 {
48
70
clock-frequency = <78000000>;
49
71
};
You can’t perform that action at this time.
0 commit comments