Skip to content

Commit 37d545a

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32L4 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]: - Don’t insert empty lines before a dedenting };. - 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 ea0eace commit 37d545a

File tree

16 files changed

+57
-8
lines changed

16 files changed

+57
-8
lines changed

boards/st/b_l4s5i_iot01a/b_l4s5i_iot01a.dts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727

2828
leds {
2929
compatible = "gpio-leds";
30+
3031
green_led_1: led_1 {
3132
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
3233
label = "User LD1";
3334
};
35+
3436
green_led_2: led_2 {
3537
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
3638
label = "User LD2";
@@ -39,6 +41,7 @@
3941

4042
gpio_keys {
4143
compatible = "gpio-keys";
44+
4245
user_button: button {
4346
label = "User";
4447
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@@ -173,7 +176,6 @@
173176
};
174177

175178
&flash0 {
176-
177179
partitions {
178180
compatible = "fixed-partitions";
179181
#address-cells = <1>;

boards/st/disco_l475_iot1/disco_l475_iot1.dts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727

2828
leds {
2929
compatible = "gpio-leds";
30+
3031
green_led_1: led_1 {
3132
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
3233
label = "User LD1";
3334
};
35+
3436
green_led_2: led_2 {
3537
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
3638
label = "User LD2";
@@ -39,6 +41,7 @@
3941

4042
gpio_keys {
4143
compatible = "gpio-keys";
44+
4245
user_button: button_0 {
4346
label = "User";
4447
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@@ -58,6 +61,7 @@
5861
pwms = <&pwm2 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
5962
label = "green LD1";
6063
};
64+
6165
green_pwm_2: green_led_2 {
6266
pwms = <&pwm15 1 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
6367
label = "green LD2";
@@ -336,7 +340,7 @@ zephyr_udc0: &usbotg_fs {
336340
slot1_partition: partition@0 {
337341
label = "image-1";
338342
reg = <0x00000000 DT_SIZE_K(864)>;
339-
};
343+
};
340344

341345
slot2_partition: partition@d8000 {
342346
label = "image-3";

boards/st/nucleo_l412rb_p/nucleo_l412rb_p.dts

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

2424
leds: leds {
2525
compatible = "gpio-leds";
26+
2627
green_led: led_0 {
2728
gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
2829
label = "User LD4";
@@ -31,6 +32,7 @@
3132

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

boards/st/nucleo_l432kc/nucleo_l432kc.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: led_0 {
2627
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
2728
label = "User LD3";

boards/st/nucleo_l433rc_p/nucleo_l433rc_p.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: led_0 {
2829
gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
2930
label = "User LD4";
@@ -32,6 +33,7 @@
3233

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

boards/st/nucleo_l452re/nucleo_l452re.dts

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

1818
leds: leds {
1919
compatible = "gpio-leds";
20+
2021
green_led: led_0 {
2122
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
2223
label = "User LD2";

boards/st/nucleo_l452re/nucleo_l452re_common.dtsi

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

2525
gpio_keys {
2626
compatible = "gpio-keys";
27+
2728
user_button: button {
2829
label = "User";
2930
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@@ -116,9 +117,8 @@
116117
compatible = "fixed-partitions";
117118
#address-cells = <1>;
118119
#size-cells = <1>;
119-
/*
120-
* Reserve the final 16 KiB for file system partition
121-
*/
120+
121+
/* Reserve the final 16 KiB for file system partition */
122122
storage_partition: partition@7c000 {
123123
label = "storage";
124124
reg = <0x0007c000 0x00004000>;

boards/st/nucleo_l452re/nucleo_l452re_stm32l452xx_p.dts

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

1717
leds: leds {
1818
compatible = "gpio-leds";
19+
1920
green_led: led_0 {
2021
gpios = <&gpiob 13 GPIO_ACTIVE_HIGH>;
2122
label = "User LD2";

boards/st/nucleo_l476rg/nucleo_l476rg.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_l496zg/nucleo_l496zg.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,17 @@
2323

2424
leds: leds {
2525
compatible = "gpio-leds";
26+
2627
green_led_1: led_1 {
2728
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
2829
label = "User LD1";
2930
};
31+
3032
blue_led_2: led_2 {
3133
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
3234
label = "User LD2";
3335
};
36+
3437
red_led_3: led_3 {
3538
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
3639
label = "User LD3";
@@ -47,6 +50,7 @@
4750

4851
gpio_keys {
4952
compatible = "gpio-keys";
53+
5054
user_button: button {
5155
label = "User Button";
5256
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

0 commit comments

Comments
 (0)