Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4147895rwl; Tue, 27 Dec 2022 23:16:24 -0800 (PST) X-Google-Smtp-Source: AMrXdXtltF/YhQeJtPH79dsASxLi7JSX6XvLMIfyWVD3Vb1O7/mtMvrVqZAFlbRYMtxd5lFoIl4+ X-Received: by 2002:a05:6402:14d8:b0:45c:835b:944f with SMTP id f24-20020a05640214d800b0045c835b944fmr20155377edx.11.1672211784698; Tue, 27 Dec 2022 23:16:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672211784; cv=none; d=google.com; s=arc-20160816; b=eTCx/tgbCXjQjUu4TOAaGFiaEo1DfIk5CRuMYa6A4DQoITzsI79aXuRwy5F3xz4Iyw KPoCOcFoB9ne8UT2PDPyuAob70cUTPJIT6m1/BCuR8zuaZM86rtdGrkiPNVSAGZCcy/3 PA4iPfuDV+gsLz83iwo8MCAJGR+E/UGzBtYfe45c6Oc+46riQrpQFAF9KRy/xOFXKO1q vFSSuPu16xie0UhCRggsLkhZcSNYXljRsC0Yst1EbKymzRtsp9M4Lxi4MmJZwEwKmqyr SSPsla5FN2eKHliP7K+7qYRC4Hksvt6Jo6u9UNLOKpGdcnsQaba6OVAlw7yDJNAV8tBQ tqpQ== 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=1F2KsAaMYFQgSzVJyNyhDwmmG/v/5iWz8N16g7SrZObvE6hXTor0KGgYYQi4RUzAQl lv9IgDd04ouUkGhzff9/dNfbQ565B+CUFVRd8Tg74ft1TBJesPKWOV0XNgFTsemrc1Rt npiP8z6dEXkXJ/693GkkOLNdiu4huBRQsBTWGUeXTJadI9w0C9Y8ZwVm3Wp1krUFFrsU YV7Gz/y+jp61GbDyDPisOKRk5EGTUe5dkxpFdUxf9xcCZSdgE1py18xsKWSQW/as0gSv u+P/nKAV2/lzaJZiG8zL22IbGaDt4VWJcPTiEuHR6OG5gKZpkmDIM/XI5IBa8AfyCAM5 BTUw== 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 hv13-20020a17090760cd00b007c10b6790bfsi11893722ejc.68.2022.12.27.23.15.59; Tue, 27 Dec 2022 23:16:24 -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 S232176AbiL1HLn convert rfc822-to-8bit (ORCPT + 99 others); Wed, 28 Dec 2022 02:11:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232514AbiL1HLd (ORCPT ); Wed, 28 Dec 2022 02:11:33 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44763FFA; Tue, 27 Dec 2022 23:11:32 -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 fd01.gateway.ufhost.com (Postfix) with ESMTP id C1AAA24E300; Wed, 28 Dec 2022 15:11:30 +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; Wed, 28 Dec 2022 15:11:30 +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:25 +0800 From: Jia Jie Ho To: Olivia Mackall , Herbert Xu , Rob Herring , "Krzysztof Kozlowski" , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v2 3/3] riscv: dts: starfive: Add TRNG node for VisionFive 2 Date: Wed, 28 Dec 2022 15:11:03 +0800 Message-ID: <20221228071103.91797-4-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 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