STMicroelectronics STM32 RNG
Schema identifier ($id): "http://devicetree.org/schemas/rng/st,stm32-rng.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STM32 hardware random number generator is a simple fixed purpose IP and is fully separated from other crypto functions.
Maintainers (maintainers): "Lionel Debieve <lionel.debieve@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stm32-rng", "st,stm32mp13-rng", "st,stm32mp25-rng"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"bus"
resets — not listed as required here #
Maximum number of items (maxItems): 1
clock-error-detect — not listed as required here #
Value type (type): "boolean"
If set enable the clock detection management
st,rng-lock-conf — not listed as required here #
Value type (type): "boolean"
If set, the RNG configuration in RNG_CR, RNG_HTCR and RNG_NSCR will be locked.
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Required in this object (required): "compatible", "reg", "clocks"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
st,rng-lock-conf— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/stm32mp1-clks.h>
rng@54003000 {
compatible = "st,stm32-rng";
reg = <0x54003000 0x400>;
clocks = <&rcc RNG1_K>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)