Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78db5580 authored by Neil Armstrong's avatar Neil Armstrong Committed by Rob Herring
Browse files

dt-bindings: rng: amlogic,meson-rng: convert to yaml



Now that we have the DT validation in place, let's convert the device tree
bindings for the Amlogic Random Number generator over to a YAML schemas.

Reviewed-by: default avatarRob Herring <robh@kernel.org>
Reviewed-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 8d63f971
Loading
Loading
Loading
Loading
+0 −21
Original line number Diff line number Diff line
Amlogic Meson Random number generator
=====================================

Required properties:

- compatible : should be "amlogic,meson-rng"
- reg : Specifies base physical address and size of the registers.

Optional properties:

- clocks : phandle to the following named clocks
- clock-names: Name of core clock, must be "core"

Example:

rng {
	compatible = "amlogic,meson-rng";
	reg = <0x0 0xc8834000 0x0 0x4>;
	clocks = <&clkc CLKID_RNG0>;
	clock-names = "core";
};
+37 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
# Copyright 2019 BayLibre, SAS
%YAML 1.2
---
$id: "http://devicetree.org/schemas/rng/amlogic,meson-rng.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: Amlogic Meson Random number generator

maintainers:
  - Neil Armstrong <narmstrong@baylibre.com>

properties:
  compatible:
    enum:
      - amlogic,meson-rng

  reg:
    maxItems: 1

  clocks:
    maxItems: 1

  clock-names:
    items:
      - const: core

required:
  - compatible
  - reg

examples:
  - |
    rng@c8834000 {
          compatible = "amlogic,meson-rng";
          reg = <0xc8834000 0x4>;
    };