Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3786905rwl; Mon, 10 Apr 2023 00:38:59 -0700 (PDT) X-Google-Smtp-Source: AKy350YK++fs3F0W59DiAFexF1odkq9eG8N2W4V4cUSfpSclPHilXmfZJYQICn5oQXWnoMVJxmKh X-Received: by 2002:a05:6a00:10c8:b0:5e4:f141:568b with SMTP id d8-20020a056a0010c800b005e4f141568bmr9536957pfu.3.1681112339539; Mon, 10 Apr 2023 00:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681112339; cv=none; d=google.com; s=arc-20160816; b=yLda08L0hIymMwFjD2CUgIFnVxP59C2gA+capmuJ2maz8kYCorGCdAX+VIFAu0sIeT GxgPSN0PTS1WDq0vhEPn8vRkzfuiho1FahuWtvkVMNciEYViDqd9+4Q2B5doo5UHx9FL Z/SXJ+MEFRHtI485TCdS4PGhYuSL733W+hG7Ceqe5o9cU0Z6vcbAfd2fXn8k59KlHrFZ EOFpTmH4Fv6L8W1YZz0xVOU1oMtCyYfFYuuxoaP1rRgw2+p26hnzK+feL7AQUkM6Y425 N+FaPNrsCaKoa9iPtTu5axf+iZyI8/JfBS/Kh1EXKlTM0oKEq+SrbJMa05qXsU3ck2pu Xk7A== 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=2V9FYrMQGaTU8mAttIXMtQFhxntIaMn/fUilPKZ9ICg=; b=wqawSKlsRUzIltRvszRWoLVfmbxJkZCbEZGksWy92aDLfSKuPAyUJiUphaXCvp4FRx JygOtU0tMf2I2dJxaHLDgBosR5K24fr190pa+IMXP2PFwr8gFe5WgvSsgto4+rJNBVfU +Jyn9XpxVLiMI6dqgNHp+P0cCdGrWWhhJe2wnQIakd7y4xT4bpkCOlUY4pnSui8wXgcY bVEc6BiWAWYsALM1CRMULgJklrWdz3o6MDH5Y8VpPy9JWl3mhlJDtkm9AEncfDSd7DYn TfNth1oxQ30Q9mE3Bp6bBLOIHUCNJpJYiNKGwtbkmxW+N5RMcnezmrw2SrJbrqpbx7wt 8hrQ== 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 x187-20020a6263c4000000b0062ae6345c77si10086149pfb.402.2023.04.10.00.38.48; Mon, 10 Apr 2023 00:38:59 -0700 (PDT) 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 S229844AbjDJHib convert rfc822-to-8bit (ORCPT + 99 others); Mon, 10 Apr 2023 03:38:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229768AbjDJHiT (ORCPT ); Mon, 10 Apr 2023 03:38:19 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56F4D49F3; Mon, 10 Apr 2023 00:38:18 -0700 (PDT) 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 fd01.gateway.ufhost.com (Postfix) with ESMTP id C744824E2AB; Mon, 10 Apr 2023 15:38:11 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 10 Apr 2023 15:38:11 +0800 Received: from ubuntu.localdomain (202.188.176.82) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 10 Apr 2023 15:38:06 +0800 From: Jia Jie Ho To: Herbert Xu , "David S . Miller" , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Emil Renner Berthing , Conor Dooley CC: , , , Subject: [PATCH v4 3/4] riscv: dts: starfive: Add crypto and DMA node for VisionFive 2 Date: Mon, 10 Apr 2023 15:37:51 +0800 Message-ID: <20230410073752.39506-4-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230410073752.39506-1-jiajie.ho@starfivetech.com> References: <20230410073752.39506-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.188.176.82] 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=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Add StarFive cryptographic module and dedicated DMA controller node to VisionFive 2 SoCs. Co-developed-by: Huan Feng Signed-off-by: Huan Feng Signed-off-by: Jia Jie Ho Acked-by: Palmer Dabbelt --- arch/riscv/boot/dts/starfive/jh7110.dtsi | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 4ac159d79d66..591abe57ec31 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -455,5 +455,33 @@ uart5: serial@12020000 { reg-shift = <2>; status = "disabled"; }; + + sdma: dma@16008000 { + compatible = "arm,pl080", "arm,primecell"; + arm,primecell-periphid = <0x00041080>; + reg = <0x0 0x16008000 0x0 0x4000>; + interrupts = <29>; + clocks = <&stgcrg JH7110_STGCLK_SEC_HCLK>, + <&stgcrg JH7110_STGCLK_SEC_MISCAHB>; + clock-names = "hclk", "apb_pclk"; + resets = <&stgcrg JH7110_STGRST_SEC_TOP_HRESETN>; + lli-bus-interface-ahb1; + mem-bus-interface-ahb1; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + #dma-cells = <2>; + }; + + crypto: crypto@16000000 { + compatible = "starfive,jh7110-crypto"; + reg = <0x0 0x16000000 0x0 0x4000>; + clocks = <&stgcrg JH7110_STGCLK_SEC_HCLK>, + <&stgcrg JH7110_STGCLK_SEC_MISCAHB>; + clock-names = "hclk", "ahb"; + interrupts = <28>; + resets = <&stgcrg JH7110_STGRST_SEC_TOP_HRESETN>; + dmas = <&sdma 1 2>, <&sdma 0 2>; + dma-names = "tx", "rx"; + }; }; }; -- 2.25.1