From patchwork Mon Sep 19 22:08: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: 12981039 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 D7546C6FA82 for ; Mon, 19 Sep 2022 22:08:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229734AbiISWIY (ORCPT ); Mon, 19 Sep 2022 18:08:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229694AbiISWIV (ORCPT ); Mon, 19 Sep 2022 18:08:21 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4BEB4E606 for ; Mon, 19 Sep 2022 15:08:20 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id 207so631365pgc.7 for ; Mon, 19 Sep 2022 15:08:20 -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=0uhb+h75Lws/eNCmPPe/5qfT854SCHIYjHdtTeIrM1s=; b=H/CVVGEfjX4VNoeOR6sVXR3j1N8GdiyewfD7qkleynNoSxCGFE68s0aVwiCR8RqQ/R sizBSu62MJdLGKsWNXgQ5BF4r70w+73Pj1CfFl8AUJGCq1j6TvOHmnAcWf8XW+a49dZE f1Ktr9S6wp9MJdmxYkosIqCLW50Oh3nx91kvzkqVAOfmWzhIJ4Qd/2z55VRYysFKA26m ZvmXX5iy5/tDVqaxr+NNUHbALwKlgWgRHvy93eJoo0Qm8up13YhX+xZZzzO4FTBMeU5w DMKYFMp6yBO3lqvaY+rOVQCzmyvaD3sXjoSzs/fny9TzvAoubQt+U9aeZFcnUnbMSaMI NCRg== 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=0uhb+h75Lws/eNCmPPe/5qfT854SCHIYjHdtTeIrM1s=; b=uCvJEaFQbV2ALHdBYcWMNHb36N4+AP0MVsQkKa1S1eTpcJjLKRUWzeL3igkuXkcRee aq4p/b/hlMkIyDQ0YpXwdUucI0hD71kzUzIFMkJ9M1p4JCLvwjmNWQOiMO5T2UP5XAtD 4zMU3/D16W19r2/esfCb4MYrUUw5lL45WDOYRpicGJxyFBLFwul79es9EHqrjBpqGp5G m4PAi2PAyovrNZ2avQlnXUfRG/RblZmcEB3zIE45747aVaYtWKYRZE2wYNPHjGtROOEB iuQ0uHnMPO0N0yzta9YfujfIIAnhjOIQbjRny1mXjyLhCRuh3zysakxBEobnxLN5iKCj RzvA== X-Gm-Message-State: ACrzQf0ynzqjFsuy66kzLLYkcRu++SXq18ntuJjpEXnptbft1HNXwJaZ OvktO1V4ZbE5GrNYNvZPoB+utg== X-Google-Smtp-Source: AMsMyM70Y+b95Czu0Nv+1rBIAS3Sf4mjTd2oQ9LxfcHJ9f0fpYpNjD1kedH4P6Pp4L+3vcFDZeb1Zw== X-Received: by 2002:a63:cf56:0:b0:439:41ed:78fc with SMTP id b22-20020a63cf56000000b0043941ed78fcmr18063162pgj.419.1663625300078; Mon, 19 Sep 2022 15:08:20 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id u2-20020a17090a6a8200b001eee8998f2esm7068167pjj.17.2022.09.19.15.08.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:08:19 -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, Jordan Crouse Subject: [PATCH v6 1/4] ARM: dts: qcom: Use new compatibles for crypto nodes Date: Tue, 20 Sep 2022 03:38:01 +0530 Message-Id: <20220919220804.1047292-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919220804.1047292-1-bhupesh.sharma@linaro.org> References: <20220919220804.1047292-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 Tested-by: Jordan Crouse 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 Mon Sep 19 22:08: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: 12981040 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 E6219C6FA82 for ; Mon, 19 Sep 2022 22:08:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229698AbiISWI2 (ORCPT ); Mon, 19 Sep 2022 18:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbiISWI0 (ORCPT ); Mon, 19 Sep 2022 18:08:26 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F4AC4E611 for ; Mon, 19 Sep 2022 15:08:25 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id u69so653395pgd.2 for ; Mon, 19 Sep 2022 15:08: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=DRxqMyGvhPtofl8YxA3T39m6sweXx0A08o/k3+hG0Lk=; b=d+YQfQ/B6B3CCbpoXS/ElmZghnhmJmIaPF6nALJ4T7LXMJHDhEhNbNffEYY8V0gcxU qiBOfZVbuuUqc10lJZf5gDXlqvhE0r7Hek2aBECBbLEaX+9+PivK1qryzBjO9vtULJZp 7VrzlLBjzpXBN5FAv5jHYo+Gv3OGs3edSYuKt/Ad2QQP02qDyRzYH3xuJvoKwfSNBbJQ C8ARa2k5R3zDt7YHx6sZfmBhJRxnrgvwar7VwqxAV5O3QklwsqjJAPt/1KUqs3FKj37p Juo0LGpcCh0nbiJ2/Dc7UVc1cMTeqaob/WHGfWkWPv3zA5a2auP767mg5IuL48BBvYSl cjVg== 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=DRxqMyGvhPtofl8YxA3T39m6sweXx0A08o/k3+hG0Lk=; b=Zd3m8upHJ//tUvcAgYEtofHc8uhDKDZgawR8VLtiRdqQQtD+sFrZoZ8kvb1aEITydm tPOMFpyIPcWHWTH8DQngI8GNoz0WbbJP6TXn0jGVEl+F/Mwm4wDg/ljviduh6yew9iir e7ZyfJMX+kSiDGqxn3uV9TUV/wd9qs/kdV+AKXzNrZWqRDJUqHTtnGwMquMFVkEoJiwl VSN2U64Ip1Gy+u7zEtRuD0yfe7I4+SrxDMtNFIF9SiS4pLxMiJ/L4Hz7Mlogl9fCsfQk mtlBNMyJnA1OlXCsifxxFlLDbbZpyK5PT7+VQrRbIuLRDwMyO7P4TDW7+13OKzpdmNZF p0tw== X-Gm-Message-State: ACrzQf2UDU8+fQMrNlAWOfBd7zR7G7IjfzNmFB8+yoVTXVNlaXJFpbD2 KDUw6BvVQgbt5NGPAoXT/YToKg== X-Google-Smtp-Source: AMsMyM4OnpxDGwyr1k3vmFAwnOZxv4zjr53aJn681o6mpLreYuqUYeWhzuJ/nPgd8w1tYjEF2ruwaA== X-Received: by 2002:a63:e22:0:b0:41d:3a50:bc55 with SMTP id d34-20020a630e22000000b0041d3a50bc55mr17784139pgl.255.1663625304760; Mon, 19 Sep 2022 15:08:24 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id u2-20020a17090a6a8200b001eee8998f2esm7068167pjj.17.2022.09.19.15.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:08:24 -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, Jordan Crouse Subject: [PATCH v6 2/4] arm64: dts: qcom: sm8250: Add dt entries to support crypto engine. Date: Tue, 20 Sep 2022 03:38:02 +0530 Message-Id: <20220919220804.1047292-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919220804.1047292-1-bhupesh.sharma@linaro.org> References: <20220919220804.1047292-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 Tested-by: Jordan Crouse 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 Mon Sep 19 22:08:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12981041 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 A990AC6FA8B for ; Mon, 19 Sep 2022 22:08:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbiISWIh (ORCPT ); Mon, 19 Sep 2022 18:08:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbiISWIb (ORCPT ); Mon, 19 Sep 2022 18:08:31 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF824DB26 for ; Mon, 19 Sep 2022 15:08:29 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d24so531546pls.4 for ; Mon, 19 Sep 2022 15:08:29 -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=ULCMcZ+Weq8ahgDLA2SKhRRxvxoclcBLchkSc7jAqNM=; b=Ye6300eXUIZAHv0rYRGmO/Zyt1gzU2bx2cqLk43yzM3yzDNvGg4EZx3pYE9epsbWdZ p2AlgRmDol1nKMKgPGD9jtnOmW+GcpuzmWFRvq0Q0Rrsn+8EufXIQ8Vn0NUTcRrKMwue W53S1EyVZSPkj37Xe5I2ih0I7PG4nJjB0p1HZjcaRMJCFfwXJL7soGmhlf23XgRKC9IS Ht1k7wb+7ozD3MbZq4j6ctzlM9QL/UteUSzc/pRBY+sFDgE4nmOYzpJ4OM2dWnsEAEJ4 N4QLgKUJtLInY3w/egXGME3iGFveNDsNi22BoYZkAW4icA7a7QG4YH4+hMtwlToaG0/H upVQ== 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=ULCMcZ+Weq8ahgDLA2SKhRRxvxoclcBLchkSc7jAqNM=; b=tvVhnFfU6g9iZ54ggExeS6S7/fp4bm8g/ykRHYQOg8bqnt+5wwXKWoKOqX5ToBrhi/ eyKudq0uT0IZrKZxcrGx50D1KSe79X6XmAuUFVHlpd1AEV/XUesIROaUxkqE9QhTtiZf T+8zWCeLGYLUCGjo1YY+IU/QIBDxJlzTiudTVUbwGjUWDdwi05guvyeLNrMUFCqQEZtE NPNqCVE+68RBYBb443Ft7QratRd8TbpnYDCYVhI6kArdN7dQYJSA139E6Limc1vvWJNo EUmRbKsyP/lh/6JEvIloY19x+Xis+4b5gzrzoLb9wl/iwXxcX/ejTlrge1jRBwwp2BsX lRPA== X-Gm-Message-State: ACrzQf1aJuN5Lz2c5K5bdkoXc9PeesIsjCOAzNa9O98WPo3vOgsu282w 9GCpGBLPodGQiV1c+W2Otl7mEA== X-Google-Smtp-Source: AMsMyM4aSeZUrbhqk3LyPbALtkW1FXKWQPvHMVUc360mF6o0d13SfcoVXtxgDTmd1/NgaQoOYvrfTw== X-Received: by 2002:a17:90a:fa8e:b0:200:b4b9:c6f3 with SMTP id cu14-20020a17090afa8e00b00200b4b9c6f3mr366671pjb.190.1663625309322; Mon, 19 Sep 2022 15:08:29 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id u2-20020a17090a6a8200b001eee8998f2esm7068167pjj.17.2022.09.19.15.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:08: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, Jordan Crouse Subject: [PATCH v6 3/4] arm64: dts: qcom: sm8150: Add dt entries to support crypto engine. Date: Tue, 20 Sep 2022 03:38:03 +0530 Message-Id: <20220919220804.1047292-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919220804.1047292-1-bhupesh.sharma@linaro.org> References: <20220919220804.1047292-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 Tested-by: Jordan Crouse 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 Mon Sep 19 22:08:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12981042 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 0311FC6FA91 for ; Mon, 19 Sep 2022 22:08:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229498AbiISWIi (ORCPT ); Mon, 19 Sep 2022 18:08:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229861AbiISWIg (ORCPT ); Mon, 19 Sep 2022 18:08:36 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02AB04E60E for ; Mon, 19 Sep 2022 15:08:35 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id fv3so1106966pjb.0 for ; Mon, 19 Sep 2022 15:08:34 -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=uiQoRdPMS4bN6w+8uKf5shtNLKGDX6ztfUYVVzFqL5c=; b=htHwIhFP1m0Pe04vcFg55xmaQHsapGLboSsdZgsB305heO5lpAVfnVOWgg8HzxuJWe XEEC2izYMuochhCt7hZgTwHc3tyILBg2k1+pres/4p3YLptyW1UslSZux8N+Bm2ySM8d 5FD2LnYjORLzCulI8LHLUIjFZX5Tw8OTt4l/gJ3kAh+ypQXoBnopfmoOBi6t+gZtRRKP FKB+akSDmx+g5ykrhl87HFOEz8QtEbgpDax3n5jL1NujLqJA5tTGOdU1nw80I1vYqiH9 n7psM3aRoG5OLhG+PCulM5bCxZwpI70UU+MHBscJiWZ2sEAj0/q6RSuLd/hu7Z6pw+wB NQlA== 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=uiQoRdPMS4bN6w+8uKf5shtNLKGDX6ztfUYVVzFqL5c=; b=VJlov/5DctBNx/PdmHKjjNjoyF2GfhgZXKzIf741WD+kN7di/KyvpWjcLhCiTNSPiR F1KEEHLPxNKg8FokCFtRbtCa1HRTfqK9qU1CAdxwyd/FxZmiN2y5pb2btSbu62cl3El0 Sre37MVlErL97yZdxW9IkPPrJr3QdKIiXWnhxwdOW66wNFt43KzVOM8LvT+f4L+cGRS8 E+YUx+H1Np2OwshkTNl4Wlg5515TbdxFa1z3UB5q66bqLKRIa9JD0cE2V4TZEFXAF3FF sN9U2L610fIlLowaRCxyf0ta5WCzsN5SEHpV7ghwV9T2fNvnBhlx1egf+Q9xG7Ce2tlg XJnw== X-Gm-Message-State: ACrzQf1HxzRquLB7h9RLG2JjXrmx6ivlwMb/Xvvqf6xZ1UdtJaM+aCAO mmYWDLumzbeT0x2b7uaj6X7I9A== X-Google-Smtp-Source: AMsMyM5uMmndM2dO+Q3zN63SEkV+Tcpo/sGkX6CbhKaQ1fTBpzHjDxnQtQUVZeo3FnIgNRCgl2RshQ== X-Received: by 2002:a17:902:da8b:b0:178:3980:4597 with SMTP id j11-20020a170902da8b00b0017839804597mr1875763plx.113.1663625314479; Mon, 19 Sep 2022 15:08:34 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id u2-20020a17090a6a8200b001eee8998f2esm7068167pjj.17.2022.09.19.15.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:08: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 , Will Deacon , Arnd Bergmann Subject: [PATCH v6 4/4] arm64: defconfig: Enable Qualcomm QCE crypto Date: Tue, 20 Sep 2022 03:38:04 +0530 Message-Id: <20220919220804.1047292-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919220804.1047292-1-bhupesh.sharma@linaro.org> References: <20220919220804.1047292-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 Cc: Catalin Marinas Cc: Will Deacon Cc: Arnd Bergmann Signed-off-by: Bhupesh Sharma --- 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