From patchwork Tue Mar 21 19:01:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 13183062 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 6E66DC6FD1D for ; Tue, 21 Mar 2023 19:01:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230308AbjCUTBj (ORCPT ); Tue, 21 Mar 2023 15:01:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230274AbjCUTBh (ORCPT ); Tue, 21 Mar 2023 15:01: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 1977A559FF for ; Tue, 21 Mar 2023 12:01:34 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id j3-20020a17090adc8300b0023d09aea4a6so21314570pjv.5 for ; Tue, 21 Mar 2023 12:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425293; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+EO5HCrL/48xWt1UFxSeB3X47wtvSFENBkrMN/kz2Z4=; b=Hg0STW2UxISTQFaVd+BmMq2m3Uq9BeGqe4ieVq9oVQh0j7mGiDs4cJvO3loji+E4pX W5YGItnjwF8zOtleNYvXqtwRqbExbRz5XIPq3qtv3PwpypoQfpDU0cYwplE/ew4iBOvM ZjU/UM0Q+Wc0UQfhoVjY9GvQWnUWSDZwHdFxticf5JTNmw82TQhvMZXCc4Xu2h1FWtZ7 hUwf/dPZdI/42mJcyjv9UgU9Q/0RRHfP+cnsJlY9EQpgfdic47IRqFKisJIed4zX6orP pShWvpsFgTg7lT6+6deiMexaBE/SeHz5SaSLma54Qjc3tyRSsFDrwm5nsA8rpAA6miNm MEWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425293; 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:message-id:reply-to; bh=+EO5HCrL/48xWt1UFxSeB3X47wtvSFENBkrMN/kz2Z4=; b=yJtqsx8v/CK60ZM0PrrHuRJzkn8Adzs7whVnROst7XOdi8axY5q2TsgHwElCPi7c2h ZS/Z+2SNCIBPO95x726epkTj10Fb//EcpPJAWJLFm/u27+GahzKQqyVZW7h9oXHsnFOQ uOecWJqpnvcKjn2rQ2a0WkPENWBMViRHl+Nkc/EAKrDiYEd/WwerX0tEzTVcYkVw0zkt vY0mlQW0ps1xwfJk6ungunicYhR9ByarUexwn3ad424vLx6YD7R5wDsCSIdtVG9B3Udg 1JVk3oco1J+IeCNFsAddepTDM/JTteVUC3ZqvEyrhK1S0peqTpg5zYkZvU7M4HMoev+u mt+w== X-Gm-Message-State: AO0yUKVMcNes67864oZTjFFR/hDbWEwi3MPYzsTdiK7jvLSVYvCD9ac/ mlQY4TncPDHbT3c9YWKVBbmqY6IfpuinTrLCRyA= X-Google-Smtp-Source: AK7set9IcbRVIHvBCJAya+bH9UyoCJ0UrEsUKBiP/3RNDLBs4Ab4kGdyLoY/IMZOYCWs1GOzuLup9A== X-Received: by 2002:a17:902:f1ca:b0:19e:6cb9:4c8f with SMTP id e10-20020a170902f1ca00b0019e6cb94c8fmr82042plc.41.1679425293022; Tue, 21 Mar 2023 12:01:33 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id v9-20020a1709028d8900b001964c8164aasm9043453plo.129.2023.03.21.12.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:32 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org Subject: [PATCH 1/5] arm64: dts: qcom: sdm845: Fix the BAM DMA engine compatible string Date: Wed, 22 Mar 2023 00:31:14 +0530 Message-Id: <20230321190118.3327360-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230321190118.3327360-1-bhupesh.sharma@linaro.org> References: <20230321190118.3327360-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org As per documentation, Qualcomm SDM845 SoC supports BAM DMA engine v1.7.4, so use the correct compatible strings. Signed-off-by: Bhupesh Sharma Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 0fdd59a9feed..e8e9aa4da914 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2628,7 +2628,7 @@ ufs_mem_phy_lanes: phy@1d87400 { }; cryptobam: dma-controller@1dc4000 { - compatible = "qcom,bam-v1.7.0"; + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; reg = <0 0x01dc4000 0 0x24000>; interrupts = ; clocks = <&rpmhcc RPMH_CE_CLK>; From patchwork Tue Mar 21 19:01:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 13183063 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 9D364C6FD1D for ; Tue, 21 Mar 2023 19:01:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230274AbjCUTBn (ORCPT ); Tue, 21 Mar 2023 15:01:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230316AbjCUTBk (ORCPT ); Tue, 21 Mar 2023 15:01:40 -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 F271456152 for ; Tue, 21 Mar 2023 12:01:37 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id j3-20020a17090adc8300b0023d09aea4a6so21314903pjv.5 for ; Tue, 21 Mar 2023 12:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425297; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=f/f1KlYJ1sj6omoytOxModx8WTmRbKolqwyODRJBsN4=; b=YZB6+Kx7qsGOCcFh4UhaD0KElckR9bAVGI388CvWoghfHmg7uTUverbSwhR2WbnDwl kEvptIV3V3RZRTyN6WJZa7Pk8ReVUwYBrkLUpB5Mms9gd+Lgug3h72GJxiXyoGLAQPb3 qzAgWEofeVB1v0HqCtL0a0lNypQM3eIlOJTFJZDkpLdU+NE1BzCFoY5lLbQewd+cPL/f IaXLHTkv01KlLw5VchxNzCttFd2snWUTX9nrp2rQToqyzu87w0vmRrypt2MPR5zfKOw2 wZ4qeXBjjfCAx+qS2+aeSznsu2nsVHnul4Dhihf7mafo7M23iMtl8xGvby+xVtafyHJq G2Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425297; 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:message-id:reply-to; bh=f/f1KlYJ1sj6omoytOxModx8WTmRbKolqwyODRJBsN4=; b=gYyxYmea9wCcNAbpe8z9ItMbAduCHwJ4EmYJdTG6ftnKwW03WlWI9G7HG0msgFAPLM BAJsgrORt4JrC/Sh8zepIJ8cANaRnMsEM9Xv8MZ7S0JzpJTBv3Y4X4vy/TB1hnNoVFdr +aXuLmQOJXPgYrXZR0eR5h1rs/A+cXYUxr1eZ69SezBg9FNOy5GptWbsQ0hjXWaIDmnM zswtn5kjSiN25uVuUnSsOe1ic/ZqUXxMAtodOnw0pzr/UeDww+qYz6qHsv7uuA5AwXDO mkbvBme3z+twPffv4nRBicgDyxJZLFluS42tMp/HKzDlaD6p/u3M6njIxe3fA/WD2lCb pPZw== X-Gm-Message-State: AO0yUKV+qhoLVvkIze+NXxn5U+HHpuagvoCquaXINNjjAkD/xMQmJjzo tcMGHqn1qns1xMI246EeGpSFenbjLG0RX2IDNl8= X-Google-Smtp-Source: AK7set9t/MBtRLcrC+6D/IIJpj1Fg8yNrqriHbRkqTTwBQAYbbILtPA18Wls9NXh8FR9zd21ZHrzKA== X-Received: by 2002:a17:902:e881:b0:1a0:67b1:a777 with SMTP id w1-20020a170902e88100b001a067b1a777mr104894plg.61.1679425297304; Tue, 21 Mar 2023 12:01:37 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id v9-20020a1709028d8900b001964c8164aasm9043453plo.129.2023.03.21.12.01.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:37 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org Subject: [PATCH 2/5] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Wed, 22 Mar 2023 00:31:15 +0530 Message-Id: <20230321190118.3327360-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230321190118.3327360-1-bhupesh.sharma@linaro.org> References: <20230321190118.3327360-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 'sm6115.dtsi'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index c56738633431..b2d2cdde41fa 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -664,6 +664,32 @@ usb_1_hsphy: phy@1613000 { status = "disabled"; }; + cryptobam: dma-controller@1b04000 { + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; + reg = <0x0 0x01b04000 0x0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x84 0x11>, + <&apps_smmu 0x86 0x11>, + <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>; + }; + + crypto: crypto@1b3a000 { + compatible = "qcom,sm6115-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0x0 0x01b3a000 0x0 0x6000>; + dmas = <&cryptobam 6>, <&cryptobam 7>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x84 0x11>, + <&apps_smmu 0x86 0x11>, + <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>; + }; + qfprom@1b40000 { compatible = "qcom,sm6115-qfprom", "qcom,qfprom"; reg = <0x0 0x01b40000 0x0 0x7000>; From patchwork Tue Mar 21 19:01:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 13183064 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 A0502C74A5B for ; Tue, 21 Mar 2023 19:01:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbjCUTBv (ORCPT ); Tue, 21 Mar 2023 15:01:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230401AbjCUTBq (ORCPT ); Tue, 21 Mar 2023 15:01:46 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B11356503 for ; Tue, 21 Mar 2023 12:01:42 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id h12-20020a17090aea8c00b0023d1311fab3so16897441pjz.1 for ; Tue, 21 Mar 2023 12:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425301; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=X/HhfixYKI42Jnmvpurms4ZlKAo1XNYYYTpB5v8v+98=; b=SOxS+Sd7B1mfmQ7R+OzEUOpYIsHAUU/2uMgnReRNW5dCzHjWf8Vl+e7euB4wuhk3lc p9m1UZd4orNVtHnEVu3rURYkBrHMRORr39MepC4Jl8+skkS+orSMQZYsFFcjrGBJrerM lnoD5nC5ptsgSL43S0uuEY/RBq2YGOMaTMHUKtwUanVbzODBiBxfWMUp6mxg8JlJnhbm 4+zQ/zQKim77FDKAgqvRBjgnODoJhW8PDgVPLeGgv+K7aFz3aS/gV9mVWGVNo+otYKKI RK8kOo/gYb3hHgrMZOXdwtqREng2esMTbMfbRMNAMS4HStKMNv54G7njWhd8dGBBD3rg 1kOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425301; 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:message-id:reply-to; bh=X/HhfixYKI42Jnmvpurms4ZlKAo1XNYYYTpB5v8v+98=; b=V1qQvTCSXl7LDIB26x8G8770bjuBmnQaDEFKEqDe/To/gmUDhqcIsdncX1fFREbdIJ Wo7g/o1oNchhZOPjcyWagAyJo8belxrXiTE4efn5EKMZYJHZXaBWF323be4oEEICOGgr kHj9sY52+em9Ne5sSy1wIXJtVIymHvp9V/afQRhioZh4GBH4GebYwR12C4T8PWIUDqJe WOx7iWE7+JzwufyslQ+88pU5oCJMBlG9OjZE2ulR2UPuvpyndcPoSrmelpwXG1gZ0eTA XqSrdI4wMSyWLPG6AM43URE6VJ0zvsjulZBoKd+b32wdd7sOI+xpgasqzUpdUuabe/uC Jc+Q== X-Gm-Message-State: AO0yUKWRtURdrqC8SdprQ+SC1+x41DxsRvKXc3pHv521kLlRcLJoP+z1 3dHe5q/PEwIyIjlNnPNh865XF8pmJic6vjEXXWg= X-Google-Smtp-Source: AK7set/Cb8A/OLdYPz92Fy5KkNSmfMAR2cgRs4cxTl/5LOBEPt17geT36s64iDnFbaLY1yTXYhKoOA== X-Received: by 2002:a17:902:f94f:b0:1a0:7151:3cbe with SMTP id kx15-20020a170902f94f00b001a071513cbemr139651plb.36.1679425301550; Tue, 21 Mar 2023 12:01:41 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id v9-20020a1709028d8900b001964c8164aasm9043453plo.129.2023.03.21.12.01.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:41 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org Subject: [PATCH 3/5] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Wed, 22 Mar 2023 00:31:16 +0530 Message-Id: <20230321190118.3327360-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230321190118.3327360-1-bhupesh.sharma@linaro.org> References: <20230321190118.3327360-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'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 662098e85b97..6fb3596d3c01 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2082,6 +2082,32 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.4", "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>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce", "qcom,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"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>; From patchwork Tue Mar 21 19:01:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 13183065 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 9FA77C74A5B for ; Tue, 21 Mar 2023 19:01:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230408AbjCUTB5 (ORCPT ); Tue, 21 Mar 2023 15:01:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230356AbjCUTBy (ORCPT ); Tue, 21 Mar 2023 15:01:54 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C94D556502 for ; Tue, 21 Mar 2023 12:01:46 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id gp15-20020a17090adf0f00b0023d1bbd9f9eso21360534pjb.0 for ; Tue, 21 Mar 2023 12:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425306; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0byJ4vgio8oe6w4cixjPFeMGxbOIjvzLVMg1AcvrT2g=; b=eVociNZPk1ihgjTKAYBMNaIVllkWuINxLMgVXNLWbxt0Y5Py9oJIm5t/9ZhgMdxaye FHVV/O03SVv3mhVijK+pZSGvOk8ZWCh/mGqIXRz0AUFFzsD/GPVsVvulffsW1KrqI5mb aQuWDLxLTd1zF5gak3gQmsND4bbv6J/iy7DEUc+rmhZ775NiVzzAq/XiASJjDTiVTCR7 yZAqsbaOf61BZ9XH/3Hg3K8oIXEwjTWHZuFzOjFvx+KDBt6JCwavgK2mFTnVFfMSean8 GstC56VcWwKklCwgwUPosP5e4v5qAecv/TdpTU4FjKcFoG5LyP8BojTapt3b2jP87EPh +XyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425306; 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:message-id:reply-to; bh=0byJ4vgio8oe6w4cixjPFeMGxbOIjvzLVMg1AcvrT2g=; b=YKYKZ1th9YNGaFMXoiN83R0uP2HSBo5z1ojUYN8VsciSX6KICA6J9UtlqffsPisuyq 53mrHGhZflc9h0GC3IWkBr/owGP/y4cyrPV/DOt93KgdnfPZybtabUxfaZbRxQOfq0RH oY5e0OXorsWy4VS5EvqZXK6yQmzXgY4di+iw+0QJcTNthrFV6Az/qwqnqwGXKVU9fXNS L61o7if/fGFwmXaqVoHu3lvcTnYvd2kMKJsMn5O+J4ZAH/gx8izD3IY33fn8haSJZ2kQ bXEDyfKCLcWM6EQ1I8JeW2zJ5hYDImGldiE0pu8VgCTUHH1DictQs30a5eggbShPCOmH 01Jw== X-Gm-Message-State: AO0yUKVe4YgPbpyNV6HTc9eqzjdHdf5+McaiW/3Xbx4XUm1LC1kYjI3r WbitqpSbYERv8EzKyYrlPrUlwYvub8EbTL03rug= X-Google-Smtp-Source: AK7set+JUbJAgx+r7OBgHRusQUNMUpSQk1iNdJ/I/KBXYXlJpaVZ0xQ9m6W9q7U4H7i2XH3dUKwgQg== X-Received: by 2002:a17:902:d08c:b0:19c:a5dd:fadb with SMTP id v12-20020a170902d08c00b0019ca5ddfadbmr59178plv.54.1679425305897; Tue, 21 Mar 2023 12:01:45 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id v9-20020a1709028d8900b001964c8164aasm9043453plo.129.2023.03.21.12.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:45 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org Subject: [PATCH 4/5] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Wed, 22 Mar 2023 00:31:17 +0530 Message-Id: <20230321190118.3327360-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230321190118.3327360-1-bhupesh.sharma@linaro.org> References: <20230321190118.3327360-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'. Co-developed-by and Signed-off-by: Vladimir Zapolskiy Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7ccec48255f0..009e992d2d6e 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2223,6 +2223,32 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.4", "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>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8250-qce", "qcom,sm8150-qce", "qcom,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"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>; From patchwork Tue Mar 21 19:01:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 13183066 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 DE497C74A5B for ; Tue, 21 Mar 2023 19:02:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbjCUTCR (ORCPT ); Tue, 21 Mar 2023 15:02:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbjCUTCG (ORCPT ); Tue, 21 Mar 2023 15:02:06 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5244F5615E for ; Tue, 21 Mar 2023 12:01:52 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id w4so8994659plg.9 for ; Tue, 21 Mar 2023 12:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425311; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=JRSyezpsA/5MPMXpkL0qmxlQpxlVtCBZd4yM2HAk9OA=; b=XdWS0wBdxLITpiS+chZm91jPxIc6HduEnOERlKtXXabZiNKLX5wZCWg75H/R4Ipt2G OCTDDPD6szBHEJjUefEGvyofsrm8rNANbHB8b9XpbsSBrZ3XebAcQ+gpqgc2M15ylFce XtWBMwQSb2uzqLI4/N6UZ6grcZdAkh283RChSLi+9aVF9m7iFN0ExYS9hfOmMq/qf0jZ dc64CtkDqlZ1n8qTmFLBlxVczdx0ZUno6W8RjC+z3TbUZ+oxH3IY7BxWale7V6+ZRHTK le5kbsG0qhGZqNvTNRkY7TYt/uwO/evsm/YrozLFKbkkWr8TbuVaRGSONGoNgI33Dnkh t8Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425311; 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:message-id:reply-to; bh=JRSyezpsA/5MPMXpkL0qmxlQpxlVtCBZd4yM2HAk9OA=; b=EB+8IvWCAwbxa699IJvU7d3vYGGrypGgICEqdHOgxpIkVmSWJmJAvRQbFcniedJ17q 7ttnunsb9fzxDVXYQ5q7EAGONYCDbQ1wI6odCxXi5uX8M4z4kpJ4U/mwvZYlPCnqmNLJ rDe3DEqlkvdgWYK2T42Ukdx9E7gAINKPjA2TndYcusQoHP3etLB/7FEORqA8rcTxhcrG hNzyAakX/k0xpno6qmZCFzALGG1fwjILvaKpgggxjdW1HrjbDb3Ojs6QaB1y63S4x5lM I4UQ3iKzlRSKjg3PpEgWY4xVk5dsYIdcOSYmPvqJs27OiFwPgXjjnaXQlt8GHA+n0i7u kSDg== X-Gm-Message-State: AO0yUKUyP/VBivMcaGtligZxhQ6+yREnl7BI4IiZZFNafz7pOk+01ffp 4D24O+DEqeGdSyQ649/HqRBNhyZoguWxzKEkKwA= X-Google-Smtp-Source: AK7set92lLEuVEiMisk8/j/vcnrmnGYW+efsTxYStkvNp4Edk3lJBjAX0H8nxnNqVImR+2fj93nfuQ== X-Received: by 2002:a17:90b:3b84:b0:23f:63d5:c10f with SMTP id pc4-20020a17090b3b8400b0023f63d5c10fmr660178pjb.25.1679425310756; Tue, 21 Mar 2023 12:01:50 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id v9-20020a1709028d8900b001964c8164aasm9043453plo.129.2023.03.21.12.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:50 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org Subject: [PATCH 5/5] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Wed, 22 Mar 2023 00:31:18 +0530 Message-Id: <20230321190118.3327360-6-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230321190118.3327360-1-bhupesh.sharma@linaro.org> References: <20230321190118.3327360-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 'sm8350.dtsi'. Co-developed-by and Signed-off-by: Robert Foss Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index b2f1ea4b671e..d017a0a11fcb 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1730,6 +1730,32 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.4", "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>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8350-qce", "qcom,sm8150-qce", "qcom,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 &mc_virt SLAVE_EBI1>; + interconnect-names = "memory"; + }; + ipa: ipa@1e40000 { compatible = "qcom,sm8350-ipa";