File tree Expand file tree Collapse file tree 10 files changed +52
-52
lines changed Expand file tree Collapse file tree 10 files changed +52
-52
lines changed Original file line number Diff line number Diff line change 8
8
&pinctrl {
9
9
usart1_default: usart1_default {
10
10
group1 {
11
- pinmux = <USART1_TX_PD5_0>;
12
- output-high;
13
11
drive-push-pull;
12
+ output-high;
13
+ pinmux = <USART1_TX_PD5_0>;
14
14
slew-rate = "max-speed-10mhz";
15
15
};
16
16
17
17
group2 {
18
- pinmux = <USART1_RX_PD6_0>;
19
18
bias-pull-up;
19
+ pinmux = <USART1_RX_PD6_0>;
20
20
};
21
21
};
22
22
23
23
i2c1_default: i2c1_default {
24
24
group1 {
25
- pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
26
- output-high;
27
25
drive-open-drain;
26
+ output-high;
27
+ pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
28
28
};
29
29
};
30
30
31
31
red_pwm_pinctrl: red_pwm_pinctrl {
32
32
group1 {
33
- pinmux = <TIM2_CH1_PD4_0>;
34
- output-high;
35
33
drive-push-pull;
34
+ output-high;
35
+ pinmux = <TIM2_CH1_PD4_0>;
36
36
slew-rate = "max-speed-10mhz";
37
37
};
38
38
};
Original file line number Diff line number Diff line change 13
13
#include <zephyr/dt-bindings/i2c/i2c.h>
14
14
15
15
/ {
16
- model = "ch32v003evt";
17
16
compatible = "wch,ch32v003";
17
+ model = "ch32v003evt";
18
18
19
19
chosen {
20
- zephyr,sram = &sram0;
21
- zephyr,flash = &flash0;
22
20
zephyr,console = &usart1;
21
+ zephyr,flash = &flash0;
23
22
zephyr,shell-uart = &usart1;
23
+ zephyr,sram = &sram0;
24
24
};
25
25
26
26
leds {
43
43
status = "disabled";
44
44
45
45
red_pwm: red_pwm0 {
46
- pwms = <&pwm2 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
47
46
label = "Red LED";
47
+ pwms = <&pwm2 0 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
48
48
};
49
49
};
50
50
81
81
};
82
82
83
83
&i2c1 {
84
- status = "okay";
85
84
clock-frequency = <I2C_BITRATE_STANDARD>;
86
85
pinctrl-0 = <&i2c1_default>;
87
86
pinctrl-names = "default";
87
+ status = "okay";
88
88
};
89
89
90
90
&usart1 {
91
- status = "okay";
92
91
current-speed = <115200>;
93
92
pinctrl-0 = <&usart1_default>;
94
93
pinctrl-names = "default";
94
+ status = "okay";
95
95
};
Original file line number Diff line number Diff line change 8
8
&pinctrl {
9
9
usart1_default: usart1_default {
10
10
group1 {
11
- pinmux = <USART1_TX_PD5_0>;
12
- output-high;
13
11
drive-push-pull;
12
+ output-high;
13
+ pinmux = <USART1_TX_PD5_0>;
14
14
slew-rate = "max-speed-10mhz";
15
15
};
16
16
17
17
group2 {
18
- pinmux = <USART1_RX_PD6_0>;
19
18
bias-pull-up;
19
+ pinmux = <USART1_RX_PD6_0>;
20
20
};
21
21
};
22
22
23
23
i2c1_default: i2c1_default {
24
24
group1 {
25
- pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
26
- output-high;
27
25
drive-open-drain;
26
+ output-high;
27
+ pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
28
28
};
29
29
};
30
30
};
Original file line number Diff line number Diff line change 12
12
#include <zephyr/dt-bindings/i2c/i2c.h>
13
13
14
14
/ {
15
- model = "ch32v003f4p6_dev_board";
16
15
compatible = "wch,ch32v003";
16
+ model = "ch32v003f4p6_dev_board";
17
17
18
18
chosen {
19
- zephyr,sram = &sram0;
20
- zephyr,flash = &flash0;
21
19
zephyr,console = &usart1;
20
+ zephyr,flash = &flash0;
22
21
zephyr,shell-uart = &usart1;
22
+ zephyr,sram = &sram0;
23
23
};
24
24
25
25
leds {
58
58
};
59
59
60
60
&i2c1 {
61
- status = "okay";
62
61
clock-frequency = <I2C_BITRATE_STANDARD>;
63
62
pinctrl-0 = <&i2c1_default>;
64
63
pinctrl-names = "default";
64
+ status = "okay";
65
65
};
66
66
67
67
&usart1 {
68
- status = "okay";
69
68
current-speed = <115200>;
70
69
pinctrl-0 = <&usart1_default>;
71
70
pinctrl-names = "default";
71
+ status = "okay";
72
72
};
Original file line number Diff line number Diff line change 9
9
&pinctrl {
10
10
usart1_default: usart1_default {
11
11
group1 {
12
- pinmux = <USART1_TX_PD5_0>;
13
- output-high;
14
12
drive-push-pull;
13
+ output-high;
14
+ pinmux = <USART1_TX_PD5_0>;
15
15
};
16
16
17
17
group2 {
18
- pinmux = <USART1_RX_PD6_0>;
19
18
bias-pull-up;
19
+ pinmux = <USART1_RX_PD6_0>;
20
20
};
21
21
};
22
22
23
23
usart2_default: usart2_default {
24
24
group1 {
25
- pinmux = <USART2_TX_PA7_0>;
26
- output-high;
27
25
drive-push-pull;
26
+ output-high;
27
+ pinmux = <USART2_TX_PA7_0>;
28
28
};
29
29
30
30
group2 {
31
- pinmux = <USART2_RX_PB3_0>;
32
31
bias-pull-up;
32
+ pinmux = <USART2_RX_PB3_0>;
33
33
};
34
34
};
35
35
36
36
i2c1_default: i2c1_default {
37
37
group1 {
38
- pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
39
- output-high;
40
38
drive-open-drain;
39
+ output-high;
40
+ pinmux = <I2C1_SDA_PC1_0>, <I2C1_SCL_PC2_0>;
41
41
};
42
42
};
43
43
44
44
blue_pwm_pinctrl: blue_pwm_pinctrl {
45
45
group1 {
46
- pinmux = <TIM2_CH3_PC0_0>;
47
- output-high;
48
46
drive-push-pull;
47
+ output-high;
48
+ pinmux = <TIM2_CH3_PC0_0>;
49
49
};
50
50
};
51
51
};
Original file line number Diff line number Diff line change 13
13
#include <zephyr/dt-bindings/pwm/pwm.h>
14
14
15
15
/ {
16
- model = "ch32v006evt";
17
16
compatible = "wch,ch32v006";
17
+ model = "ch32v006evt";
18
18
19
19
chosen {
20
- zephyr,sram = &sram0;
21
- zephyr,flash = &flash0;
22
20
zephyr,console = &usart1;
21
+ zephyr,flash = &flash0;
23
22
zephyr,shell-uart = &usart1;
23
+ zephyr,sram = &sram0;
24
24
};
25
25
26
26
leds {
48
48
/* LED1 is on PD0 which does not have a PWM channel */
49
49
50
50
blue_pwm2: blue_pwm2 {
51
- pwms = <&pwm2 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
52
51
label = "Blue LED 2";
52
+ pwms = <&pwm2 2 PWM_MSEC(20) PWM_POLARITY_INVERTED>;
53
53
};
54
54
};
55
55
88
88
};
89
89
90
90
&usart1 {
91
- status = "okay";
92
91
current-speed = <115200>;
93
92
pinctrl-0 = <&usart1_default>;
94
93
pinctrl-names = "default";
94
+ status = "okay";
95
95
};
96
96
97
97
&iwdg {
Original file line number Diff line number Diff line change 8
8
&pinctrl {
9
9
usart1_default: usart1_default {
10
10
group1 {
11
- pinmux = <USART1_TX_PA9_0>;
12
- output-high;
13
11
drive-push-pull;
12
+ output-high;
13
+ pinmux = <USART1_TX_PA9_0>;
14
14
slew-rate = "max-speed-10mhz";
15
15
};
16
16
17
17
group2 {
18
- pinmux = <USART1_RX_PA10_0>;
19
18
bias-pull-up;
19
+ pinmux = <USART1_RX_PA10_0>;
20
20
};
21
21
};
22
22
};
Original file line number Diff line number Diff line change 11
11
#include "ch32v303vct6_evt-pinctrl.dtsi"
12
12
13
13
/ {
14
- model = "ch32v303vct6_evt";
15
14
compatible = "wch,ch32v303";
15
+ model = "ch32v303vct6_evt";
16
16
17
17
chosen {
18
- zephyr,sram = &sram0;
19
- zephyr,flash = &flash0;
20
18
zephyr,console = &usart1;
19
+ zephyr,flash = &flash0;
21
20
zephyr,shell-uart = &usart1;
21
+ zephyr,sram = &sram0;
22
22
};
23
23
};
24
24
45
45
};
46
46
47
47
&usart1 {
48
- status = "okay";
49
48
current-speed = <115200>;
50
49
pinctrl-0 = <&usart1_default>;
51
50
pinctrl-names = "default";
51
+ status = "okay";
52
52
};
Original file line number Diff line number Diff line change 8
8
&pinctrl {
9
9
usart2_default: usart2_default {
10
10
group1 {
11
- pinmux = <USART2_TX_PA2_0>;
12
- output-high;
13
11
drive-push-pull;
12
+ output-high;
13
+ pinmux = <USART2_TX_PA2_0>;
14
14
slew-rate = "max-speed-10mhz";
15
15
};
16
16
17
17
group2 {
18
- pinmux = <USART2_RX_PA3_0>;
19
18
bias-pull-up;
19
+ pinmux = <USART2_RX_PA3_0>;
20
20
};
21
21
};
22
22
};
Original file line number Diff line number Diff line change 11
11
#include "linkw-pinctrl.dtsi"
12
12
13
13
/ {
14
- model = "linkw";
15
14
compatible = "wch,ch32v208";
15
+ model = "linkw";
16
16
17
17
chosen {
18
- zephyr,sram = &sram0;
19
- zephyr,flash = &flash0;
20
18
zephyr,console = &usart2;
19
+ zephyr,flash = &flash0;
21
20
zephyr,shell-uart = &usart2;
21
+ zephyr,sram = &sram0;
22
22
};
23
23
24
24
leds {
82
82
};
83
83
84
84
&usart2 {
85
- status = "okay";
86
85
current-speed = <115200>;
87
86
pinctrl-0 = <&usart2_default>;
88
87
pinctrl-names = "default";
88
+ status = "okay";
89
89
};
90
90
91
91
&iwdg {
You can’t perform that action at this time.
0 commit comments