From patchwork Wed Dec 21 09:08:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 35303 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp3420929wrn; Wed, 21 Dec 2022 01:16:14 -0800 (PST) X-Google-Smtp-Source: AMrXdXsJwlOEoFTlDZUKjLgT+AX02bdkl+1RAvrKIfSzqSY+SqVLlrI9PDoURs5XopZU0BxoCsCm X-Received: by 2002:a17:902:ab11:b0:191:33e2:452d with SMTP id ik17-20020a170902ab1100b0019133e2452dmr1244593plb.24.1671614174504; Wed, 21 Dec 2022 01:16:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671614174; cv=none; d=google.com; s=arc-20160816; b=OQzFypfHNjvMjzT9GBJANWE3Nr8oZjlWBPtwLp0PtaQYl2VPUkqViOmJ79dXIEVlfJ MoSCDhoIKBebZTDG3w+w9PC3KGlYJtlcrMKno+SZkBJJsiOSio4Ag7LTuUWPTbPqToLP 9sFjpfCWSwd9FWYtjSFrFBL729foDCJHu3lEOy8sdLL0jUHR59xb2YBeM1hn+35//zrh WYRIZ64KquhpkIji7QWqMT+YC2LCJjJrl/jHrC2VTyjE88WQ9mjJUwPmw7t4/zjrMaGQ rteHTt7COzXKOLw8a20PF7ugChR5HcIRWGYV6mMo499eIYBBdhGLB1E937REP1xmOkSr KugA== 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 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.02; Wed, 21 Dec 2022 01:16:14 -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 + 99 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 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752814504785892441?= X-GMAIL-MSGID: =?utf-8?q?1752814504785892441?= 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"; + }; }; };