Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4665096rwb; Tue, 8 Aug 2023 11:45:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFwfgeiGrLHpwDYv2AYEtB9sbt57HqYqyM1v9VjXY5DX/npb/hAlczb8A4I+b03Zb6+JlDU X-Received: by 2002:a17:90a:7e81:b0:267:8012:b393 with SMTP id j1-20020a17090a7e8100b002678012b393mr396557pjl.34.1691520307181; Tue, 08 Aug 2023 11:45:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520307; cv=none; d=google.com; s=arc-20160816; b=r0U3i879Jso9T6zpcb//Maa2QnRRKze9apnVzpFD8FwG/HGhMfegkQpVEDHicU1kWh R/4PlU+hdlXts/3+kYyAerGVGsYqeeuMj+PNCRo0cFiPHDznHp8mwt5cBNAByEmBuRP0 92W/JyPtUbbZpuELI73iL/ipzk6KafaOFg0CossyYbv+mdmhEAO0LGiLhiWBKNwvfsUo B8VZKzzwNEXpLhnQtGXHd8oY37EkP5ikgUxA8CksC7p/prOFq9ysb+lPv/sUff2hMnJW Cw0hYkrkPop9fw0XJEQRQFogi9bDHC8apoq37ZVOOb/vwUoIVcHQuevWxMfLZNcaIPw5 hjjw== 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=UBSy/OG0Wh7RzFJrIgrKaW7aI1xR5ROdUVkQSpLLIpQ=; fh=TXbY++qKaMPehpqjmCqcipr7y1LN1goAfRQSMbp5LiI=; b=Xhr8PyFhLvbB0e1SzORl3KScra68gwnFAo8+JZuXM6CYWCoqX8VFkAnwvgga0um77Y sP6smcDU5xE4cBmq5StWbnhbGiDyNU6+MP2DLEZJQ6sDbRIkCowWztMyzDaswQXO9JP9 NjtMLZM6RoDK/QxTIkXI5atWyYbxgYTBUvpUshJQqCk98Aa+GfQrzzngElgORQnpKfbH 4tdTjV5sjFupb4WfARXaKtYrgD/w8s6p+twc0chGmZ/LujsubZj96rpvlTjYEdrey5gQ X73EgmetiUoiS3Sub4tIKSGOwYKS3MP1x7F8iSEMY6GZpO1pQ2a8UDsZ8zelARlugErB qc9A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s2-20020a17090ad48200b00262e99964bdsi7835915pju.99.2023.08.08.11.44.54; Tue, 08 Aug 2023 11:45:07 -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 S235130AbjHHRyS convert rfc822-to-8bit (ORCPT + 99 others); Tue, 8 Aug 2023 13:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234145AbjHHRx4 (ORCPT ); Tue, 8 Aug 2023 13:53:56 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAE312A8F2; Tue, 8 Aug 2023 09:24:05 -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 6B0A624E26C; Tue, 8 Aug 2023 22:16:23 +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 22:16:23 +0800 Received: from ubuntu.localdomain (161.142.156.69) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 8 Aug 2023 22:16:18 +0800 From: Jia Jie Ho To: Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , "Palmer Dabbelt" , Albert Ou CC: , , Subject: [PATCH v2 1/2] riscv: dts: starfive - Add crypto and DMA node for JH7110 Date: Tue, 8 Aug 2023 22:15:57 +0800 Message-ID: <20230808141558.296631-2-jiajie.ho@starfivetech.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230808141558.296631-1-jiajie.ho@starfivetech.com> References: <20230808141558.296631-1-jiajie.ho@starfivetech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [161.142.156.69] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 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 | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index a608433200e8..76046ca533ce 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -821,6 +821,33 @@ 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-controller@16008000 { + compatible = "arm,pl080", "arm,primecell"; + arm,primecell-periphid = <0x00041080>; + reg = <0x0 0x16008000 0x0 0x4000>; + interrupts = <29>; + clocks = <&stgcrg JH7110_STGCLK_SEC_AHB>; + clock-names = "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>; -- 2.34.1