From patchwork Mon Sep 19 22:15:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12981046 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 0D8FEECAAD3 for ; Mon, 19 Sep 2022 22:15:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbiISWP3 (ORCPT ); Mon, 19 Sep 2022 18:15:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbiISWP2 (ORCPT ); Mon, 19 Sep 2022 18:15:28 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3CF04056D for ; Mon, 19 Sep 2022 15:15:26 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id q3so1061235pjg.3 for ; Mon, 19 Sep 2022 15:15:26 -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=kD3l/vu3XHlgMaTAo8z4bqSNet79lgAi5P2+vDrTWAPaEuqav0dNn3MYgRROfxeWr5 mZV2OGRsTI9YVqIhtlE+u9uXMDH7jqM/RPriNg4GNlUfwixA04uP5iRDRQ/m/ujgd9Br oTQXldppMGBrX08yxD1iXxRltPa3KsMP8wq1wANbbQqQ5ub/F+G+eBXfbLLsbtmi4tNy RKGCYg8PV2qVzDOcqjiIEmcY9YWxrSKTOPCqgpf1Bosx4ykop4MaJS4bylURChy0BoAi 3ZRkIHp/HAibpDCw3vkSxy3qUFDeexTAI6JYZdZsMoKdBeHb1/VYSgdD133x7NA7ME4r 12Yw== 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=2qjAqmVv0xWF4VLpwn7tA634gQgi5wrZIK5Qlgaie017SE3buLyEGKsq+OKRsAz03z rm534qz+MeEVKkrMdZXX+3TORTipo3Uhc2KaoVdqw5BfTnbVKYP1WqIZ/49yzYxqrQbD eEwzRLSKgpa3JAweRG++QfbStaGb7vFKzpbz8EFqnLBnBDO4jdi+E/Z0dNXFyhA/l2cO Sfz8jPgxd1sKBZrkn382TZjEGE0UrCPgMHO//PtJw5fVklU4Ah9Emnq51uQw2TFz6mv7 EiENEuEhnxu5PoEHe4Ivm/Udm8BEmXm50VqRVUyG9EGGUx9i1854Mnsl0qjZzHoCnmqi I1kA== X-Gm-Message-State: ACrzQf36WtYyycu475ug3JFzEOfr2Ara9qUs9WFECR0qv5e9dYVpP4nr kGa96zlRiYqyUjQZ82s7VrrFvw== X-Google-Smtp-Source: AMsMyM4ujiHTnjxY71jNKMHw47fI72AcpTrTdRMORJ6Fz3BqslujBk35Dd8x887Ywa2CuYenZr9kKw== X-Received: by 2002:a17:90b:4a48:b0:202:9bcb:b89c with SMTP id lb8-20020a17090b4a4800b002029bcbb89cmr378951pjb.161.1663625726281; Mon, 19 Sep 2022 15:15:26 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id b22-20020a170902d89600b00176ab6a0d5fsm16198966plz.54.2022.09.19.15.15.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:15:26 -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, Jordan Crouse Subject: [PATCH v6 1/4 RESEND] ARM: dts: qcom: Use new compatibles for crypto nodes Date: Tue, 20 Sep 2022 03:45:06 +0530 Message-Id: <20220919221509.1057574-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919221509.1057574-1-bhupesh.sharma@linaro.org> References: <20220919221509.1057574-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:15:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12981047 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 C2A2DECAAD3 for ; Mon, 19 Sep 2022 22:15:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbiISWPq (ORCPT ); Mon, 19 Sep 2022 18:15:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229828AbiISWPf (ORCPT ); Mon, 19 Sep 2022 18:15:35 -0400 Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B6404E606 for ; Mon, 19 Sep 2022 15:15:32 -0700 (PDT) Received: by mail-pf1-x42d.google.com with SMTP id l65so938351pfl.8 for ; Mon, 19 Sep 2022 15:15:32 -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=S20OV1WVT6ahPEdkPKZYnRFNaEiVhTD3umoyZtuzqAkz59ljaSe6lHSxvwdEBEjwO3 tjyE5xFjWHiOu95Y7tiYOd8XP2hdcuwaANpgRcxcn0Ntw60aQtyGs8TjsEhhm6g6W/AD B3R3psrMdvafTvesEJCJgII52ZunxtJgWzbdixMWoqmPUDj4QSbQcd7I3E2fD1NP9Z9l QHpLXr8NgWSUo0MEYv0fvu7xEkRpht4ARkQuu4NZtVPYLjrULTvnzxy01HQez9T2Gnkj 49qNtWtSEdrLSUKGY9OsubQnpSDMQxv23EmtZJMZqMgjPd6RjzcoKPDRK/h67i/E8D/N Jyew== 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=WDS5myJon9ByfjqGzap73hOOLal/WzR5V/l/St5kidKvQkQFVuJgedz9g/kivN6gRv EvGNDfQsIPhySIfkBHWpncijdes+Pc1k8M0ak1P9aZbTGINfcsGCgvKu0GGFdiNfXYSE hr9fUU0jO4tjJm3gon3jMItNQt5K8qBNAkLFMt3KdI42W1kFiZFKPmdvUdMCyeRICjap hv9yrxVg+zYzj5YNH6+nf4l71NdSoUvlUn27yp1zMx2ljUfa+kr551nhSA7D80IlC0/F dFulp7UsAffg9w3RZLWFKUcbVMi5fPZiDkTMgUEzSsf/sYfjHX9FxrVsnPSBKY6eRbwb eodQ== X-Gm-Message-State: ACrzQf00gBIYbb+sON6YJmryyTCVEyL/6l4kYk0i+h/UNUlqQRbtm4KX o8xkB/Up1dCBLVPvTZ6ei8mxqw== X-Google-Smtp-Source: AMsMyM7Y4Qbt7tlg+lDefUN99fZmk5adL/WAtpTvuR9koYYbTSquLK920at5EvVXbbrskFksRxhDKQ== X-Received: by 2002:a63:5b61:0:b0:41d:3227:37b8 with SMTP id l33-20020a635b61000000b0041d322737b8mr17238272pgm.265.1663625731881; Mon, 19 Sep 2022 15:15:31 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id b22-20020a170902d89600b00176ab6a0d5fsm16198966plz.54.2022.09.19.15.15.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:15:31 -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, Jordan Crouse Subject: [PATCH v6 2/4 RESEND] arm64: dts: qcom: sm8250: Add dt entries to support crypto engine. Date: Tue, 20 Sep 2022 03:45:07 +0530 Message-Id: <20220919221509.1057574-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919221509.1057574-1-bhupesh.sharma@linaro.org> References: <20220919221509.1057574-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:15:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12981048 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 B6D5EECAAA1 for ; Mon, 19 Sep 2022 22:15:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbiISWPv (ORCPT ); Mon, 19 Sep 2022 18:15:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229774AbiISWPp (ORCPT ); Mon, 19 Sep 2022 18:15:45 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B0354F19D for ; Mon, 19 Sep 2022 15:15:38 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id f193so698225pgc.0 for ; Mon, 19 Sep 2022 15:15:38 -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=jI+49eoEG/2Qtd+35UCQhAVS74uxrxtiXIFxaVL/4mvvDUMyQAwlMVCJ3hHL/AFlI7 qTFPV8cQ90E5BUX4h0V0qJG0ZDEqm7K53MPz7ERCy7HFayZe+TUdiR5kfiPpxsTKGtS4 Biy7X53MJohEV2P8x2iTMnydPwrfB2osxpbhCd220xaLe6DeZTJINAs1T7Whhu+YHA3q Z7hM5VuaRlwSVH+eyp21VMr+yxVr24fATHAhDCV/1r/xD0m0d8QqVMm0esVl6XJ00t08 rKlcoX8GydI3wxibNF4TOn6mKEiEtL7ykw3hHOcwZ2EBpDI80zG6eBOaBU59l1zXNKHG o84A== 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=pLyFqIEvShQyjNFfeCiJUjemRXKzQhjciNRks5ZF7w7u7Oo9ns6pnhGUaJ0R7YnA9Z zSwavKrNB7OheUsy4qEZsQtVlGqCs2GZsewLvwfXSaafT86ulcgHo4cWBNjZdCVQnege KGEzoiP6MJx1dFUwOFbh6BVD5Gliwvb8H5zr34DFn70oan90xBGu7YxFtipsekfo8Dph i3y84AIwxoBsw/R18H0kKwpTPC7zvTQNjnrhUo/MjDFmdyvhrLK8+8/8jICk7y5sdMw/ Q7KZmNeUdlVBG+mQCHeJUUQHf09EXzjXcCqQy+VZ4SzJgvnjky6dvh0AVlChqQ/bTAFb pi/A== X-Gm-Message-State: ACrzQf1HhsnYTiM6+m13ELRjByUQClDzTmC7jAntlcv1DocRxIeecQf1 dY2+ATsDZg2CxFsypZu4TAOEiA== X-Google-Smtp-Source: AMsMyM74rQcRBLSqdZCMeOtVmNfkAtXPu7rDOxknVQcOrFlvyB/PYYjJ0F7sTACAHxOBIcTi9CT94g== X-Received: by 2002:a05:6a00:ac6:b0:530:3197:48b6 with SMTP id c6-20020a056a000ac600b00530319748b6mr20478986pfl.80.1663625737218; Mon, 19 Sep 2022 15:15:37 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id b22-20020a170902d89600b00176ab6a0d5fsm16198966plz.54.2022.09.19.15.15.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:15:36 -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, Jordan Crouse Subject: [PATCH v6 3/4 RESEND] arm64: dts: qcom: sm8150: Add dt entries to support crypto engine. Date: Tue, 20 Sep 2022 03:45:08 +0530 Message-Id: <20220919221509.1057574-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919221509.1057574-1-bhupesh.sharma@linaro.org> References: <20220919221509.1057574-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:15:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12981049 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 3E0D6ECAAD3 for ; Mon, 19 Sep 2022 22:16:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229962AbiISWQI (ORCPT ); Mon, 19 Sep 2022 18:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbiISWPt (ORCPT ); Mon, 19 Sep 2022 18:15:49 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C06A64F385 for ; Mon, 19 Sep 2022 15:15:43 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id f23so538393plr.6 for ; Mon, 19 Sep 2022 15:15:43 -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=Eg+8oByfDgeaBoiIDA4vMz/xjz5ElWim/fuU4FWVP2kxztwDGzpoyZHPklBETnh7er ZwioAwAveki45sv8afbzRH+6FMmKiT6R8DMxKJW40QkBnuXaG9q2QooQQSQ80qp3KNna xajYALDZRE06wxvBJ8OBQokzrRbA1zXHiD7i2pSCpMn3jyzeq8pjAMVbTf1r6lK1H1uR L9aevNS5n5IW1+c0z5eAkWm1CB2oX/R4FFCZlmc3Un7A4uQBhLDK6JajtxC3/TV8gPdA NHt3PPvODkbc1b8LMr1PQkl056EBO/5NUuYcfA/IJuT6rP5Qq4999SW+H9oiS/qlnk2c QLGw== 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=WwtWnS0ol42xLJ4kJXgHmVS+pm2IupVA3FuV+7OilGfPcupGiJW5nafXrpBKNBJRhi 3rCooIGpCKFAUta7tFN/F2TbcRFZXvbpBRLybaYzixdSEBFWs5Z0moy10hUrSb2H8eVa 5AzJEAVSNW+GL7JPL49/lsW5YqqUim9tAP0fJY55IoiJ912EYgv6At54ztuMkr4rqI3d Yj8NNx2fm7OYeJf3J3yHGZco4GqEX+RvFiZmKAdKdPcaFly/dHpifXrGtmlukj5t1eoA 5qLX+7F4DR3SJReY/0p4+au1XWmRrUq9QHxTO7OnlZ4jlSabFZ57MtVFMOukUcofq737 gdSQ== X-Gm-Message-State: ACrzQf2v4GiOJBxCF5Z1I+OJCt24yzD84BGduAz8F1l4pASzxTpUtTDK fLrkPnVieiitWLAC0iMl7gNe/Athuo3qFQ== X-Google-Smtp-Source: AMsMyM6u9rp/OLuvTeBYSpX2CjGqyvW8Wq53PaVIuY916O/uv/sM2oFqyY01tn8mGxysCHqRhkOeHw== X-Received: by 2002:a17:902:c106:b0:178:8cb:2762 with SMTP id 6-20020a170902c10600b0017808cb2762mr1892852pli.58.1663625742398; Mon, 19 Sep 2022 15:15:42 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id b22-20020a170902d89600b00176ab6a0d5fsm16198966plz.54.2022.09.19.15.15.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:15:41 -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 v6 4/4 RESEND] arm64: defconfig: Enable Qualcomm QCE crypto Date: Tue, 20 Sep 2022 03:45:09 +0530 Message-Id: <20220919221509.1057574-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919221509.1057574-1-bhupesh.sharma@linaro.org> References: <20220919221509.1057574-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