From patchwork Sun Feb 16 10:04:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hadar Gat X-Patchwork-Id: 11384327 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4C16592A for ; Sun, 16 Feb 2020 10:04:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3712C22522 for ; Sun, 16 Feb 2020 10:04:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727723AbgBPKEn (ORCPT ); Sun, 16 Feb 2020 05:04:43 -0500 Received: from foss.arm.com ([217.140.110.172]:52992 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726020AbgBPKEn (ORCPT ); Sun, 16 Feb 2020 05:04:43 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AD9B130E; Sun, 16 Feb 2020 02:04:42 -0800 (PST) Received: from ssg-dev-vb.kfn.arm.com (unknown [10.50.4.137]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7AF1B3F68F; Sun, 16 Feb 2020 02:04:38 -0800 (PST) From: Hadar Gat To: Matt Mackall , Herbert Xu , Rob Herring , Mark Rutland , Arnd Bergmann , Greg Kroah-Hartman , Krzysztof Kozlowski , Daniel Thompson , Tomer Maimon , Stefan Wahren , Sumit Garg , Zaibo Xu , Weili Qian , Mauro Carvalho Chehab , "David S. Miller" , Jonathan Cameron Cc: linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Gilad Ben-Yossef , Ofir Drang , Hadar Gat Subject: [PATCH v4 1/3] dt-bindings: add device tree binding for Arm CryptoCell trng engine Date: Sun, 16 Feb 2020 12:04:08 +0200 Message-Id: <1581847450-22924-2-git-send-email-hadar.gat@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1581847450-22924-1-git-send-email-hadar.gat@arm.com> References: <1581847450-22924-1-git-send-email-hadar.gat@arm.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The Arm CryptoCell is a hardware security engine. This patch adds DT bindings for its TRNG (True Random Number Generator) engine. Signed-off-by: Hadar Gat --- .../devicetree/bindings/rng/arm-cctrng.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/arm-cctrng.yaml diff --git a/Documentation/devicetree/bindings/rng/arm-cctrng.yaml b/Documentation/devicetree/bindings/rng/arm-cctrng.yaml new file mode 100644 index 0000000..46e39a8 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/arm-cctrng.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/arm-cctrng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Arm ZrustZone CryptoCell TRNG engine + +maintainers: + - Hadar Gat + +description: |+ + Arm ZrustZone CryptoCell TRNG (True Random Number Generator) engine. + +properties: + compatible: + enum: + - arm,cryptocell-713-trng + - arm,cryptocell-703-trng + + interrupts: + maxItems: 1 + + reg: + maxItems: 1 + + arm,rosc-ratio: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32-array + maxItems: 4 + + clocks: + maxItems: 1 + +required: + - compatible + - interrupts + - reg + - rosc-ratio + +additionalProperties: false + +examples: + - | + arm_cctrng: rng@60000000 { + compatible = "arm,cryptocell-713-trng"; + interrupts = <0 29 4>; + reg = <0x60000000 0x10000>; + arm,rosc-ratio = <5000 1000 500 0>; + };