Skip to content

Commit 2418d03

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM3U5 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. Also remove a few spurious space characters. No functional change. Link: https://docs.zephyrproject.org/latest/contribute/style/devicetree.html [1] Signed-off-by: Etienne Carriere <[email protected]>
1 parent d9354ad commit 2418d03

File tree

9 files changed

+57
-9
lines changed

9 files changed

+57
-9
lines changed

boards/st/b_u585i_iot02a/b_u585i_iot02a-common.dtsi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@
1313
/ {
1414
leds {
1515
compatible = "gpio-leds";
16+
1617
green_led_1: led_1 {
1718
gpios = <&gpioh 7 GPIO_ACTIVE_LOW>;
1819
label = "User LD7";
1920
};
21+
2022
red_led_1: led_3 {
2123
gpios = <&gpioh 6 GPIO_ACTIVE_LOW>;
2224
label = "User LD6";
@@ -25,6 +27,7 @@
2527

2628
gpio_keys {
2729
compatible = "gpio-keys";
30+
2831
user_button: button {
2932
label = "User";
3033
gpios = <&gpioc 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
@@ -104,6 +107,7 @@ stm32_lp_tick_source: &lptim1 {
104107
&timers4 {
105108
status = "okay";
106109
st,prescaler = <1>;
110+
107111
pwm4: pwm {
108112
status = "okay";
109113
pinctrl-0 = <&tim4_ch1_pb6>;
@@ -114,6 +118,7 @@ stm32_lp_tick_source: &lptim1 {
114118
&timers3 {
115119
status = "okay";
116120
st,prescaler = <255>;
121+
117122
pwm3: pwm {
118123
status = "okay";
119124
pinctrl-0 = <&tim3_ch2_pe4>;

boards/st/b_u585i_iot02a/b_u585i_iot02a.dts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,26 @@
5353
label = "mcuboot";
5454
reg = <0x00000000 DT_SIZE_K(64)>;
5555
};
56+
5657
slot0_partition: partition@10000 {
5758
label = "image-0";
5859
reg = <0x00010000 DT_SIZE_K(416)>;
5960
};
61+
6062
slot1_partition: partition@78000 {
6163
label = "image-1";
6264
reg = <0x00078000 DT_SIZE_K(416)>;
6365
};
66+
6467
scratch_partition: partition@e0000 {
6568
label = "image-scratch";
6669
reg = <0x000e0000 DT_SIZE_K(64)>;
6770
};
71+
6872
storage_partition: partition@f0000 {
6973
label = "storage";
7074
reg = <0x000f0000 DT_SIZE_K(64)>;
7175
};
72-
7376
};
7477
};
7578

boards/st/b_u585i_iot02a/b_u585i_iot02a_stm32u585xx_ns.dts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
};
2828

2929
&flash0 {
30-
3130
partitions {
3231
compatible = "fixed-partitions";
3332
#address-cells = <1>;
@@ -44,26 +43,31 @@
4443
reg = <0x00000000 DT_SIZE_K(224)>;
4544
read-only;
4645
};
46+
4747
/* Secure image primary slot */
4848
slot0_partition: partition@38000 {
4949
label = "image-0";
5050
reg = <0x00038000 DT_SIZE_K(384)>;
5151
};
52+
5253
/* Non-secure image primary slot */
5354
slot0_ns_partition: partition@98000 {
5455
label = "image-0-nonsecure";
5556
reg = <0x00098000 DT_SIZE_K(512)>;
5657
};
58+
5759
/* Secure image secondary slot */
5860
slot1_partition: partition@118000 {
5961
label = "image-1";
6062
reg = <0x00118000 DT_SIZE_K(384)>;
6163
};
64+
6265
/* Non-secure image secondary slot */
6366
slot1_ns_partition: partition@178000 {
6467
label = "image-1-nonsecure";
6568
reg = <0x00178000 DT_SIZE_K(512)>;
6669
};
70+
6771
/* Applicative Non Volatile Storage */
6872
storage_partition: partition@1f8000 {
6973
label = "storage";

boards/st/nucleo_u575zi_q/nucleo_u575zi_q-common.dtsi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@
1313
/ {
1414
leds: leds {
1515
compatible = "gpio-leds";
16+
1617
green_led_1: led_1 {
1718
gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>;
1819
label = "User LD1";
1920
};
21+
2022
blue_led_1: led_2 {
2123
gpios = <&gpiob 7 GPIO_ACTIVE_HIGH>;
2224
label = "User LD2";
2325
};
26+
2427
red_led_1: led_3 {
2528
gpios = <&gpiog 2 GPIO_ACTIVE_HIGH>;
2629
label = "User LD3";
@@ -29,6 +32,7 @@
2932

3033
gpio_keys {
3134
compatible = "gpio-keys";
35+
3236
user_button: button {
3337
label = "User";
3438
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
@@ -147,7 +151,7 @@
147151
status = "okay";
148152

149153
pwm3: pwm {
150-
pinctrl-0 = <&tim3_ch2_pc7>;
154+
pinctrl-0 = <&tim3_ch2_pc7>;
151155
pinctrl-names = "default";
152156
status = "okay";
153157
};

boards/st/nucleo_u5a5zj_q/nucleo_u5a5zj_q-common.dtsi

Lines changed: 5 additions & 1 deletion
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 = <&gpiog 2 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>;
@@ -146,7 +150,7 @@
146150
status = "okay";
147151

148152
pwm3: pwm {
149-
pinctrl-0 = <&tim3_ch2_pc7>;
153+
pinctrl-0 = <&tim3_ch2_pc7>;
150154
pinctrl-names = "default";
151155
status = "okay";
152156
};

boards/st/nucleo_u5a5zj_q/nucleo_u5a5zj_q.dts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,17 @@
4848
label = "mcuboot";
4949
reg = <0x00000000 DT_SIZE_K(64)>;
5050
};
51+
5152
slot0_partition: partition@10000 {
5253
label = "image-0";
5354
reg = <0x00010000 DT_SIZE_K(1952)>;
5455
};
56+
5557
slot1_partition: partition@1f8000 {
5658
label = "image-1";
5759
reg = <0x001f8000 DT_SIZE_K(1960)>;
5860
};
61+
5962
storage_partition: partition@3e2000 {
6063
label = "storage";
6164
reg = <0x003e2000 DT_SIZE_K(120)>;

boards/st/sensortile_box_pro/sensortile_box_pro.dts

Lines changed: 12 additions & 1 deletion
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 = <&gpiof 6 GPIO_ACTIVE_HIGH>;
2728
label = "User GREEN led";
2829
};
30+
2931
red_led_1: led_2 {
3032
gpios = <&gpioh 11 GPIO_ACTIVE_HIGH>;
3133
label = "User RED led";
3234
};
35+
3336
yellow_led_1: led_3 {
3437
gpios = <&gpioh 12 GPIO_ACTIVE_HIGH>;
3538
label = "User YELLOW led";
3639
};
40+
3741
blue_led_1: led_4 {
3842
gpios = <&gpiof 9 GPIO_ACTIVE_HIGH>;
3943
label = "User YELLOW led";
@@ -42,11 +46,13 @@
4246

4347
gpio_keys {
4448
compatible = "gpio-keys";
49+
4550
button1: button1 {
4651
label = "User BT1";
4752
gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>;
4853
zephyr,code = <INPUT_KEY_0>;
4954
};
55+
5056
button2: button2 {
5157
label = "User BT2";
5258
gpios = <&gpioe 0 GPIO_ACTIVE_HIGH>;
@@ -202,6 +208,7 @@ stm32_lp_tick_source: &lptim1 {
202208
&timers4 {
203209
status = "okay";
204210
st,prescaler = <1>;
211+
205212
pwm4: pwm {
206213
status = "okay";
207214
pinctrl-0 = <&tim4_ch1_pb6>;
@@ -212,6 +219,7 @@ stm32_lp_tick_source: &lptim1 {
212219
&timers3 {
213220
status = "okay";
214221
st,prescaler = <255>;
222+
215223
pwm3: pwm {
216224
status = "okay";
217225
pinctrl-0 = <&tim3_ch2_pe4>;
@@ -338,23 +346,26 @@ zephyr_udc0: &usbotg_fs {
338346
label = "mcuboot";
339347
reg = <0x00000000 DT_SIZE_K(64)>;
340348
};
349+
341350
slot0_partition: partition@10000 {
342351
label = "image-0";
343352
reg = <0x00010000 DT_SIZE_K(416)>;
344353
};
354+
345355
slot1_partition: partition@78000 {
346356
label = "image-1";
347357
reg = <0x00078000 DT_SIZE_K(416)>;
348358
};
359+
349360
scratch_partition: partition@e0000 {
350361
label = "image-scratch";
351362
reg = <0x000e0000 DT_SIZE_K(64)>;
352363
};
364+
353365
storage_partition: partition@f0000 {
354366
label = "storage";
355367
reg = <0x000f0000 DT_SIZE_K(64)>;
356368
};
357-
358369
};
359370
};
360371

boards/st/steval_stwinbx1/steval_stwinbx1.dts

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

2424
leds {
2525
compatible = "gpio-leds";
26+
2627
green_led: led_1 {
2728
gpios = <&gpioh 12 GPIO_ACTIVE_HIGH>;
2829
label = "LED_1";
2930
};
31+
3032
orange_led: led_2 {
3133
gpios = <&gpioh 10 GPIO_ACTIVE_HIGH>;
3234
label = "LED_2";
@@ -44,6 +46,7 @@
4446

4547
gpio_keys {
4648
compatible = "gpio-keys";
49+
4750
user_button: button {
4851
label = "User";
4952
gpios = <&gpioe 0 GPIO_ACTIVE_HIGH>;
@@ -154,19 +157,20 @@ stm32_lp_tick_source: &lptim1 {
154157
cs-gpios = <&gpioh 6 GPIO_ACTIVE_LOW>,
155158
<&gpioh 15 GPIO_ACTIVE_LOW>,
156159
<&gpioi 7 GPIO_ACTIVE_LOW>;
160+
157161
iis2dlpc: iis2dlpc@0 {
158162
compatible = "st,iis2dlpc";
159163
spi-max-frequency = <DT_FREQ_M(10)>;
160164
reg = <0>;
161165
drdy-gpios = <&gpiof 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
162-
drdy-int = <1>;
166+
drdy-int = <1>;
163167
};
164168

165169
ism330dhcx: ism330dhcx@1 {
166170
compatible = "st,ism330dhcx";
167171
spi-max-frequency = <DT_FREQ_M(10)>;
168172
reg = <1>;
169-
drdy-gpios = <&gpiob 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
173+
drdy-gpios = <&gpiob 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
170174
int-pin = <1>;
171175
};
172176

@@ -175,7 +179,7 @@ stm32_lp_tick_source: &lptim1 {
175179
spi-max-frequency = <DT_FREQ_M(10)>;
176180
reg = <2>;
177181
drdy-gpios = <&gpiof 11 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
178-
int-pin = <2>;
182+
int-pin = <2>;
179183
};
180184
};
181185

@@ -184,6 +188,7 @@ stm32_lp_tick_source: &lptim1 {
184188
pinctrl-names = "default";
185189
status = "okay";
186190
cs-gpios = <&gpioe 1 GPIO_ACTIVE_LOW>;
191+
187192
hci_spi: bluenrg-2@0 {
188193
compatible = "st,hci-spi-v2";
189194
reg = <0>;
@@ -312,23 +317,26 @@ zephyr_udc0: &usbotg_fs {
312317
label = "mcuboot";
313318
reg = <0x00000000 DT_SIZE_K(64)>;
314319
};
320+
315321
slot0_partition: partition@10000 {
316322
label = "image-0";
317323
reg = <0x00010000 DT_SIZE_K(416)>;
318324
};
325+
319326
slot1_partition: partition@78000 {
320327
label = "image-1";
321328
reg = <0x00078000 DT_SIZE_K(416)>;
322329
};
330+
323331
scratch_partition: partition@e0000 {
324332
label = "image-scratch";
325333
reg = <0x000e0000 DT_SIZE_K(64)>;
326334
};
335+
327336
storage_partition: partition@f0000 {
328337
label = "storage";
329338
reg = <0x000f0000 DT_SIZE_K(64)>;
330339
};
331-
332340
};
333341
};
334342

0 commit comments

Comments
 (0)