From patchwork Wed May 5 21:37:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 431227 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp868688jao; Wed, 5 May 2021 14:40:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXlrADcuTOl3UBMx12lmwUq8wt/SgSD6JZ3lNkPti+FElsdIzimfsS/YaocIuckjsLIajz X-Received: by 2002:a63:7c42:: with SMTP id l2mr921213pgn.98.1620250821914; Wed, 05 May 2021 14:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620250821; cv=none; d=google.com; s=arc-20160816; b=u5I/SpPYAA3Y1ytO0/3rvvNxJ1WTuUuthClLjJX9FD3GVUQmwDBeCv+Ikmb1o2HbSu cU6F5hghxVkd+mTsGpW+y9rEVNR9JnbWT6etJTO+/Tk/tJps22hXMq3lbdzLRRngosFs 0xvkQnvLAKSnVFccRHKpbK0JUA+N1lrqOqI9sLLExA8GHSAGJNQk15DDgQ6gPxvO8qhg 75VR55HPxS8X+8GZwBTnHiGjT1yqgct/r6BoClYhtz/MOlfLnREgjId+i370hSWd2DLm wn0ENkl168Y5Njg7GoMgvtq5g9KD+fs1bkO59+e1gv6bP5hq0ejP0oVrBWu6eKs3FGsN nJLw== 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=e3tF0fKUCMUyKii5LLb+0W4Qsi0cFNspuvqMpLYFV6k=; b=Rz1U+Xp1sbAVmFxiW7Z7FAjosEPYWrS5u6YhGQXT4nlIbDNj32h+grtmaf8Cc6IicI PjMLj4i/qzAofKYt6uBuZ4sPLwzVeavZRg4Czdtema4LPeAJUGrWehYjwia7JPpvJzhQ 933ZtyahY1n48KM2IYsyenZOAix3XRI7i1wtrM4YFHaJQ+bm+7ZYGAZ9oZbVeiub2Tux XnoNM4gfxiHpyKEdP/oj8ibewV8Fym03BvJ/EbgVScJCFr9trvk6TqZ1hVzU7LYfvXKS pmb20JNoF9Nxg93WVqeSdngjadWWYA7E9NLRGTbMuPizMscggLPPyEFBwa16977LYmiK dOdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u/Of22GL"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m189si592999pfb.79.2021.05.05.14.40.21; Wed, 05 May 2021 14:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="u/Of22GL"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-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 S235009AbhEEVlQ (ORCPT + 3 others); Wed, 5 May 2021 17:41:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234763AbhEEVlA (ORCPT ); Wed, 5 May 2021 17:41:00 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74F6DC06134D for ; Wed, 5 May 2021 14:39:49 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id p17so1677491pjz.3 for ; Wed, 05 May 2021 14:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=e3tF0fKUCMUyKii5LLb+0W4Qsi0cFNspuvqMpLYFV6k=; b=u/Of22GLFJE2eKTv36F1cFasXy8NMQLIsXpJRN7knibzKd/OCG2Tn+Be3Eug506BmH QsIqmIfxFNiewYklKQ6Qf5FpNYkipqYaX8tDPnFVjyw+5d1pT6yhtpPZQANmW/ys1dIr ZSG4zRXBXWa2J9QzutqpqxWmVCNwycER67xWzGaRu9AvogRPSieaAY1MSiAb+50vjFsJ smIyEZt+PVE8cA5HEVxWQ9RhAp70YQktkUhGJaD8E6w8CoATbrB0coT3LlejBOrJKfm4 ApaHW6sRHncSgSa8WE6d4TvnZ/YlrKZ2tl47q1qHoKhjA77fNiR9U2XaKwU83VvIcIG0 vT4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=e3tF0fKUCMUyKii5LLb+0W4Qsi0cFNspuvqMpLYFV6k=; b=UXQZUYCRbBz7U7lJHtDpsebVSlzvKDhsY4a6bUpwPgmdzU2ELMKGCd3qUBX7nlsWbN N5NpL/h/hejG955ydvfQJ1nZDQHL+o2YuvMBR2x8meU7/CfLOxVVcsQ8HHHEVd2xHtsw Ex10/0bdBwraEoTprV2I46Ctg0xpi0lv5oV++RmLuTzc8HvpKUX4q75/aAKRR1vwQmj6 Z+tGV2TNOpg0JNI1hOkl7ufGXeL+W1B/CoNKpypmlGBIHWXPUCkSFGdoiz1DSKyEqQ2g peic0bdi8NfQV0ufu94Wu8Q4YRpzNReZHIgQOFVefSDQ/B+OQ/9DmziN3jPT1gcBd9m/ jnjg== X-Gm-Message-State: AOAM531mow00w334xuqorLo2xwIWgAjW08ZDFMgQtpiLd9fBjk1hPLIv 0ous+7Sj6+1mEwW6NHv4CCMwwA== X-Received: by 2002:a17:90a:4e81:: with SMTP id o1mr13200739pjh.7.1620250789083; Wed, 05 May 2021 14:39:49 -0700 (PDT) Received: from localhost.localdomain.name ([223.235.141.68]) by smtp.gmail.com with ESMTPSA id z26sm167031pfq.86.2021.05.05.14.39.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 May 2021 14:39:48 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , Vinod Koul , dmaengine@vger.kernel.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH v2 17/17] arm64/dts: qcom: sm8250: Add dt entries to support crypto engine. Date: Thu, 6 May 2021 03:07:31 +0530 Message-Id: <20210505213731.538612-18-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210505213731.538612-1-bhupesh.sharma@linaro.org> References: <20210505213731.538612-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add crypto engine (CE) and CE BAM related nodes and definitions to "sm8250.dtsi". Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: Vinod Koul Cc: dmaengine@vger.kernel.org Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Signed-off-by: Bhupesh Sharma Signed-off-by: Thara Gopinath --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) -- 2.30.2 diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 4c0de12aaba6..6700d609a7b8 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -3796,6 +3796,34 @@ cpufreq_hw: cpufreq@18591000 { #freq-domain-cells = <1>; }; + + cryptobam: dma@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely = <1>; + iommus = <&apps_smmu 0x584 0x0011>, + <&apps_smmu 0x586 0x0011>, + <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8250-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_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; }; timer {