Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81A7DC7618D for ; Wed, 15 Mar 2023 01:45:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230110AbjCOBpY (ORCPT ); Tue, 14 Mar 2023 21:45:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229988AbjCOBpW (ORCPT ); Tue, 14 Mar 2023 21:45:22 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20B8D46157 for ; Tue, 14 Mar 2023 18:45:20 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id h12-20020a17090aea8c00b0023d1311fab3so331852pjz.1 for ; Tue, 14 Mar 2023 18:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1678844719; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=bQqeZSUpX2ANWQCyU7UoxGLqZhx6/F6T9Own5KUL63M=; b=V6Jj+wxcvH2Hyng5utJCOGWXhtyo8pCMQcYf3gwHXi0X5PWp5DqfwEpDZr9gzUdHMm IGffHnQPlori1oAiy2u0bwMjDBifsCFd1lnt4vZY/+nV0NHckA8xawzZ/OmjGfHRMnBc BCZyiO4F/qXF1OhgQAJLxy2nNQvhl5mOkXFzGJv/psOStrVr/1rn29w7a4CEf8i/DqZ9 u1dPA3YDx0A76x0VGSgFBCV/MtfY3wYziCb97H2ZArBzOciPKMH1ntGflYlMWQ+lWc+J pp+3kpBMAMixq32LAFrEAoiSJxZPZPoIR0cidRVEEkh1fMurCHyiZ25hKt/0eBeAZxGn Pp6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678844719; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bQqeZSUpX2ANWQCyU7UoxGLqZhx6/F6T9Own5KUL63M=; b=ZPc/UzHxUKa1lAmDZBVVMlw/CEIhSrnDWheKZaEYIIXr7oIqJdgvMr9SeQPud4Z6tB /AUATOAVVcriSK+zLB7vCxAZAc9wb9p727vci2e3QS/33zNZPBGR1EszphTIPI65hVZ2 /FJDFSgR/fpLjWFnSsDwvetwHFgBVaqFeLS6k7cXWswuMsc+BAFcD2kaHW9zOKjUaPQf nzJgcRseKEfjIJB+TmtNdGeevnUmb7LiqyUfUZDVm70clFNTWVZSA/nIj7GtgpjLpN6I tE7jRd6/ZMNk4bK2zVEje6gUFdpQzKil9HoATklqb9HeYGleOYj6LG2mxXn4/gZLYEcJ 3brA== X-Gm-Message-State: AO0yUKVBwmtuHxhvH+iNk1El0Ok0wRkrA85Ib4gRfYMqrXnd6oe/FrlA ChaCM6c4D/yZ4B5l5Yzn+QZhMg== X-Google-Smtp-Source: AK7set/zbsmcLhFJY+8MsiN5QjmiTaTrNiZtMAVnOhYkCrKl13ehjJZ6SZ5K8PZTFRYIFNTj/tDqYA== X-Received: by 2002:a05:6a20:548a:b0:cc:d891:b2b1 with SMTP id i10-20020a056a20548a00b000ccd891b2b1mr52532757pzk.35.1678844719415; Tue, 14 Mar 2023 18:45:19 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id j6-20020a62e906000000b005a8f1d76d46sm2191064pfh.13.2023.03.14.18.45.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Mar 2023 18:45:18 -0700 (PDT) Date: Tue, 14 Mar 2023 18:45:18 -0700 (PDT) X-Google-Original-Date: Tue, 14 Mar 2023 18:44:27 PDT (-0700) Subject: Re: [PATCH v5 3/3] riscv: dts: starfive: Add TRNG node for VisionFive 2 In-Reply-To: <20230117015445.32500-4-jiajie.ho@starfivetech.com> CC: olivia@selenic.com, herbert@gondor.apana.org.au, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, kernel@esmil.dk, Conor Dooley , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org From: Palmer Dabbelt To: jiajie.ho@starfivetech.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Jan 2023 17:54:45 PST (-0800), jiajie.ho@starfivetech.com wrote: > 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>; > + }; > }; > }; Acked-by: Palmer Dabbelt