From patchwork Wed Mar 22 11:45: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: 73388 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2301498wrt; Wed, 22 Mar 2023 05:04:48 -0700 (PDT) X-Google-Smtp-Source: AK7set9CAqu368TKgTvPqWXCGuxt8ROUcudR8N+n/SPPCmZ3BLu3rsZedOJuU+elW7kmraY4qc3+ X-Received: by 2002:a17:903:5c3:b0:19a:a267:f16c with SMTP id kf3-20020a17090305c300b0019aa267f16cmr2370236plb.31.1679486688449; Wed, 22 Mar 2023 05:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486688; cv=none; d=google.com; s=arc-20160816; b=Zj8vtK3zasU0uQS3erV19kk9UT6I3ZAzg9DH1OX1SqJuNcuH46hoXw9OQL7rM8vqUY XpYbAR+O42V2K4gauCNtHvA7e53ZH71loQk8C+iSgpwPbmLwZqdUXrJJNAfnRU0yEYby IrrRE7w+98mRqu3j6ie8RA/APWfkKFpiMgbPDDWmCt/UXQkdiSfUaEI/QnoQsb65aRkd V4VQXzFT9JXbiYUIXO2Xw2nJ6RtH/lUhhNGN2k+xcclRgpjiqQYmI9T4ujZPphaA58ij 46aOq+wyQnCc/pD6QwanFjNJCkgK0lZ1gA9HIrNIwiW+C7eZNnW0ZoEgN5CtR9PADWdV fjQg== 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=lBzdk5jveeS/JKT+9yyCQAyTFFXN6rxWCWlR5xuiXEk=; b=EBLs1ttQ1Mu95PBGtwL6rLe/FwWGqzVLiTQi5m6Rhu7YvoczkKH7SOMjKNKAPfbzHZ sP9OhNiNeoCaOot+LqrtaDQiB2KotMrjxW7OM/Jbrgqp0xa02ny9LsSn9OD/LW0Vxnw9 HWswjp0IdvTfTYjarKeyMDh95c3bBAVKBaEe8VVyFAwyHLchlrwwxKnUdYz/fAghOAsY xmC2aSGlOsCZ6/3QXLrGIRoaPhBqX6h5jba2yMyQZT/0+G1lOrONM99amf47B2hvEGQe 3Q1K0lprXUDIBziC8ZVX8D50aTr8SW4tNLqz/xZvKbzI5ZZNSNe7Sn13aCHBOoCNGRoy 5Gmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FQ4oEfEf; 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 t10-20020a170902e1ca00b001a19be445e1si14784615pla.514.2023.03.22.05.04.33; Wed, 22 Mar 2023 05:04:48 -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=FQ4oEfEf; 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 S230228AbjCVLrJ (ORCPT + 99 others); Wed, 22 Mar 2023 07:47:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbjCVLqh (ORCPT ); Wed, 22 Mar 2023 07:46: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 144C362871 for ; Wed, 22 Mar 2023 04:46:16 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so23341727pjt.2 for ; Wed, 22 Mar 2023 04:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485572; 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=lBzdk5jveeS/JKT+9yyCQAyTFFXN6rxWCWlR5xuiXEk=; b=FQ4oEfEfKyutywrwUKaGClssESWA9XhPfdAqpLdcQ+aSTIQXXEB5QQo2CDKo5Ewsz+ SUfqfgHA+Ah11eXEgJnZOtfl81edD7qHdIvq5PS8q9hGt3a3FPmDSqr46riXzNZ3rAeG 4wpVWlHcwjo7VqMFiEWuVV9Uw2Rc8gJ8I/Y6EaMYXpmDnEHT7ASChXBnNyx2mlgxK5Kg QIq1K/kPfKSLJ9tn+WJZ17iIXw7h2SLdOx/U3P/KeouXvL2VEumyqPdnvbC0E5niTz53 YrJuZcc7HWHDszcwD/uOaAjJbn53lWZI5qFs58oeCQCKYJtdoCWo7eLgw/SuBSVA5sz0 zGTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485572; 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=lBzdk5jveeS/JKT+9yyCQAyTFFXN6rxWCWlR5xuiXEk=; b=6uL/ZXHzWv3hOIEkSWTBSaQz/ktKNezD4vnmczC83C9/TSrL8eOrG/Y/pLq0reKZBI psC5i0yQmS+m43+d37zslJnhlL4Z1KQJBE/xjxWmoU2byv2g/k9xHCbhKl/VyNod0Xwb ZJLJmKr2UH1y1qzLNMwi8B3eYTC3pzJemol8mstDj3qt2ep410+Sq1pBcdqngLdV28yf 2rjLlw+B8SBnQ0u8z4vYxl4LdgoG2kJBoeDjvVj59pf9XWlPNoideetoJvCYvtSjGQi/ dFbRiGhAdJXZ9aCCD+IHCNMEl8851v7Xp/HZtxyYiPvDY891dSGejS9qdoYaMLGOtVNW LkUQ== X-Gm-Message-State: AO0yUKWOQGhi6E1l+5nI8RF9TdEn3/mgc5t97NfDhyEJuTlTH9La2Kx5 6cAP5vgKootvBzhdLe1P4g+I4w== X-Received: by 2002:a17:902:d4c3:b0:1a1:dbaf:ae31 with SMTP id o3-20020a170902d4c300b001a1dbafae31mr3431138plg.1.1679485572317; Wed, 22 Mar 2023 04:46:12 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:46:12 -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 v2 08/10] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Wed, 22 Mar 2023 17:15:17 +0530 Message-Id: <20230322114519.3412469-9-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761069434155751526?= X-GMAIL-MSGID: =?utf-8?q?1761069434155751526?= 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7ccec48255f0..d0fe17d0790b 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2223,6 +2223,28 @@ 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 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 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>;