0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/rng/apm,x-gene-rng.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: APM X-Gene SoC Random Number Generator
0008
0009 maintainers:
0010 - Khuong Dinh <khuong@os.amperecomputing.com>
0011
0012 properties:
0013 compatible:
0014 const: apm,xgene-rng
0015
0016 clocks:
0017 maxItems: 1
0018
0019 interrupts:
0020 maxItems: 1
0021
0022 reg:
0023 maxItems: 1
0024
0025 required:
0026 - compatible
0027 - clocks
0028 - interrupts
0029 - reg
0030
0031 additionalProperties: false
0032
0033 examples:
0034 - |
0035 #include <dt-bindings/interrupt-controller/arm-gic.h>
0036
0037 soc {
0038 #address-cells = <2>;
0039 #size-cells = <2>;
0040
0041 rng@10520000 {
0042 compatible = "apm,xgene-rng";
0043 reg = <0x0 0x10520000 0x0 0x100>;
0044 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
0045 clocks = <&rngpkaclk 0>;
0046 };
0047 };