dts: riscv: neorv32: add trng devicetree node
Add devicetree node for the NEORV32 True Random Number Generator (TRNG). Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
parent
91233dba70
commit
95226c056f
1 changed files with 12 additions and 0 deletions
|
|
@ -10,6 +10,10 @@
|
|||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,entropy = &trng;
|
||||
};
|
||||
|
||||
cpus {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
|
@ -68,6 +72,14 @@
|
|||
label = "UART_0";
|
||||
};
|
||||
|
||||
trng: rng@ffffffb8 {
|
||||
compatible = "neorv32-trng";
|
||||
status = "disabled";
|
||||
reg = <0xffffffb8 4>;
|
||||
syscon = <&sysinfo>;
|
||||
label = "TRNG";
|
||||
};
|
||||
|
||||
gpio: gpio {
|
||||
compatible = "simple-bus";
|
||||
gpio-map-mask = <0xffffffe0 0xffffffc0>;
|
||||
|
|
|
|||
Loading…
Reference in a new issue