Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/rng/ti,keystone-rng.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Keystone SoC Hardware Random Number Generator |
| 8 | |
| 9 | maintainers: |
| 10 | - Nishanth Menon <nm@ti.com> |
| 11 | - Santosh Shilimkar <ssantosh@kernel.org> |
| 12 | |
| 13 | properties: |
| 14 | compatible: |
| 15 | const: ti,keystone-rng |
| 16 | |
| 17 | clocks: |
| 18 | maxItems: 1 |
| 19 | |
| 20 | clock-names: |
| 21 | items: |
| 22 | - const: fck |
| 23 | |
| 24 | reg: |
| 25 | maxItems: 1 |
| 26 | |
| 27 | ti,syscon-sa-cfg: |
| 28 | $ref: /schemas/types.yaml#/definitions/phandle |
| 29 | description: | |
| 30 | Phandle to syscon node of the SA configuration registers. These |
| 31 | registers are shared between HWRNG and crypto drivers. |
| 32 | |
| 33 | required: |
| 34 | - compatible |
| 35 | - clocks |
| 36 | - clock-names |
| 37 | - reg |
| 38 | - ti,syscon-sa-cfg |
| 39 | |
| 40 | additionalProperties: false |
| 41 | |
| 42 | examples: |
| 43 | - | |
| 44 | rng@24000 { |
| 45 | compatible = "ti,keystone-rng"; |
| 46 | ti,syscon-sa-cfg = <&sa_config>; |
| 47 | clocks = <&clksa>; |
| 48 | clock-names = "fck"; |
| 49 | reg = <0x24000 0x1000>; |
| 50 | }; |