From b2d52caccbee004a0f70d510ad169ebd08bdad62 Mon Sep 17 00:00:00 2001 From: Yestin Sun Date: Fri, 26 Mar 2021 21:37:01 -0700 Subject: [PATCH] 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 --- boards/arm/stm32l562e_dk/doc/index.rst | 2 ++ boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/boards/arm/stm32l562e_dk/doc/index.rst b/boards/arm/stm32l562e_dk/doc/index.rst index 8c36423ceca..a5fad8b3a52 100644 --- a/boards/arm/stm32l562e_dk/doc/index.rst +++ b/boards/arm/stm32l562e_dk/doc/index.rst @@ -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. diff --git a/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi b/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi index 58b1eba9eaa..22dbbd0cc19 100644 --- a/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi +++ b/boards/arm/stm32l562e_dk/stm32l562e_dk_common.dtsi @@ -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)>;