Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5357661rwj; Wed, 21 Dec 2022 01:16:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXvskgJMKo/iCUX/n5iC/ketsp1Mdl0LA57lnlS7RHx4ch9/UV37AiwQx8enhv6COhj93as7 X-Received: by 2002:a05:6a21:33a9:b0:af:8ff3:fc78 with SMTP id yy41-20020a056a2133a900b000af8ff3fc78mr2595812pzb.19.1671614207059; Wed, 21 Dec 2022 01:16:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671614207; cv=none; d=google.com; s=arc-20160816; b=myKn07WkVpOBWdVUelZDJM50gC1feHJHRzPbooRD7UezxPUwmBbeig3DL6a2oIeANQ 7Vn8xnqOehleffA6D2gP7191GO8QZyd1MYrJVAcA3jFg1BldB59nNtXHr3H5Pee0l3yX D6aBXa/g6QZjZRPeY4E0UHnS2WPCurhWBsYPfTZwftWyogXRgn3xeCMDJDGSNfIdBG6Z L0UF2MrY42FIv+5Ln4xZhor20JeirNDJ7hsijlzD3NlURphobAOU+Up+tPu/Q7fraxk3 QaQBv/I/B41ss9I4nbnNQABDlds7OVV98alcnZ/t5KCS3PybgiHRe5DDnxNV9o3ThW2n jfyg== 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=92zo2cqyRaLmlgF2J2LDDV/aFGHRtEgBRK2UM4h8kdg=; b=TiOLPRh3SQUiWFdfNeNlRWYMKDXVczZ13V/1E6j8O6k/Jmh0UUEikpR/YL6DSn2nXb uHwA6qKbqzatz5sPDC1ue2JY9JQfOfUYoQSISjn2PMO3dkHOCDXev9SWzYkt9g3BmOOT s9d//F5mg97RggMIf+9NUOaH2YHBKqpOOjVIUA83LBw9E/jKLh0XK6+cLiEVbL/F6hkl ucJKmNizpYN/km8+vS9b1nyr8K8S3Ht4rlilxrexa0ppJRJtxdzc5J9W7pUqsFEqoXSP jWP0IVZ2wMbh8rjo9dDXhAE2e/sVAEe3n60L7PBPzJcwPXjFAA79xiO1f8ma8WZFJ0NT RSgA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc22-20020a656d96000000b00478fd9b75c9si14026175pgb.869.2022.12.21.01.16.38; Wed, 21 Dec 2022 01:16:47 -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 S234529AbiLUJJE convert rfc822-to-8bit (ORCPT + 69 others); Wed, 21 Dec 2022 04:09:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234495AbiLUJIn (ORCPT ); Wed, 21 Dec 2022 04:08:43 -0500 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6410101; Wed, 21 Dec 2022 01:08:42 -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 5E3A924E1B2; Wed, 21 Dec 2022 17:08:41 +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, 21 Dec 2022 17:08:41 +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, 21 Dec 2022 17:08:36 +0800 From: Jia Jie Ho To: Olivia Mackall , Herbert Xu , Rob Herring , "Krzysztof Kozlowski" CC: Emil Renner Berthing , Conor Dooley , , , , Subject: [PATCH 3/3] riscv: dts: starfive: Add TRNG node for VisionFive 2 Date: Wed, 21 Dec 2022 17:08:19 +0800 Message-ID: <20221221090819.1259443-4-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221221090819.1259443-1-jiajie.ho@starfivetech.com> References: <20221221090819.1259443-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [161.142.229.243] 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,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 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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 4ac159d79d66..dd3ad19772a5 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -455,5 +455,16 @@ 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>; + status = "okay"; + }; }; }; -- 2.25.1