Skip to content

Commit 0cc214a

Browse files
committed
devicetree: format files in boards/wch
Applying dts-linter results for format files in boards/wch Signed-off-by: Kyle Micallef Bonnici <[email protected]>
1 parent 3c637e7 commit 0cc214a

File tree

10 files changed

+52
-52
lines changed

10 files changed

+52
-52
lines changed

boards/wch/ch32v003evt/ch32v003evt-pinctrl.dtsi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,31 @@
88
&pinctrl {
99
usart1_default: usart1_default {
1010
group1 {
11-
pinmux = <USART1_TX_PD5_0>;
12-
output-high;
1311
drive-push-pull;
12+
output-high;
13+
pinmux = <USART1_TX_PD5_0>;
1414
slew-rate = "max-speed-10mhz";
1515
};
1616

1717
group2 {
18-
pinmux = <USART1_RX_PD6_0>;
1918
bias-pull-up;
19+
pinmux = <USART1_RX_PD6_0>;
2020
};
2121
};
2222

2323
i2c1_default: i2c1_default {
2424
group1 {
25-
pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
26-
output-high;
2725
drive-open-drain;
26+
output-high;
27+
pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
2828
};
2929
};
3030

3131
red_pwm_pinctrl: red_pwm_pinctrl {
3232
group1 {
33-
pinmux = <TIM2_CH1_PD4_0>;
34-
output-high;
3533
drive-push-pull;
34+
output-high;
35+
pinmux = <TIM2_CH1_PD4_0>;
3636
slew-rate = "max-speed-10mhz";
3737
};
3838
};

boards/wch/ch32v003evt/ch32v003evt.dts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
#include <zephyr/dt-bindings/i2c/i2c.h>
1414

1515
/ {
16-
model = "ch32v003evt";
1716
compatible = "wch,ch32v003";
17+
model = "ch32v003evt";
1818

1919
chosen {
20-
zephyr,sram = &sram0;
21-
zephyr,flash = &flash0;
2220
zephyr,console = &usart1;
21+
zephyr,flash = &flash0;
2322
zephyr,shell-uart = &usart1;
23+
zephyr,sram = &sram0;
2424
};
2525

2626
leds {
@@ -43,8 +43,8 @@
4343
status = "disabled";
4444

4545
red_pwm: red_pwm0 {
46-
pwms = <&pwm2 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
4746
label = "Red LED";
47+
pwms = <&pwm2 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
4848
};
4949
};
5050

@@ -81,15 +81,15 @@
8181
};
8282

8383
&i2c1 {
84-
status = "okay";
8584
clock-frequency = <I2C_BITRATE_STANDARD>;
8685
pinctrl-0 = <&i2c1_default>;
8786
pinctrl-names = "default";
87+
status = "okay";
8888
};
8989

9090
&usart1 {
91-
status = "okay";
9291
current-speed = <115200>;
9392
pinctrl-0 = <&usart1_default>;
9493
pinctrl-names = "default";
94+
status = "okay";
9595
};

boards/wch/ch32v003f4p6_dev_board/ch32v003f4p6_dev_board-pinctrl.dtsi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@
88
&pinctrl {
99
usart1_default: usart1_default {
1010
group1 {
11-
pinmux = <USART1_TX_PD5_0>;
12-
output-high;
1311
drive-push-pull;
12+
output-high;
13+
pinmux = <USART1_TX_PD5_0>;
1414
slew-rate = "max-speed-10mhz";
1515
};
1616

1717
group2 {
18-
pinmux = <USART1_RX_PD6_0>;
1918
bias-pull-up;
19+
pinmux = <USART1_RX_PD6_0>;
2020
};
2121
};
2222

2323
i2c1_default: i2c1_default {
2424
group1 {
25-
pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
26-
output-high;
2725
drive-open-drain;
26+
output-high;
27+
pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
2828
};
2929
};
3030
};

boards/wch/ch32v003f4p6_dev_board/ch32v003f4p6_dev_board.dts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
#include <zephyr/dt-bindings/i2c/i2c.h>
1313

1414
/ {
15-
model = "ch32v003f4p6_dev_board";
1615
compatible = "wch,ch32v003";
16+
model = "ch32v003f4p6_dev_board";
1717

1818
chosen {
19-
zephyr,sram = &sram0;
20-
zephyr,flash = &flash0;
2119
zephyr,console = &usart1;
20+
zephyr,flash = &flash0;
2221
zephyr,shell-uart = &usart1;
22+
zephyr,sram = &sram0;
2323
};
2424

2525
leds {
@@ -58,15 +58,15 @@
5858
};
5959

6060
&i2c1 {
61-
status = "okay";
6261
clock-frequency = <I2C_BITRATE_STANDARD>;
6362
pinctrl-0 = <&i2c1_default>;
6463
pinctrl-names = "default";
64+
status = "okay";
6565
};
6666

6767
&usart1 {
68-
status = "okay";
6968
current-speed = <115200>;
7069
pinctrl-0 = <&usart1_default>;
7170
pinctrl-names = "default";
71+
status = "okay";
7272
};

boards/wch/ch32v006evt/ch32v006evt-pinctrl.dtsi

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,43 @@
99
&pinctrl {
1010
usart1_default: usart1_default {
1111
group1 {
12-
pinmux = <USART1_TX_PD5_0>;
13-
output-high;
1412
drive-push-pull;
13+
output-high;
14+
pinmux = <USART1_TX_PD5_0>;
1515
};
1616

1717
group2 {
18-
pinmux = <USART1_RX_PD6_0>;
1918
bias-pull-up;
19+
pinmux = <USART1_RX_PD6_0>;
2020
};
2121
};
2222

2323
usart2_default: usart2_default {
2424
group1 {
25-
pinmux = <USART2_TX_PA7_0>;
26-
output-high;
2725
drive-push-pull;
26+
output-high;
27+
pinmux = <USART2_TX_PA7_0>;
2828
};
2929

3030
group2 {
31-
pinmux = <USART2_RX_PB3_0>;
3231
bias-pull-up;
32+
pinmux = <USART2_RX_PB3_0>;
3333
};
3434
};
3535

3636
i2c1_default: i2c1_default {
3737
group1 {
38-
pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
39-
output-high;
4038
drive-open-drain;
39+
output-high;
40+
pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
4141
};
4242
};
4343

4444
blue_pwm_pinctrl: blue_pwm_pinctrl {
4545
group1 {
46-
pinmux = <TIM2_CH3_PC0_0>;
47-
output-high;
4846
drive-push-pull;
47+
output-high;
48+
pinmux = <TIM2_CH3_PC0_0>;
4949
};
5050
};
5151
};

boards/wch/ch32v006evt/ch32v006evt.dts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
#include <zephyr/dt-bindings/pwm/pwm.h>
1414

1515
/ {
16-
model = "ch32v006evt";
1716
compatible = "wch,ch32v006";
17+
model = "ch32v006evt";
1818

1919
chosen {
20-
zephyr,sram = &sram0;
21-
zephyr,flash = &flash0;
2220
zephyr,console = &usart1;
21+
zephyr,flash = &flash0;
2322
zephyr,shell-uart = &usart1;
23+
zephyr,sram = &sram0;
2424
};
2525

2626
leds {
@@ -48,8 +48,8 @@
4848
/* LED1 is on PD0 which does not have a PWM channel */
4949

5050
blue_pwm2: blue_pwm2 {
51-
pwms = <&pwm2 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
5251
label = "Blue LED 2";
52+
pwms = <&pwm2 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
5353
};
5454
};
5555

@@ -88,10 +88,10 @@
8888
};
8989

9090
&usart1 {
91-
status = "okay";
9291
current-speed = <115200>;
9392
pinctrl-0 = <&usart1_default>;
9493
pinctrl-names = "default";
94+
status = "okay";
9595
};
9696

9797
&iwdg {

boards/wch/ch32v303vct6_evt/ch32v303vct6_evt-pinctrl.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
&pinctrl {
99
usart1_default: usart1_default {
1010
group1 {
11-
pinmux = <USART1_TX_PA9_0>;
12-
output-high;
1311
drive-push-pull;
12+
output-high;
13+
pinmux = <USART1_TX_PA9_0>;
1414
slew-rate = "max-speed-10mhz";
1515
};
1616

1717
group2 {
18-
pinmux = <USART1_RX_PA10_0>;
1918
bias-pull-up;
19+
pinmux = <USART1_RX_PA10_0>;
2020
};
2121
};
2222
};

boards/wch/ch32v303vct6_evt/ch32v303vct6_evt.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#include "ch32v303vct6_evt-pinctrl.dtsi"
1212

1313
/ {
14-
model = "ch32v303vct6_evt";
1514
compatible = "wch,ch32v303";
15+
model = "ch32v303vct6_evt";
1616

1717
chosen {
18-
zephyr,sram = &sram0;
19-
zephyr,flash = &flash0;
2018
zephyr,console = &usart1;
19+
zephyr,flash = &flash0;
2120
zephyr,shell-uart = &usart1;
21+
zephyr,sram = &sram0;
2222
};
2323
};
2424

@@ -45,8 +45,8 @@
4545
};
4646

4747
&usart1 {
48-
status = "okay";
4948
current-speed = <115200>;
5049
pinctrl-0 = <&usart1_default>;
5150
pinctrl-names = "default";
51+
status = "okay";
5252
};

boards/wch/linkw/linkw-pinctrl.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
&pinctrl {
99
usart2_default: usart2_default {
1010
group1 {
11-
pinmux = <USART2_TX_PA2_0>;
12-
output-high;
1311
drive-push-pull;
12+
output-high;
13+
pinmux = <USART2_TX_PA2_0>;
1414
slew-rate = "max-speed-10mhz";
1515
};
1616

1717
group2 {
18-
pinmux = <USART2_RX_PA3_0>;
1918
bias-pull-up;
19+
pinmux = <USART2_RX_PA3_0>;
2020
};
2121
};
2222
};

boards/wch/linkw/linkw.dts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
#include "linkw-pinctrl.dtsi"
1212

1313
/ {
14-
model = "linkw";
1514
compatible = "wch,ch32v208";
15+
model = "linkw";
1616

1717
chosen {
18-
zephyr,sram = &sram0;
19-
zephyr,flash = &flash0;
2018
zephyr,console = &usart2;
19+
zephyr,flash = &flash0;
2120
zephyr,shell-uart = &usart2;
21+
zephyr,sram = &sram0;
2222
};
2323

2424
leds {
@@ -82,10 +82,10 @@
8282
};
8383

8484
&usart2 {
85-
status = "okay";
8685
current-speed = <115200>;
8786
pinctrl-0 = <&usart2_default>;
8887
pinctrl-names = "default";
88+
status = "okay";
8989
};
9090

9191
&iwdg {

0 commit comments

Comments
 (0)