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:
Erwan Gouriou 2017-11-24 10:08:03 +01:00 committed by Kumar Gala
parent 4fe3a9776f
commit 7c6cf201e0
36 changed files with 1080 additions and 4 deletions

View file

@ -16,6 +16,34 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; 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 { &usart1 {

View file

@ -16,6 +16,39 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpiod 2 GPIO_INT_ACTIVE_HIGH>;
label = "USR1 LED";
};
green_led_2: led@1 {
gpios = <&gpioa 15 GPIO_INT_ACTIVE_HIGH>;
label = "USR2 LED";
};
bt_blue_led: led@2 {
gpios = <&gpioa 15 GPIO_INT_ACTIVE_HIGH>;
label = "BT LED";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpiob 2 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
led1 = &green_led_2;
led2 = &bt_blue_led;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,44 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_0: led@0 {
gpios = <&gpiob 12 GPIO_INT_ACTIVE_HIGH>;
label = "USR0 LED";
};
green_led_1: led@1 {
gpios = <&gpiob 13 GPIO_INT_ACTIVE_HIGH>;
label = "USR1 LED";
};
green_led_2: led@2 {
gpios = <&gpiob 14 GPIO_INT_ACTIVE_HIGH>;
label = "USR2 LED";
};
green_led_3: led@3 {
gpios = <&gpiob 15 GPIO_INT_ACTIVE_HIGH>;
label = "USR3 LED";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpiob 2 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_0;
led1 = &green_led_1;
led2 = &green_led_2;
led3 = &green_led_3;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,34 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD1";
};
green_led_2: led@1 {
gpios = <&gpiob 14 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
led1 = &green_led_1;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart2 { &usart2 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,39 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpiob 0 GPIO_INT_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led_1: led@1 {
gpios = <&gpiob 7 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_1: led@2 {
gpios = <&gpiob 14 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
led1 = &blue_led_1;
led2 = &red_led_1;
sw0 = &user_button;
};
}; };
&usart3 { &usart3 {

View file

@ -16,6 +16,39 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpiob 0 GPIO_INT_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led_1: led@1 {
gpios = <&gpiob 7 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_1: led@2 {
gpios = <&gpiob 14 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
led1 = &blue_led_1;
led2 = &red_led_1;
sw0 = &user_button;
};
}; };
&usart3 { &usart3 {

View file

@ -16,6 +16,39 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpiob 0 GPIO_INT_ACTIVE_HIGH>;
label = "User LD1";
};
blue_led_1: led@1 {
gpios = <&gpiob 7 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_1: led@2 {
gpios = <&gpiob 14 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
led1 = &blue_led_1;
led2 = &red_led_1;
sw0 = &user_button;
};
}; };
&i2c1 { &i2c1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {
@ -36,4 +59,3 @@
status = "ok"; status = "ok";
clock-frequency = <I2C_BITRATE_FAST>; clock-frequency = <I2C_BITRATE_FAST>;
}; };

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -17,6 +17,29 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,ccm = &ccm0; zephyr,ccm = &ccm0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpioc 13 GPIO_INT_ACTIVE_HIGH>;
label = "LED1";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "Key";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {
@ -39,4 +62,3 @@
pinctrl-names = "default"; pinctrl-names = "default";
status = "ok"; status = "ok";
}; };

View file

@ -17,6 +17,29 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,ccm = &ccm0; zephyr,ccm = &ccm0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioa 0 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart2 { &usart2 {
@ -39,4 +62,3 @@
pinctrl-names = "default"; pinctrl-names = "default";
status = "ok"; status = "ok";
}; };

View file

@ -17,6 +17,29 @@
zephyr,flash = &flash0; zephyr,flash = &flash0;
zephyr,ccm = &ccm0; zephyr,ccm = &ccm0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpioc 12 GPIO_INT_ACTIVE_HIGH>;
label = "LED1";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "Key";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
sw0 = &user_button;
};
}; };
&usart2 { &usart2 {
@ -25,4 +48,3 @@
pinctrl-names = "default"; pinctrl-names = "default";
status = "ok"; status = "ok";
}; };

View file

@ -16,6 +16,33 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpioa 5 GPIO_INT_ACTIVE_HIGH>;
label = "LED1";
};
yellow_led_2: led@1 {
gpios = <&gpioa 1 GPIO_INT_ACTIVE_HIGH>;
label = "LED2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "Key";
gpios = <&gpioc 9 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpiod 13 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpiob 9 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart2 { &usart2 {

View file

@ -16,6 +16,29 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpioc 1 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "Key";
gpios = <&gpioa 2 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &user_button;
};
}; };
&usart2 { &usart2 {

View file

@ -16,6 +16,18 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
led: led@0 {
gpios = <&gpiob 12 GPIO_INT_ACTIVE_HIGH>;
label = "LD";
};
};
aliases {
led0 = &led;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,65 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpiod 8 GPIO_INT_ACTIVE_HIGH>;
label = "User LD1";
};
orange_led_2: led@1 {
gpios = <&gpiod 9 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_3: led@2 {
gpios = <&gpiod 10 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led@3 {
gpios = <&gpiod 11 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
tamper: tamper@0 {
label = "tamper button";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
joy_sel: joystick@1 {
label = "joystick selection";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
joy_down: joystick@2 {
label = "joystick down";
gpios = <&gpiof 10 GPIO_INT_ACTIVE_LOW>;
};
joy_up: joystick@3 {
label = "joystick up";
gpios = <&gpiof 9 GPIO_INT_ACTIVE_LOW>;
};
joy_left: joystick@4 {
label = "joystick left";
gpios = <&gpiof 2 GPIO_INT_ACTIVE_LOW>;
};
joy_right: joystick@5 {
label = "joystick right";
gpios = <&gpioe 3 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
led1 = &orange_led_2;
led2 = &red_led_3;
led3 = &blue_led_4;
sw0 = &joy_sel;
};
}; };
&usart2 { &usart2 {

View file

@ -16,6 +16,44 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
red_up_led_3: led@0 {
gpios = <&gpioc 6 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
yellow_left_4: led@1 {
gpios = <&gpioc 8 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
green_right_led_5: led@2 {
gpios = <&gpioc 9 GPIO_INT_ACTIVE_HIGH>;
label = "User LD5";
};
blue_low_led_6: led@3 {
gpios = <&gpioc 7 GPIO_INT_ACTIVE_HIGH>;
label = "User LD6";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &red_up_led_3;
led1 = &yellow_left_4;
led2 = &green_right_led_5;
led3 = &blue_low_led_6;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,34 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_3: led@0 {
gpios = <&gpioc 9 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led@1 {
gpios = <&gpioc 8 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "Key";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_3;
led1 = &blue_led_4;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,57 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
red_led_3: led@0 {
gpios = <&gpioe 9 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led@1 {
gpios = <&gpioe 8 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
orange_led_5: led@2 {
gpios = <&gpioe 10 GPIO_INT_ACTIVE_HIGH>;
label = "User LD5";
};
green_led_6: led@3 {
gpios = <&gpioe 15 GPIO_INT_ACTIVE_HIGH>;
label = "User LD6";
};
green_led_7: led@4 {
gpios = <&gpiod 11 GPIO_INT_ACTIVE_HIGH>;
label = "User LD7";
};
orange_led_8: led@5 {
gpios = <&gpioe 14 GPIO_INT_ACTIVE_HIGH>;
label = "User LD8";
};
blue_led_9: led@6 {
gpios = <&gpioe 12 GPIO_INT_ACTIVE_HIGH>;
label = "User LD9";
};
red_led_10: led@7 {
gpios = <&gpioe 13 GPIO_INT_ACTIVE_HIGH>;
label = "User LD10";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_6;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,44 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
orange_led_3: led@0 {
gpios = <&gpiod 13 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
green_led_4: led@1 {
gpios = <&gpiod 12 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
red_led_5: led@2 {
gpios = <&gpiod 14 GPIO_INT_ACTIVE_HIGH>;
label = "User LD5";
};
blue_led_6: led@3 {
gpios = <&gpiod 15 GPIO_INT_ACTIVE_HIGH>;
label = "User LD6";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &orange_led_3;
led1 = &green_led_4;
led2 = &red_led_5;
led3 = &blue_led_6;
sw0 = &user_button;
};
}; };
&usart2 { &usart2 {

View file

@ -16,6 +16,60 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpioe 0 GPIO_INT_ACTIVE_HIGH>;
label = "User LD1";
};
orange_led_2: led@1 {
gpios = <&gpioe 1 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_3: led@2 {
gpios = <&gpioe 2 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led@3 {
gpios = <&gpioe 4 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
joy_sel: joystick@0 {
label = "joystick selection";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
joy_down: joystick@1 {
label = "joystick down";
gpios = <&gpiog 1 GPIO_INT_ACTIVE_LOW>;
};
joy_up: joystick@2 {
label = "joystick up";
gpios = <&gpiog 0 GPIO_INT_ACTIVE_LOW>;
};
joy_left: joystick@3 {
label = "joystick left";
gpios = <&gpiof 15 GPIO_INT_ACTIVE_LOW>;
};
joy_right: joystick@4 {
label = "joystick right";
gpios = <&gpiof 14 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
led1 = &orange_led_2;
led2 = &red_led_3;
led3 = &blue_led_4;
sw0 = &joy_sel;
};
}; };
&usart2 { &usart2 {

View file

@ -16,6 +16,33 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
orange_led_3: led@0 {
gpios = <&gpiog 13 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
green_led_4: led@1 {
gpios = <&gpiog 14 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_4;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -16,6 +16,41 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_1: led@0 {
gpios = <&gpiog 6 GPIO_INT_ACTIVE_HIGH>;
label = "User LD1";
};
orange_led_2: led@1 {
gpios = <&gpiod 4 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
red_led_3: led@2 {
gpios = <&gpiod 5 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
blue_led_4: led@3 {
gpios = <&gpiok 3 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "User";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_1;
sw0 = &user_button;
};
}; };
&usart3 { &usart3 {

View file

@ -16,6 +16,41 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
orange_led_3: led@0 {
gpios = <&gpiod 13 GPIO_INT_ACTIVE_HIGH>;
label = "User LD3";
};
green_led_4: led@1 {
gpios = <&gpiod 12 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
red_led_5: led@2 {
gpios = <&gpiod 14 GPIO_INT_ACTIVE_HIGH>;
label = "User LD5";
};
blue_led_6: led@3 {
gpios = <&gpiod 15 GPIO_INT_ACTIVE_HIGH>;
label = "User LD6";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
user_button: button@0 {
label = "Key";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_4;
sw0 = &user_button;
};
}; };
&usart1 { &usart1 {

View file

@ -20,6 +20,49 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_4: led@0 {
gpios = <&gpiob 2 GPIO_INT_ACTIVE_HIGH>;
label = "User LD4";
};
green_led_5: led@1 {
gpios = <&gpioe 8 GPIO_INT_ACTIVE_HIGH>;
label = "User LD5";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
joy_center: joystick@0 {
label = "joystick center";
gpios = <&gpioa 0 GPIO_INT_ACTIVE_LOW>;
};
joy_down: joystick@1 {
label = "joystick down";
gpios = <&gpioa 5 GPIO_INT_ACTIVE_LOW>;
};
joy_up: joystick@2 {
label = "joystick up";
gpios = <&gpioa 3 GPIO_INT_ACTIVE_LOW>;
};
joy_left: joystick@3 {
label = "joystick left";
gpios = <&gpioa 1 GPIO_INT_ACTIVE_LOW>;
};
joy_right: joystick@4 {
label = "joystick right";
gpios = <&gpioa 2 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_4;
sw0 = &joy_center;
};
}; };
&usart2 { &usart2 {

View file

@ -16,6 +16,45 @@
zephyr,sram = &sram0; zephyr,sram = &sram0;
zephyr,flash = &flash0; zephyr,flash = &flash0;
}; };
leds {
compatible = "gpio-leds";
green_led_2: led@0 {
gpios = <&gpiob 13 GPIO_INT_ACTIVE_HIGH>;
label = "User LD2";
};
};
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
joy_sel: joystick@0 {
label = "joystick select";
gpios = <&gpioc 13 GPIO_INT_ACTIVE_LOW>;
};
joy_down: joystick@1 {
label = "joystick down";
gpios = <&gpioi 10 GPIO_INT_ACTIVE_LOW>;
};
joy_up: joystick@2 {
label = "joystick up";
gpios = <&gpioi 8 GPIO_INT_ACTIVE_LOW>;
};
joy_left: joystick@3 {
label = "joystick left";
gpios = <&gpioi 9 GPIO_INT_ACTIVE_LOW>;
};
joy_right: joystick@4 {
label = "joystick right";
gpios = <&gpiof 11 GPIO_INT_ACTIVE_LOW>;
};
};
aliases {
led0 = &green_led_2;
sw0 = &joy_sel;
};
}; };
&usart1 { &usart1 {