boards: arm: stm32l562e_dk: add support for hardware RNG

Added support for RNG for stm32l562e_dk board, and updated
the document.

Tested with sample entropy project.

Signed-off-by: Yestin Sun <sunyi0804@gmail.com>
This commit is contained in:
Yestin Sun 2021-03-26 21:37:01 -07:00 committed by Anas Nashif
parent d2403d07f3
commit b2d52caccb
2 changed files with 6 additions and 0 deletions

View File

@ -168,6 +168,8 @@ The Zephyr stm32l562e_dk board configuration supports the following hardware fea
+-----------+------------+-------------------------------------+
| TrustZone | on-chip | Trusted Firmware-M |
+-----------+------------+-------------------------------------+
| RNG | on-chip | True Random Number Generator |
+-----------+------------+-------------------------------------+
Other hardware features are not yet supported on this Zephyr port.

View File

@ -69,6 +69,10 @@
};
};
&rng {
status = "okay";
};
&spi1 {
pinctrl-0 = <&spi1_sck_pg2 &spi1_miso_pg3 &spi1_mosi_pg4>;
cs-gpios = <&gpiog 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;