Skip to content

Commit 3782c24

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32F7 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 721b3b8 commit 3782c24

File tree

8 files changed

+37
-5
lines changed

8 files changed

+37
-5
lines changed

boards/st/nucleo_f722ze/nucleo_f722ze.dts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@
2727

2828
leds {
2929
compatible = "gpio-leds";
30+
3031
green_led: led_1 {
3132
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
3233
label = "User LD1";
3334
};
35+
3436
blue_led: led_2 {
3537
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
3638
label = "User LD2";
3739
};
40+
3841
red_led: led_3 {
3942
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
4043
label = "User LD3";
@@ -43,6 +46,7 @@
4346

4447
gpio_keys {
4548
compatible = "gpio-keys";
49+
4650
user_button: button {
4751
label = "User";
4852
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@@ -217,7 +221,6 @@ zephyr_udc0: &usbotg_fs {
217221
};
218222

219223
&flash0 {
220-
221224
partitions {
222225
compatible = "fixed-partitions";
223226
#address-cells = <1>;

boards/st/nucleo_f746zg/nucleo_f746zg.dts

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

3333
leds: leds {
3434
compatible = "gpio-leds";
35+
3536
green_led: led_0 {
3637
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
3738
label = "User LD1";
3839
};
40+
3941
blue_led: led_1 {
4042
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
4143
label = "User LD2";
4244
};
45+
4346
red_led: led_2 {
4447
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
4548
label = "User LD3";
@@ -48,6 +51,7 @@
4851

4952
gpio_keys {
5053
compatible = "gpio-keys";
54+
5155
user_button: button_0 {
5256
label = "User";
5357
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

boards/st/nucleo_f756zg/nucleo_f756zg.dts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@
3232

3333
leds: leds {
3434
compatible = "gpio-leds";
35+
3536
green_led: led_0 {
3637
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
3738
label = "User LD1";
3839
};
40+
3941
blue_led: led_1 {
4042
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
4143
label = "User LD2";
4244
};
45+
4346
red_led: led_2 {
4447
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
4548
label = "User LD3";
@@ -48,6 +51,7 @@
4851

4952
gpio_keys {
5053
compatible = "gpio-keys";
54+
5155
user_button: button_0 {
5256
label = "User";
5357
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@@ -198,6 +202,5 @@ zephyr_udc0: &usbotg_fs {
198202
label = "image-scratch";
199203
reg = <0x000C0000 DT_SIZE_K(256)>;
200204
};
201-
202205
};
203206
};

boards/st/nucleo_f767zi/nucleo_f767zi.dts

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

3434
leds: leds {
3535
compatible = "gpio-leds";
36+
3637
green_led: led_0 {
3738
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
3839
label = "User LD1";
3940
};
41+
4042
blue_led: led_1 {
4143
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
4244
label = "User LD2";
4345
};
46+
4447
red_led: led_2 {
4548
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
4649
label = "User LD3";
@@ -49,6 +52,7 @@
4952

5053
gpio_keys {
5154
compatible = "gpio-keys";
55+
5256
user_button: button_0 {
5357
label = "User";
5458
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;

boards/st/stm32f723e_disco/stm32f723e_disco.dts

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

2525
leds {
2626
compatible = "gpio-leds";
27+
2728
blue_led: led_1 {
2829
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
2930
label = "User LD1";
3031
};
32+
3133
red_led: led_2 {
3234
gpios = <&gpioa 7 GPIO_ACTIVE_HIGH>;
3335
label = "User LD5";
3436
};
37+
3538
green_led: led_3 {
3639
gpios = <&gpiob 1 GPIO_ACTIVE_HIGH>;
3740
label = "User LD6";
@@ -40,6 +43,7 @@
4043

4144
gpio_keys {
4245
compatible = "gpio-keys";
46+
4347
user_button: button {
4448
label = "User";
4549
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;

boards/st/stm32f746g_disco/stm32f746g_disco.dts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
leds {
3131
compatible = "gpio-leds";
32+
3233
green_led_1: led_1 {
3334
gpios = <&gpioi 1 GPIO_ACTIVE_HIGH>;
3435
label = "User LD1";
@@ -37,6 +38,7 @@
3738

3839
gpio_keys {
3940
compatible = "gpio-keys";
41+
4042
user_button: button {
4143
label = "User";
4244
gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>;
@@ -222,7 +224,7 @@ zephyr_udc0: &usbotg_fs {
222224
slot1_partition: partition@0 {
223225
label = "image-1";
224226
reg = <0x00000000 DT_SIZE_K(640)>;
225-
};
227+
};
226228

227229
storage_partition: partition@a0000 {
228230
label = "storage";
@@ -258,6 +260,7 @@ zephyr_udc0: &usbotg_fs {
258260
* Note: SDRAM_CLK_MHZ = HCLK_MHZ / 2 (108 MHz)
259261
*/
260262
refresh-rate = <1667>;
263+
261264
bank@0 {
262265
reg = <0>;
263266
st,sdram-control = <STM32_FMC_SDRAM_NC_8
@@ -290,6 +293,7 @@ zephyr_udc0: &usbotg_fs {
290293
width = <480>;
291294
height = <272>;
292295
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
296+
293297
display-timings {
294298
compatible = "zephyr,panel-timing";
295299
de-active = <0>;
@@ -303,6 +307,7 @@ zephyr_udc0: &usbotg_fs {
303307
hfront-porch = <8>;
304308
vfront-porch = <4>;
305309
};
310+
306311
def-back-color-red = <0xFF>;
307312
def-back-color-green = <0xFF>;
308313
def-back-color-blue = <0xFF>;

boards/st/stm32f7508_dk/stm32f7508_dk.dts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
leds {
3131
compatible = "gpio-leds";
32+
3233
green_led_1: led_1 {
3334
gpios = <&gpioi 1 GPIO_ACTIVE_HIGH>;
3435
label = "User LD1";
@@ -37,6 +38,7 @@
3738

3839
gpio_keys {
3940
compatible = "gpio-keys";
41+
4042
user_button: button {
4143
label = "User";
4244
gpios = <&gpioi 11 GPIO_ACTIVE_HIGH>;
@@ -209,7 +211,7 @@ zephyr_udc0: &usbotg_fs {
209211
slot1_partition: partition@0 {
210212
label = "image-1";
211213
reg = <0x00000000 DT_SIZE_K(640)>;
212-
};
214+
};
213215

214216
storage_partition: partition@a0000 {
215217
label = "storage";
@@ -245,6 +247,7 @@ zephyr_udc0: &usbotg_fs {
245247
* Note: SDRAM_CLK_MHZ = HCLK_MHZ / 2 (108 MHz)
246248
*/
247249
refresh-rate = <1667>;
250+
248251
bank@0 {
249252
reg = <0>;
250253
st,sdram-control = <STM32_FMC_SDRAM_NC_8
@@ -277,6 +280,7 @@ zephyr_udc0: &usbotg_fs {
277280
width = <480>;
278281
height = <272>;
279282
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
283+
280284
display-timings {
281285
compatible = "zephyr,panel-timing";
282286
de-active = <0>;
@@ -290,6 +294,7 @@ zephyr_udc0: &usbotg_fs {
290294
hfront-porch = <8>;
291295
vfront-porch = <4>;
292296
};
297+
293298
def-back-color-red = <0xFF>;
294299
def-back-color-green = <0xFF>;
295300
def-back-color-blue = <0xFF>;

boards/st/stm32f769i_disco/stm32f769i_disco.dts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,17 @@
4040

4141
leds {
4242
compatible = "gpio-leds";
43+
4344
red_led_1:led_1 {
4445
gpios = <&gpioj 13 GPIO_ACTIVE_HIGH>;
4546
label = "User LD1";
4647
};
48+
4749
green_led_2:led_2 {
4850
gpios = <&gpioj 5 GPIO_ACTIVE_HIGH>;
4951
label = "User LD2";
5052
};
53+
5154
green_led_3:led_3 {
5255
gpios = <&gpioa 12 GPIO_ACTIVE_HIGH>;
5356
label = "User LD3";
@@ -56,6 +59,7 @@
5659

5760
gpio_keys {
5861
compatible = "gpio-keys";
62+
5963
user_button: button {
6064
label = "User";
6165
gpios = <&gpioa 0 GPIO_ACTIVE_HIGH>;
@@ -205,7 +209,7 @@ arduino_serial: &usart6 {};
205209
slot1_partition: partition@0 {
206210
label = "image-1";
207211
reg = <0x00000000 DT_SIZE_K(16)>;
208-
};
212+
};
209213

210214
storage_partition: partition@1a0000 {
211215
label = "storage";

0 commit comments

Comments
 (0)