esp32s2: drivers: entropy: add support

also needed for wifi driver support.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2021-09-06 09:55:11 -03:00 committed by Christopher Friedt
parent d451fda467
commit c7ce4b2016
4 changed files with 21 additions and 1 deletions

View File

@ -6,3 +6,9 @@
config BOARD
default "esp32s2_saola"
depends on BOARD_ESP32S2_SAOLA
config ENTROPY_GENERATOR
default y
config ENTROPY_ESP32_RNG
default y if ENTROPY_GENERATOR

View File

@ -43,3 +43,7 @@
&timer3 {
status = "okay";
};
&trng0 {
status = "okay";
};

View File

@ -5,7 +5,7 @@
config ENTROPY_ESP32_RNG
bool "ESP32 entropy number generator driver"
depends on SOC_ESP32 || SOC_ESP32C3
depends on SOC_ESP32 || SOC_ESP32C3 || SOC_ESP32S2
select ENTROPY_HAS_DRIVER
default y
help

View File

@ -13,6 +13,10 @@
#address-cells = <1>;
#size-cells = <1>;
chosen {
zephyr,entropy = &trng0;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
@ -127,6 +131,12 @@
interrupts = <TG1_T1_LEVEL_INTR_SOURCE>;
interrupt-parent = <&intc>;
label = "TIMG1_T1";
};
trng0: trng@3f435110 {
compatible = "espressif,esp32-trng";
reg = <0x3f435110 0x4>;
label = "TRNG_0";
status = "disabled";
};
};