From patchwork Fri May 26 19:22:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 99630 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp707433vqr; Fri, 26 May 2023 12:35:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74h/S5NB+qhhHWYF8z+DCZb+YZTylNyPYAaWQSmwuDiohBWVSOd++yjnVwIhZTItyZWdw7 X-Received: by 2002:a17:90a:840a:b0:253:340d:77d8 with SMTP id j10-20020a17090a840a00b00253340d77d8mr3413999pjn.33.1685129737157; Fri, 26 May 2023 12:35:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685129737; cv=none; d=google.com; s=arc-20160816; b=zJxvsRWPIUcJXaA0Vsu9AQAPxgdenkL3oUKwqs9hZlSttExorE7HUUszUWhku9TV3s Mm73Yft+6kTEI6GnbDahW9+RZa838hfpqx2vq2TPEaV9spgKCsnchK4O9fwmvEFQoljG fMrKKHW4+ZYCMxvTB50QUx19OXVP80kniojWKKugmv0LrL/mcNRqBqC16Mlmt5UJRIZv RlqBXcXy8qXdVcP2vCDELqu3GbGHMjWllVKJN/XnlFLl8TAO+oEIcPYc1ngfvMw+t96M sf95dMBWClFPQALYPA2u0+HnrGd6VBjYz2sA4Z2ch73KZ1lVf5BLPVgvM1uKKMxqzHa4 /RuQ== 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=1njn0X79ZVa4bpFpIROGKaYXKaM1KuhMVkxwXfg7gOQ=; b=bFykbpufidfb3RRU0BC1DRVnbigbBsrZTcYR8FmSMs8UhGZEOLhztpmzD8vOHpb0Gi Teukv5nw7PBoqFM5reZmOZNE5IKfsSYJRQbcC6SOghizR1NCH0aTU1qo6ePoXPX8ZvGZ vp8/d0TvwumMJygOeg2yuc5tVvsNZA3fYY7fX+ou0cuyknSGyxBdDoz3HexZNJ+Ui3jH 85/qtlnsNg7JWhksjA1vcqQBQ59QiIYXO02iXtICXYb4e0QsbxDvAehFB11es/OrzWe4 oEBBGPTGlkpvu9OzWc5LfOegXSzpqPsUZ0gpEIElfxWsjXiH3Vre+Zcxt9+HNAr2IGik wO7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HrGYDfvG; 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 qe9-20020a17090b4f8900b00237155f2303si5113467pjb.136.2023.05.26.12.35.04; Fri, 26 May 2023 12:35:37 -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=HrGYDfvG; 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 S236849AbjEZTY4 (ORCPT + 99 others); Fri, 26 May 2023 15:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243939AbjEZTYV (ORCPT ); Fri, 26 May 2023 15:24:21 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CB76171C for ; Fri, 26 May 2023 12:24:00 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-64d293746e0so1543083b3a.2 for ; Fri, 26 May 2023 12:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685129018; x=1687721018; 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=1njn0X79ZVa4bpFpIROGKaYXKaM1KuhMVkxwXfg7gOQ=; b=HrGYDfvG0Xsp/A/zedL8nS5rkVVlhkW+JEy5OlneDMG/FgpWWoHBL4qqfR3sqNrAHw N02hyr2pY/kCoaFrrLZW33UmvPQ96h3Xx5/ILcF1jisy/CHOfgOd86RxzB14dsdsmfsd eKLq79NclssCpBvvUwCSydAK6IKdT8VxPP7g9gzsBStvgk4tyIfza7M3D8fc7wAggdPf NpZTMewKyelWDwdU0FWZf8Aij6Okk5N92xuX+jn8UEZosrGxQh7eKUknyIh0iOoVe34t gh5vOcoAvxV7xexxHfH0dX3T0kFUTBdWel+49SZ64pQtbnZJELkjGVSMB6ovUEBHh98t bRog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685129018; x=1687721018; 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=1njn0X79ZVa4bpFpIROGKaYXKaM1KuhMVkxwXfg7gOQ=; b=W7jHa53x0qdgXnwa9y+HStH2b5SyVFPplSRHp//BK6aHtQdoop3gsLjrI5Avg/FdWk TyH57v3Dq3dfUyCshyagl4I+kDQC6RbeREDet6lnZh01Mu6yNktr114WSkKJxBvcwxqa JCBQ77n2ahbuSn0q98jTovIF7q67jE1xLczbxmmF9fcpgwwpsrUPBFRbXZxW0O/PPSui d/jZG2kPbe9sQDoee+zVVVARqVZW97cS1tvRavu7GiKhrj1riWIxJU8ND7Xc28j4uo7v P3swlvr/Y5Ca29bA+1EOh7Odeq5M3CCM5i5aH+l9WBfeBCT8SkAj6DMEVZBDxIwM+tHr euWg== X-Gm-Message-State: AC+VfDwUwN42lyDYHx++tCKFco7oX9Obr+Ifkl6G8sz4spsVkhxRyZsb 2FtO4bZzvGsAxMkrb4LvoRSaP9hHMVki5gCAqJg= X-Received: by 2002:a05:6a20:d493:b0:10d:3134:10d7 with SMTP id im19-20020a056a20d49300b0010d313410d7mr437546pzb.27.1685129018344; Fri, 26 May 2023 12:23:38 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:23:38 -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 v8 11/11] arm64: dts: qcom: sm8450: add crypto nodes Date: Sat, 27 May 2023 00:52:10 +0530 Message-Id: <20230526192210.3146896-12-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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=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?1766986599254158729?= X-GMAIL-MSGID: =?utf-8?q?1766986599254158729?= From: Neil Armstrong Add crypto engine (CE) and CE BAM related nodes and definitions for the SM8450 SoC. Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing 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 7f193802a7c4..1642daea9624 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4173,6 +4173,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>;