Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2831144ybb; Sun, 22 Mar 2020 08:43:41 -0700 (PDT) X-Google-Smtp-Source: ADFU+vstL9Ata3nJuutea+nmYqho1vbhzryVXVfkRs0m/MqMJzFp62QYQhEQif73giLPcB0+kuJa X-Received: by 2002:aca:1a09:: with SMTP id a9mr4844714oia.167.1584891821478; Sun, 22 Mar 2020 08:43:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584891821; cv=none; d=google.com; s=arc-20160816; b=M457K+PBAgMptJqFqxImUHHi61kaAyfIFvtUSTaeU4Ui3ZvHODJpqA8pRGXoB5cI/8 HSb1/0lpbW+XX/EssCb07YCrK67/jF+qQje1yXsyHYUWAWOwsSG3BCdodiwQ6+GdrgxN FNsFk0szatCQ4WIwPY7PnAcWIMcp0gp6WyinkS3tYuVmEAfJkfFZPi1hX2/k6coekBc7 a8o42AiJLVQWuo2AMVvozo9vz+Gw0Cn5LuzYObxdyB2Adw4mrKt2kfUL5FJcPJQ2Y4gm a7cW53KKtrp+kLiWQD3XLdCQ5fVRDo5ZbLW4BCGARbmnTnHdVKFje1vaPGWBZjMtrljm Y31Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=8UHfSWv7bP2bMSF+5OraAoNRN7RS3c/oxpg2qbQnIsc=; b=A8x5r+M1vYOS6H4jKcmq+71ekmC80fPnH5C9Yyy+cgbn6gY2EWXMxT9/RL0ZyFH4uq M+9e6s6a+r3bgrsRKDtfT5wCveED7s4yVGfGea6qIO8RpsgqsmsKfxMuoAr8+d4bfZZJ Ld3GCQl8mN7CLKypHVg2e+jgxIFPo2YbXICLzGZBRPljMp0Qplnf6vkXo3wl6Az/fmV4 XT2K1eVUmTrT25+V3Hd4lfy8CAqSPP/Q4svLe8eAAPSNEwr3TW3v+fAFI4t9/VyOfB0e I2jQXQnzKytNXiE8aYdhi3uFFz2cUxuoZc/DbjZIsuNE3swh+108sz3wWsnSwoWlz7Yw UZ7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x66si6020517ota.244.2020.03.22.08.43.25; Sun, 22 Mar 2020 08:43:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727011AbgCVPnN (ORCPT + 99 others); Sun, 22 Mar 2020 11:43:13 -0400 Received: from foss.arm.com ([217.140.110.172]:41070 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725970AbgCVPnN (ORCPT ); Sun, 22 Mar 2020 11:43:13 -0400 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 4C1DBFEC; Sun, 22 Mar 2020 08:43:12 -0700 (PDT) Received: from ssg-dev-vb.arm.com (unknown [10.57.20.128]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EFDDE3F52E; Sun, 22 Mar 2020 08:43:06 -0700 (PDT) From: Hadar Gat To: Matt Mackall , Herbert Xu , Rob Herring , Mark Rutland , Arnd Bergmann , Greg Kroah-Hartman , Krzysztof Kozlowski , Florian Fainelli , Alexander Sverdlin , Thomas Gleixner , Tomer Maimon , Randy Dunlap , Zaibo Xu , Daniel Thompson , 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 v5 1/3] dt-bindings: add device tree binding for Arm CryptoCell trng engine Date: Sun, 22 Mar 2020 17:31:23 +0200 Message-Id: <1584891085-8963-2-git-send-email-hadar.gat@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1584891085-8963-1-git-send-email-hadar.gat@arm.com> References: <1584891085-8963-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 | 55 ++++++++++++++++++++++ 1 file changed, 55 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..7f70e4b --- /dev/null +++ b/Documentation/devicetree/bindings/rng/arm-cctrng.yaml @@ -0,0 +1,55 @@ +# 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 TrustZone CryptoCell TRNG engine + +maintainers: + - Hadar Gat + +description: |+ + Arm TrustZone 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: + description: + Arm TrustZone CryptoCell TRNG engine has 4 ring oscillators. + Sampling ratio values for these 4 ring oscillators. (from calibration) + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32-array + - items: + minItems: 4 + maxItems: 4 + + clocks: + maxItems: 1 + +required: + - compatible + - interrupts + - reg + - arm,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>; + }; -- 2.7.4