File tree Expand file tree Collapse file tree 3 files changed +62
-0
lines changed
tests/drivers/gpio/gpio_basic_api/boards Expand file tree Collapse file tree 3 files changed +62
-0
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#include <nxp/nxp_mimx91.dtsi>
10
10
#include "imx91_evk-pinctrl.dtsi"
11
+ #include <zephyr/dt-bindings/input/input-event-codes.h>
11
12
12
13
/ {
13
14
model = "NXP i.MX91 A55";
24
25
reg = <0x80000000 DT_SIZE_M(1)>;
25
26
};
26
27
28
+ aliases {
29
+ led0 = &led_r;
30
+ led1 = &led_g;
31
+ sw0 = &btn_1;
32
+ };
33
+
34
+ leds {
35
+ compatible = "gpio-leds";
36
+ led_r: led_r {
37
+ label = "LED_R";
38
+ gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
39
+ };
40
+ led_g: led_g {
41
+ label = "LED_G";
42
+ gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
43
+ };
44
+ led_b: led_b {
45
+ label = "LED_B";
46
+ gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
47
+ };
48
+ };
49
+
50
+ keys {
51
+ compatible = "gpio-keys";
52
+
53
+ btn_1: btn_1{
54
+ label = "BTN1";
55
+ gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
56
+ zephyr,code = <INPUT_KEY_0>;
57
+ };
58
+
59
+ btn_2: btn_2{
60
+ label = "BTN2";
61
+ gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
62
+ zephyr,code = <INPUT_KEY_1>;
63
+ };
64
+ };
65
+
27
66
};
28
67
29
68
&lpuart1 {
32
71
pinctrl-0 = <&uart1_default>;
33
72
pinctrl-names = "default";
34
73
};
74
+
75
+ &gpio2{
76
+ status = "okay";
77
+ };
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ toolchain:
13
13
- cross-compile
14
14
ram : 1024
15
15
supported :
16
+ - gpio
16
17
- uart
17
18
vendor : nxp
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2025 NXP
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ /{
8
+ resources {
9
+ compatible = "test-gpio-basic-api";
10
+ /*
11
+ * Use connector J1001 Pin 8 which connect to EXP_GPIO_IO14 as input
12
+ * GPIO, and connector J1001 Pin 33 which connect to EXP_GPIO_IO13 as
13
+ * output GPIO, connect these two pins with a Dupont Line.
14
+ */
15
+ out-gpios = <&gpio2 13 0>;
16
+ in-gpios = <&gpio2 14 0>;
17
+ };
18
+ };
You can’t perform that action at this time.
0 commit comments