We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03b075d commit 8df1591Copy full SHA for 8df1591
boards/nxp/frdm_mcxw71/frdm_mcxw71.dts
@@ -7,12 +7,14 @@
7
8
#include <nxp/nxp_mcxw71.dtsi>
9
#include "frdm_mcxw71-pinctrl.dtsi"
10
+#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12
/ {
13
model = "NXP FRDM-MCXW71 board";
14
15
aliases {
16
led0 = &blue_led;
17
+ sw0 = &user_button_0;
18
blue-pwm-led = &blue_pwm_led;
19
green-pwm-led = &green_pwm_led;
20
red-pwm-led = &red_pwm_led;
@@ -49,6 +51,16 @@
49
51
pwms = <&tpm0 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
50
52
};
53
54
+
55
+ gpio_keys {
56
+ compatible = "gpio-keys";
57
+ user_button_0: button_0 {
58
+ label = "User SW2";
59
+ gpios = <&gpioc 6 GPIO_ACTIVE_LOW>;
60
+ zephyr,code = <INPUT_KEY_0>;
61
+ status = "okay";
62
+ };
63
64
65
66
&vref {
0 commit comments