File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
boards/aithinker/ai_wb2_12f Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 7
7
/dts-v1/;
8
8
9
9
#include <bflb/bl602.dtsi>
10
+ #include <zephyr/dt-bindings/gpio/gpio.h>
11
+ #include <zephyr/dt-bindings/input/input-event-codes.h>
10
12
#include "ai_wb2_12f-pinctrl.dtsi"
11
13
12
14
/ {
22
24
zephyr,console = &uart0;
23
25
zephyr,shell-uart = &uart0;
24
26
};
27
+
28
+ aliases {
29
+ led0 = &blue_led;
30
+ sw0 = &button_0;
31
+ };
32
+
33
+ leds {
34
+ compatible = "gpio-leds";
35
+
36
+ blue_led: led_0 {
37
+ gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
38
+ label = "Blue - LED0";
39
+ };
40
+
41
+ green_led: led_1 {
42
+ gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
43
+ label = "Green - LED1";
44
+ };
45
+
46
+ red_led: led_2 {
47
+ gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
48
+ label = "Red - LED2";
49
+ };
50
+ };
51
+
52
+ buttons {
53
+ compatible = "gpio-keys";
54
+ button_0: sw0 {
55
+ gpios = <&gpio0 8 (GPIO_ACTIVE_HIGH)>;
56
+ zephyr,code = <INPUT_KEY_0>;
57
+ };
58
+ };
25
59
};
26
60
27
61
&cpu0 {
63
97
pinctrl-1 = <&uart0_sleep>;
64
98
pinctrl-names = "default", "sleep";
65
99
};
100
+
101
+ &gpio0 {
102
+ status = "okay";
103
+ };
You can’t perform that action at this time.
0 commit comments