From patchwork Mon Jan 9 16:52:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 40978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2263685wrt; Mon, 9 Jan 2023 08:57:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXutH17sosZDF5owV1X9fVyrsJxSda33gu80WO6fmK0avvxGNqXyhBFVeNR5njawANolNN6/ X-Received: by 2002:a17:902:a513:b0:192:fe0a:11c5 with SMTP id s19-20020a170902a51300b00192fe0a11c5mr13096495plq.26.1673283446667; Mon, 09 Jan 2023 08:57:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673283446; cv=none; d=google.com; s=arc-20160816; b=T/R03jxpRLQRzvjzMAF4M+dD+9VRJOfhPY/wjTRE6W8t41lm4XrSvwqvj6wZ/+GYYc PBdRmj+7mN5S3kqRuU46CbB/TEOdq5g1jULEZKPcB4aQ5x8gBQaNwRIzKh3WAy2sgfoS ky7+y5x4YpeqtefXSVlztilkB4sk8U3uEUSUW1610FzS5TetcgDHbjXOrQGgDZ4L3DOz GlRM5TVa1oMUZd6vhi1n4f6fa3M3pbFJjN1sq78sNkRdAqvSRWVE9ipUEpsjXklduIpw d19ceHHYXKn3Zje5RkvlU5+1U7WVw5xh6jEXUAZHSSoLMWVV69gNoVqxxsTV2xTOQEjr ttHQ== 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=cSrUPqdjcXIw9N3OtKGQiMimzUcvzsqaJ5Adfe+2lgtmCJ2q5bdR2usQQUaqiuRmiO lrnLu5zEoiuroUdJHUtAfrISN4y0OBLuOAQxGmBRJFn2YCL4smZNZrwU+ptWG8NRV0Jw DJTX0i8n+EntlyIwpClA9k4qk6/03Tb78n5S/ef0OR5ayMtXdi+QIyR1fK5IiS3qPenq 6+ayreU7i50Tp2Sndq8Yls65s6QtPyxSmOlVSEGE2S/ULb9w1scGLhquJ4UnmlNtSB37 CeETReCx0E/gsyHYUXf86UwjLFnIkUFjVJ/qplApFMU4WkkO4k/PeD94xB3+Opu9YN7M l7KA== 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 n16-20020a170902d2d000b0018965245babsi10076571plc.597.2023.01.09.08.57.13; Mon, 09 Jan 2023 08:57:26 -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 S237236AbjAIQyO convert rfc822-to-8bit (ORCPT + 99 others); Mon, 9 Jan 2023 11:54:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237372AbjAIQxi (ORCPT ); Mon, 9 Jan 2023 11:53:38 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A54B23FC81; Mon, 9 Jan 2023 08:53:07 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 1178524E1A4; Tue, 10 Jan 2023 00:53:06 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 10 Jan 2023 00:53:05 +0800 Received: from ubuntu.localdomain (202.190.108.220) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 10 Jan 2023 00:52:59 +0800 From: Jia Jie Ho To: Olivia Mackall , Herbert Xu , Rob Herring , "Krzysztof Kozlowski" , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v3 1/3] dt-bindings: rng: Add StarFive TRNG module Date: Tue, 10 Jan 2023 00:52:47 +0800 Message-ID: <20230109165249.110279-2-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230109165249.110279-1-jiajie.ho@starfivetech.com> References: <20230109165249.110279-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [202.190.108.220] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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?1754564863085421454?= X-GMAIL-MSGID: =?utf-8?q?1754564863085421454?= 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>; + }; +...