boards: stm32: add button and leds gpio definitions
Provide led and button nodes to stm32 based boards. Provide matching zephyr aliases. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
4fe3a9776f
commit
7c6cf201e0
36 changed files with 1080 additions and 4 deletions
|
@ -16,6 +16,34 @@
|
|||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_0: led@0 {
|
||||
gpios = <&gpioc 13 GPIO_INT_ACTIVE_HIGH>;
|
||||
label = "USR0 LED";
|
||||
};
|
||||
green_led_1: led@1 {
|
||||
gpios = <&gpiob 2 GPIO_INT_ACTIVE_HIGH>;
|
||||
label = "USR1 LED";
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
user_button: button@0 {
|
||||
label = "User";
|
||||
gpios = <&gpioa 2 GPIO_INT_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
|
||||
aliases {
|
||||
led0 = &green_led_0;
|
||||
led1 = &green_led_1;
|
||||
sw0 = &user_button;
|
||||
};
|
||||
};
|
||||
|
||||
&usart1 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue