Skip to content

Commit 0a3526b

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32L5 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 37d545a commit 0a3526b

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

boards/st/nucleo_l552ze_q/nucleo_l552ze_q-common.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_1: led_1 {
1617
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
1718
label = "User LD1";
1819
};
20+
1921
blue_led_1: led_2 {
2022
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
2123
label = "User LD2";
2224
};
25+
2326
red_led_1: led_3 {
2427
gpios = <&gpioa 9 GPIO_ACTIVE_HIGH>;
2528
label = "User LD3";
@@ -28,6 +31,7 @@
2831

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

boards/st/nucleo_l552ze_q/nucleo_l552ze_q_stm32l552xx_ns.dts

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

3131
&flash0 {
32-
3332
partitions {
3433
compatible = "fixed-partitions";
3534
#address-cells = <1>;
@@ -47,21 +46,25 @@
4746
reg = <0x00000000 DT_SIZE_K(80)>;
4847
read-only;
4948
};
49+
5050
/* Secure image primary slot */
5151
slot0_partition: partition@14000 {
5252
label = "image-0";
5353
reg = <0x00014000 DT_SIZE_K(180)>;
5454
};
55+
5556
/* Non-secure image primary slot */
5657
slot0_ns_partition: partition@41000 {
5758
label = "image-0-nonsecure";
5859
reg = <0x00041000 DT_SIZE_K(36)>;
5960
};
61+
6062
/* Secure image secondary slot */
6163
slot1_partition: partition@4a000 {
6264
label = "image-1";
6365
reg = <0x0004a000 DT_SIZE_K(180)>;
6466
};
67+
6568
/* Non-secure image secondary slot */
6669
slot1_ns_partition: partition@77000 {
6770
label = "image-1-nonsecure";

boards/st/stm32l562e_dk/stm32l562e_dk.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
/* 2KB at the end of 512KB flash is set for storage */
5353
storage_partition: partition@7f800 {
54-
reg = <0x0007f800 DT_SIZE_K(2)>;
55-
};
54+
reg = <0x0007f800 DT_SIZE_K(2)>;
55+
};
5656
};
5757
};

boards/st/stm32l562e_dk/stm32l562e_dk_common.dtsi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
/ {
1515
leds {
1616
compatible = "gpio-leds";
17+
1718
red_led_9: led_9 {
1819
gpios = <&gpiod 3 GPIO_ACTIVE_LOW>;
1920
label = "User LD9";
2021
};
22+
2123
green_led_10: led_10 {
2224
gpios = <&gpiog 12 GPIO_ACTIVE_LOW>;
2325
label = "User LD10";
@@ -26,6 +28,7 @@
2628

2729
gpio_keys {
2830
compatible = "gpio-keys";
31+
2932
user_button: button {
3033
label = "User";
3134
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@@ -90,6 +93,7 @@
9093
register-select-pin = <0>;
9194
#address-cells = <1>;
9295
#size-cells = <0>;
96+
9397
st7789v: lcd-panel@0 {
9498
compatible = "sitronix,st7789v";
9599
reg = <0>;

boards/st/stm32l562e_dk/stm32l562e_dk_stm32l562xx_ns.dts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,19 @@
4545
reg = <0x00000000 DT_SIZE_K(100)>;
4646
read-only;
4747
};
48+
4849
/* Secure image primary slot */
4950
slot0_partition: partition@19000 {
5051
reg = <0x00019000 DT_SIZE_K(240)>;
5152
};
53+
5254
/* Non-secure image primary slot */
5355
slot1_ns_partition: partition@55000 {
5456
reg = <0x00055000 DT_SIZE_K(168)>;
5557
};
58+
5659
/* 4KB at the end of 512KB flash is set for storage */
57-
storage_partition: partition@7f000 {
60+
storage_partition: partition@7f000 {
5861
reg = <0x0007f000 DT_SIZE_K(4)>;
5962
};
6063
};

0 commit comments

Comments
 (0)