From patchwork Wed Sep 21 04:56:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 608008 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7587C32771 for ; Wed, 21 Sep 2022 04:56:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231292AbiIUE4r (ORCPT ); Wed, 21 Sep 2022 00:56:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231178AbiIUE4e (ORCPT ); Wed, 21 Sep 2022 00:56:34 -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 A88777F266 for ; Tue, 20 Sep 2022 21:56:30 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id q3so5224671pjg.3 for ; Tue, 20 Sep 2022 21:56:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=gbkqn1VUY/QAMhQngTXvc8V80xWIUJrckZqCzPQlfZ4=; b=bvP+kDqgFVNXbgzkYrLGHXxnXM6835axKy+PK5uEdps51aW9+p970/OyMcPNfbVtXN lGlvrZ+U0mjv5tGlgipESmKRLiFBap4b9e+QWIAwB0XsLx6ze71B49pno2I96nAydlRJ q7vd2valccvr2A3xU+Wn7uPhDwaBRWnGrKisJH9eKtilByxpINB/YTJPZN4r7NU0SfAe aBxUQJHNzzshBl2t3JIxlH71/g2sDaYZ9gSMeJKzz6LTAchMT9FQFFpVzXHZ7vm9UMn9 pQDk00ez2lvSC0kcGm/sztH3fTE56SMbcMFIA28+E7uAV4x3Ivf3Tgwa5iVFwolzt+XP Ujjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=gbkqn1VUY/QAMhQngTXvc8V80xWIUJrckZqCzPQlfZ4=; b=iKKq578HtTPa/TZiHAcKcNY4bJldT0EeaxQRVLIQgFeA4A5tFobVVjs8iE+ey8QU+X aFJdW+p/1MRRoAxRUrnvScz9EEdEpYMhiQpR3A+Qp8ao3R/UOqUQGneF6cChUM06Asty 0Vh0dfJF/xrWHSxOYfvqruKyDjQ19wdkSSA2fC1WCsZV/cfDwl0nhGJksmjheq/ZMAbU NUXe8+7zMjY/22xA/WY85bxjlvyUlp2KCp1YYTSv02JvWyEr10xHm6AiF2aq1v11BIfn Ho3jBxsIqLweMlD/muS0qZzpOGEZJ2pRKtRj2fHme369jG35KPOCiKxPCB4iAGD1Ujwl OOTg== X-Gm-Message-State: ACrzQf1tQd/IuWk43EJeu+u1eDkqECyTCXGhlME9zQbgLQg1vLXebv75 AUy9ySfvIPEajiIm+HQVEfoNSA== X-Google-Smtp-Source: AMsMyM6uibYsmbLsti3ubDip02pfOgOdhoJFXnPM4bP6sIwCBOB1OfEhMAM+xysIymIq60zZBiEFFQ== X-Received: by 2002:a17:902:c401:b0:178:41d1:ef50 with SMTP id k1-20020a170902c40100b0017841d1ef50mr2974798plk.66.1663736190116; Tue, 20 Sep 2022 21:56:30 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:8e50:8ba8:7ad7:f34c:2f5]) by smtp.gmail.com with ESMTPSA id p12-20020a170902e74c00b00176e2fa216csm871829plf.52.2022.09.20.21.56.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Sep 2022 21:56:29 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, thara.gopinath@gmail.com, devicetree@vger.kernel.org, robh@kernel.org, krzysztof.kozlowski@linaro.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de Subject: [PATCH v7 3/4] arm64: dts: qcom: sm8150: Add dt entries to support crypto engine. Date: Wed, 21 Sep 2022 10:26:01 +0530 Message-Id: <20220921045602.1462007-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> References: <20220921045602.1462007-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8150.dtsi'. Cc: Bjorn Andersson Cc: Rob Herring Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index cef8c4f4f0ff..6e21352a158c 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2041,6 +2041,34 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + ipa_virt: interconnect@1e00000 { compatible = "qcom,sm8150-ipa-virt"; reg = <0 0x01e00000 0 0x1000>;