dts: arm: st: wb0: add TRNG node
Add Device Tree nodes corresponding to TRNG of STM32WB0 series SoCs. Signed-off-by: Mathieu Choplain <mathieu.choplain@st.com>
This commit is contained in:
parent
1afc04441a
commit
77aeaa8ab7
2 changed files with 28 additions and 0 deletions
|
|
@ -259,6 +259,22 @@
|
|||
dma-requests= <25>;
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
/**
|
||||
* This node is valid for STM32WB05, STM32WB06 and
|
||||
* STM32WB07, all equipped with the same IRQ-less
|
||||
* TRNG instance. Since all those properties are
|
||||
* also valid on STM32SWB09, except "compatible",
|
||||
* we pretend this node is valid for all SoCs of
|
||||
* the series and clean up in `stm32wb09.dtsi`.
|
||||
*/
|
||||
rng: rng@48600000 {
|
||||
compatible = "st,stm32-rng-noirq";
|
||||
reg = <0x48600000 DT_SIZE_K(4)>;
|
||||
clocks = <&rcc STM32_CLOCK(AHB0, 18)>;
|
||||
generation-delay-ns = <1250>; /* 1.25us */
|
||||
status = "disabled";
|
||||
};
|
||||
};
|
||||
|
||||
bt_hci_wb0: bt_hci_wb0 {
|
||||
|
|
|
|||
|
|
@ -14,5 +14,17 @@
|
|||
/ {
|
||||
soc {
|
||||
compatible = "st,stm32wb09", "st,stm32wb0", "simple-bus";
|
||||
|
||||
rng: rng@48600000 {
|
||||
/**
|
||||
* STM32WB09 TRNG has an interrupt line.
|
||||
* Switch to proper compatible, delete property
|
||||
* that doesn't apply to it, and add the interrupt
|
||||
* line as property.
|
||||
*/
|
||||
/delete-property/ generation-delay-ns;
|
||||
compatible = "st,stm32-rng";
|
||||
interrupts = <28 0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue