Skip to content

Commit 0de980e

Browse files
committed
boards: stm32mp157c_dk2: Add led and button to dts
Add led and button to board description to enable basic gpio tests. Signed-off-by: Erwan Gouriou <[email protected]>
1 parent a6d2ed2 commit 0de980e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

boards/arm/stm32mp157c_dk2/stm32mp157c_dk2.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,28 @@
2424
zephyr,flash = &retram;
2525
zephyr,sram = &mcusram;
2626
};
27+
28+
leds {
29+
compatible = "gpio-leds";
30+
red_led_1: led_1 {
31+
gpios = <&gpioh 7 GPIO_ACTIVE_HIGH>;
32+
label = "LD7";
33+
};
34+
};
35+
36+
gpio_keys {
37+
compatible = "gpio-keys";
38+
user_button: button {
39+
label = "User 1";
40+
gpios = <&gpioa 14 GPIO_ACTIVE_LOW>;
41+
};
42+
};
43+
44+
aliases {
45+
led0 = &red_led_1;
46+
sw0 = &user_button;
47+
};
48+
2749
};
2850

2951
&spi4{

0 commit comments

Comments
 (0)