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: 72998 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1958123wrt; Tue, 21 Mar 2023 12:08:16 -0700 (PDT) X-Google-Smtp-Source: AK7set/niotSkoPN/Za80DqYygbA2W84vs34J1LZETtXjff2YqG1+qidVIVCZ8mslG6xsq3JwbUh X-Received: by 2002:a62:5250:0:b0:5cd:d766:8a2b with SMTP id g77-20020a625250000000b005cdd7668a2bmr887950pfb.6.1679425696035; Tue, 21 Mar 2023 12:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679425696; cv=none; d=google.com; s=arc-20160816; b=W3U1UEPYvybN6yStUVgJpIBL3YWhrwQ2Lri/Osfzi/9Kk5w8lr//dSdBjJfdQIAown flpUk7hM793uqscO07YL9YarjGfJl5oKKc03m/VJTbCNgUsF9+KKK5dHi6BKwWRj0VmT tOVPAikj5K5NchgashFUbsFO5TIHKEvdFFcaBUzxhzMdNOPMoASET7lkkexWIijLYSce +8VWaH3XT31sN0cfbqFvJPYuNWyMiCTgKi3ZC/BluJbCwngMSbUxqK3mMJzLE9zTCgK0 Y+OvhlSZJtKC9WrEzmNLjOtZA1F9tiY1rPemWc1nxRv7gwyAUwQH2729eHqdfimt3MWR 3x/g== 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=JRSyezpsA/5MPMXpkL0qmxlQpxlVtCBZd4yM2HAk9OA=; b=A+RIdSfelAfcLIB+wxV+EXZ15+atQGcDel8UE8X9np/hxxrqIRHYu6YukY41TffLQa 3nMqv82Ypuaz4/wlN4GuDTKT5Lgcv6/PBJwRptM0uC2dyjjsf9IIUTD37G+lVsPeqkCF ajegD643b4fKOf7T1aL8aW+LYrmAPV/YjzU+EB6TQYzE7waz8oDb9Zz62BEsHjvlqBji vL4CktlcpsxfFk1VJl/jY2eJ4M/cZT9YiE68MUwIyaH+9pkpmVG9R1brwbjv50i57WKh 9YEqZUUb9fkzdMdqBFGHk/ZEVo3CdeVSuf5kQLKmIpsKOZ+yLgI2PM5jZBILcobaKDDQ jbcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XdWS0wBd; 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 o73-20020a62cd4c000000b00627fd9b86ccsi1773679pfg.136.2023.03.21.12.08.00; Tue, 21 Mar 2023 12:08:15 -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=XdWS0wBd; 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 S230299AbjCUTCQ (ORCPT + 99 others); Tue, 21 Mar 2023 15:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbjCUTCD (ORCPT ); Tue, 21 Mar 2023 15:02:03 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525925650E for ; Tue, 21 Mar 2023 12:01:52 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id om3-20020a17090b3a8300b0023efab0e3bfso21190908pjb.3 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=mNWcqbkbhaUn61LyKA3y9m2WT0MRr2L5x8XYMa4Czts//zeT8653RWv/m8zWnqkNhX juwKwlXYkORbYsr26gjTw+MZJQd1mJhxdwxDy6SHD9YdGiyOJ6DeJSQ7ZavrIqcFpgKO djsFfYN3ASHG5RWMWUInRCzXm+zz/58ZK0XCbXTIe1hHuIWYZoWHF6+iiELhEaMDmLat YrCg7dSLsBgo47m+D+Y7hzqDOydwuzX3PZgOJ7b8LqxJt/ZpoU0gz3GEWaRawzSowQ3F JCr2iHvZfzKRE37sxGoBWqrBAHud4rLdImNT5UxePAplAvAttU9okskDmn1koiVSzEVs 5UeQ== X-Gm-Message-State: AO0yUKX+NjpqX4PKR+Ggin4yLAYxgn2+/pD4UBO3KpsZkjnqiJhXsJ/V IJsTxgimEhDV6g02WlLwKWLWwQ== 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 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,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?1761005478806213237?= X-GMAIL-MSGID: =?utf-8?q?1761005478806213237?= 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";