Commit b9f31c0e authored by Duy Phuong Hoang. Nguyen's avatar Duy Phuong Hoang. Nguyen Committed by Anas Nashif
Browse files

drivers: entropy: Initial support for trng driver of RA8



Initial commit for entropy support on RA8
- drivers: entropy: implementation for TRNG driver of RA8x1
- dts: arm: add device node for trng of RA8x1
- boards: arm: enable support zephyr_entropy for ek_ra8m1 and
update board documentation

Signed-off-by: default avatarThe Nguyen <the.nguyen.yf@renesas.com>
Signed-off-by: default avatarDuy Phuong Hoang. Nguyen <duy.nguyen.xa@renesas.com>
parent b4105434
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -100,6 +100,8 @@ The below features are currently supported on Zephyr OS for EK-RA8M1 board:
+-----------+------------+----------------------+
| I2C       | on-chip    | i2c                  |
+-----------+------------+----------------------+
| ENTROPY   | on-chip    | entropy              |
+-----------+------------+----------------------+

Other hardware features are currently not supported by the port.

+5 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
		zephyr,flash = &flash0;
		zephyr,console = &uart9;
		zephyr,shell-uart = &uart9;
		zephyr,entropy = &trng;
	};

	leds {
@@ -158,3 +159,7 @@ mikrobus_serial: &uart3 {};
	pinctrl-0 = <&adc0_default>;
	pinctrl-names = "default";
};

&trng {
	status = "okay";
};
+10 −9
Original line number Diff line number Diff line
@@ -34,5 +34,6 @@ zephyr_library_sources_ifdef(CONFIG_ENTROPY_GECKO_SE entropy_gecko_se.
zephyr_library_sources_ifdef(CONFIG_ENTROPY_PSA_CRYPTO_RNG            entropy_psa_crypto.c)
zephyr_library_sources_ifdef(CONFIG_ENTROPY_NPCX_DRBG                 entropy_npcx_drbg.c)
zephyr_library_sources_ifdef(CONFIG_ENTROPY_MAX32_TRNG                entropy_max32.c)
zephyr_library_sources_ifdef(CONFIG_ENTROPY_RENESAS_RA_RSIP_E51A_TRNG entropy_renesas_ra.c)

zephyr_library_link_libraries_ifdef(CONFIG_BUILD_WITH_TFM tfm_api)
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ source "drivers/entropy/Kconfig.bt_hci"
source "drivers/entropy/Kconfig.psa_crypto"
source "drivers/entropy/Kconfig.npcx"
source "drivers/entropy/Kconfig.max32"
source "drivers/entropy/Kconfig.renesas_ra"

config ENTROPY_HAS_DRIVER
	bool
+13 −0
Original line number Diff line number Diff line
# Copyright (c) 2024 Renesas Electronics Corporation
# SPDX-License-Identifier: Apache-2.0

# Renesas RA entropy generator driver configuration

config ENTROPY_RENESAS_RA_RSIP_E51A_TRNG
	bool "Renesas RA RSIP-E51A TRNG driver"
	default y
	depends on DT_HAS_RENESAS_RA_RSIP_E51A_TRNG_ENABLED
	select ENTROPY_HAS_DRIVER
	select USE_RA_FSP_SCE
	help
	  This option enables the Renesas RA RSIP-E51A RNG.
Loading