Skip to content

Commit 2756da3

Browse files
djiatsaf-stcarlescufi
authored andcommitted
boards: st: add timers nodes in dts file and update docs
enable two timers(16 and 32 bits) in nucleo_u031r8 stm32u083c_dk and nucleo_u083rc. Signed-off-by: Fabrice DJIATSA <[email protected]>
1 parent ea70f82 commit 2756da3

File tree

9 files changed

+75
-0
lines changed

9 files changed

+75
-0
lines changed

boards/st/nucleo_u031r8/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ The Zephyr _nucleo_u031r8_ board configuration supports the following hardware f
144144
+-----------+------------+-------------------------------------+
145145
| I2C | on-chip | i2c |
146146
+-----------+------------+-------------------------------------+
147+
| PWM | on-chip | pwm |
148+
+-----------+------------+-------------------------------------+
147149

148150
Other hardware features are not yet supported on this Zephyr port.
149151

boards/st/nucleo_u031r8/nucleo_u031r8.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,25 @@
101101
status = "okay";
102102
clock-frequency = <I2C_BITRATE_FAST>;
103103
};
104+
105+
&timers1 {
106+
st,prescaler = <10000>;
107+
status = "okay";
108+
109+
pwm1: pwm {
110+
status = "okay";
111+
pinctrl-0 = <&tim1_ch1_pa8>;
112+
pinctrl-names = "default";
113+
};
114+
};
115+
116+
&timers2 {
117+
st,prescaler = <10000>;
118+
status = "okay";
119+
120+
pwm2: pwm {
121+
pinctrl-0 = <&tim2_ch1_pa5>;
122+
pinctrl-names = "default";
123+
status = "okay";
124+
};
125+
};

boards/st/nucleo_u031r8/nucleo_u031r8.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ supported:
99
- dac
1010
- gpio
1111
- i2c
12+
- pwm
1213
- usart
1314
ram: 12
1415
flash: 64

boards/st/nucleo_u083rc/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ The Zephyr nucleo_u083rc board configuration supports the following hardware fea
150150
+-----------+------------+-------------------------------------+
151151
| I2C | on-chip | i2c |
152152
+-----------+------------+-------------------------------------+
153+
| PWM | on-chip | pwm |
154+
+-----------+------------+-------------------------------------+
153155

154156
Other hardware features are not yet supported on this Zephyr port.
155157

boards/st/nucleo_u083rc/nucleo_u083rc.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,25 @@
101101
status = "okay";
102102
clock-frequency = <I2C_BITRATE_FAST>;
103103
};
104+
105+
&timers1 {
106+
st,prescaler = <10000>;
107+
status = "okay";
108+
109+
pwm1: pwm {
110+
status = "okay";
111+
pinctrl-0 = <&tim1_ch1_pa8>;
112+
pinctrl-names = "default";
113+
};
114+
};
115+
116+
&timers2 {
117+
st,prescaler = <10000>;
118+
status = "okay";
119+
120+
pwm2: pwm {
121+
pinctrl-0 = <&tim2_ch1_pa5>;
122+
pinctrl-names = "default";
123+
status = "okay";
124+
};
125+
};

boards/st/nucleo_u083rc/nucleo_u083rc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ supported:
1111
- dac
1212
- gpio
1313
- i2c
14+
- pwm
1415
- usart
1516
ram: 40
1617
flash: 256

boards/st/stm32u083c_dk/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ The Zephyr stm32u083c_dk board configuration supports the following hardware fea
163163
+-----------+------------+-------------------------------------+
164164
| I2C | on-chip | i2c |
165165
+-----------+------------+-------------------------------------+
166+
| PWM | on-chip | pwm |
167+
+-----------+------------+-------------------------------------+
166168

167169
Other hardware features are not yet supported on this Zephyr port.
168170

boards/st/stm32u083c_dk/stm32u083c_dk.dts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,25 @@
9191
status = "okay";
9292
clock-frequency = <I2C_BITRATE_FAST>;
9393
};
94+
95+
&timers1 {
96+
st,prescaler = <10000>;
97+
status = "okay";
98+
99+
pwm1: pwm {
100+
status = "okay";
101+
pinctrl-0 = <&tim1_ch1_pa8>;
102+
pinctrl-names = "default";
103+
};
104+
};
105+
106+
&timers2 {
107+
st,prescaler = <10000>;
108+
status = "okay";
109+
110+
pwm2: pwm {
111+
pinctrl-0 = <&tim2_ch1_pa5>;
112+
pinctrl-names = "default";
113+
status = "okay";
114+
};
115+
};

boards/st/stm32u083c_dk/stm32u083c_dk.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ supported:
1111
- dac
1212
- gpio
1313
- i2c
14+
- pwm
1415
- usart
1516
ram: 40
1617
flash: 256

0 commit comments

Comments
 (0)