1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-C 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/rng/mtk-rng 4 $id: http://devicetree.org/schemas/rng/mtk-rng.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: MediaTek Random number generator 7 title: MediaTek Random number generator 8 8 9 maintainers: 9 maintainers: 10 - Sean Wang <sean.wang@mediatek.com> 10 - Sean Wang <sean.wang@mediatek.com> 11 11 12 properties: 12 properties: 13 $nodename: 13 $nodename: 14 pattern: "^rng@[0-9a-f]+$" 14 pattern: "^rng@[0-9a-f]+$" 15 15 16 compatible: 16 compatible: 17 oneOf: 17 oneOf: 18 - enum: 18 - enum: 19 - mediatek,mt7623-rng 19 - mediatek,mt7623-rng 20 - items: 20 - items: 21 - enum: 21 - enum: 22 - mediatek,mt7622-rng 22 - mediatek,mt7622-rng 23 - mediatek,mt7629-rng 23 - mediatek,mt7629-rng 24 - mediatek,mt7986-rng 24 - mediatek,mt7986-rng 25 - mediatek,mt8365-rng 25 - mediatek,mt8365-rng 26 - mediatek,mt8516-rng 26 - mediatek,mt8516-rng 27 - const: mediatek,mt7623-rng 27 - const: mediatek,mt7623-rng 28 28 29 reg: 29 reg: 30 maxItems: 1 30 maxItems: 1 31 31 32 clocks: 32 clocks: 33 maxItems: 1 33 maxItems: 1 34 34 35 clock-names: 35 clock-names: 36 items: 36 items: 37 - const: rng 37 - const: rng 38 38 39 required: 39 required: 40 - compatible 40 - compatible 41 - reg 41 - reg 42 - clocks 42 - clocks 43 - clock-names 43 - clock-names 44 44 45 additionalProperties: false 45 additionalProperties: false 46 46 47 examples: 47 examples: 48 - | 48 - | 49 #include <dt-bindings/clock/mt2701-clk.h> 49 #include <dt-bindings/clock/mt2701-clk.h> 50 rng: rng@1020f000 { 50 rng: rng@1020f000 { 51 compatible = "mediatek,mt7623-rng" 51 compatible = "mediatek,mt7623-rng"; 52 reg = <0x1020f000 0x1000>; 52 reg = <0x1020f000 0x1000>; 53 clocks = <&infracfg CLK_INFRA_TRNG 53 clocks = <&infracfg CLK_INFRA_TRNG>; 54 clock-names = "rng"; 54 clock-names = "rng"; 55 }; 55 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.