boards: st: fix STM32L0 boards DTS files coding style
Fix board DTS coding style issues to prevent they spread when a new board is introduced and used this DTS as example start point. Issues addressed from Zephyr devicetree style guidelines [1]: - Insert a single empty line to separate nodes at the same hierarchy level. No functional change. Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1] Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
This commit is contained in:
parent
39a9fe9f59
commit
af3f64fba2
5 changed files with 12 additions and 0 deletions
|
@ -22,18 +22,22 @@
|
|||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
green_led_0: led_0 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
label = "Green LED 1";
|
||||
};
|
||||
|
||||
green_led_1: led_1 {
|
||||
gpios = <&gpiob 5 GPIO_ACTIVE_HIGH>;
|
||||
label = "Green LED 2";
|
||||
};
|
||||
|
||||
blue_led: led_2 {
|
||||
gpios = <&gpiob 6 GPIO_ACTIVE_HIGH>;
|
||||
label = "Blue LED";
|
||||
};
|
||||
|
||||
red_led: led_3 {
|
||||
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
|
||||
label = "Red LED";
|
||||
|
@ -42,6 +46,7 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button_0 {
|
||||
label = "Push button switch";
|
||||
gpios = <&gpiob 2 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
|
||||
label = "User LD2";
|
||||
|
@ -30,6 +31,7 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioa 12 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
|
||||
label = "User LD2";
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
label = "User LD2";
|
||||
|
@ -32,6 +33,7 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
leds: leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
green_led_2: led_2 {
|
||||
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
|
||||
label = "User LD2";
|
||||
|
@ -33,6 +34,7 @@
|
|||
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
|
||||
user_button: button {
|
||||
label = "User";
|
||||
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue