Skip to content

Commit a8430ef

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32WB 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]: - 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 <etienne.carriere@st.com>
1 parent 0e8069e commit a8430ef

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

boards/st/nucleo_wb55rg/nucleo_wb55rg.dts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,17 @@
2626

2727
leds: leds {
2828
compatible = "gpio-leds";
29+
2930
blue_led_1: led_0 {
3031
gpios = <&gpiob 5 GPIO_ACTIVE_HIGH>;
3132
label = "User LED1";
3233
};
34+
3335
green_led_2: led_1 {
3436
gpios = <&gpiob 0 GPIO_ACTIVE_HIGH>;
3537
label = "User LED2";
3638
};
39+
3740
red_led_3: led_2 {
3841
gpios = <&gpiob 1 GPIO_ACTIVE_HIGH>;
3942
label = "User LED3";
@@ -42,16 +45,19 @@
4245

4346
gpio_keys {
4447
compatible = "gpio-keys";
48+
4549
user_button_1: button_0 {
4650
label = "SW1";
4751
gpios = <&gpioc 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
4852
zephyr,code = <INPUT_KEY_0>;
4953
};
54+
5055
user_button_2: button_1 {
5156
label = "SW2";
5257
gpios = <&gpiod 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
5358
zephyr,code = <INPUT_KEY_1>;
5459
};
60+
5561
user_button_3: button_2 {
5662
label = "SW3";
5763
gpios = <&gpiod 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
@@ -162,6 +168,7 @@
162168

163169
&timers2 {
164170
status = "okay";
171+
165172
pwm2: pwm {
166173
status = "okay";
167174
pinctrl-0 = <&tim2_ch1_pa15>;
@@ -227,23 +234,26 @@ zephyr_udc0: &usb {
227234
label = "mcuboot";
228235
reg = <0x00000000 DT_SIZE_K(48)>;
229236
};
237+
230238
slot0_partition: partition@c000 {
231239
label = "image-0";
232240
reg = <0x0000c000 DT_SIZE_K(400)>;
233241
};
242+
234243
slot1_partition: partition@70000 {
235244
label = "image-1";
236245
reg = <0x00070000 DT_SIZE_K(400)>;
237246
};
247+
238248
scratch_partition: partition@d4000 {
239249
label = "image-scratch";
240250
reg = <0x000d4000 DT_SIZE_K(16)>;
241251
};
252+
242253
storage_partition: partition@d8000 {
243254
label = "storage";
244255
reg = <0x000d8000 DT_SIZE_K(8)>;
245256
};
246-
247257
};
248258
};
249259

boards/st/stm32wb5mm_dk/stm32wb5mm_dk.dts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@
3737

3838
buttons {
3939
compatible = "gpio-keys";
40+
4041
button0: button_0 {
4142
gpios = <&gpioc 12 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
4243
label = "Push button 1";
4344
zephyr,code = <INPUT_KEY_0>;
4445
};
46+
4547
button1: button_1 {
4648
gpios = <&gpioc 13 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
4749
label = "Push button 2";
@@ -147,23 +149,26 @@ zephyr_udc0: &usb {
147149
label = "mcuboot";
148150
reg = <0x00000000 DT_SIZE_K(48)>;
149151
};
152+
150153
slot0_partition: partition@c000 {
151154
label = "image-0";
152155
reg = <0x0000c000 DT_SIZE_K(400)>;
153156
};
157+
154158
slot1_partition: partition@70000 {
155159
label = "image-1";
156160
reg = <0x00070000 DT_SIZE_K(400)>;
157161
};
162+
158163
scratch_partition: partition@d4000 {
159164
label = "image-scratch";
160165
reg = <0x000d4000 DT_SIZE_K(16)>;
161166
};
167+
162168
storage_partition: partition@d8000 {
163169
label = "storage";
164170
reg = <0x000d8000 DT_SIZE_K(8)>;
165171
};
166-
167172
};
168173
};
169174

boards/st/stm32wb5mmg/stm32wb5mmg.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ zephyr_udc0: &usb {
9797
label = "mcuboot";
9898
reg = <0x00000000 DT_SIZE_K(48)>;
9999
};
100+
100101
slot0_partition: partition@c000 {
101102
label = "image-0";
102103
reg = <0x0000c000 DT_SIZE_K(400)>;
103104
};
104-
105105
};
106106
};

0 commit comments

Comments
 (0)