From patchwork Thu Jan 12 04:38:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 42254 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3691935wrt; Wed, 11 Jan 2023 20:42:13 -0800 (PST) X-Google-Smtp-Source: AMrXdXsVLfwC5URuaq9viVM9vQRzK6xul/pPe0So+gFvS5DFJyoz/dUmw4zscE9SoTGTo8r0UnL2 X-Received: by 2002:a17:90a:4d4c:b0:226:d23b:8037 with SMTP id l12-20020a17090a4d4c00b00226d23b8037mr5318093pjh.33.1673498533573; Wed, 11 Jan 2023 20:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673498533; cv=none; d=google.com; s=arc-20160816; b=hmP8OqTNYt+X1c5jBQwrc1WnJz/jAIH4/Q90Q3nMYgcad1JM3yypdirrSXrBqGfe/x cAULbND7KY7DHYJetD/ER0ZH6BKCGHni2kHfDmp+vSipSYCUclTiqlhSUXTe85+EKa5D /wXQ+ZQw44qBWujK/Ua1EonLZmazRGHLnQjyEuGpcCFe/YW5duumUKVH+F7r5zxSd+nC jWwdNyrUT8+kSVb21FRodkxFi5ZOXdZ+48oUejE7MM9w7STYtfmbJTm4xs/L0u3N1ajU kGP+NhzdZEwgn3G+OlpfTSvfw4AU1U3KWuRqhSB1t7Gs6buWVnZjwbIeHVF+XbtEnTWu oBpA== 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=LV9z4wgVpBSu15G2QVVASSM6E/xZDFFf2hRRRX0q1Yh34EQh1l4Q8rPvuzK6+wtc5z 2Z5pK7gOf+hvz0ue9yh3KuU0HeSNVlD9qockfbgsLruMzHn91Akp1exxcC8rPugqgGmQ R+sFgBDrP3XlOFC2bPFX/A5aJ6cStN2zPfVkCl4aCfqGYetsYpIIwiuljqN4U85Ri3tJ QWn3bc+UBSUo5suDRTczOyRfyIwGkbxP6a8+J3wL0SXRPVdJS+z1DyfXjuyllBLm0pHp BN3bMUQTvxhCi3yUcAtj1vs7FhuIg2Qyx/pjvsWuEYrcVktZvJqpvAIeZUdVHebOC97m nwdw== 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 b9-20020a63cf49000000b004a7a73eb62esi16655709pgj.100.2023.01.11.20.42.00; Wed, 11 Jan 2023 20:42:13 -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 S236775AbjALEis convert rfc822-to-8bit (ORCPT + 99 others); Wed, 11 Jan 2023 23:38:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236609AbjALEie (ORCPT ); Wed, 11 Jan 2023 23:38:34 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D9311B1C0; Wed, 11 Jan 2023 20:38:33 -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 ex01.ufhost.com (Postfix) with ESMTP id D8FD124E071; Thu, 12 Jan 2023 12:38:31 +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; Thu, 12 Jan 2023 12:38:31 +0800 Received: from ubuntu.localdomain (202.188.176.82) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 12 Jan 2023 12:38:27 +0800 From: Jia Jie Ho To: Olivia Mackall , Herbert Xu , Rob Herring , "Krzysztof Kozlowski" , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v4 3/3] riscv: dts: starfive: Add TRNG node for VisionFive 2 Date: Thu, 12 Jan 2023 12:38:12 +0800 Message-ID: <20230112043812.150393-4-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230112043812.150393-1-jiajie.ho@starfivetech.com> References: <20230112043812.150393-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [202.188.176.82] 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?1754790398535935086?= X-GMAIL-MSGID: =?utf-8?q?1754790398535935086?= 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>; + }; }; };