From patchwork Tue Mar 28 09:28: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: 75928 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2084699vqo; Tue, 28 Mar 2023 02:38:11 -0700 (PDT) X-Google-Smtp-Source: AK7set+T5BbKOWNTja6w39JNffVCEDKCkGVFXC7yoaSZ6xWiCLIMv8PRLQo9K+cUnbyu5uIMJ1WH X-Received: by 2002:a05:6a20:17aa:b0:d8:b2a8:f383 with SMTP id bl42-20020a056a2017aa00b000d8b2a8f383mr12013958pzb.53.1679996291460; Tue, 28 Mar 2023 02:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996291; cv=none; d=google.com; s=arc-20160816; b=WVLQxyMvFH0bY+UCMcap07DhVupLQOtf0v0Dj0vC1t0eG9pbdJ2WaRnxQr55oHfI8l sfWhWtfsDXMxNtXP+ATShiB39Dqzal7unuYC/MBokxuhl+o71a4HFGebDpiMxtfB/T0c UMVXdJT/KhR1YALMrEUItO1K2Y7ljn6cwRgsphY2xVBg6u+jBQLK+v2QC2vx2p37xsMe k17AUWTNzCMp1eIrFcwFVGCODRWwJ4Zb70p4r0XbAkf4XEtUBZI/PrByFAOkdH/MnjV3 KnK6anDJfHbcppIaiaNLUOgzVmq2e79/tK9x4xKtzLFuTwkK6EkoGKvypvHSldXYpT+/ c2vQ== 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 :dkim-signature; bh=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=jH/Q4/UYDupvuA0HQhlOrPjt7V6UPo04HHYag9wI69trqkUAsBW+wVNMi01V7D3KHU FyrcSRYxrxXqs8WuU0PGGZkWWPFyAolbBb2ob6K37lJJMZ4rpMzZXnZeDiqYdtBX2VoC 3LZym0wTfg8qL21oVh0dPiVk2dWR1wXq5XR6mChcmhM5p5AHxdvgfy7bM0kAE6uXAcdu 91bQ4ZrNWQMHDDG+COPg3FcjdVdkiP6kcjF1dQgMw5/G84B8Xh7VTgGrKjvIwNdIjfA0 c9OkPs23fEN2PUuLOqsH4v9M1Wl43oalg2AzQ4hvaVutPUPX3LSUypWs1xorvdjH1i9q oeAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=StsbH33A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n5-20020a056a0007c500b006267e3376ccsi26867282pfu.171.2023.03.28.02.37.58; Tue, 28 Mar 2023 02:38:11 -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; dkim=pass header.i=@linaro.org header.s=google header.b=StsbH33A; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232922AbjC1Ja7 (ORCPT + 99 others); Tue, 28 Mar 2023 05:30:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232744AbjC1JaH (ORCPT ); Tue, 28 Mar 2023 05:30:07 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C5BD728A for ; Tue, 28 Mar 2023 02:29:13 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id y2so7514551pfw.9 for ; Tue, 28 Mar 2023 02:29:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995747; 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=StsbH33A0Z//LD07mPIP8zFLStHzWcZyoorzQYE4OzFziUz5oL9ZOpoedu+0PiAAiH EjAadapaZFYB1gfC+2mOoTix9LKyhg8E4Clrdwi6CjVjg6dr3rAJzxP0j5wZtdeujy9z OwJO5gR0n4dgsfLmI2sA+ySKVv3XQYoxUPTcc98HsN/4CLCqI9t65qqMsVkHmQ16syvS aBmgFUmDUSIdtsJZWE518O5gniNkVzkyi88XnxuslaQgiIZsPcG7AbFP/h3fIrz+KZ24 y/OcGXDUSX9y4efG5dLn6z9pxEygzfgFGqAs5PJsaQ7Cb9BcT6roucQ2yPLj6hz36pBL PyqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995747; 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=kyQ01ObDK8B39s7XIhBijr2+H1SRtN3GhLBiIYdouizzh6Cho09yE3H+/Hh1bPEYhJ YJwNRw7h73Nc2HKvYHdWPyvW8wTNg2zN9ae9pMJilr18q+dT8iBRKSOMsx93nkjEu1aL ZhdqSsr7Gpx3ztflfcnBjPqGpI2F5eyl7oSl/EPP7HzI00JQQQMYG4MBPEs43K9xdLg7 gp0SXcqJfz772yz7oP0ZNyIhEBV+BUNLsry5+AqG/dxtPHwgeAuoYTB1UWOhgwzCjzDf ZI4a1QxtMQTNpaAdTLZBSZr0HtMOFcO9CmNpVHv0/OqdGXwLM8aoDgfH087M9SJLvvJc PdtQ== X-Gm-Message-State: AAQBX9dgGW3Bbk3IAZdkp+6VsMKFS5DTrOmlclwhoZpbm2/A4h+xd6My 7N6eALjAj0BKMi+U8hjIBqiA/Q== X-Received: by 2002:aa7:99d2:0:b0:626:7c43:7cb8 with SMTP id v18-20020aa799d2000000b006267c437cb8mr14611382pfi.20.1679995747407; Tue, 28 Mar 2023 02:29:07 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.29.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:29:07 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@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, neil.armstrong@linaro.org Subject: [PATCH v3 9/9] arm64: dts: qcom: sm8450: add crypto nodes Date: Tue, 28 Mar 2023 14:58:15 +0530 Message-Id: <20230328092815.292665-10-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761603791382428650?= X-GMAIL-MSGID: =?utf-8?q?1761603791382428650?= From: Neil Armstrong Add crypto engine (CE) and CE BAM related nodes and definitions for the SM8450 SoC. Signed-off-by: Neil Armstrong [Bhupesh: Corrected the compatible list] Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 31877f18dce2..d7a28cac4f47 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4146,6 +4146,34 @@ 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 0x28000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x584 0x11>, + <&apps_smmu 0x588 0x0>, + <&apps_smmu 0x598 0x5>, + <&apps_smmu 0x59a 0x0>, + <&apps_smmu 0x59f 0x0>; + }; + + crypto: crypto@1de0000 { + compatible = "qcom,sm8450-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x584 0x11>, + <&apps_smmu 0x588 0x0>, + <&apps_smmu 0x598 0x5>, + <&apps_smmu 0x59a 0x0>, + <&apps_smmu 0x59f 0x0>; + interconnects = <&aggre2_noc MASTER_CRYPTO 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "memory"; + }; + sdhc_2: mmc@8804000 { compatible = "qcom,sm8450-sdhci", "qcom,sdhci-msm-v5"; reg = <0 0x08804000 0 0x1000>;