Skip to content

Commit 97fabef

Browse files
CkovMknashif
authored andcommitted
board: mimx93_evk_a55: add led and button definitions and alias
Tested with zephyr example project "samples/basic/blinky" and "samples/ basic/button". These examples can run out-of-the-box. No modification needed. for "samples/basic/blinky", the red LED inside RGB LED on board will blink every 2 seconds. for "samples/basic/button", the red LED inside RGB LED on board will turn on once BTN1 on board is pressed down. An log will be present in uart console as well. Signed-off-by: Chekhov Ma <[email protected]>
1 parent 969792b commit 97fabef

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

boards/arm64/mimx93_evk/mimx93_evk_a55.dts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,41 @@
2828
sram0: memory@c0000000 {
2929
reg = <0xc0000000 DT_SIZE_M(1)>;
3030
};
31+
32+
aliases {
33+
led0 = &led_r;
34+
sw0 = &btn_1;
35+
};
36+
37+
leds {
38+
compatible = "gpio-leds";
39+
led_r: led_r {
40+
label = "LED_R";
41+
gpios = <&gpio2 13 GPIO_ACTIVE_HIGH>;
42+
};
43+
led_g: led_g {
44+
label = "LED_G";
45+
gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
46+
};
47+
led_b: led_b {
48+
label = "LED_B";
49+
gpios = <&gpio2 12 GPIO_ACTIVE_HIGH>;
50+
};
51+
};
52+
53+
keys {
54+
compatible = "gpio-keys";
55+
56+
btn_1: btn_1{
57+
label = "BTN1";
58+
gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
59+
};
60+
61+
btn_2: btn_2{
62+
label = "BTN2";
63+
gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
64+
};
65+
};
3166
};
3267

3368
&lpuart1 {

0 commit comments

Comments
 (0)