From patchwork Tue Aug 8 14:15:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 132767 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2334036vqr; Tue, 8 Aug 2023 12:04:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZ3hT0cAZe8aKnOLj3IN/OyQqwuTUKazwyYH4xTbxmWzr8N8/mKplTVzSKtudGGg9icCjG X-Received: by 2002:a17:906:3299:b0:988:9b29:5653 with SMTP id 25-20020a170906329900b009889b295653mr379991ejw.77.1691521441455; Tue, 08 Aug 2023 12:04:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691521441; cv=none; d=google.com; s=arc-20160816; b=XgHrOu7/74N3NjiE6GI1Ro++jYJmz3c5RQq1/3NqGxkc8dsCUCdH6EZaCa/ilonq1G pI2Oq1n1IOZGpa73QzL1/CEKcXBGatl1r+jJKc7xK0+Obp2fhuyO/d8L1/rRJOW059Jr rcusU9aPxdWKgznxCabb+/BpqZDZN2NlJFTn5aM5qSkyu4ZpcFPmPyGOEC2eudtXZtvO xgyBO6Gs9y8occktGB5YXUVgF//3LppEjZBGSVx53YZ2QSrlYmSEGwaG2D+zTtQRbbNz pdoXP/J7kypQ3Sh/yOJK2UOZzFk30KU7YwIZ9AZiyuQpp4iYtdymCP0tvcJ9JCRrg+xB 77IQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c25-20020a170906529900b0099ce38da75csi2755903ejm.1002.2023.08.08.12.03.36; Tue, 08 Aug 2023 12:04:01 -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 S232010AbjHHRyT convert rfc822-to-8bit (ORCPT + 99 others); Tue, 8 Aug 2023 13:54:19 -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 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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773688786844418064 X-GMAIL-MSGID: 1773688786844418064 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>; From patchwork Tue Aug 8 14:15:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: JiaJie Ho X-Patchwork-Id: 132696 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2323722vqr; Tue, 8 Aug 2023 11:45:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEcpXqIbCguS8Kjjlyg4ev85LUvgvOeKFVSTv6fiTRuxyrfEM7glpgqBabLcw99i3JlSp1/ X-Received: by 2002:a17:90b:888:b0:268:352c:9d13 with SMTP id bj8-20020a17090b088800b00268352c9d13mr458184pjb.0.1691520318340; Tue, 08 Aug 2023 11:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520318; cv=none; d=google.com; s=arc-20160816; b=f8IQ4LkOm4HN/IZJR3AaUUxIFLWrveGd94Ur/KgN8PoLRwlpho7exGwqVPSFALrnL2 0m1vwQJwO4PrM3vK43mrXzmjP4kclSBoIrJphBegylwwiFa3HmUoj70XhdzlO33mHPya x/cjw0OWgyaC5aCcNmj8oVn+JCVMpUnCeXfNbPBRXCqooAW7q1VCtRCXdSrMIJMmpGHi vf+XeAD6bXKijs5K0ctZubuMtZzEsaZcEu1IYJc2AD7LjJu+5d46WV9AiIikUOfybvKx X7gASywzE0d8AB/LpFCwyY5nhCZhMk1J4TvAXVFHRv6Eg23WTr9Ljsr/AfbM9UpYqEQ/ ta7w== 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=itMP8LlbIFiu8RnnZVbwEUx1R7Ewzrs1w9XOux7xzNE=; fh=TXbY++qKaMPehpqjmCqcipr7y1LN1goAfRQSMbp5LiI=; b=s72Pk7bUSeQzLFtMIRie1C78nkMjJVm9QfEQGcC6flCboea1vrBCn+c00kQ1cIuk0W iRIOfsNALiviXiTvpik55DZOFoZ+uaBbw75/ZNjfgqRMr/KJAEPPPSPGBUG0fvyZthx8 zIjNR09AaYTctYFCzj1/1gccamZu0kZLb5uFyWzXhJqQJ4vI37QZbplVK5YQxU/XS1+n oK1PuiO/cYviOEqeqWLOYi9XaufSZgHM8Ti8oC2lVuHGi5DV5IG6wIS3jdlUBDkycW7t 5BwvLzjdMVS4/eukt114WO3CaumiNscLGmPmWqCejrHZaPPF5/ZJCdgDzx+MWnHp5g+5 vT6w== 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 lw11-20020a17090b180b00b002685065230asi11797052pjb.37.2023.08.08.11.45.03; Tue, 08 Aug 2023 11:45:18 -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 S232017AbjHHSLW convert rfc822-to-8bit (ORCPT + 99 others); Tue, 8 Aug 2023 14:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235356AbjHHSKr (ORCPT ); Tue, 8 Aug 2023 14:10:47 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D251110EC; Tue, 8 Aug 2023 10:13:15 -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 64B66809C; Tue, 8 Aug 2023 22:16:33 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 8 Aug 2023 22:16:33 +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:23 +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 2/2] riscv: dts: starfive - Add hwrng node for JH7110 SoC Date: Tue, 8 Aug 2023 22:15:58 +0800 Message-ID: <20230808141558.296631-3-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 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773687609014551675 X-GMAIL-MSGID: 1773687609014551675 Add hardware rng controller node for StarFive JH7110 SoC. Co-developed-by: Jenny Zhang Signed-off-by: Jenny Zhang Signed-off-by: Jia Jie Ho Acked-by: Palmer Dabbelt --- 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 76046ca533ce..70d107bdcc10 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -848,6 +848,16 @@ sdma: dma-controller@16008000 { #dma-cells = <2>; }; + rng: rng@1600c000 { + compatible = "starfive,jh7110-trng"; + reg = <0x0 0x1600C000 0x0 0x4000>; + clocks = <&stgcrg JH7110_STGCLK_SEC_AHB>, + <&stgcrg JH7110_STGCLK_SEC_MISC_AHB>; + clock-names = "hclk", "ahb"; + resets = <&stgcrg JH7110_STGRST_SEC_AHB>; + interrupts = <30>; + }; + gmac0: ethernet@16030000 { compatible = "starfive,jh7110-dwmac", "snps,dwmac-5.20"; reg = <0x0 0x16030000 0x0 0x10000>;