boards: arm: nucleo: Add leds label
The nucleo evaluation boards can be enhanced with shields for additional functionality. Flat device tree overlays can be used to configure and support these shields. Regrettably leds can not be simply added due to a missing label. Tag leds with a label. Signed-off-by: Benedikt Spranger <b.spranger@linutronix.de> Reviewed-by: Vasilij Strassheim <v.strassheim@linutronix.de>
This commit is contained in:
parent
63af3c00e9
commit
b5061233bb
54 changed files with 54 additions and 54 deletions
|
@ -21,7 +21,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_4: led_4 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_3: led_3 {
|
||||
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_3: led_3 {
|
||||
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_3: green_led_3 {
|
||||
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
zephyr,canbus = &can1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
zephyr,code-partition = &slot0_partition;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
zephyr,code-partition = &slot0_partition;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
zephyr,canbus = &can2;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,canbus = &can1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
zephyr,canbus = &can1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
zephyr,dtcm = &dtcm;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
zephyr,canbus = &can1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_3: led_3 {
|
||||
gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
};
|
||||
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_4 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
};
|
||||
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_4 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
zephyr,canbus = &fdcan1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_4 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,canbus = &fdcan1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
zephyr,canbus = &fdcan1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_1 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
zephyr,canbus = &fdcan1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
zephyr,itcm = &itcm;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_0: led_0 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
zephyr,canbus = &can1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,canbus = &can1;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
model = "STMicroelectronics STM32L452RE-NUCLEO board";
|
||||
compatible = "st,stm32l452re-nucleo";
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
model = "STMicroelectronics STM32L452RE-P-NUCLEO board";
|
||||
compatible = "st,stm32l452re-nucleo";
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led: led_0 {
|
||||
gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_0: led_0 {
|
||||
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
||||
|
||||
/ {
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
zephyr,code-partition = &slot0_partition;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
blue_led_1: led_0 {
|
||||
gpios = <&gpiob 5 GPIO_ACTIVE_HIGH>;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
zephyr,flash = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
blue_led_1: led_1 {
|
||||
gpios = <&gpiob 4 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
zephyr,code-partition = &flash0;
|
||||
};
|
||||
|
||||
leds {
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
blue_led_1: led_0 {
|
||||
gpios = <&gpiob 15 GPIO_ACTIVE_HIGH>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue