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:
Sidhdharth Yadav 2021-06-14 19:05:13 +05:30 committed by Kumar Gala
commit 7137969dcb
4 changed files with 19 additions and 0 deletions

View file

@ -170,6 +170,8 @@ The Zephyr stm32l562e_dk board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| RNG | on-chip | True Random Number Generator | | RNG | on-chip | True Random Number Generator |
+-----------+------------+-------------------------------------+ +-----------+------------+-------------------------------------+
| PWM | on-chip | PWM |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port. 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) - SPI_1 SCK/MISO/MOSI : PG2/PG3/PG4 (BT SPI bus)
- USER_PB : PC13 - USER_PB : PC13
- LD10 : PG12 - LD10 : PG12
- PWM_2_CH1 : PA0
System Clock System Clock
------------ ------------

View file

@ -38,3 +38,9 @@
&lptim1 { &lptim1 {
status = "okay"; status = "okay";
}; };
&timers2 {
pwm {
st,prescaler = <10000>;
};
};

View file

@ -10,5 +10,6 @@ supported:
- i2c - i2c
- lsm6dso - lsm6dso
- lptim - lptim
- pwm
ram: 192 ram: 192
flash: 512 flash: 512

View file

@ -115,3 +115,12 @@
label = "SPBTLE-RF"; label = "SPBTLE-RF";
}; };
}; };
&timers2 {
status = "okay";
pwm2: pwm {
status = "okay";
pinctrl-0 = <&tim2_ch1_pa0>;
};
};