public inbox for devicetree@vger.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vkoul@kernel.org>
To: David Heidelberg <david@ixit.cz>
Cc: Andy Gross <agross@kernel.org>,
	Bjorn Andersson <bjorn.andersson@linaro.org>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	"David S. Miller" <davem@davemloft.net>,
	Rob Herring <robh+dt@kernel.org>,
	~okias/devicetree@lists.sr.ht, linux-arm-msm@vger.kernel.org,
	linux-crypto@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: crypto: convert Qualcomm PRNG to yaml
Date: Wed, 22 Dec 2021 12:01:21 +0530	[thread overview]
Message-ID: <YcLGOWSnIDFpNcW6@matsya> (raw)
In-Reply-To: <20211220184355.86582-1-david@ixit.cz>

On 20-12-21, 19:43, David Heidelberg wrote:
> Convert Qualcomm PRNG documentation to yaml format.


Acked-By: Vinod Koul <vkoul@kernel.org>

> 
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
>  .../devicetree/bindings/crypto/qcom,prng.txt  | 19 --------
>  .../devicetree/bindings/crypto/qcom,prng.yaml | 43 +++++++++++++++++++
>  2 files changed, 43 insertions(+), 19 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/crypto/qcom,prng.txt
>  create mode 100644 Documentation/devicetree/bindings/crypto/qcom,prng.yaml
> 
> diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.txt b/Documentation/devicetree/bindings/crypto/qcom,prng.txt
> deleted file mode 100644
> index 7ee0e9eac973..000000000000
> --- a/Documentation/devicetree/bindings/crypto/qcom,prng.txt
> +++ /dev/null
> @@ -1,19 +0,0 @@
> -Qualcomm MSM pseudo random number generator.
> -
> -Required properties:
> -
> -- compatible  : should be "qcom,prng" for 8916 etc
> -              : should be "qcom,prng-ee" for 8996 and later using EE
> -		(Execution Environment) slice of prng
> -- reg         : specifies base physical address and size of the registers map
> -- clocks      : phandle to clock-controller plus clock-specifier pair
> -- clock-names : "core" clocks all registers, FIFO and circuits in PRNG IP block
> -
> -Example:
> -
> -	rng@f9bff000 {
> -		compatible = "qcom,prng";
> -		reg = <0xf9bff000 0x200>;
> -		clocks = <&clock GCC_PRNG_AHB_CLK>;
> -		clock-names = "core";
> -	};
> diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
> new file mode 100644
> index 000000000000..bb42f4588b40
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
> @@ -0,0 +1,43 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/crypto/qcom,prng.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Qualcomm Pseudo Random Number Generator
> +
> +maintainers:
> +  - Vinod Koul <vkoul@kernel.org>
> +
> +properties:
> +  compatible:
> +    enum:
> +      - qcom,prng  # 8916 etc.
> +      - qcom,prng-ee  # 8996 and later using EE
> +
> +  reg:
> +    maxItems: 1
> +
> +  clocks:
> +    maxItems: 1
> +
> +  clock-names:
> +    items:
> +      - const: core
> +
> +required:
> +  - compatible
> +  - reg
> +  - clocks
> +  - clock-names
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    rng@f9bff000 {
> +        compatible = "qcom,prng";
> +        reg = <0xf9bff000 0x200>;
> +        clocks = <&clk 125>;
> +        clock-names = "core";
> +    };
> -- 
> 2.34.1

-- 
~Vinod

  reply	other threads:[~2021-12-22  6:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 18:43 [PATCH] dt-bindings: crypto: convert Qualcomm PRNG to yaml David Heidelberg
2021-12-22  6:31 ` Vinod Koul [this message]
2021-12-22 18:09 ` Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YcLGOWSnIDFpNcW6@matsya \
    --to=vkoul@kernel.org \
    --cc=agross@kernel.org \
    --cc=bjorn.andersson@linaro.org \
    --cc=davem@davemloft.net \
    --cc=david@ixit.cz \
    --cc=devicetree@vger.kernel.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=~okias/devicetree@lists.sr.ht \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox