Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4147100rwl; Tue, 27 Dec 2022 23:15:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXt+/q7RKuZnOoF41yAXD68ozNTwh1iHd3p1tQnAt0KiYCJgujw4EZLrBpSzPW6r4X32oXoe X-Received: by 2002:a17:906:39d8:b0:847:410:ecff with SMTP id i24-20020a17090639d800b008470410ecffmr15151698eje.16.1672211728931; Tue, 27 Dec 2022 23:15:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672211728; cv=none; d=google.com; s=arc-20160816; b=mpVkG5FekhaqoKP28Q6RrX2To+fPTMXhu6TLmLNgvm7VA9WVrwACnSzB3g/E0I/pQ5 EuzonkKAuYLpsgAQkiMXkI2Tw3xJZ9u6cK78f/XvnN9QAMGL4PFRw0XHeLbkzY08FDDi OF+ZdThYLlQQCZzg0ftQySmDtLfR+M7zZPKXApoC3PDJzs8hsRJmfCES2rX4GATwOuKS zvOJJ5LzO+CohHKpJnhECb3DyyAqmbxGqajaCIrW+CC+HYokWgKhpkrvpF/iaPqjhfE5 VrzkbE/PccIMsDGTwo0TtLR3blwtmfD/u6HS47qq1HAyZxkbwM4/+mIoS+vZo+iqNiGq Ukuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=08ftD38R4sdYCgqQTyT+jYprbu30pWyDnGRgV7BMzXY=; b=qaNRIwxeQFeSoTfNB4RSTR3ons5/QlBaPBPi5P7soxFDBXQik5VVOprPfUnxiG0A20 gt/jlOzSBJb8U5HgM+NvM6G4oOmvAmaBm5zplDDq2DOCxQ9kv3DbVfyIcsIfU/6QIGd5 Yo10SVgc+H4ehVZhFzf/uWn8fnrRowJWtGOU833TadjPXBk99vzOEfbDbgaNz2WTg9d7 5BYESl9KJ1Eh0WV8bEfXyMmTkwFKFW6UEmhaABd7Ek2TyyS8Z/sG/HhUiiGC4901bxVj jSCx4b8E+wum7aa1VFiKJHknxmz/MjDolxZUwD3e1QR2L+6ranadrbzhqbK3IRW+l2IO 4AXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr11-20020a170906d54b00b00787ad97302asi12131311ejc.863.2022.12.27.23.15.05; Tue, 27 Dec 2022 23:15:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232464AbiL1HL1 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 28 Dec 2022 02:11:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232081AbiL1HLY (ORCPT ); Wed, 28 Dec 2022 02:11:24 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE39825D8; Tue, 27 Dec 2022 23:11:21 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id 9E52E24DFF7; Wed, 28 Dec 2022 15:11:19 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 28 Dec 2022 15:11:19 +0800 Received: from ubuntu.localdomain (161.142.229.243) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 28 Dec 2022 15:11:14 +0800 From: Jia Jie Ho To: Olivia Mackall , Herbert Xu , Rob Herring , "Krzysztof Kozlowski" , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v2 1/3] dt-bindings: rng: Add StarFive TRNG module Date: Wed, 28 Dec 2022 15:11:01 +0800 Message-ID: <20221228071103.91797-2-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221228071103.91797-1-jiajie.ho@starfivetech.com> References: <20221228071103.91797-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [161.142.229.243] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add documentation to describe Starfive true random number generator module. Co-developed-by: Jenny Zhang Signed-off-by: Jenny Zhang Signed-off-by: Jia Jie Ho Reviewed-by: Krzysztof Kozlowski --- .../bindings/rng/starfive,jh7110-trng.yaml | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/starfive,jh7110-trng.yaml diff --git a/Documentation/devicetree/bindings/rng/starfive,jh7110-trng.yaml b/Documentation/devicetree/bindings/rng/starfive,jh7110-trng.yaml new file mode 100644 index 000000000000..2b76ce25acc4 --- /dev/null +++ b/Documentation/devicetree/bindings/rng/starfive,jh7110-trng.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/rng/starfive,jh7110-trng.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive SoC TRNG Module + +maintainers: + - Jia Jie Ho + +properties: + compatible: + const: starfive,jh7110-trng + + reg: + maxItems: 1 + + clocks: + items: + - description: Hardware reference clock + - description: AHB reference clock + + clock-names: + items: + - const: hclk + - const: ahb + + resets: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + - resets + - interrupts + +additionalProperties: false + +examples: + - | + rng: rng@1600C000 { + compatible = "starfive,jh7110-trng"; + reg = <0x1600C000 0x4000>; + clocks = <&clk 15>, <&clk 16>; + clock-names = "hclk", "ahb"; + resets = <&reset 3>; + interrupts = <30>; + }; +... -- 2.25.1