Commit 0cf5e46e authored by Florian Fainelli's avatar Florian Fainelli Committed by Rob Herring
Browse files

dt-bindings: rng: Convert iProc RNG200 to YAML



Convert the Broadcom iProc RNG200 HWRNG Device Tree binding to YAML to
help with validation.

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20211208003727.3596577-11-f.fainelli@gmail.com


Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent 539d25b2
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
HWRNG support for the iproc-rng200 driver

Required properties:
- compatible : Must be one of:
	       "brcm,bcm2711-rng200"
	       "brcm,bcm7211-rng200"
	       "brcm,bcm7278-rng200"
	       "brcm,iproc-rng200"
- reg : base address and size of control register block

Example:

rng {
        compatible = "brcm,iproc-rng200";
        reg = <0x18032000 0x28>;
};
+30 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: "http://devicetree.org/schemas/rng/brcm,iproc-rng200.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: HWRNG support for the iproc-rng200 driver

maintainers:
  - Florian Fainelli <f.fainelli@gmail.com>

properties:
  compatible:
    enum:
      - brcm,bcm2711-rng200
      - brcm,bcm7211-rng200
      - brcm,bcm7278-rng200
      - brcm,iproc-rng200

  reg:
    maxItems: 1

additionalProperties: false

examples:
  - |
    rng@18032000 {
        compatible = "brcm,iproc-rng200";
        reg = <0x18032000 0x28>;
    };