From patchwork Mon Apr 10 07:37:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 81385 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1747366vqo; Mon, 10 Apr 2023 01:15:06 -0700 (PDT) X-Google-Smtp-Source: AKy350bE2BlyNKAZyxjpDhP8GA+AIPa0+8gpa3Tuw1xFHrV5UG6EO7cvp7WTChCjfiXmP+LdOmG1 X-Received: by 2002:a17:906:6959:b0:94a:8b47:8c66 with SMTP id c25-20020a170906695900b0094a8b478c66mr2202560ejs.30.1681114505883; Mon, 10 Apr 2023 01:15:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681114505; cv=none; d=google.com; s=arc-20160816; b=yfg0GK7BD4ARs/6xO0t2kcX6c92wYqVom5qoBqCHMGRRlB0rroE/WkjNJoFREM5Bwa ntMx6melLrPFC6O/xbLtrX4+PfTtd+TGfFwuGZW9ai8XL4UIbdss02+KRe0K62LO+kDn Yub/zwmXd99AKQa59Wd02FOsL8ciO50/mMB3Nn29KpqX0QDAm3j78k4iqjTOptOC/TvI opVXGa3VtpjGF/yQUTLs75xysIIoB3VytHxkrnADddq4cVBhhPdPlb0pvBodsXOvcBvg Pvf3cCfLf6Mnnv9HnRKoy0wk7S7jYDjEvYAHYONa83vTTso+/m74IHHg+T1ig7IK3GI1 Y58w== 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=uA9CsS27ZqgTbMHYWN9TJ9qGgd4zLwmLC89TbO6UkOLYyNKtbbfbT6T5lWzwLrVtlc 5MQgXDarYgn72/eJRoUxcbCx7cohftxxEtuZl7y4U0H81xBl6PQQ8fkwsnkHaPlpDFN7 P14OBtgVsml/rzAvQKDb7XD9X27cFpD39Q38H+xTA7/jgp9mYcbgARKyy06hNmQ2tGcm qVvquqfHggmusbalNOSUFbzrDzD0EPPeEydSLpSYBT5TQYFfcab3Op2OZGyNGXAseWyn Foh6YB3jGSFTtejDGV1pXaPJW1WsiyLBM/uT+QMIS1NKA4rHCLTux0U6FP9QYmFfh1Qy DXoQ== 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 jl21-20020a17090775d500b0093cf8c96446si7490751ejc.686.2023.04.10.01.14.42; Mon, 10 Apr 2023 01:15:05 -0700 (PDT) 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 S229834AbjDJHic convert rfc822-to-8bit (ORCPT + 99 others); Mon, 10 Apr 2023 03:38:32 -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 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 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762776324381248543?= X-GMAIL-MSGID: =?utf-8?q?1762776324381248543?= 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"; + }; }; };