From patchwork Wed Sep 21 04:55:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12983226 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1298EC32771 for ; Wed, 21 Sep 2022 04:56:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230366AbiIUE4Y (ORCPT ); Wed, 21 Sep 2022 00:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbiIUE4V (ORCPT ); Wed, 21 Sep 2022 00:56:21 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E99D87E31D for ; Tue, 20 Sep 2022 21:56:19 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id g1-20020a17090a708100b00203c1c66ae3so1013531pjk.2 for ; Tue, 20 Sep 2022 21:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=jkKXgc3d0MWwxQPM3fO9sVRhHaZ+os5SScxBlsQUWO8=; b=kvV5ydzQjjyZcfzh1vwCL1lWrmBBHbZVrNztHmLX34QC1HXdSuFmGz2+SFm4UbFFya rgwK2IPJ11gOVt7ggR508C51LPvC0QphmuJFzqBb9KOEW4JkUU/1fnQjShYGV1IVXWjP nZlCDw6EtmNER7hwBn/mgT1Fjv/onwwrJKMJ8xP9/pLH2/cbGXj1mVaRBhRZrFGPrt7m Xm7I6TxidaRGLld0FBrjEzWpXGTEbwJJXxJgqkyX+HhUqa8NQpxUgOiefY4i7pI6TFJ6 CverrBTcKBOWzgbsZj6bluj0KQF67pC/LbH7Wbo2Ih6UDpbNNIXev1Ah15K+g10vsSjb Sgeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=jkKXgc3d0MWwxQPM3fO9sVRhHaZ+os5SScxBlsQUWO8=; b=xhISK6stCUVLoSPgLxKx9EI4KarAf+ACQyuIU1eau91De/LnyiXFdrpUec+L3cdw1s 6FMcKKxjxqmLiziCJy2JnDskPGq5yYiMrD84xW8sPQB3pHp6JbLTGLsaM+5/1Xn/GRPb WH3+WeZNCYJ44xnvGtGQYdkmBYYuA3NedkTDmPmi6nBPehZj2V79LpYMWumdyYV4B4WF wDsQA0H+AvVMbGtm6ivHM65rjmZdgvmlerXcRTB3BGLtbS7+vktTmvqbGMSm/P7HRXJ7 hYU6Mc4569E+H7mmXeFH1ZcgTUV8zGyM5Pk9xcFYJZimY6tNrvZhvhqvXkJpYE52jgpT o/Hw== X-Gm-Message-State: ACrzQf13nv5eMrHkbcCa6ro6e06VSbQ/MPOID4kW8z5a88D7SJEsALqE B+fwDjXSPS/OiQNlgTeCyTlqLA== X-Google-Smtp-Source: AMsMyM5dYGSY2mS4ZtMippp1MLtH6fIDc1VOFMTTTSlhZ8F6m8PfSogrOZOwuryDJ/gXuzP1L/RbpA== X-Received: by 2002:a17:90a:e7d1:b0:200:94fd:967a with SMTP id kb17-20020a17090ae7d100b0020094fd967amr7328346pjb.57.1663736179023; Tue, 20 Sep 2022 21:56:19 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:8e50:8ba8:7ad7:f34c:2f5]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b00176e2fa216csm871829plf.52.2022.09.20.21.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 21:56:18 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, thara.gopinath@gmail.com, devicetree@vger.kernel.org, robh@kernel.org, krzysztof.kozlowski@linaro.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de Subject: [PATCH v7 1/4] ARM: dts: qcom: Use new compatibles for crypto nodes Date: Wed, 21 Sep 2022 10:25:59 +0530 Message-Id: <20220921045602.1462007-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> References: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Since we are using soc specific qce crypto IP compatibles in the bindings now, use the same in the device tree files which include the crypto nodes. Cc: Bjorn Andersson Cc: Rob Herring Signed-off-by: Bhupesh Sharma --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- arch/arm64/boot/dts/qcom/ipq6018.dtsi | 2 +- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 2 +- arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 +- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index b23591110bd2..9c40714562d5 100644 --- a/arch/arm/boot/dts/qcom-ipq4019.dtsi +++ b/arch/arm/boot/dts/qcom-ipq4019.dtsi @@ -314,7 +314,7 @@ cryptobam: dma-controller@8e04000 { }; crypto: crypto@8e3a000 { - compatible = "qcom,crypto-v5.1"; + compatible = "qcom,ipq4019-qce"; reg = <0x08e3a000 0x6000>; clocks = <&gcc GCC_CRYPTO_AHB_CLK>, <&gcc GCC_CRYPTO_AXI_CLK>, diff --git a/arch/arm64/boot/dts/qcom/ipq6018.dtsi b/arch/arm64/boot/dts/qcom/ipq6018.dtsi index a7c7ca980a71..0ae3c601b279 100644 --- a/arch/arm64/boot/dts/qcom/ipq6018.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq6018.dtsi @@ -198,7 +198,7 @@ cryptobam: dma-controller@704000 { }; crypto: crypto@73a000 { - compatible = "qcom,crypto-v5.1"; + compatible = "qcom,ipq6018-qce"; reg = <0x0 0x0073a000 0x0 0x6000>; clocks = <&gcc GCC_CRYPTO_AHB_CLK>, <&gcc GCC_CRYPTO_AXI_CLK>, diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index a47acf9bdf24..0683ef931413 100644 --- a/arch/arm64/boot/dts/qcom/ipq8074.dtsi +++ b/arch/arm64/boot/dts/qcom/ipq8074.dtsi @@ -286,7 +286,7 @@ cryptobam: dma-controller@704000 { }; crypto: crypto@73a000 { - compatible = "qcom,crypto-v5.1"; + compatible = "qcom,ipq8074-qce"; reg = <0x0073a000 0x6000>; clocks = <&gcc GCC_CRYPTO_AHB_CLK>, <&gcc GCC_CRYPTO_AXI_CLK>, diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index c0a2baffa49d..0dd6e1fea99c 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -755,7 +755,7 @@ cryptobam: dma-controller@644000 { }; crypto: crypto@67a000 { - compatible = "qcom,crypto-v5.4"; + compatible = "qcom,msm8996-qce"; reg = <0x0067a000 0x6000>; clocks = <&gcc GCC_CE1_AHB_CLK>, <&gcc GCC_CE1_AXI_CLK>, diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index d761da47220d..4aa5a82bd265 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2566,7 +2566,7 @@ cryptobam: dma-controller@1dc4000 { }; crypto: crypto@1dfa000 { - compatible = "qcom,crypto-v5.4"; + compatible = "qcom,sdm845-qce"; reg = <0 0x01dfa000 0 0x6000>; clocks = <&gcc GCC_CE1_AHB_CLK>, <&gcc GCC_CE1_AXI_CLK>, From patchwork Wed Sep 21 04:56:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12983227 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2347AC32771 for ; Wed, 21 Sep 2022 04:56:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231247AbiIUE4h (ORCPT ); Wed, 21 Sep 2022 00:56:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbiIUE41 (ORCPT ); Wed, 21 Sep 2022 00:56:27 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55CA57F240 for ; Tue, 20 Sep 2022 21:56:25 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id b21so4494780plz.7 for ; Tue, 20 Sep 2022 21:56:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=4dDKd9wp7f2UhxbbfY0ifehyTKrdIYEa/zzMgfdL7kI=; b=UX16cgtf3pZvfRyv3ivQJIEtyrKqB9G8OJl6AoJodHt6DWtPpGIJbmR21B9xv37PfR rNvgAcFBi+aarpVwK1zMHCtEL1JAu36DRamQHetcD2bUHIW1JcdgBci3pvjssTUkT/Zm zrXIheUWRTqgNoVH3J8LgIk+nkeGyMBDigqr9DIeOP4biPlZ0H61U19zp5m7nGLjDwSQ QwOXMbejgTFiseStLZ0DZl9JbXaSUHb0QbJDExqe+lS5z7A+YJqUGzDzEU8KIehOwsUO KsPlAtpWaFsyva1f7UOe0EiMQEnc4hz4QIzQBPd1FrOJr7ABkO2bF4yWzJyZ7XNu53YL jHWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=4dDKd9wp7f2UhxbbfY0ifehyTKrdIYEa/zzMgfdL7kI=; b=c1wFRM0xCrtBu7xEVYXPPh+Ry9seYiq5l0cGljDPbq2S+mkv1FN52upQXKgXud+Eyk eRgemiGv2HxD1m9sl9kk91uTRo4/2XMXyaeymjRN3ViSwZfqmBi42so/WEofR6dj3F9F 8lKXcB9IeQRNnwIcG1tSpUKQbYo0S0z7rdRI3GmF5RqchttpmPv2FM7/G6tyVtlIm8GP Qj9DWveLxhoQhYURLrs/vu3JaCboQ9x0AWclG2NpD9OTLp43txXzU9Bdx8G+Ewxxx83x 2k5UN8tbRV+M83m7Hdw/xmlkmKZhpbNIbvmFVz0flgoY5ed6snSs3nBwlAqS4ivK90rt nwFA== X-Gm-Message-State: ACrzQf2jLxzKAtNhHiBTTSC/k8nyxvubyd28jOos2ZP4w/KxaLq3nuLr 4Z/OP1bCPoN8omTtZVslYUDRMg== X-Google-Smtp-Source: AMsMyM5FShqSgAybsT1Bhlvt1JwfgF6TuDmFZ+cg+TKPLmadGqSE+hzY8sR+MxcytGIEkNa7M4qABA== X-Received: by 2002:a17:903:1246:b0:178:abc9:1a2b with SMTP id u6-20020a170903124600b00178abc91a2bmr2990721plh.74.1663736184614; Tue, 20 Sep 2022 21:56:24 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:8e50:8ba8:7ad7:f34c:2f5]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b00176e2fa216csm871829plf.52.2022.09.20.21.56.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 21:56:23 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, thara.gopinath@gmail.com, devicetree@vger.kernel.org, robh@kernel.org, krzysztof.kozlowski@linaro.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de Subject: [PATCH v7 2/4] arm64: dts: qcom: sm8250: Add dt entries to support crypto engine. Date: Wed, 21 Sep 2022 10:26:00 +0530 Message-Id: <20220921045602.1462007-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> References: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8250.dtsi'. Cc: Bjorn Andersson Cc: Rob Herring Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index a5b62cadb129..7b3af34f8486 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2188,6 +2188,34 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x584 0x0011>, + <&apps_smmu 0x586 0x0011>, + <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8250-qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x584 0x0011>, + <&apps_smmu 0x586 0x0011>, + <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + ipa_virt: interconnect@1e00000 { compatible = "qcom,sm8250-ipa-virt"; reg = <0 0x01e00000 0 0x1000>; From patchwork Wed Sep 21 04:56:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12983233 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7587C32771 for ; Wed, 21 Sep 2022 04:56:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231292AbiIUE4r (ORCPT ); Wed, 21 Sep 2022 00:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231178AbiIUE4e (ORCPT ); Wed, 21 Sep 2022 00:56:34 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A88777F266 for ; Tue, 20 Sep 2022 21:56:30 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id q3so5224671pjg.3 for ; Tue, 20 Sep 2022 21:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=gbkqn1VUY/QAMhQngTXvc8V80xWIUJrckZqCzPQlfZ4=; b=bvP+kDqgFVNXbgzkYrLGHXxnXM6835axKy+PK5uEdps51aW9+p970/OyMcPNfbVtXN lGlvrZ+U0mjv5tGlgipESmKRLiFBap4b9e+QWIAwB0XsLx6ze71B49pno2I96nAydlRJ q7vd2valccvr2A3xU+Wn7uPhDwaBRWnGrKisJH9eKtilByxpINB/YTJPZN4r7NU0SfAe aBxUQJHNzzshBl2t3JIxlH71/g2sDaYZ9gSMeJKzz6LTAchMT9FQFFpVzXHZ7vm9UMn9 pQDk00ez2lvSC0kcGm/sztH3fTE56SMbcMFIA28+E7uAV4x3Ivf3Tgwa5iVFwolzt+XP Ujjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=gbkqn1VUY/QAMhQngTXvc8V80xWIUJrckZqCzPQlfZ4=; b=iKKq578HtTPa/TZiHAcKcNY4bJldT0EeaxQRVLIQgFeA4A5tFobVVjs8iE+ey8QU+X aFJdW+p/1MRRoAxRUrnvScz9EEdEpYMhiQpR3A+Qp8ao3R/UOqUQGneF6cChUM06Asty 0Vh0dfJF/xrWHSxOYfvqruKyDjQ19wdkSSA2fC1WCsZV/cfDwl0nhGJksmjheq/ZMAbU NUXe8+7zMjY/22xA/WY85bxjlvyUlp2KCp1YYTSv02JvWyEr10xHm6AiF2aq1v11BIfn Ho3jBxsIqLweMlD/muS0qZzpOGEZJ2pRKtRj2fHme369jG35KPOCiKxPCB4iAGD1Ujwl OOTg== X-Gm-Message-State: ACrzQf1tQd/IuWk43EJeu+u1eDkqECyTCXGhlME9zQbgLQg1vLXebv75 AUy9ySfvIPEajiIm+HQVEfoNSA== X-Google-Smtp-Source: AMsMyM6uibYsmbLsti3ubDip02pfOgOdhoJFXnPM4bP6sIwCBOB1OfEhMAM+xysIymIq60zZBiEFFQ== X-Received: by 2002:a17:902:c401:b0:178:41d1:ef50 with SMTP id k1-20020a170902c40100b0017841d1ef50mr2974798plk.66.1663736190116; Tue, 20 Sep 2022 21:56:30 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:8e50:8ba8:7ad7:f34c:2f5]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b00176e2fa216csm871829plf.52.2022.09.20.21.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 21:56:29 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, thara.gopinath@gmail.com, devicetree@vger.kernel.org, robh@kernel.org, krzysztof.kozlowski@linaro.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de Subject: [PATCH v7 3/4] arm64: dts: qcom: sm8150: Add dt entries to support crypto engine. Date: Wed, 21 Sep 2022 10:26:01 +0530 Message-Id: <20220921045602.1462007-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> References: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8150.dtsi'. Cc: Bjorn Andersson Cc: Rob Herring Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index cef8c4f4f0ff..6e21352a158c 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2041,6 +2041,34 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + ipa_virt: interconnect@1e00000 { compatible = "qcom,sm8150-ipa-virt"; reg = <0 0x01e00000 0 0x1000>; From patchwork Wed Sep 21 04:56:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12983234 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 740FBC6FA82 for ; Wed, 21 Sep 2022 04:57:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231325AbiIUE5I (ORCPT ); Wed, 21 Sep 2022 00:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231229AbiIUE4h (ORCPT ); Wed, 21 Sep 2022 00:56:37 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BD4B7F135 for ; Tue, 20 Sep 2022 21:56:36 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id q3so5224818pjg.3 for ; Tue, 20 Sep 2022 21:56:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=LoDI0ur6KswVSmS1dZpuhQgtr92N8kLU7u6OZi8zwCM=; b=CEOOQPH/UwDcKE4ATNK3ns/S+sq5jjUkFECPR0fs8BtFrA/Pn+tnePbWwsRLQzr6li btc5piA0/YzAHXRW/4dDmBRkR2oKbYIHB7pJSBT/dYkLUACsoIfkKU3gNPt7Bk/T76Hv Cmh5XdlGk/YfKtQiAANhneAeSbVrn94T59pC+2Wegt/6pT1OEJIIzfsHIABhEWEmLxmp w/2/2QUzgOKTQewIHafYFfA59ctCPXNJXJjv7OMjhhMb4m1IxDS+Bwfky5VrHcO0hvZe /+NSlrGr7HC6Ei9/P3DU7CrfNxNv1KL4OsDyLUBnENmNWDcNTezYuuefg0tlZSU7K36t 9nLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=LoDI0ur6KswVSmS1dZpuhQgtr92N8kLU7u6OZi8zwCM=; b=iYfzdNAsD7Hu1xDwOaSA//6fGiEaKyWR653THoHNSoOp5pHZmqymD1kbEKqiGI9oxY XyQy28gPaXhn2sMunTCHHYurX8JfC16PbZmuVhsBOPqJ61SUj9wn7DiIjb5tm7gyWU0n W4Fdafwk2CKWi001mK1LoNgaDjzFoaUllXDb/WEbOs2QbJ+4F3cQUjJ61n48y+N+L3Lb 1SrDC/3VcPq0ONiqoVVKKImzaRYGdjIIGXGKvAw9+N7GHUWCOEnU52E2sBha1A/ENzNG 5JgloAbZPH6YEeQnCoS6BJcaSIBxyvFtAx9onFk5jEg2MiXA6DZjzRhP1LEb5iGx2ry1 5aOw== X-Gm-Message-State: ACrzQf3DfNGnJd8YZRx6AI+LjDyqJwq6KFoIqXr89rmSgrcFDekaaHpp 2utvtB3u3lnCp7Qe4FDG/d8F3w== X-Google-Smtp-Source: AMsMyM4K17OfYdOpmjB56NRvlVzaKj0xokoJS2k43dLAAUqhvGbyy2KJSu0jQWr4ovhOXzATrViaxg== X-Received: by 2002:a17:903:2343:b0:177:ebb1:3c62 with SMTP id c3-20020a170903234300b00177ebb13c62mr2995908plh.115.1663736195549; Tue, 20 Sep 2022 21:56:35 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:8e50:8ba8:7ad7:f34c:2f5]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b00176e2fa216csm871829plf.52.2022.09.20.21.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 21:56:34 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, thara.gopinath@gmail.com, devicetree@vger.kernel.org, robh@kernel.org, krzysztof.kozlowski@linaro.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de Subject: [PATCH v7 4/4] arm64: defconfig: Enable Qualcomm QCE crypto Date: Wed, 21 Sep 2022 10:26:02 +0530 Message-Id: <20220921045602.1462007-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> References: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Now that the QCE crypto block is supported on several Qualcomm SoCs upstream, enable the same as a module in the arm64 defconfig. Cc: Bjorn Andersson Signed-off-by: Bhupesh Sharma Acked-by: Krzysztof Kozlowski --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 5a4ba141d15c..46d6c95b8d25 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1321,6 +1321,7 @@ CONFIG_CRYPTO_USER_API_RNG=m CONFIG_CRYPTO_DEV_SUN8I_CE=m CONFIG_CRYPTO_DEV_FSL_CAAM=m CONFIG_CRYPTO_DEV_FSL_DPAA2_CAAM=m +CONFIG_CRYPTO_DEV_QCE=m CONFIG_CRYPTO_DEV_QCOM_RNG=m CONFIG_CRYPTO_DEV_CCREE=m CONFIG_CRYPTO_DEV_HISI_SEC2=m