From patchwork Tue Aug 8 06:11:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 132555 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2241262vqr; Tue, 8 Aug 2023 09:34:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvZfJ2hkaYewkt0v9aaItzEwrVpjWOODd7cbSGeLKfBBJP1cZBIo9QtrUgGbFGZlOLMXuI X-Received: by 2002:a50:fa90:0:b0:522:1e24:afb6 with SMTP id w16-20020a50fa90000000b005221e24afb6mr311994edr.0.1691512448948; Tue, 08 Aug 2023 09:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691512448; cv=none; d=google.com; s=arc-20160816; b=EJxFhQwKtNxr5TqFU/f4msGdX9aCaYKveeHPWjK7iNvl8MppBeSC+aUXBK1PSFHEgq oOPKfh/Zi+sjbPuyyvGI8ZX5hJQoDCFs0bKaWZtpXiEELcOsR1CjI5w8FPpasZHrOOms jymAyBcn2b+g1cTk9BbbnFvbHrpkW/5JyMelKYY6X4T7KMFeRUa0wbw2OuLqGC0mWifK WkrzcarqtGN12ViEyIU98ep1w1gm71uuHAiBtvqgzDz8nMndl2oCRwE9JK41bqdHh7W/ XNzsiHrnBGWP1Gw+XyGUYPOW3LBTgJGtOfeJ9euF2OGPiDu999Dx36UKG0TcdKfy4+rM JUVA== 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=2PxFRAixyGmV7E+dV3sZ8ziB/raY8Nuz20l0CsUneuc=; fh=TXbY++qKaMPehpqjmCqcipr7y1LN1goAfRQSMbp5LiI=; b=mWOmkGdI7bYqxHgFVrzCgdlNEVcPk3YM6ynVvAVFVmYj6VDLkLbk3dJiZCSsrrLRJe tIppvB6FMyFoP77uDb61eMosgSVOS1IwHxDX8KFhAy4t5/W5FnXF+i6q1i/YV3c9KqvD RCrK0MlKrfSqXZd1+fL1sa77NDPP9UnJPrulJ50IBUBbFHrPDQUVHTYrQF/J3+4lQTAr SdZSwwWoZJP0NMrN1IVgCTZ5gt4U8enJI9tKNr53YPD0/JHWlpKYzb0s5xN+eHrpywGy T44YxCLGrMU0ivgN1951Z3by7kPV68+mlsv3867CPoupP64+lMI/QYIi5hX33vlFLQCs D0Fg== 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 u24-20020a056402065800b005234dee720dsi270410edx.226.2023.08.08.09.33.45; Tue, 08 Aug 2023 09:34:08 -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 S229790AbjHHPkp convert rfc822-to-8bit (ORCPT + 99 others); Tue, 8 Aug 2023 11:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbjHHPkg (ORCPT ); Tue, 8 Aug 2023 11:40:36 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7544106; Tue, 8 Aug 2023 08:36:28 -0700 (PDT) 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 ex01.ufhost.com (Postfix) with ESMTP id 3F9E524E287; Tue, 8 Aug 2023 14:12:03 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 8 Aug 2023 14:12:03 +0800 Received: from ubuntu.localdomain (202.188.176.82) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 8 Aug 2023 14:11:58 +0800 From: Jia Jie Ho To: Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , "Palmer Dabbelt" , Albert Ou CC: , , Subject: [PATCH 1/2] riscv: dts: starfive - Add crypto and DMA node for JH7110 Date: Tue, 8 Aug 2023 14:11:49 +0800 Message-ID: <20230808061150.81491-2-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230808061150.81491-1-jiajie.ho@starfivetech.com> References: <20230808061150.81491-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 X-Originating-IP: [202.188.176.82] X-ClientProxiedBy: EXCAS066.cuchost.com (172.16.6.26) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,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: INBOX X-GMAIL-THRID: 1773679357408595996 X-GMAIL-MSGID: 1773679357408595996 Add hardware crypto module and dedicated dma controller node to StarFive JH7110 SoC. 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 a608433200e8..47cd12ccc988 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -821,6 +821,34 @@ watchdog@13070000 { <&syscrg JH7110_SYSRST_WDT_CORE>; }; + crypto: crypto@16000000 { + compatible = "starfive,jh7110-crypto"; + reg = <0x0 0x16000000 0x0 0x4000>; + clocks = <&stgcrg JH7110_STGCLK_SEC_AHB>, + <&stgcrg JH7110_STGCLK_SEC_MISC_AHB>; + clock-names = "hclk", "ahb"; + interrupts = <28>; + resets = <&stgcrg JH7110_STGRST_SEC_AHB>; + dmas = <&sdma 1 2>, <&sdma 0 2>; + dma-names = "tx", "rx"; + }; + + sdma: dma@16008000 { + compatible = "arm,pl080", "arm,primecell"; + arm,primecell-periphid = <0x00041080>; + reg = <0x0 0x16008000 0x0 0x4000>; + interrupts = <29>; + clocks = <&stgcrg JH7110_STGCLK_SEC_AHB>, + <&stgcrg JH7110_STGCLK_SEC_MISC_AHB>; + clock-names = "hclk", "apb_pclk"; + resets = <&stgcrg JH7110_STGRST_SEC_AHB>; + lli-bus-interface-ahb1; + mem-bus-interface-ahb1; + memcpy-burst-size = <256>; + memcpy-bus-width = <32>; + #dma-cells = <2>; + }; + gmac0: ethernet@16030000 { compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20"; reg = <0x0 0x16030000 0x0 0x10000>;