Skip to content

Commit af3f64f

Browse files
etienne-lmskartben
authored andcommitted
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 <[email protected]>
1 parent 39a9fe9 commit af3f64f

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

boards/st/b_l072z_lrwan1/b_l072z_lrwan1.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,22 @@
2222

2323
leds {
2424
compatible = "gpio-leds";
25+
2526
green_led_0: led_0 {
2627
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
2728
label = "Green LED 1";
2829
};
30+
2931
green_led_1: led_1 {
3032
gpios = <&gpiob 5 GPIO_ACTIVE_HIGH>;
3133
label = "Green LED 2";
3234
};
35+
3336
blue_led: led_2 {
3437
gpios = <&gpiob 6 GPIO_ACTIVE_HIGH>;
3538
label = "Blue LED";
3639
};
40+
3741
red_led: led_3 {
3842
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
3943
label = "Red LED";
@@ -42,6 +46,7 @@
4246

4347
gpio_keys {
4448
compatible = "gpio-keys";
49+
4550
user_button: button_0 {
4651
label = "Push button switch";
4752
gpios = <&gpiob 2 GPIO_ACTIVE_LOW>;

boards/st/nucleo_l011k4/nucleo_l011k4.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
leds: leds {
2424
compatible = "gpio-leds";
25+
2526
green_led_2: led_2 {
2627
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
2728
label = "User LD2";
@@ -30,6 +31,7 @@
3031

3132
gpio_keys {
3233
compatible = "gpio-keys";
34+
3335
user_button: button {
3436
label = "User";
3537
gpios = <&gpioa 12 GPIO_ACTIVE_LOW>;

boards/st/nucleo_l031k6/nucleo_l031k6.dts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
leds: leds {
2424
compatible = "gpio-leds";
25+
2526
green_led_2: led_2 {
2627
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
2728
label = "User LD2";

boards/st/nucleo_l053r8/nucleo_l053r8.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
leds: leds {
2626
compatible = "gpio-leds";
27+
2728
green_led_2: led_2 {
2829
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
2930
label = "User LD2";
@@ -32,6 +33,7 @@
3233

3334
gpio_keys {
3435
compatible = "gpio-keys";
36+
3537
user_button: button {
3638
label = "User";
3739
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;

boards/st/nucleo_l073rz/nucleo_l073rz.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
leds: leds {
2727
compatible = "gpio-leds";
28+
2829
green_led_2: led_2 {
2930
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
3031
label = "User LD2";
@@ -33,6 +34,7 @@
3334

3435
gpio_keys {
3536
compatible = "gpio-keys";
37+
3638
user_button: button {
3739
label = "User";
3840
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;

0 commit comments

Comments
 (0)