Commit 8000f55a authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring
Browse files

dt-bindings: rng: ti,omap-rom-rng: convert OMAP ROM RNG to dtschema

parent ff95e85e
Loading
Loading
Loading
Loading
+0 −27
Original line number Diff line number Diff line
OMAP ROM RNG driver binding

Secure SoCs may provide RNG via secure ROM calls like Nokia N900 does. The
implementation can depend on the SoC secure ROM used.

- compatible:
	Usage: required
	Value type: <string>
	Definition: must be "nokia,n900-rom-rng"

- clocks:
	Usage: required
	Value type: <prop-encoded-array>
	Definition: reference to the the RNG interface clock

- clock-names:
	Usage: required
	Value type: <stringlist>
	Definition: must be "ick"

Example:

	rom_rng: rng {
		compatible = "nokia,n900-rom-rng";
		clocks = <&rng_ick>;
		clock-names = "ick";
	};
+41 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/rng/ti,omap-rom-rng.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: OMAP ROM Random Number Generator

maintainers:
  - Pali Rohár <pali@kernel.org>
  - Tony Lindgren <tony@atomide.com>

description:
  Secure SoCs may provide RNG via secure ROM calls like Nokia N900 does.
  The implementation can depend on the SoC secure ROM used.

properties:
  compatible:
    const: nokia,n900-rom-rng

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: ick

required:
  - compatible
  - clocks
  - clock-names

additionalProperties: false

examples:
  - |
    rng {
        compatible = "nokia,n900-rom-rng";
        clocks = <&rng_ick>;
        clock-names = "ick";
    };