From 71e3a98b7716d796d44b1f3c90e3b69e7c806a5c Mon Sep 17 00:00:00 2001 From: The Nguyen Date: Mon, 26 Aug 2024 13:35:37 +0700 Subject: [PATCH] boards: renesas: add entropy support for Renesas RA8 boards Enable support of entropy driver for ek_ra8d1 and mck_ra8t1 boards Signed-off-by: The Nguyen --- boards/renesas/ek_ra8d1/doc/index.rst | 2 ++ boards/renesas/ek_ra8d1/ek_ra8d1.dts | 5 +++++ boards/renesas/mck_ra8t1/doc/index.rst | 2 ++ boards/renesas/mck_ra8t1/mck_ra8t1.dts | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/boards/renesas/ek_ra8d1/doc/index.rst b/boards/renesas/ek_ra8d1/doc/index.rst index 3105c019c4b..b79471899a4 100644 --- a/boards/renesas/ek_ra8d1/doc/index.rst +++ b/boards/renesas/ek_ra8d1/doc/index.rst @@ -98,6 +98,8 @@ The below features are currently supported on Zephyr OS for EK-RA8D1 board: +--------------+------------+------------------+ | CLOCK | on-chip | clock control | +--------------+------------+------------------+ +| ENTROPY | on-chip | entropy | ++--------------+------------+------------------+ Other hardware features are currently not supported by the port. diff --git a/boards/renesas/ek_ra8d1/ek_ra8d1.dts b/boards/renesas/ek_ra8d1/ek_ra8d1.dts index 3d5876abe16..55e050551b8 100644 --- a/boards/renesas/ek_ra8d1/ek_ra8d1.dts +++ b/boards/renesas/ek_ra8d1/ek_ra8d1.dts @@ -19,6 +19,7 @@ zephyr,flash = &flash0; zephyr,console = &uart9; zephyr,shell-uart = &uart9; + zephyr,entropy = &trng; }; leds { @@ -99,3 +100,7 @@ status = "okay"; }; }; + +&trng { + status = "okay"; +}; diff --git a/boards/renesas/mck_ra8t1/doc/index.rst b/boards/renesas/mck_ra8t1/doc/index.rst index 0afab1cbdf9..41ebb058c4e 100644 --- a/boards/renesas/mck_ra8t1/doc/index.rst +++ b/boards/renesas/mck_ra8t1/doc/index.rst @@ -96,6 +96,8 @@ The below features are currently supported on Zephyr OS for MCB-RA8T1 board: +--------------+------------+----------------------+ | CLOCK | on-chip | clock control | +--------------+------------+----------------------+ +| ENTROPY | on-chip | entropy | ++--------------+------------+----------------------+ Other hardware features are currently not supported by the port. diff --git a/boards/renesas/mck_ra8t1/mck_ra8t1.dts b/boards/renesas/mck_ra8t1/mck_ra8t1.dts index af069c824a6..99a9124899f 100644 --- a/boards/renesas/mck_ra8t1/mck_ra8t1.dts +++ b/boards/renesas/mck_ra8t1/mck_ra8t1.dts @@ -19,6 +19,7 @@ zephyr,flash = &flash0; zephyr,console = &uart3; zephyr,shell-uart = &uart3; + zephyr,entropy = &trng; }; leds { @@ -93,3 +94,7 @@ status = "okay"; }; }; + +&trng { + status = "okay"; +};