From patchwork Thu Nov 19 15:52:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 328426 Delivered-To: patch@linaro.org Received: by 2002:a17:907:2110:0:0:0:0 with SMTP id qn16csp471593ejb; Thu, 19 Nov 2020 07:54:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSoYQyAru66Y+KFDc0o+qW8bJJ0/05DtEN45ri8/82mlCCm6omUPGklt49epLw/RmsQJky X-Received: by 2002:a17:906:81da:: with SMTP id e26mr28120247ejx.491.1605801246490; Thu, 19 Nov 2020 07:54:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605801246; cv=none; d=google.com; s=arc-20160816; b=zrkIBjgI9M2jm+SdvoZE9Th73GE4fD9tVY3cPqIZqB/arvNPPiPiiX/EgmawZh61nz 5PoMk+NhRVKP2qZB3SS2Or0dhzJS7Q69PQ6ECew0kG1Clk6oETFPJbIH4/triT/t/IXu MlR+a4YjENccUCMiqGiIRbvy8Oe5Q5lJQieRJBGyy3Jb3ts+lE1cIvyFEL4/rrm03/CA v3pTaP+fFPzURXUh44maSSeK2qhGQtGwj4UtPZ7aLqqJMq6RnwOXkskYJRlREKAmLq90 NVFEyxAwiLH8GzqQlrjRFCua9M1/gaqaSOHAu7Kk6XLBfKMU3YBvMy2e1yswVpH/jQ68 E5ag== 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=ncm4tg3t1i7YF0Acj05l9+ZFtRqok/Gt9GCUMfnO+SI=; b=LoUGDJ727bUMp3V+03Aas1nh+RoDVNMnrnyjZmG1FhNQO1EA3UPmBT8jwL7jhNIwju SEnXbjcCqiO3+wgU/U+Se1l+0Pkqw0ZhnCVM2q1vGh7fcJMcipWwp4QLbZRH9nB1MHeD Y3k2edP1GF+aUnGvDR4T+zmPMuMh0XPbfrHqSPPMOT7Ntv/8hMh9kUX6jvNh8aB92QmM 8Wpwy92gMZ951l+2QaYIVKGU1vFJoGu/hVUzcry0d0+SWWKzmJ32HCmUlSYJEb1vvzQB gf5T9plU0Uz8IU4fWNN9wqX4OXLoyrDR19TLQW8RwWYLyDh1Jn0j61PSV1LjyZL0SgUk Auag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Dwn1JI3I; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 ok23si67063ejb.243.2020.11.19.07.54.06; Thu, 19 Nov 2020 07:54:06 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=Dwn1JI3I; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1728955AbgKSPwo (ORCPT + 6 others); Thu, 19 Nov 2020 10:52:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728949AbgKSPwo (ORCPT ); Thu, 19 Nov 2020 10:52:44 -0500 Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA36EC061A48 for ; Thu, 19 Nov 2020 07:52:42 -0800 (PST) Received: by mail-qk1-x72b.google.com with SMTP id q5so5731022qkc.12 for ; Thu, 19 Nov 2020 07:52:42 -0800 (PST) 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=ncm4tg3t1i7YF0Acj05l9+ZFtRqok/Gt9GCUMfnO+SI=; b=Dwn1JI3IGVVrz9y1hJnMh9HlIiQF+/UE4yWOgcnTq+QHQ0LRgSEKDOa17UhFgxvw5W sfrnXKLoLKvWfb3hD8atziUk3EsE1xbMU/Paxw0f04Jrx9FaVGupvJVC8PtlLpAz9mTT YZNyEHaqD1c1sHi+lAHPsqQjYNB2C7hVqGlHXZ346pyCia0Td+Bn9V2H9gMwvS3F3cE+ /sXSXGVVWvDmDNU98wXz3r+hkVy1GpHWJZfSnFhTybRekpDX3GQiha9tvuFs2S1EoNH5 NtNal34ErNuxWUva/p0UbDHeDlh7hwO4BxyWAjjyqCuHOohH8T6OZelQaslPySs52tMO kVFA== 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=ncm4tg3t1i7YF0Acj05l9+ZFtRqok/Gt9GCUMfnO+SI=; b=Al3Xv3p7JSjwOXNv1ORH0qrF1xttj9T2fA6/GRWUoJ/CX8fZHAgM6DlRCP6ERkMIAd vidnYYhSwAtV3txB1Ktxi2W9vg1zuBUzhE1DF7EfoJWw33B1LHrNOQpMer+0jOXI+ric S7KubrvhQGA5BBQ89oH/NyPGVAVGfHV6es5kPckPQGabAxEmJ7mPtYHc2wjlNWfQmy1l w1NjhjOWIjQGW4EgXpaxu3Bz9H8w0FH60blq3MVTU88NtqzhYjx7+AUQ0K5t0wYk4VqH mZf+13dmNJXGSG/pCoI5O4nA++9VR9slvaEWi6mFQ3gkajkBg3bSAcSfC3Jzybe8c7Lv 80vQ== X-Gm-Message-State: AOAM532rKJ+6HFCt22YXDCaCKHb4X2tkbQaZze/K+Lvi/tJz5BQ+MfN2 vxjKOP3EjXNnPZr9e2m0WT8TyA== X-Received: by 2002:a05:620a:d41:: with SMTP id o1mr11295674qkl.338.1605801161839; Thu, 19 Nov 2020 07:52:41 -0800 (PST) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id g70sm127290qke.8.2020.11.19.07.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2020 07:52:41 -0800 (PST) From: Thara Gopinath To: agross@kernel.org, bjorn.andersson@linaro.org, herbert@gondor.apana.org.au, davem@davemloft.net, robh+dt@kernel.org, sboyd@kernel.org, mturquette@baylibre.com Cc: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Subject: [Patch v2 5/6] dts: qcom: sdm845: Add dt entries to support crypto engine. Date: Thu, 19 Nov 2020 10:52:32 -0500 Message-Id: <20201119155233.3974286-6-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201119155233.3974286-1-thara.gopinath@linaro.org> References: <20201119155233.3974286-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add crypto engine (CE) and CE BAM related nodes and definitions to "sdm845.dtsi". Signed-off-by: Thara Gopinath --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) -- 2.25.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 40e8c11f23ab..b5b2ea97681f 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2138,6 +2138,36 @@ ufs_mem_phy_lanes: lanes@1d87400 { }; }; + cryptobam: dma@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + clocks = <&rpmhcc RPMH_CE_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely = <1>; + iommus = <&apps_smmu 0x704 0x1>, + <&apps_smmu 0x706 0x1>, + <&apps_smmu 0x714 0x1>, + <&apps_smmu 0x716 0x1>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,crypto-v5.4"; + reg = <0 0x01dfa000 0 0x6000>; + clocks = <&gcc GCC_CE1_AHB_CLK>, + <&gcc GCC_CE1_AHB_CLK>, + <&rpmhcc RPMH_CE_CLK>; + clock-names = "iface", "bus", "core"; + dmas = <&cryptobam 6>, <&cryptobam 7>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x704 0x1>, + <&apps_smmu 0x706 0x1>, + <&apps_smmu 0x714 0x1>, + <&apps_smmu 0x716 0x1>; + }; + ipa: ipa@1e40000 { compatible = "qcom,sdm845-ipa";