Skip to content

Commit 135e0dd

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32H5 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 1aa8f51 commit 135e0dd

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

boards/st/nucleo_h503rb/nucleo_h503rb.dts

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

2929
leds: leds {
3030
compatible = "gpio-leds";
31+
3132
green_led_2: led_2 {
3233
gpios = <&gpioa 5 GPIO_ACTIVE_HIGH>;
3334
label = "User LD2";
@@ -36,6 +37,7 @@
3637

3738
gpio_keys {
3839
compatible = "gpio-keys";
40+
3941
user_button: button {
4042
label = "User";
4143
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

boards/st/nucleo_h533re/nucleo_h533re.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_42 {
2829
gpios = <&gpioa 5 GPIO_ACTIVE_LOW>;
2930
label = "User LD2";
@@ -41,6 +42,7 @@
4142

4243
gpio_keys {
4344
compatible = "gpio-keys";
45+
4446
user_button: button {
4547
label = "User";
4648
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;

boards/st/nucleo_h563zi/nucleo_h563zi-common.dtsi

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,17 @@
1414
/ {
1515
leds: leds {
1616
compatible = "gpio-leds";
17+
1718
green_led_1: led_1 {
1819
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
1920
label = "User LD1";
2021
};
22+
2123
yellow_led_1: led_2 {
2224
gpios = <&gpiof 4 GPIO_ACTIVE_HIGH>;
2325
label = "User LD2";
2426
};
27+
2528
red_led_1: led_3 {
2629
gpios = <&gpiog 4 GPIO_ACTIVE_HIGH>;
2730
label = "User LD3";
@@ -30,6 +33,7 @@
3033

3134
gpio_keys {
3235
compatible = "gpio-keys";
36+
3337
user_button: button {
3438
label = "User";
3539
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@@ -180,14 +184,17 @@
180184
label = "mcuboot";
181185
reg = <0x00000000 DT_SIZE_K(64)>;
182186
};
187+
183188
slot0_partition: partition@10000 {
184189
label = "image-0";
185190
reg = <0x00010000 DT_SIZE_K(960)>;
186191
};
192+
187193
slot1_partition: partition@100000 {
188194
label = "image-1";
189195
reg = <0x00100000 DT_SIZE_K(960)>;
190196
};
197+
191198
storage_partition: partition@1f0000 {
192199
label = "storage";
193200
reg = <0x001f0000 DT_SIZE_K(64)>;

boards/st/stm32h573i_dk/stm32h573i_dk.dts

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,22 @@
2929

3030
leds {
3131
compatible = "gpio-leds";
32+
3233
green_led_0: led_1 {
3334
gpios = <&gpioi 9 GPIO_ACTIVE_LOW>;
3435
label = "User LD1";
3536
};
37+
3638
orange_led_0: led_2 {
3739
gpios = <&gpioi 8 GPIO_ACTIVE_LOW>;
3840
label = "User LD2";
3941
};
42+
4043
red_led_0: led_3 {
4144
gpios = <&gpiof 1 GPIO_ACTIVE_LOW>;
4245
label = "User LD3";
4346
};
47+
4448
blue_led_0: led_4 {
4549
gpios = <&gpiof 4 GPIO_ACTIVE_LOW>;
4650
label = "User LD4";
@@ -49,6 +53,7 @@
4953

5054
gpio_keys {
5155
compatible = "gpio-keys";
56+
5257
user_button: button {
5358
label = "User";
5459
gpios = <&gpioc 13 GPIO_ACTIVE_LOW>;
@@ -294,18 +299,22 @@
294299
label = "mcuboot";
295300
reg = <0x00000000 DT_SIZE_K(64)>;
296301
};
302+
297303
slot0_partition: partition@10000 {
298304
label = "image-0";
299305
reg = <0x00010000 DT_SIZE_K(416)>;
300306
};
307+
301308
slot1_partition: partition@78000 {
302309
label = "image-1";
303310
reg = <0x00078000 DT_SIZE_K(416)>;
304311
};
312+
305313
scratch_partition: partition@e0000 {
306314
label = "image-scratch";
307315
reg = <0x000e0000 DT_SIZE_K(64)>;
308316
};
317+
309318
/* Set 64KB of storage at the end of Bank1 */
310319
storage_partition: partition@f0000 {
311320
label = "storage";
@@ -386,14 +395,14 @@
386395
status = "okay";
387396

388397
partitions {
389-
compatible = "fixed-partitions";
390-
#address-cells = <1>;
391-
#size-cells = <1>;
392-
393-
partition@0 {
394-
label = "nor";
395-
reg = <0x00000000 DT_SIZE_M(64)>;
396-
};
398+
compatible = "fixed-partitions";
399+
#address-cells = <1>;
400+
#size-cells = <1>;
401+
402+
partition@0 {
403+
label = "nor";
404+
reg = <0x00000000 DT_SIZE_M(64)>;
405+
};
397406
};
398407
};
399408
};

0 commit comments

Comments
 (0)