Skip to content

Commit 39a9fe9

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32H7* 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. - 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 135e0dd commit 39a9fe9

File tree

16 files changed

+96
-30
lines changed

16 files changed

+96
-30
lines changed

boards/st/nucleo_h723zg/nucleo_h723zg.dts

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

3030
leds: leds {
3131
compatible = "gpio-leds";
32+
3233
green_led: led_0 {
3334
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
3435
label = "User LD1";
3536
};
37+
3638
yellow_led: led_1 {
3739
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
3840
label = "User LD2";
3941
};
42+
4043
red_led: led_2 {
4144
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
4245
label = "User LD3";
@@ -54,6 +57,7 @@
5457

5558
gpio_keys {
5659
compatible = "gpio-keys";
60+
5761
user_button: button_0 {
5862
label = "User";
5963
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

boards/st/nucleo_h743zi/nucleo_h743zi.dts

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

2727
leds: leds {
2828
compatible = "gpio-leds";
29+
2930
green_led: led_0 {
3031
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
3132
label = "User LD1";
3233
};
34+
3335
yellow_led: led_1 {
3436
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
3537
label = "User LD2";
@@ -46,6 +48,7 @@
4648

4749
gpio_keys {
4850
compatible = "gpio-keys";
51+
4952
user_button: button_0 {
5053
label = "User";
5154
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@@ -272,7 +275,6 @@ zephyr_udc0: &usbotg_fs {
272275
label = "image-scratch";
273276
reg = <0x000c0000 DT_SIZE_K(128)>;
274277
};
275-
276278
};
277279
};
278280

boards/st/nucleo_h745zi_q/nucleo_h745zi_q.dtsi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
/ {
1212
leds: leds {
1313
compatible = "gpio-leds";
14+
1415
green_led: led_1 {
1516
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
1617
label = "User LD1";
1718
};
19+
1820
yellow_led: led_2 {
1921
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
2022
label = "User LD2";
@@ -23,6 +25,7 @@
2325

2426
gpio_keys {
2527
compatible = "gpio-keys";
28+
2629
user_button: button_0 {
2730
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
2831
label = "User SB1";

boards/st/nucleo_h753zi/nucleo_h753zi.dts

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

2727
leds: leds {
2828
compatible = "gpio-leds";
29+
2930
green_led: led_0 {
3031
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
3132
label = "User LD1";
3233
};
34+
3335
yellow_led: led_1 {
3436
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
3537
label = "User LD2";
@@ -46,6 +48,7 @@
4648

4749
gpio_keys {
4850
compatible = "gpio-keys";
51+
4952
user_button: button_0 {
5053
label = "User";
5154
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@@ -260,6 +263,5 @@ zephyr_udc0: &usbotg_fs {
260263
label = "image-scratch";
261264
reg = <0x000c0000 DT_SIZE_K(128)>;
262265
};
263-
264266
};
265267
};

boards/st/nucleo_h755zi_q/nucleo_h755zi_q.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@
1111
/ {
1212
leds: leds {
1313
compatible = "gpio-leds";
14+
1415
green_led: led_1 {
1516
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
1617
label = "User LD1";
1718
};
19+
1820
yellow_led: led_2 {
1921
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
2022
label = "User LD2";
2123
};
24+
2225
red_led: led_3 {
2326
gpios = <&gpiob 14 GPIO_ACTIVE_HIGH>;
2427
label = "User LD3";
@@ -27,6 +30,7 @@
2730

2831
gpio_keys {
2932
compatible = "gpio-keys";
33+
3034
user_button: button_0 {
3135
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
3236
label = "User SB1";

boards/st/nucleo_h7a3zi_q/nucleo_h7a3zi_q.dts

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

2626
leds: leds {
2727
compatible = "gpio-leds";
28+
2829
green_led: led_0 {
2930
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
3031
label = "User LD1";
3132
};
33+
3234
yellow_led: led_1 {
3335
gpios = <&gpioe 1 GPIO_ACTIVE_HIGH>;
3436
label = "User LD2";
@@ -45,6 +47,7 @@
4547

4648
gpio_keys {
4749
compatible = "gpio-keys";
50+
4851
user_button: button_0 {
4952
label = "User";
5053
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

boards/st/nucleo_h7s3l8/nucleo_h7s3l8.dts

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

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

4144
gpio_keys {
4245
compatible = "gpio-keys";
46+
4347
user_button: button_0 {
4448
label = "User";
4549
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@@ -196,14 +200,17 @@
196200
label = "image-0";
197201
reg = <0x00000000 DT_SIZE_K(512)>;
198202
};
203+
199204
slot1_partition: partition@80000 {
200205
label = "image-1";
201206
reg = <0x0080000 DT_SIZE_K(512)>;
202207
};
208+
203209
scratch_partition: partition@100000 {
204210
label = "image-scratch";
205211
reg = <0x00100000 DT_SIZE_K(64)>;
206212
};
213+
207214
storage_partition: partition@110000 {
208215
label = "storage";
209216
reg = <0x00110000 DT_SIZE_K(64)>;

boards/st/stm32h735g_disco/stm32h735g_disco.dts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@
2424

2525
leds {
2626
compatible = "gpio-leds";
27+
2728
red_led: led_1 {
2829
gpios = <&gpioc 2 GPIO_ACTIVE_LOW>;
2930
label = "User LD2";
3031
};
32+
3133
green_led: led_2 {
3234
gpios = <&gpioc 3 GPIO_ACTIVE_LOW>;
3335
label = "User LD1";
@@ -36,6 +38,7 @@
3638

3739
gpio_keys {
3840
compatible = "gpio-keys";
41+
3942
user_button: button {
4043
label = "User";
4144
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@@ -186,14 +189,14 @@
186189
status = "okay";
187190

188191
partitions {
189-
compatible = "fixed-partitions";
190-
#address-cells = <1>;
191-
#size-cells = <1>;
192-
193-
partition@0 {
194-
label = "nor";
195-
reg = <0x00000000 DT_SIZE_M(4)>;
196-
};
192+
compatible = "fixed-partitions";
193+
#address-cells = <1>;
194+
#size-cells = <1>;
195+
196+
partition@0 {
197+
label = "nor";
198+
reg = <0x00000000 DT_SIZE_M(4)>;
199+
};
197200
};
198201
};
199202
};

boards/st/stm32h745i_disco/stm32h745i_disco.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,17 @@
1212
/ {
1313
leds: leds {
1414
compatible = "gpio-leds";
15+
1516
green_led: led_1 {
1617
gpios = <&gpioj 2 GPIO_ACTIVE_HIGH>;
1718
label = "User LD7";
1819
};
20+
1921
red_led: led_2 {
2022
gpios = <&gpioi 13 GPIO_ACTIVE_HIGH>;
2123
label = "User LD6";
2224
};
25+
2326
green_led_2: led_3 {
2427
gpios = <&gpiod 3 GPIO_ACTIVE_HIGH>;
2528
label = "User LD8";
@@ -28,6 +31,7 @@
2831

2932
gpio_keys {
3033
compatible = "gpio-keys";
34+
3135
user_button: button_0 {
3236
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
3337
label = "User SB1";

boards/st/stm32h745i_disco/stm32h745i_disco_stm32h745xx_m7.dts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@
189189
status = "okay";
190190

191191
partitions {
192-
compatible = "fixed-partitions";
193-
#address-cells = <1>;
194-
#size-cells = <1>;
192+
compatible = "fixed-partitions";
193+
#address-cells = <1>;
194+
#size-cells = <1>;
195195

196-
storage_partition: partition@0 {
197-
reg = <0x0 DT_SIZE_M(64)>;
198-
};
196+
storage_partition: partition@0 {
197+
reg = <0x0 DT_SIZE_M(64)>;
198+
};
199199
};
200200
};
201201

@@ -264,6 +264,7 @@
264264
num-auto-refresh = <8>;
265265
mode-register = <0x220>;
266266
refresh-rate = <0x603>;
267+
267268
bank@1 {
268269
reg = <1>;
269270
st,sdram-control = <STM32_FMC_SDRAM_NC_8

0 commit comments

Comments
 (0)