Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp6487158rwl; Mon, 9 Jan 2023 08:58:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXtWIRXib3fliPH7Pe7eWCz2UMh0B4rnuJIoFQZFqIFvtdCRsDRItYDR2+auUE9olH50lLJH X-Received: by 2002:a17:906:370a:b0:7c0:a350:9d29 with SMTP id d10-20020a170906370a00b007c0a3509d29mr54073992ejc.18.1673283488995; Mon, 09 Jan 2023 08:58:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673283488; cv=none; d=google.com; s=arc-20160816; b=uOjJ9Lxjxtlk7yVAxo6bauYI/p5HCuiU/hUtHU7sjog41uU1HAIqjUJe3veLGdFwo3 QLW0WGhBiCKlsIIUZZ+2pp+kZVvbyAIAXMmFJHr+w8EA3So0o296ZtodlCV8PkoyrN8M Uz/nSXGKwQNV7AvCUsHZ3K/zlAkV08qI7JjEbyj04cHjJzsnSIogzUrS20BxZ1bXWJVI KslYt33OgZNqSLLNxYllMXHS3DUSbTW2DBvWibQeoOzuQA1YRlrLjSl1gazqBdtd8eKC tZCdPAYiIfehPWb/s3fjdSeI9Roco5iYDG3iVrBNau354do1YAC/0T0sRH9kQaNR2txo 07Hw== 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=6ca+4wuFEdIlWgbijGgfe6/H3GDi9d0felVr10ZFOD8=; b=jHEmsaQNKr9mYYkxm0l2YhLsu6LqtZoq0/Rwh6w6kIed4idADbqkaupqbVgHS63P0E wDr+B6LKpQiWmLunklgdFVxOUsoqMBMOUm/tCVD9vmv0UbK/ajt+UMtSoxlUPACWn8p8 CsG4dRkDeDN8+pG+YddKYFc5o8aTLcphEyTchUeSmh3mIYbSUdH41eSuK+woQkI4+u1v JXF5t7Hw3K/xot1tPMpEMw4v+Usxz/mW9VjC/fv61XvVpnMNmdEK5Oq/XeoeV9vV1Zxg vHYsw6Xz00Lp+yWeizHaYVgqIy29XtNKJip4YbDknsTzzLBHjOKZTjr4i8IPmg9Mw7Rb TGHw== 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 dn7-20020a17090794c700b007897abd2d17si10533487ejc.468.2023.01.09.08.57.45; Mon, 09 Jan 2023 08:58:08 -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 S237123AbjAIQyb convert rfc822-to-8bit (ORCPT + 99 others); Mon, 9 Jan 2023 11:54:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237398AbjAIQxm (ORCPT ); Mon, 9 Jan 2023 11:53:42 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60C9D22A; Mon, 9 Jan 2023 08:53:29 -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 44B2524E1C9; Tue, 10 Jan 2023 00:53:28 +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:28 +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:53:20 +0800 From: Jia Jie Ho To: Olivia Mackall , Herbert Xu , Rob Herring , "Krzysztof Kozlowski" , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v3 3/3] riscv: dts: starfive: Add TRNG node for VisionFive 2 Date: Tue, 10 Jan 2023 00:52:49 +0800 Message-ID: <20230109165249.110279-4-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 Content-Type: text/plain 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 Content-Transfer-Encoding: 8BIT 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-crypto@vger.kernel.org Adding StarFive TRNG controller node to VisionFive 2 SoC. Co-developed-by: Jenny Zhang Signed-off-by: Jenny Zhang Signed-off-by: Jia Jie Ho --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 4ac159d79d66..3c29e0bc6246 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -455,5 +455,15 @@ uart5: serial@12020000 { reg-shift = <2>; status = "disabled"; }; + + rng: rng@1600c000 { + compatible = "starfive,jh7110-trng"; + reg = <0x0 0x1600C000 0x0 0x4000>; + clocks = <&stgcrg JH7110_STGCLK_SEC_HCLK>, + <&stgcrg JH7110_STGCLK_SEC_MISCAHB>; + clock-names = "hclk", "ahb"; + resets = <&stgcrg JH7110_STGRST_SEC_TOP_HRESETN>; + interrupts = <30>; + }; }; }; -- 2.25.1