Skip to content

Commit ea0eace

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32L1 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 af3f64f commit ea0eace

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

boards/st/nucleo_l152re/nucleo_l152re.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_0: led_0 {
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/stm32l1_disco/stm32l152c_disco.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222

2323
leds {
2424
compatible = "gpio-leds";
25+
2526
green_led: ld3 {
2627
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
2728
label = "User LD3";
2829
};
30+
2931
blue_led: ld4 {
3032
gpios = <&gpiob 6 GPIO_ACTIVE_HIGH>;
3133
label = "User LD4";
@@ -34,6 +36,7 @@
3436

3537
gpio_keys {
3638
compatible = "gpio-keys";
39+
3740
user_button: button {
3841
label = "User";
3942
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;

boards/st/stm32l1_disco/stm32l1_disco.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@
2222

2323
leds {
2424
compatible = "gpio-leds";
25+
2526
green_led: ld3 {
2627
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
2728
label = "User LD3";
2829
};
30+
2931
blue_led: ld4 {
3032
gpios = <&gpiob 6 GPIO_ACTIVE_HIGH>;
3133
label = "User LD4";
@@ -34,6 +36,7 @@
3436

3537
gpio_keys {
3638
compatible = "gpio-keys";
39+
3740
user_button: button {
3841
label = "User";
3942
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;

0 commit comments

Comments
 (0)