Skip to content

Commit b6a3c0c

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32F3 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]: - Indent with tabs. - 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 41129ab commit b6a3c0c

File tree

6 files changed

+20
-2
lines changed

6 files changed

+20
-2
lines changed

boards/st/nucleo_f302r8/nucleo_f302r8.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 = <&gpiob 13 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_f303k8/nucleo_f303k8.dts

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

2323
leds: leds {
2424
compatible = "gpio-leds";
25+
2526
green_led_3: green_led_3 {
2627
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
2728
label = "LD3";
2829
};
2930
};
3031
pwmleds {
3132
compatible = "pwm-leds";
33+
3234
green_pwm_led: green_pwm_led {
3335
pwms = <&pwm2 2 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
3436
};

boards/st/nucleo_f303re/nucleo_f303re.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>;

boards/st/nucleo_f334r8/nucleo_f334r8.dts

Lines changed: 2 additions & 1 deletion
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>;
@@ -127,7 +129,6 @@
127129
};
128130

129131
&flash0 {
130-
131132
partitions {
132133
compatible = "fixed-partitions";
133134
#address-cells = <1>;

boards/st/stm32373c_eval/stm32373c_eval.dts

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

2323
leds {
2424
compatible = "gpio-leds";
25+
2526
green_led_2: led_2 {
2627
gpios = <&gpioc 1 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 = "Key";
3537
gpios = <&gpioa 2 GPIO_ACTIVE_LOW>;

boards/st/stm32f3_disco/stm32f3_disco.dts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,42 @@
2323

2424
leds {
2525
compatible = "gpio-leds";
26+
2627
red_led_3: led_3 {
2728
gpios = <&gpioe 9 GPIO_ACTIVE_HIGH>;
2829
label = "User LD3";
2930
};
31+
3032
blue_led_4: led_4 {
3133
gpios = <&gpioe 8 GPIO_ACTIVE_HIGH>;
3234
label = "User LD4";
3335
};
36+
3437
orange_led_5: led_5 {
3538
gpios = <&gpioe 10 GPIO_ACTIVE_HIGH>;
3639
label = "User LD5";
3740
};
41+
3842
green_led_6: led_6 {
3943
gpios = <&gpioe 15 GPIO_ACTIVE_HIGH>;
4044
label = "User LD6";
4145
};
46+
4247
green_led_7: led_7 {
4348
gpios = <&gpioe 11 GPIO_ACTIVE_HIGH>;
4449
label = "User LD7";
4550
};
51+
4652
orange_led_8: led_8 {
4753
gpios = <&gpioe 14 GPIO_ACTIVE_HIGH>;
4854
label = "User LD8";
4955
};
56+
5057
blue_led_9: led_9 {
5158
gpios = <&gpioe 12 GPIO_ACTIVE_HIGH>;
5259
label = "User LD9";
5360
};
61+
5462
red_led_10: led_10 {
5563
gpios = <&gpioe 13 GPIO_ACTIVE_HIGH>;
5664
label = "User LD10";
@@ -59,6 +67,7 @@
5967

6068
gpio_keys {
6169
compatible = "gpio-keys";
70+
6271
user_button: button {
6372
label = "User";
6473
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
@@ -188,7 +197,6 @@ zephyr_udc0: &usb {
188197
};
189198

190199
&flash0 {
191-
192200
partitions {
193201
compatible = "fixed-partitions";
194202
#address-cells = <1>;
@@ -209,6 +217,7 @@ zephyr_udc0: &usb {
209217
&timers1 {
210218
st,prescaler = <10000>;
211219
status = "okay";
220+
212221
pwm1: pwm {
213222
status = "okay";
214223
pinctrl-0 = <&tim1_ch1_pa8>;

0 commit comments

Comments
 (0)