From patchwork Tue Jan 17 01:54:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 44406 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1505472wrn; Mon, 16 Jan 2023 17:58:27 -0800 (PST) X-Google-Smtp-Source: AMrXdXso7ECclUgsVskAHIMs/lLxlAHioC6jc4wi5D1Hd71kWs3+9y7o73f30XIJM4kW84YnH13q X-Received: by 2002:a17:902:854a:b0:191:4539:d2c1 with SMTP id d10-20020a170902854a00b001914539d2c1mr21823080plo.47.1673920707157; Mon, 16 Jan 2023 17:58:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673920707; cv=none; d=google.com; s=arc-20160816; b=SCc93TRPN3/Vad6SN67qNQhKGxsX61Soxsvhs1Ipvx0yWc9UNAZomst7XdIRo16F7r jjC9kaBmtjynhP+UwPHHtE7TVt4Kkmjrlq2KZzy/DttjZ/UKy6FJ1a4Er59qY4NL3TQ6 674B6mKdxjIreVRsMyY+UATRtGVf3dkSU+t2udEgufoRSV7NmPcVLjv7S26mdf0cmujS BTWNaclLvp4ByAvBn4uLSxoWWMCp4dfsL5lkzWBnW2De7fLL1fr7PdmAeI7nI9+H/kci /8ZwVSqyv9id++IS4xrhTrfOgO/hfR6bAK2uJ3wMFjetI3IOWP4wcbfZvlpmQSCasU2u GJeg== 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=N3QjrEPZEGONzACKwyLObe7PuC14bP68Eigr0LGWLwE=; b=OOElv0DnfWPAuoX5uQLL1/6bu15Q0rTAmIVClGLU7wVfe93eCPGUgUTduNAkE050rC yNrcNeUbhRfkGddY6fwWKvKQ/aDKmFgYfbqg3aAXJmggITAA8z/cr149Ld3nxsQ3afhg Pg6k0jw2il6SQv8tVCLNfgnKjWGaKltBHo8BW8hHjoMqqkJlx0ZOwFQklFsrhO/I/WjY 0na+jpETRcIv42h/vJ00mme+UNibWmd0cqR+URYJfCwyp7idZGMu3vs1VF+XQVT/CVfS Gt86QdtPQ7M/d4nQUisz9rVku5ciWl8PQL2MIRgOmD8oJW6Q+T3fE16nazMFmVf6V/Op nPlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a170902e38500b00186f81a0765si27686303ple.540.2023.01.16.17.58.15; Mon, 16 Jan 2023 17:58:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232403AbjAQBzJ convert rfc822-to-8bit (ORCPT + 99 others); Mon, 16 Jan 2023 20:55:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234550AbjAQBzG (ORCPT ); Mon, 16 Jan 2023 20:55:06 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8AF6298D0; Mon, 16 Jan 2023 17:55:03 -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 ACBD424E035; Tue, 17 Jan 2023 09:55:00 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 17 Jan 2023 09:55:00 +0800 Received: from ubuntu.localdomain (202.190.108.220) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 17 Jan 2023 09:54:56 +0800 From: Jia Jie Ho To: Olivia Mackall , Herbert Xu , Rob Herring , "Krzysztof Kozlowski" , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v5 1/3] dt-bindings: rng: Add StarFive TRNG module Date: Tue, 17 Jan 2023 09:54:43 +0800 Message-ID: <20230117015445.32500-2-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230117015445.32500-1-jiajie.ho@starfivetech.com> References: <20230117015445.32500-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [202.190.108.220] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755233079720455190?= X-GMAIL-MSGID: =?utf-8?q?1755233079720455190?= 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 Reviewed-by: Conor Dooley --- .../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>; + }; +...