Skip to content

Commit 58bc232

Browse files
committed
devicetree: format files in boards/weact
Applying dts-linter results for format files in boards/weact Signed-off-by: Kyle Micallef Bonnici <[email protected]>
1 parent db06260 commit 58bc232

File tree

14 files changed

+251
-253
lines changed

14 files changed

+251
-253
lines changed

boards/weact/blackpill_f401cc/blackpill_f401cc.dts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
#include <zephyr/dt-bindings/input/input-event-codes.h>
1111

1212
/ {
13-
model = "WeAct Studio Black Pill V3.0 Board";
1413
compatible = "weact,blackpill-f401ce";
14+
model = "WeAct Studio Black Pill V3.0 Board";
1515

1616
chosen {
1717
zephyr,console = &usart1;
18+
zephyr,flash = &flash0;
1819
zephyr,shell-uart = &usart1;
1920
zephyr,sram = &sram0;
20-
zephyr,flash = &flash0;
2121
};
2222

2323
leds {
@@ -33,8 +33,8 @@
3333
compatible = "gpio-keys";
3434

3535
user_button: button {
36-
label = "KEY";
3736
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
37+
label = "KEY";
3838
zephyr,code = <INPUT_KEY_0>;
3939
};
4040
};
@@ -54,8 +54,8 @@
5454
#size-cells = <1>;
5555

5656
boot_partition: partition@0 {
57-
label = "mcuboot";
5857
reg = <0x00000000 0x00008000>;
58+
label = "mcuboot";
5959
read-only;
6060
};
6161

@@ -66,18 +66,18 @@
6666
*/
6767

6868
slot0_partition: partition@20000 {
69-
label = "image-0";
7069
reg = <0x00020000 0x00020000>;
70+
label = "image-0";
7171
};
7272

7373
slot1_partition: partition@40000 {
74-
label = "image-1";
7574
reg = <0x00040000 0x00020000>;
75+
label = "image-1";
7676
};
7777

7878
scratch_partition: partition@60000 {
79-
label = "image-scratch";
8079
reg = <0x00060000 0x00020000>;
80+
label = "image-scratch";
8181
};
8282
};
8383
};
@@ -86,24 +86,24 @@
8686
status = "okay";
8787

8888
pwm4: pwm {
89-
status = "okay";
9089
pinctrl-0 = <&tim4_ch1_pb6 &tim4_ch2_pb7>;
9190
pinctrl-names = "default";
91+
status = "okay";
9292
};
9393
};
9494

9595
&usart1 {
96+
current-speed = <115200>;
9697
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
9798
pinctrl-names = "default";
9899
status = "okay";
99-
current-speed = <115200>;
100100
};
101101

102102
&i2c1 {
103+
clock-frequency = <I2C_BITRATE_FAST>;
103104
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
104105
pinctrl-names = "default";
105106
status = "okay";
106-
clock-frequency = <I2C_BITRATE_FAST>;
107107
};
108108

109109
&spi1 {
@@ -143,20 +143,20 @@ zephyr_udc0: &usbotg_fs {
143143
};
144144

145145
&pll {
146+
clocks = <&clk_hse>;
146147
div-m = <25>;
147-
mul-n = <336>;
148148
div-p = <4>;
149149
div-q = <7>;
150-
clocks = <&clk_hse>;
150+
mul-n = <336>;
151151
status = "okay";
152152
};
153153

154154
&rcc {
155-
clocks = <&pll>;
156-
clock-frequency = <DT_FREQ_M(84)>;
157155
ahb-prescaler = <1>;
158156
apb1-prescaler = <2>;
159157
apb2-prescaler = <1>;
158+
clock-frequency = <DT_FREQ_M(84)>;
159+
clocks = <&pll>;
160160
};
161161

162162
&vref {

boards/weact/blackpill_f401ce/blackpill_f401ce.dts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
#include <zephyr/dt-bindings/input/input-event-codes.h>
1111

1212
/ {
13-
model = "WeAct Studio Black Pill V3.0 Board";
1413
compatible = "weact,blackpill-f401ce";
14+
model = "WeAct Studio Black Pill V3.0 Board";
1515

1616
chosen {
1717
zephyr,console = &usart1;
18+
zephyr,flash = &flash0;
1819
zephyr,shell-uart = &usart1;
1920
zephyr,sram = &sram0;
20-
zephyr,flash = &flash0;
2121
};
2222

2323
leds {
@@ -33,8 +33,8 @@
3333
compatible = "gpio-keys";
3434

3535
user_button: button {
36-
label = "KEY";
3736
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
37+
label = "KEY";
3838
zephyr,code = <INPUT_KEY_0>;
3939
};
4040
};
@@ -54,8 +54,8 @@
5454
#size-cells = <1>;
5555

5656
boot_partition: partition@0 {
57-
label = "mcuboot";
5857
reg = <0x00000000 DT_SIZE_K(32)>;
58+
label = "mcuboot";
5959
read-only;
6060
};
6161

@@ -66,18 +66,18 @@
6666
*/
6767

6868
slot0_partition: partition@20000 {
69-
label = "image-0";
7069
reg = <0x00020000 DT_SIZE_K(128)>;
70+
label = "image-0";
7171
};
7272

7373
slot1_partition: partition@40000 {
74-
label = "image-1";
7574
reg = <0x00040000 DT_SIZE_K(128)>;
75+
label = "image-1";
7676
};
7777

7878
scratch_partition: partition@60000 {
79-
label = "image-scratch";
8079
reg = <0x00060000 DT_SIZE_K(128)>;
80+
label = "image-scratch";
8181
};
8282
};
8383
};
@@ -86,24 +86,24 @@
8686
status = "okay";
8787

8888
pwm4: pwm {
89-
status = "okay";
9089
pinctrl-0 = <&tim4_ch1_pb6 &tim4_ch2_pb7>;
9190
pinctrl-names = "default";
91+
status = "okay";
9292
};
9393
};
9494

9595
&usart1 {
96+
current-speed = <115200>;
9697
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
9798
pinctrl-names = "default";
9899
status = "okay";
99-
current-speed = <115200>;
100100
};
101101

102102
&i2c1 {
103+
clock-frequency = <I2C_BITRATE_FAST>;
103104
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
104105
pinctrl-names = "default";
105106
status = "okay";
106-
clock-frequency = <I2C_BITRATE_FAST>;
107107
};
108108

109109
&spi1 {
@@ -143,20 +143,20 @@ zephyr_udc0: &usbotg_fs {
143143
};
144144

145145
&pll {
146+
clocks = <&clk_hse>;
146147
div-m = <25>;
147-
mul-n = <336>;
148148
div-p = <4>;
149149
div-q = <7>;
150-
clocks = <&clk_hse>;
150+
mul-n = <336>;
151151
status = "okay";
152152
};
153153

154154
&rcc {
155-
clocks = <&pll>;
156-
clock-frequency = <DT_FREQ_M(84)>;
157155
ahb-prescaler = <1>;
158156
apb1-prescaler = <2>;
159157
apb2-prescaler = <1>;
158+
clock-frequency = <DT_FREQ_M(84)>;
159+
clocks = <&pll>;
160160
};
161161

162162
&vref {

boards/weact/blackpill_f411ce/blackpill_f411ce.dts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#include <zephyr/dt-bindings/input/input-event-codes.h>
1212

1313
/ {
14-
model = "WeAct Studio Black Pill V2.0 Board";
1514
compatible = "weact,blackpill-f411ce";
15+
model = "WeAct Studio Black Pill V2.0 Board";
1616

1717
chosen {
1818
zephyr,console = &usart1;
19+
zephyr,flash = &flash0;
1920
zephyr,shell-uart = &usart1;
2021
zephyr,sram = &sram0;
21-
zephyr,flash = &flash0;
2222
};
2323

2424
leds {
@@ -34,8 +34,8 @@
3434
compatible = "gpio-keys";
3535

3636
user_button: button {
37-
label = "KEY";
3837
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
38+
label = "KEY";
3939
zephyr,code = <INPUT_KEY_0>;
4040
};
4141
};
@@ -55,8 +55,8 @@
5555
#size-cells = <1>;
5656

5757
boot_partition: partition@0 {
58-
label = "mcuboot";
5958
reg = <0x00000000 DT_SIZE_K(32)>;
59+
label = "mcuboot";
6060
read-only;
6161
};
6262

@@ -67,18 +67,18 @@
6767
*/
6868

6969
slot0_partition: partition@20000 {
70-
label = "image-0";
7170
reg = <0x00020000 DT_SIZE_K(128)>;
71+
label = "image-0";
7272
};
7373

7474
slot1_partition: partition@40000 {
75-
label = "image-1";
7675
reg = <0x00040000 DT_SIZE_K(128)>;
76+
label = "image-1";
7777
};
7878

7979
scratch_partition: partition@60000 {
80-
label = "image-scratch";
8180
reg = <0x00060000 DT_SIZE_K(128)>;
81+
label = "image-scratch";
8282
};
8383
};
8484
};
@@ -87,24 +87,24 @@
8787
status = "okay";
8888

8989
pwm4: pwm {
90-
status = "okay";
9190
pinctrl-0 = <&tim4_ch1_pb6 &tim4_ch2_pb7>;
9291
pinctrl-names = "default";
92+
status = "okay";
9393
};
9494
};
9595

9696
&usart1 {
97+
current-speed = <115200>;
9798
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
9899
pinctrl-names = "default";
99100
status = "okay";
100-
current-speed = <115200>;
101101
};
102102

103103
&i2c1 {
104+
clock-frequency = <I2C_BITRATE_FAST>;
104105
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
105106
pinctrl-names = "default";
106107
status = "okay";
107-
clock-frequency = <I2C_BITRATE_FAST>;
108108
};
109109

110110
&spi1 {
@@ -144,20 +144,20 @@ zephyr_udc0: &usbotg_fs {
144144
};
145145

146146
&pll {
147+
clocks = <&clk_hse>;
147148
div-m = <25>;
148-
mul-n = <192>;
149149
div-p = <2>;
150150
div-q = <4>;
151-
clocks = <&clk_hse>;
151+
mul-n = <192>;
152152
status = "okay";
153153
};
154154

155155
&rcc {
156-
clocks = <&pll>;
157-
clock-frequency = <DT_FREQ_M(96)>;
158156
ahb-prescaler = <1>;
159157
apb1-prescaler = <2>;
160158
apb2-prescaler = <1>;
159+
clock-frequency = <DT_FREQ_M(96)>;
160+
clocks = <&pll>;
161161
};
162162

163163
&vref {

0 commit comments

Comments
 (0)