Skip to content

Commit c865aa5

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32F0 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 8f02dc5 commit c865aa5

File tree

9 files changed

+32
-1
lines changed

9 files changed

+32
-1
lines changed

boards/st/nucleo_f030r8/nucleo_f030r8.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_f031k6/nucleo_f031k6.dts

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

2222
leds: leds {
2323
compatible = "gpio-leds";
24+
2425
green_led_3: led_3 {
2526
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
2627
label = "User LD3";
@@ -29,6 +30,7 @@
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_f042k6/nucleo_f042k6.dts

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

2222
leds: leds {
2323
compatible = "gpio-leds";
24+
2425
green_led_3: led_3 {
2526
gpios = <&gpiob 3 GPIO_ACTIVE_HIGH>;
2627
label = "User LD3";
@@ -29,6 +30,7 @@
2930

3031
pwmleds {
3132
compatible = "pwm-leds";
33+
3234
green_pwm_led: green_pwm_led {
3335
pwms = <&pwm3 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
3436
};

boards/st/nucleo_f070rb/nucleo_f070rb.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_f072rb/nucleo_f072rb.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_f091rc/nucleo_f091rc.dts

Lines changed: 2 additions & 1 deletion
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>;
@@ -142,7 +144,6 @@
142144
};
143145

144146
&flash0 {
145-
146147
partitions {
147148
compatible = "fixed-partitions";
148149
#address-cells = <1>;

boards/st/stm32f072_eval/stm32f072_eval.dts

Lines changed: 10 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_1: led_1 {
2627
gpios = <&gpiod 8 GPIO_ACTIVE_HIGH>;
2728
label = "User LD1";
2829
};
30+
2931
orange_led_2: led_2 {
3032
gpios = <&gpiod 9 GPIO_ACTIVE_HIGH>;
3133
label = "User LD2";
3234
};
35+
3336
red_led_3: led_3 {
3437
gpios = <&gpiod 10 GPIO_ACTIVE_HIGH>;
3538
label = "User LD3";
3639
};
40+
3741
blue_led_4: led_4 {
3842
gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
3943
label = "User LD4";
@@ -42,31 +46,37 @@
4246

4347
gpio_keys {
4448
compatible = "gpio-keys";
49+
4550
tamper: tamper_button {
4651
label = "tamper button";
4752
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
4853
zephyr,code = <INPUT_KEY_0>;
4954
};
55+
5056
joy_sel: joystick_selection {
5157
label = "joystick selection";
5258
gpios = <&gpioa 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
5359
zephyr,code = <INPUT_KEY_ENTER>;
5460
};
61+
5562
joy_down: joystick_down {
5663
label = "joystick down";
5764
gpios = <&gpiof 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
5865
zephyr,code = <INPUT_KEY_DOWN>;
5966
};
67+
6068
joy_up: joystick_up {
6169
label = "joystick up";
6270
gpios = <&gpiof 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
6371
zephyr,code = <INPUT_KEY_UP>;
6472
};
73+
6574
joy_left: joystick_left {
6675
label = "joystick left";
6776
gpios = <&gpiof 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
6877
zephyr,code = <INPUT_KEY_LEFT>;
6978
};
79+
7080
joy_right: joystick_right {
7181
label = "joystick right";
7282
gpios = <&gpioe 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;

boards/st/stm32f072b_disco/stm32f072b_disco.dts

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

2424
leds {
2525
compatible = "gpio-leds";
26+
2627
red_up_led_3: led_3 {
2728
gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>;
2829
label = "User LD3";
2930
};
31+
3032
yellow_left_4: led_4 {
3133
gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>;
3234
label = "User LD4";
3335
};
36+
3437
green_right_led_5: led_5 {
3538
gpios = <&gpioc 9 GPIO_ACTIVE_HIGH>;
3639
label = "User LD5";
3740
};
41+
3842
blue_low_led_6: led_6 {
3943
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
4044
label = "User LD6";
@@ -43,6 +47,7 @@
4347

4448
gpio_keys {
4549
compatible = "gpio-keys";
50+
4651
user_button: button {
4752
label = "User";
4853
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;

boards/st/stm32f0_disco/stm32f0_disco.dts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@
2323

2424
leds {
2525
compatible = "gpio-leds";
26+
2627
green_led_3: led_3 {
2728
gpios = <&gpioc 9 GPIO_ACTIVE_HIGH>;
2829
label = "User LD3";
2930
};
31+
3032
blue_led_4: led_4 {
3133
gpios = <&gpioc 8 GPIO_ACTIVE_HIGH>;
3234
label = "User LD4";
@@ -35,6 +37,7 @@
3537

3638
gpio_keys {
3739
compatible = "gpio-keys";
40+
3841
user_button: button {
3942
label = "Key";
4043
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
@@ -112,10 +115,12 @@
112115
label = "image-0";
113116
reg = <0x00004000 DT_SIZE_K(16)>;
114117
};
118+
115119
slot1_partition: partition@8000 {
116120
label = "image-1";
117121
reg = <0x00008000 DT_SIZE_K(16)>;
118122
};
123+
119124
scratch_partition: partition@c000 {
120125
label = "image-scratch";
121126
reg = <0x0000C000 DT_SIZE_K(16)>;

0 commit comments

Comments
 (0)