Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4082384rwb; Mon, 16 Jan 2023 18:00:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXvoZKITZiGGLzB9uRfcJe2tpc9thA39x+hLkPBDTSM57H3QTCfoMphylZT0RwNyWorop66/ X-Received: by 2002:a17:902:ab50:b0:189:bc50:b93b with SMTP id ij16-20020a170902ab5000b00189bc50b93bmr1655166plb.3.1673920821535; Mon, 16 Jan 2023 18:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673920821; cv=none; d=google.com; s=arc-20160816; b=twaUnUO2HvcpZb/kcGuPhmXD/jVTS9Cq7xILXld7NZi1j4Y7nSC+LmiDOnQF+3iRX6 w2sWQhl7O2b1rBmGcHQYR/eME6Z4QFWCunlVktplb960CHl7gS0UojcMmAQQborhaamw 5toVkDnOMWGwOtto6cUHtm6nvCbU2fZ4JDi5v2OKih8Gi1e57FpwsXCPw/NJVWj0zqPv GLE3o/SwclOA3PQAsRuzTV08xbDthSU6b6ZjC7BxKLHmWRt1LVWVE7bjkNSz8OGmHCwJ 4FhQWOPNBwDXZvuF+2pOL50gb1/dmKBBF5fCuX2zy6wYlS2ivh8q9mJwmJgDtzP+IILt pXcA== 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=CPYVmBEulT+SRhmMMz8EMCr0/kKU4uzfuNPXHIkdCnElMZVfftyRQQSCJdBmEuBgHj L667iogQt0//WDhiSPm+19Bxk0mTRwh/o//B8lKy5IAKf29WZmtOa9qxyMWenV3u7+Vt YTy7BHSnMsXSfip8Li5N3pmz0s39plw46PZn42Fofpq8qFIVAwrUOACvwDmjz9DiWQ6K 7EBBPpi3oqfF7v9k/Q+0f9Ny9UaUTEUrTOqTsEAlZKNmZf8pV5fl224DYYIECOLxfxs4 HObpoio8CkOUlR05lTZVCMhIgKmzr0kJCi/dGvKD0W5NdjXdbd6yNHmsaOhF1dDyQoPl ob+Q== 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 g5-20020a170902e38500b00186f81a0765si27686303ple.540.2023.01.16.18.00.08; Mon, 16 Jan 2023 18:00:21 -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 S235181AbjAQBzu convert rfc822-to-8bit (ORCPT + 99 others); Mon, 16 Jan 2023 20:55:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235249AbjAQBzg (ORCPT ); Mon, 16 Jan 2023 20:55:36 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10B4F29E11; Mon, 16 Jan 2023 17:55:28 -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 A294F24DBCE; Tue, 17 Jan 2023 09:55:26 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 17 Jan 2023 09:55:26 +0800 Received: from ubuntu.localdomain (202.190.108.220) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 17 Jan 2023 09:55:22 +0800 From: Jia Jie Ho To: Olivia Mackall , Herbert Xu , Rob Herring , "Krzysztof Kozlowski" , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v5 3/3] riscv: dts: starfive: Add TRNG node for VisionFive 2 Date: Tue, 17 Jan 2023 09:54:45 +0800 Message-ID: <20230117015445.32500-4-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230117015445.32500-1-jiajie.ho@starfivetech.com> References: <20230117015445.32500-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.190.108.220] X-ClientProxiedBy: EXCAS061.cuchost.com (172.16.6.21) To EXMBX068.cuchost.com (172.16.6.68) 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