boards: arm: stm32l562e_dk: Enabling PWM support in device tree
This commit enables PWM support for stm32l562e_dk platform in device tree. Signed-off-by: Sidhdharth Yadav <sidhdharth.yadav@hcl.com>
This commit is contained in:
parent
cf80205daa
commit
7137969dcb
4 changed files with 19 additions and 0 deletions
|
@ -170,6 +170,8 @@ The Zephyr stm32l562e_dk board configuration supports the following hardware fea
|
|||
+-----------+------------+-------------------------------------+
|
||||
| RNG | on-chip | True Random Number Generator |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| PWM | on-chip | PWM |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
Other hardware features are not yet supported on this Zephyr port.
|
||||
|
||||
|
@ -193,6 +195,7 @@ Default Zephyr Peripheral Mapping:
|
|||
- SPI_1 SCK/MISO/MOSI : PG2/PG3/PG4 (BT SPI bus)
|
||||
- USER_PB : PC13
|
||||
- LD10 : PG12
|
||||
- PWM_2_CH1 : PA0
|
||||
|
||||
System Clock
|
||||
------------
|
||||
|
|
|
@ -38,3 +38,9 @@
|
|||
&lptim1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&timers2 {
|
||||
pwm {
|
||||
st,prescaler = <10000>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -10,5 +10,6 @@ supported:
|
|||
- i2c
|
||||
- lsm6dso
|
||||
- lptim
|
||||
- pwm
|
||||
ram: 192
|
||||
flash: 512
|
||||
|
|
|
@ -115,3 +115,12 @@
|
|||
label = "SPBTLE-RF";
|
||||
};
|
||||
};
|
||||
|
||||
&timers2 {
|
||||
status = "okay";
|
||||
|
||||
pwm2: pwm {
|
||||
status = "okay";
|
||||
pinctrl-0 = <&tim2_ch1_pa0>;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue