diff --git a/drivers/entropy/Kconfig.renesas_ra b/drivers/entropy/Kconfig.renesas_ra index 8d96f4097848ec..c6220f6cb0f808 100644 --- a/drivers/entropy/Kconfig.renesas_ra +++ b/drivers/entropy/Kconfig.renesas_ra @@ -7,7 +7,7 @@ config ENTROPY_RENESAS_RA bool "Renesas RA TRNG driver" default y depends on DT_HAS_RENESAS_RA_RSIP_E51A_TRNG_ENABLED || DT_HAS_RENESAS_RA_SCE7_RNG_ENABLED \ - || DT_HAS_RENESAS_RA_SCE5_RNG_ENABLED + || DT_HAS_RENESAS_RA_SCE5_RNG_ENABLED || DT_HAS_RENESAS_RA_TRNG_ENABLED select ENTROPY_HAS_DRIVER select USE_RA_FSP_SCE help diff --git a/drivers/entropy/entropy_renesas_ra.c b/drivers/entropy/entropy_renesas_ra.c index 7537d1c05f90bc..7510679e376e47 100644 --- a/drivers/entropy/entropy_renesas_ra.c +++ b/drivers/entropy/entropy_renesas_ra.c @@ -50,3 +50,4 @@ static int entropy_renesas_ra_init(const struct device *dev) DT_FOREACH_STATUS_OKAY(renesas_ra_rsip_e51a_trng, RENESAS_RA_ENTROPY_INIT) DT_FOREACH_STATUS_OKAY(renesas_ra_sce5_rng, RENESAS_RA_ENTROPY_INIT) DT_FOREACH_STATUS_OKAY(renesas_ra_sce7_rng, RENESAS_RA_ENTROPY_INIT) +DT_FOREACH_STATUS_OKAY(renesas_ra_trng, RENESAS_RA_ENTROPY_INIT) diff --git a/dts/bindings/rng/renesas,ra-trng.yaml b/dts/bindings/rng/renesas,ra-trng.yaml new file mode 100644 index 00000000000000..326624fe489f4c --- /dev/null +++ b/dts/bindings/rng/renesas,ra-trng.yaml @@ -0,0 +1,8 @@ +# Copyright (c) 2024 Renesas Electronics Corporation +# SPDX-License-Identifier: Apache-2.0 + +description: Renesas RA TRNG + +compatible: "renesas,ra-trng" + +include: base.yaml diff --git a/modules/Kconfig.renesas_fsp b/modules/Kconfig.renesas_fsp index 4055175db57bdc..f74a5953dc4a30 100644 --- a/modules/Kconfig.renesas_fsp +++ b/modules/Kconfig.renesas_fsp @@ -73,6 +73,13 @@ config HAS_RENESAS_RA_SCE5 help Includes SCE5 implementation for SCE driver +config HAS_RENESAS_RA_TRNG + bool + default y + depends on DT_HAS_RENESAS_RA_TRNG_ENABLED + help + Includes TRNG implementation for SCE driver + endif config USE_RA_FSP_SPI_B