11a60317bSFabien Parent# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 21a60317bSFabien Parent%YAML 1.2 31a60317bSFabien Parent--- 41a60317bSFabien Parent$id: "http://devicetree.org/schemas/rng/mtk-rng.yaml#" 51a60317bSFabien Parent$schema: "http://devicetree.org/meta-schemas/core.yaml#" 61a60317bSFabien Parent 71a60317bSFabien Parenttitle: MediaTek Random number generator 81a60317bSFabien Parent 91a60317bSFabien Parentmaintainers: 101a60317bSFabien Parent - Sean Wang <sean.wang@mediatek.com> 111a60317bSFabien Parent 121a60317bSFabien Parentproperties: 131a60317bSFabien Parent $nodename: 141a60317bSFabien Parent pattern: "^rng@[0-9a-f]+$" 151a60317bSFabien Parent 161a60317bSFabien Parent compatible: 171a60317bSFabien Parent oneOf: 181a60317bSFabien Parent - enum: 191a60317bSFabien Parent - mediatek,mt7623-rng 201a60317bSFabien Parent - items: 211a60317bSFabien Parent - enum: 221a60317bSFabien Parent - mediatek,mt7622-rng 231a60317bSFabien Parent - mediatek,mt7629-rng 24*70c1fc34SFabien Parent - mediatek,mt8365-rng 251a60317bSFabien Parent - mediatek,mt8516-rng 261a60317bSFabien Parent - const: mediatek,mt7623-rng 271a60317bSFabien Parent 281a60317bSFabien Parent reg: 291a60317bSFabien Parent maxItems: 1 301a60317bSFabien Parent 311a60317bSFabien Parent clocks: 321a60317bSFabien Parent maxItems: 1 331a60317bSFabien Parent 341a60317bSFabien Parent clock-names: 351a60317bSFabien Parent items: 361a60317bSFabien Parent - const: rng 371a60317bSFabien Parent 381a60317bSFabien Parentrequired: 391a60317bSFabien Parent - compatible 401a60317bSFabien Parent - reg 411a60317bSFabien Parent - clocks 421a60317bSFabien Parent - clock-names 431a60317bSFabien Parent 441a60317bSFabien ParentadditionalProperties: false 451a60317bSFabien Parent 461a60317bSFabien Parentexamples: 471a60317bSFabien Parent - | 481a60317bSFabien Parent #include <dt-bindings/clock/mt2701-clk.h> 491a60317bSFabien Parent rng: rng@1020f000 { 501a60317bSFabien Parent compatible = "mediatek,mt7623-rng"; 511a60317bSFabien Parent reg = <0x1020f000 0x1000>; 521a60317bSFabien Parent clocks = <&infracfg CLK_INFRA_TRNG>; 531a60317bSFabien Parent clock-names = "rng"; 541a60317bSFabien Parent }; 55