MediaTek Random number generator

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)

Edit this page