Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Rng bindings

Single-page view · as markdown

SUN UltraSPARC HWRNG

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/SUNW,n2-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "David S. Miller <davem@davemloft.net>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "SUNW,n2-rng", "SUNW,vf-rng", "SUNW,kt-rng", "ORCL,m4-rng", "ORCL,m7-rng"

reg — required here #

Maximum number of items (maxItems): 1

rng-#units — not listed as required here #

Number of RNG units

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

bus {
    #address-cells = <1>;
    #size-cells = <0>;

    rng@e {
        compatible = "ORCL,m4-rng";
        reg = <0xe>;
        rng-#units = <2>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 15: for Niagara 2 Platform (SUN UltraSPARC T2 CPU)

Line 16: for Victoria Falls Platform (SUN UltraSPARC T2 Plus CPU)

Line 17: for Rainbow/Yosemite Falls Platform (SUN SPARC T3/T4),

Line 18: (UltraSPARC KT/Niagara 3 - development names)

Line 19: more recent systems (after Oracle acquisition of SUN)

Line 21: for SPARC T5/M5

Line 22: for SPARC T7/M7

Line 38: PS: see as well prtconfs.git by DaveM

Airoha EN7851 True Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/airoha,en7581-trng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Christian Marangi <ansuelsmth@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "airoha,en7581-trng"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

rng@1faa1000 {
    compatible = "airoha,en7581-trng";
    reg = <0x1faa1000 0x1000>;
    interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Amlogic Meson Random number generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/amlogic,meson-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "amlogic,meson-rng", "amlogic,meson-s4-rng"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@c8834000 {
      compatible = "amlogic,meson-rng";
      reg = <0xc8834000 0x4>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 2: Copyright 2019 BayLibre, SAS

APM X-Gene SoC Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/apm,x-gene-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Khuong Dinh <khuong@os.amperecomputing.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "apm,xgene-rng"

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "interrupts", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    rng@10520000 {
        compatible = "apm,xgene-rng";
        reg = <0x0 0x10520000 0x0 0x100>;
        interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&rngpkaclk 0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Arm TrustZone CryptoCell TRNG engine

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/arm-cctrng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Hadar Gat <hadar.gat@arm.com>"

Arm TrustZone CryptoCell TRNG (True Random Number Generator) engine.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "arm,cryptocell-713-trng", "arm,cryptocell-703-trng"

interrupts — required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

arm,rosc-ratio — required here #

Arm TrustZone CryptoCell TRNG engine has 4 ring oscillators. Sampling ratio values for these 4 ring oscillators. (from calibration)

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array

Maximum number of items (maxItems): 4

clocks — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "interrupts", "reg", "arm,rosc-ratio"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

arm_cctrng: rng@60000000 {
    compatible = "arm,cryptocell-713-trng";
    interrupts = <0 29 4>;
    reg = <0x60000000 0x10000>;
    arm,rosc-ratio = <5000 1000 500 0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Atmel AT91 True Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/atmel,at91-trng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>", "Alexandre Belloni <alexandre.belloni@bootlin.com>", "Claudiu Beznea <claudiu.beznea@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "atmel,at91sam9g45-trng", "microchip,sam9x60-trng"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,sama7g5-trng"

Item 2

Exact value (const): "atmel,at91sam9g45-trng"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "microchip,sam9x7-trng", "microchip,sama7d65-trng"

Item 2

Exact value (const): "microchip,sam9x60-trng"

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "interrupts", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>

rng@fffcc000 {
    compatible = "atmel,at91sam9g45-trng";
    reg = <0xfffcc000 0x4000>;
    interrupts = <6 IRQ_TYPE_LEVEL_HIGH 0>;
    clocks = <&trng_clk>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

BCM2835/6368 Random number generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/brcm,bcm2835.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Stefan Wahren <stefan.wahren@i2se.com>", "Florian Fainelli <f.fainelli@gmail.com>", "Herbert Xu <herbert@gondor.apana.org.au>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "brcm,bcm2835-rng", "brcm,bcm-nsp-rng", "brcm,bcm5301x-rng", "brcm,bcm6368-rng"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Exact value (const): "ipsec"

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Exact value (const): "ipsec"

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,bcm6368-rng"

When the condition matches (then) #

Required in this object (required): "clocks", "clock-names", "resets", "reset-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@7e104000 {
    compatible = "brcm,bcm2835-rng";
    reg = <0x7e104000 0x10>;
    interrupts = <2 29>;
};
rng@18033000 {
    compatible = "brcm,bcm-nsp-rng";
    reg = <0x18033000 0x14>;
};
rng@10004180 {
    compatible = "brcm,bcm6368-rng";
    reg = <0x10004180 0x14>;

    clocks = <&periph_clk 18>;
    clock-names = "ipsec";

    resets = <&periph_rst 4>;
    reset-names = "ipsec";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

BCM74110 Random number generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/brcm,bcm74110-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Random number generator used on the BCM74110.

Maintainers (maintainers): "Markus Mayer <mmayer@broadcom.com>", "Florian Fainelli <florian.fainelli@broadcom.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "brcm,bcm74110-rng"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@83ba000 {
    compatible = "brcm,bcm74110-rng";
    reg = <0x83ba000 0x14>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

HWRNG support for the iproc-rng200 driver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/brcm,iproc-rng200.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "brcm,bcm2711-rng200", "brcm,bcm7211-rng200", "brcm,bcm7278-rng200", "brcm,iproc-rng200"

reg — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>

rng@18032000 {
    compatible = "brcm,iproc-rng200";
    reg = <0x18032000 0x28>;
    interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Hisilicon Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/hisi-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Kefeng Wang <wangkefeng.wang@huawei>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "hisilicon,hip04-rng", "hisilicon,hip05-rng"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@d1010000 {
  compatible = "hisilicon,hip05-rng";
  reg = <0xd1010000 0x100>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Freescale RNGA/RNGB/RNGC (Random Number Generator Versions A, B and C)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/imx-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vladimir Zapolskiy <vz@mleia.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx21-rnga"

Rule 2

Exact value (const): "fsl,imx25-rngb"

Rule 3

Exact value (const): "fsl,imx31-rnga"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "fsl,imx21-rnga"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6sl-rngb", "fsl,imx6sll-rngb", "fsl,imx6ull-rngb"

Item 2

Exact value (const): "fsl,imx25-rngb"

Rule 6

Exact value (const): "fsl,imx35-rngc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rngb@53fb0000 {
    compatible = "fsl,imx25-rngb";
    reg = <0x53fb0000 0x4000>;
    clocks = <&clks 109>;
    interrupts = <22>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

RNG in Ingenic SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/ingenic,rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>"

The Random Number Generator in Ingenic SoCs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ingenic,jz4780-rng", "ingenic,x1000-rng"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng: rng@d8 {
    compatible = "ingenic,jz4780-rng";
    reg = <0xd8 0x8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

DTRNG in Ingenic SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/ingenic,trng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>"

The True Random Number Generator in Ingenic SoCs.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ingenic,x1830-dtrng"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/ingenic,x1830-cgu.h>

dtrng: trng@10072000 {
    compatible = "ingenic,x1830-dtrng";
    reg = <0x10072000 0xc>;

    clocks = <&cgu X1830_CLK_DTRNG>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Inside-Secure HWRNG Module

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/inside-secure,safexcel-eip76.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jayesh Choudhary <j-choudhary@ti.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ti,omap2-rng", "ti,omap4-rng", "inside-secure,safexcel-eip76"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "marvell,armada-8k-rng"

Item 2

Exact value (const): "inside-secure,safexcel-eip76"

ti,hwmods — not listed as required here #

Exact value (const): "rng"

Deprecated (deprecated): true

Name of the hwmod associated with the RNG module

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

EIP150 gateable clock

Item 2

Main gateable clock

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "ti,omap4-rng", "inside-secure,safexcel-eip76"

When the condition matches (then) #

Required in this object (required): "interrupts"

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

/* AM335x */
rng: rng@48310000 {
        compatible = "ti,omap4-rng";
        ti,hwmods = "rng";
        reg = <0x48310000 0x2000>;
        interrupts = <111>;
};
/* SafeXcel IP-76 */
trng: rng@f2760000 {
        compatible = "inside-secure,safexcel-eip76";
        reg = <0xf2760000 0x7d>;
        interrupts = <0 59 4>;
        clocks = <&cpm_syscon0 1 25>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Intel IXP46x RNG

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/intel,ixp46x-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The Intel IXP46x has a random number generator at a fixed physical location in memory. Each read is guaranteed to provide a unique 32 bit random number.

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "intel,ixp46x-rng"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@70002100 {
  compatible = "intel,ixp46x-rng";
  reg = <0x70002100 4>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Microchip PIC32 Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/microchip,pic32-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The PIC32 RNG provides a pseudo random number generator which can be seeded by another true random number generator.

Maintainers (maintainers): "Joshua Henderson <joshua.henderson@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "microchip,pic32mzda-rng"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng: rng@1f8e6000 {
  compatible = "microchip,pic32mzda-rng";
  reg = <0x1f8e6000 0x1000>;
  clocks = <&PBCLK5>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Virtual Machine Generation ID

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/microsoft,vmgenid.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jason A. Donenfeld <Jason@zx2c4.com>"

Firmwares or hypervisors can use this devicetree to describe an interrupt and a shared resource to inject a Virtual Machine Generation ID. Virtual Machine Generation ID is a globally unique identifier (GUID) and the devicetree binding follows VMGenID specification defined in http://go.microsoft.com/fwlink/?LinkId=260709.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "microsoft,vmgenid"

reg — required here #

Specifies a 16-byte VMGenID in endianness-agnostic hexadecimal format.

Maximum number of items (maxItems): 1

interrupts — required here #

Interrupt used to notify that a new VMGenID is available.

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
rng@80000000 {
  compatible = "microsoft,vmgenid";
  reg = <0x80000000 0x1000>;
  interrupts = <GIC_SPI 35 IRQ_TYPE_EDGE_RISING>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

MediaTek Random number generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/mtk-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Sean Wang <sean.wang@mediatek.com>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^rng@[0-9a-f]+$"

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt7623-rng"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt7622-rng", "mediatek,mt7629-rng", "mediatek,mt7986-rng", "mediatek,mt8365-rng", "mediatek,mt8516-rng"

Item 2

Exact value (const): "mediatek,mt7623-rng"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rng"

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/mt2701-clk.h>
rng: rng@1020f000 {
        compatible = "mediatek,mt7623-rng";
        reg = <0x1020f000 0x1000>;
        clocks = <&infracfg CLK_INFRA_TRNG>;
        clock-names = "rng";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Nuvoton NPCM SoC Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/nuvoton,npcm-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Avi Fishman <avifishman70@gmail.com>", "Tomer Maimon <tmaimon77@gmail.com>", "Tali Perry <tali.perry1@gmail.com>", "Patrick Venture <venture@google.com>", "Nancy Yuen <yuenn@google.com>", "Benjamin Fair <benjaminfair@google.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,npcm750-rng", "nuvoton,npcm845-rng"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@f000b000 {
    compatible = "nuvoton,npcm750-rng";
    reg = <0xf000b000 0x8>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Rockchip RK3568 TRNG

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/rockchip,rk3568-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

True Random Number Generator on Rockchip RK3568 SoC

Maintainers (maintainers): "Aurelien Jarno <aurelien@aurel32.net>", "Daniel Golle <daniel@makrotopia.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3568-rng"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

TRNG clock

Item 2

TRNG AHB clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "ahb"

resets — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3568-cru.h>
bus {
  #address-cells = <2>;
  #size-cells = <2>;

  rng@fe388000 {
    compatible = "rockchip,rk3568-rng";
    reg = <0x0 0xfe388000 0x0 0x4000>;
    clocks = <&cru CLK_TRNG_NS>, <&cru HCLK_TRNG_NS>;
    clock-names = "core", "ahb";
    resets = <&cru SRST_TRNG_NS>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Rockchip RK3576/RK3588 TRNG

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/rockchip,rk3588-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

True Random Number Generator on Rockchip RK3576/RK3588 SoCs

Maintainers (maintainers): "Nicolas Frattaroli <nicolas.frattaroli@collabora.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "rockchip,rk3576-rng", "rockchip,rk3588-rng"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

TRNG AHB clock

interrupts — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rockchip,rk3588-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/reset/rockchip,rk3588-cru.h>
bus {
  #address-cells = <2>;
  #size-cells = <2>;

  rng@fe378000 {
    compatible = "rockchip,rk3588-rng";
    reg = <0x0 0xfe378000 0x0 0x200>;
    interrupts = <GIC_SPI 400 IRQ_TYPE_LEVEL_HIGH 0>;
    clocks = <&scmi_clk SCMI_HCLK_SECURE_NS>;
    resets = <&scmi_reset SCMI_SRST_H_TRNG_NS>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Samsung Exynos SoC Pseudo Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/samsung,exynos4-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,exynos4-rng", "samsung,exynos5250-prng"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "secss"

Required in this object (required): "compatible", "reg", "clock-names", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos4.h>

rng@10830400 {
    compatible = "samsung,exynos4-rng";
    reg = <0x10830400 0x200>;
    clocks = <&clock CLK_SSS>;
    clock-names = "secss";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 15: for Exynos4210 and Exynos4412

Line 16: for Exynos5250+

Samsung Exynos SoC True Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/samsung,exynos5250-trng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Łukasz Stelmach <l.stelmach@samsung.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "samsung,exynos5250-trng", "samsung,exynos850-trng"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "google,gs101-trng"

Item 2

Exact value (const): "samsung,exynos850-trng"

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "clock-names", "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos850-trng"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

SSS (Security Sub System) operating clock

Item 2

SSS (Security Sub System) bus clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "secss"

Item 2

Exact value (const): "pclk"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

SSS (Security Sub System) operating clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "secss"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos5250.h>

rng@10830600 {
    compatible = "samsung,exynos5250-trng";
    reg = <0x10830600 0x100>;
    clocks = <&clock CLK_SSS>;
    clock-names = "secss";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Silex Insight BA431 RNG

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/silex-insight,ba431-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

The BA431 hardware random number generator is an IP that is FIPS-140-2/3 certified.

Maintainers (maintainers): "Olivier Sobrie <olivier.sobrie@silexinsight.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "silex-insight,ba431-rng"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@42800000 {
  compatible = "silex-insight,ba431-rng";
  reg = <0x42800000 0x1000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

STMicroelectronics Hardware Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/st,rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Patrice Chotard <patrice.chotard@foss.st.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "st,rng"

clocks — required here #

Maximum number of items (maxItems): 1

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "clocks", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@fee80000 {
    compatible = "st,rng";
    reg = <0xfee80000 0x1000>;
    clocks = <&clk_sysin>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

STMicroelectronics STM32 RNG

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

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 here

Rule for matching array elements (contains)

Allowed values (enum): "st,stm32-rng"

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 here

Rule for matching array elements (contains)

Allowed values (enum): "st,stm32-rng", "st,stm32mp13-rng"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum 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 here

Minimum number of items (minItems): 2

Required in this object (required): "clock-names"

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)

StarFive SoC TRNG Module

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/starfive,jh7110-trng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Jia Jie Ho <jiajie.ho@starfivetech.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "starfive,jh8100-trng"

Item 2

Exact value (const): "starfive,jh7110-trng"

Rule 2

Exact value (const): "starfive,jh7110-trng"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

Hardware reference clock

Item 2

AHB reference clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "hclk"

Item 2

Exact value (const): "ahb"

resets — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "interrupts"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng: rng@1600C000 {
    compatible = "starfive,jh7110-trng";
    reg = <0x1600C000 0x4000>;
    clocks = <&clk 15>, <&clk 16>;
    clock-names = "hclk", "ahb";
    resets = <&reset 3>;
    interrupts = <30>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Keystone SoC Hardware Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/ti,keystone-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Nishanth Menon <nm@ti.com>", "Santosh Shilimkar <ssantosh@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ti,keystone-rng"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "fck"

reg — required here #

Maximum number of items (maxItems): 1

ti,syscon-sa-cfg — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

Phandle to syscon node of the SA configuration registers. These registers are shared between HWRNG and crypto drivers.

Required in this object (required): "compatible", "clocks", "clock-names", "reg", "ti,syscon-sa-cfg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@24000 {
    compatible = "ti,keystone-rng";
    ti,syscon-sa-cfg = <&sa_config>;
    clocks = <&clksa>;
    clock-names = "fck";
    reg = <0x24000 0x1000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

OMAP ROM Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/ti,omap-rom-rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Pali Rohár <pali@kernel.org>", "Tony Lindgren <tony@atomide.com>"

Secure SoCs may provide RNG via secure ROM calls like Nokia N900 does. The implementation can depend on the SoC secure ROM used.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nokia,n900-rom-rng"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ick"

Required in this object (required): "compatible", "clocks", "clock-names"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng {
    compatible = "nokia,n900-rom-rng";
    clocks = <&rng_ick>;
    clock-names = "ick";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

TimerIO Random Number Generator

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/timeriomem_rng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "timeriomem_rng"

period — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

wait time in microseconds to use between samples

quality — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

Estimated number of bits of true entropy per 1024 bits read from the rng. Defaults to zero which causes the kernel's default quality to be used instead. Note that the default quality is usually zero which disables using this rng to automatically fill the kernel's entropy pool.

reg — required here #

Maximum number of items (maxItems): 1

Base address to sample from. Currently 'reg' must be at least four bytes wide and 32-bit aligned.

Required in this object (required): "compatible", "period", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@44 {
    compatible = "timeriomem_rng";
    reg = <0x44 0x04>;
    period = <1000000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only

Xiphera XIP8001B-trng

Peios Kernel / Hardware and drivers / Device-tree binding reference / Rng bindings

Schema identifier ($id): "http://devicetree.org/schemas/rng/xiphera,xip8001b-trng.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Atte Tommiska <atte.tommiska@xiphera.com>"

Xiphera FPGA-based true random number generator intellectual property core.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "xiphera,xip8001b-trng"

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

rng@43c00000 {
    compatible = "xiphera,xip8001b-trng";
    reg = <0x43c00000 0x10000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Peios Learn — documentation for Peios software.

Built with Trail.