Skip to content

Commit 84add0d

Browse files
etienne-lmskartben
authored andcommitted
boards: st: fix STM32WB0 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]: - 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 2418d03 commit 84add0d

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

boards/st/nucleo_wb05kz/nucleo_wb05kz.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@
2828

2929
leds: leds {
3030
compatible ="gpio-leds";
31+
3132
blue_led_1: led_0 {
3233
gpios = <&gpiob 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3334
};
35+
3436
green_led_1: led_1 {
3537
gpios = <&gpiob 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3638
};
39+
3740
red_led_1: led_2 {
3841
gpios = <&gpiob 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3942
};
@@ -42,23 +45,27 @@
4245
pwmleds: pwmleds {
4346
compatible = "pwm-leds";
4447
status = "okay";
48+
4549
pwm_red_led_1: pwm_led_1 {
4650
pwms = <&pwm2 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
4751
};
4852
};
4953

5054
gpio_keys {
5155
compatible = "gpio-keys";
56+
5257
user_button_1: button_0 {
5358
label = "SW1";
5459
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
5560
zephyr,code = <INPUT_KEY_0>;
5661
};
62+
5763
user_button_2: button_1 {
5864
label = "SW2";
5965
gpios = <&gpiob 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
6066
zephyr,code = <INPUT_KEY_1>;
6167
};
68+
6269
user_button_3: button_2 {
6370
label = "SW3";
6471
gpios = <&gpiob 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
@@ -165,6 +172,7 @@
165172
compatible = "fixed-partitions";
166173
#address-cells = <1>;
167174
#size-cells = <1>;
175+
168176
/* Set 8KB of storage at the end of 192KB flash */
169177
storage_partition: partition@2e000 {
170178
label = "storage";

boards/st/nucleo_wb07cc/nucleo_wb07cc.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,43 @@
2828

2929
leds: leds {
3030
compatible ="gpio-leds";
31+
3132
blue_led_1: led_0 {
3233
gpios = <&gpiob 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3334
};
35+
3436
green_led_1: led_1 {
3537
gpios = <&gpiob 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3638
};
39+
3740
red_led_1: led_2 {
3841
gpios = <&gpiob 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3942
};
4043
};
4144

4245
pwmleds: pwmleds {
4346
compatible = "pwm-leds";
47+
4448
pwm_red_led_1: pwm_red_led_1 {
4549
pwms = <&pwm1 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
4650
};
4751
};
4852

4953
gpio_keys {
5054
compatible = "gpio-keys";
55+
5156
user_button_1: button_0 {
5257
label = "SW1";
5358
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
5459
zephyr,code = <INPUT_KEY_0>;
5560
};
61+
5662
user_button_2: button_1 {
5763
label = "SW2";
5864
gpios = <&gpiob 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
5965
zephyr,code = <INPUT_KEY_1>;
6066
};
67+
6168
user_button_3: button_2 {
6269
label = "SW3";
6370
gpios = <&gpiob 9 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
@@ -162,6 +169,7 @@
162169
compatible = "fixed-partitions";
163170
#address-cells = <1>;
164171
#size-cells = <1>;
172+
165173
/* Set aside 16KB of storage at the end of 256KB flash */
166174
storage_partition: partition@3c000 {
167175
label = "storage";

boards/st/nucleo_wb09ke/nucleo_wb09ke.dts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@
2828

2929
leds: leds {
3030
compatible ="gpio-leds";
31+
3132
blue_led_1: led_0 {
3233
gpios = <&gpiob 1 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3334
};
35+
3436
green_led_1: led_1 {
3537
gpios = <&gpiob 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3638
};
39+
3740
red_led_1: led_2 {
3841
gpios = <&gpiob 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
3942
};
@@ -42,23 +45,27 @@
4245
pwmleds: pwmleds {
4346
compatible = "pwm-leds";
4447
status = "okay";
48+
4549
pwm_red_led_1: pwm_led_1 {
4650
pwms = <&pwm2 3 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
4751
};
4852
};
4953

5054
gpio_keys {
5155
compatible = "gpio-keys";
56+
5257
user_button_1: button_0 {
5358
label = "SW1";
5459
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
5560
zephyr,code = <INPUT_KEY_0>;
5661
};
62+
5763
user_button_2: button_1 {
5864
label = "SW2";
5965
gpios = <&gpiob 5 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
6066
zephyr,code = <INPUT_KEY_1>;
6167
};
68+
6269
user_button_3: button_2 {
6370
label = "SW3";
6471
gpios = <&gpiob 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
@@ -164,6 +171,7 @@
164171
compatible = "fixed-partitions";
165172
#address-cells = <1>;
166173
#size-cells = <1>;
174+
167175
/* Set 32KB of storage at the end of 512KB flash */
168176
storage_partition: partition@78000 {
169177
label = "storage";

0 commit comments

Comments
 (0)