From patchwork Fri May 19 21:48:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 96661 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1551828vqo; Fri, 19 May 2023 15:03:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5TW/mfYoi0qj0eU74kWi9+OxITOG+h1HXiTTjLfhoayyipnAWZ8cThNpQu/w2H9Hn/vi+O X-Received: by 2002:a17:90a:6d61:b0:24e:14a4:9b92 with SMTP id z88-20020a17090a6d6100b0024e14a49b92mr4386895pjj.5.1684533805112; Fri, 19 May 2023 15:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684533805; cv=none; d=google.com; s=arc-20160816; b=HfN4Xxfdf2dQ4uUilSUn8ZzhC5VL2G8OEKUv4HWng/X5CjGvreCPz5+TBZJ/mb3M+3 bpnuVtM/BtSJjiOVA/H+5ymQ3blFtO2jxGCy0qkyPhxxd1ajYK1H/sY50mTh90i9a8iU n9nYlharWGBB+3zkjU1hjYgNWU3cahkDabHcmAH2UuvLGQ+7tNTdX3PENF/0oDv5WJbv jCZlr2Aoonet+odC2r5Q/bDapK74c13N7Ifmkm+RUa+1/qYmHowV3SYL+S2yfxztI3I/ oD/1ic2AY6xSeM2phMiYnLhpxqwyHQib5YMQW095yEIs64pnWr1r9Ngdl2dm96PL0Cwm Hy/Q== 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=LMTHG8l+qigWdbQ7cyJvnKtXRMQ+ez6nvcozSSImI4Q=; b=N7iKZR+1bIb6EGaUrTA3dL72Kb1/FcThjVGuXqFVKCbNXCL3tfvwA+oANfCEEZJATH novoftXqUx2dHlZb4HTeyOy+YElCAdZ0udKnoJXxdtyi/cyfOb3AU0c3xT9tHnY+uhEL tLSCYyIpiBylsMzTRqrTUhuxFH+HPtB6saQI7acZO7mWnWhppH2unxORlG8j8EkXFXBC 2l6K9+11nMb3LUdk2eZ8dg6wYPbkzQtXFiQ6eZdy4j5zze7xE6/rb2CLXryEuX3LG4DL 96npE72GFLN6rzmaEi7ZQ+lCQ1l63GQGlGVgK0QUkuJl41vGGxXrfsPrgnhbdF3sLluD Du2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="JU/j+wF4"; 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 pf6-20020a17090b1d8600b0025346cf794dsi207347pjb.134.2023.05.19.15.03.12; Fri, 19 May 2023 15:03:25 -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="JU/j+wF4"; 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 S231908AbjESVuS (ORCPT + 99 others); Fri, 19 May 2023 17:50:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231702AbjESVto (ORCPT ); Fri, 19 May 2023 17:49:44 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D680010F0 for ; Fri, 19 May 2023 14:49:27 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-64d44b198baso28752b3a.0 for ; Fri, 19 May 2023 14:49:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684532964; x=1687124964; 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=LMTHG8l+qigWdbQ7cyJvnKtXRMQ+ez6nvcozSSImI4Q=; b=JU/j+wF4xxh9lERHCCg4N1+f1/6hGzxFeeLl8VrSXpkaBfs3tlS31JJDuG7tVps+vd sqoum0t/fXwbg6NU9BVtI79XnsxAvlqaHjsxdIgxc8FEAAD2AsMyofJ9API4zl9HMiIH veMwKKBoBMP9h+jqK6ugDw/gCpK2xqMTN9qW3phfxvCuxI0DCtVieES/gAJjzXKIIqo6 xDDPrKcTqL7+C1mhUbwUFwUIKLLswhwfiHcqOua/yRs0x2OAlTLQ7Hn3y/X2G/uHfRXZ ggMn4XpfRH3Uurr4i8xu5P1KL/K2dgnW0mZ0VwQ+mQbcadxXQqkX13nGmuAjX4COsAKI vD5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684532964; x=1687124964; 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=LMTHG8l+qigWdbQ7cyJvnKtXRMQ+ez6nvcozSSImI4Q=; b=QPKsPsl7ZiDZUc+t177MgXYVlI6cgvvKyG//HlegIIyabp98/CzS3bc1J1wMDfGwbz cu+dzGI6Hu1Lj4W8wc3u5nW+KsiLvjp0ofY1rzkCT+5G4NSwV2Qc+zGR8eQKq4y0GE2j pBzn9T4Y+gUyCxVtl/x7aqgGbHyJ5TGhcUIpZcqgQ7AYusDbdHHFPA8V1zT2MlsueSES lQii4MThqFOtUXjyDGNrHeDbbWnmrh5cHqDtp2weAwFF6lmCVlczstEtk0kIFtRO4C9E UActP+tiZoe6lQANFftTIPfQ0t0ChojuWhQ1Y3uOWcFsJEnhy+rbr1dAoaMO5EbRNxOu WV7Q== X-Gm-Message-State: AC+VfDyXSrJXFqF6kMJo+nipCDoach5yTULJE38rzRYzOzK7HCyh3t32 eibDtf5l70jpjlRFJ6FCCJRYlw== X-Received: by 2002:a05:6a00:a17:b0:64b:e8:24ff with SMTP id p23-20020a056a000a1700b0064b00e824ffmr4155555pfh.17.1684532963814; Fri, 19 May 2023 14:49:23 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d309:883d:817e:8e91:be39]) by smtp.gmail.com with ESMTPSA id n14-20020aa7904e000000b006470a6ef529sm144891pfo.88.2023.05.19.14.49.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 14:49:23 -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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v7 09/11] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Sat, 20 May 2023 03:18:11 +0530 Message-Id: <20230519214813.2593271-10-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230519214813.2593271-1-bhupesh.sharma@linaro.org> References: <20230519214813.2593271-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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?1766361719240979213?= X-GMAIL-MSGID: =?utf-8?q?1766361719240979213?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8250.dtsi'. Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Co-developed-by and Signed-off-by: Vladimir Zapolskiy Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7bea916900e2..79fad917d142 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2232,6 +2232,38 @@ 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; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x592 0x0000>, + <&apps_smmu 0x598 0x0000>, + <&apps_smmu 0x599 0x0000>, + <&apps_smmu 0x59f 0x0000>, + <&apps_smmu 0x586 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 0x592 0x0000>, + <&apps_smmu 0x598 0x0000>, + <&apps_smmu 0x599 0x0000>, + <&apps_smmu 0x59f 0x0000>, + <&apps_smmu 0x586 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>;