Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp47986pxb; Tue, 17 Nov 2020 20:11:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJwd5gnmaVqm2rk4yHBRcMVI7rO048H3+kYiBEURMHoWVmklU7WXafJIgttopZTbzFyeNeqq X-Received: by 2002:a17:906:f286:: with SMTP id gu6mr23023985ejb.182.1605672688568; Tue, 17 Nov 2020 20:11:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605672688; cv=none; d=google.com; s=arc-20160816; b=iAO+ofomlvCnzUoERuj5WVSMKwH79Jnx/eTOAg3UwJQj44wCdcbLbS0tiP8388nuNp 9iNJs7n2xznA+iqHcRxPPbqvb1y0arXlOMx5yK5rnhBdGX8NK4mWC3YA8vbVbiCXIKwD TtDAB98aj50G3GTJWchMCacWiPPFqWhdZc69nd3mblmFxsklbtkwAqvQ5G4hJIUCee/i XRSl88/s1HV9TRZfk5X/NxQvuXeUlS03tp5ZIM1N5FCEWFrnSNEyFEkOFd4Ie5nlf/t9 V1iCIj5jd5atrrj4gRTvByaU9StFICGfj9ZhY7yv+SBEdAMrStGpr8Mj71YIwEcvCE3I AqYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dRKcQO3pMtpF1NuRSX79Onpwrs+gklZx89qUCct/3SM=; b=DcCgb/Vv8rXgRIY+o3T3Mxjqp3xqEfqdbR1ueGQ8TWYLrTKG91adEXQnHGlLOT9cnd YFYLYA8ZNfXWWsWiXHjZLrGqAIyir+eU2qTkiVZfO+zjfynFnSBBHlN69x/W5lkLg1a2 C7nZfpkubraJUcjAKWlOxl+jEBjdRkX5gDszwZgud+TH0cWkarskRi5rz3kL3h0nCuYK RhYsBWOo6zlQPV/bmIsxkwGhhMf496qDqv9DZbGRB9Mb+EBdeDoDzSPSNL6aPsFlKd58 h+Ni28AOUScTnOX3/4mC2/VuBr0eQN9cvuDeV3MNGYhlafCvIZOLgxySRUpI0SxRdKG3 MU1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qx0xDJvK; 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 b3si14110572ejp.606.2020.11.17.20.11.05; Tue, 17 Nov 2020 20:11:28 -0800 (PST) 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=qx0xDJvK; 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 S1726812AbgKREKz (ORCPT + 99 others); Tue, 17 Nov 2020 23:10:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726591AbgKREKy (ORCPT ); Tue, 17 Nov 2020 23:10:54 -0500 Received: from mail-oo1-xc43.google.com (mail-oo1-xc43.google.com [IPv6:2607:f8b0:4864:20::c43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B071C061A4F for ; Tue, 17 Nov 2020 20:10:54 -0800 (PST) Received: by mail-oo1-xc43.google.com with SMTP id z13so87625ooa.5 for ; Tue, 17 Nov 2020 20:10:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dRKcQO3pMtpF1NuRSX79Onpwrs+gklZx89qUCct/3SM=; b=qx0xDJvKIig0sy53FRoTJcfK5ApCXai9Xep4AiD5uw8cXKVPDQJuiOvTAKPirYWbK6 9uRC4oqhzurXiQqdPKA9npG9AFTdq5Vivhs2DXfQyNYtVokc+fIB/Y5T55L5n2XLjKWo h7JUwS7itLQITyiZRajejWqSlrJLdycOzUtIkvrJJpfZcpp6gqp0c15ew4e0PYxLr2/s JFHsfb5BjYhCMMEkUN/hF3VrftxD1WBc8tiw36P6gDNJDDpZBuzo1Ai+DxgcJar4Seba 1Fh9lslOMthE7PJESN3QIvxQz3MxHsgUhvjrtD3jaAZ/Gclo5uxQtduw5GxJRTrzYGZ6 aRKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=dRKcQO3pMtpF1NuRSX79Onpwrs+gklZx89qUCct/3SM=; b=R+sr9jtVYfzDiUKMqfFRGt7kqU1BxnATflkdpAxtDW07cRRiAadm5b0liZ1rltg2fD cDcm3ERI99evGR5/QwGBmDz1RRZRvlv7wxDG8VbOAORYYw6j7xkCp5wcqHKpu/9VrmM/ hfTN1o1rztWWolJR0h9ZanijYVV+rvT6WoZe4zCUeNsUSVeeY/hmyK9LrABY/DZLY7kC 6ZmFQPFaSJYPLJLEwYUZkvNBZouZJsnxZkUnNXxzKwsetOYaYBxvEYSPAGPfmrYKQ7oh ia8PuN5nHPY3P8ooXI//z/OV1nhOrBq9MvAXsL5XnYjmQ34RaSMaIr/qQrPL++bETYUs 9jbQ== X-Gm-Message-State: AOAM533wl6vhtzOp/Hla87Mpgbj7RKwqKn/s+bybfcf9GLBUSXSvSZQS NhP7DnFTAe2kfgzmNQ6NRpm3+Q== X-Received: by 2002:a4a:ddd7:: with SMTP id i23mr5416947oov.73.1605672653737; Tue, 17 Nov 2020 20:10:53 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id w22sm2446592oie.49.2020.11.17.20.10.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 20:10:53 -0800 (PST) Date: Tue, 17 Nov 2020 22:10:51 -0600 From: Bjorn Andersson To: Thara Gopinath Cc: agross@kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, robh+dt@kernel.org, sboyd@kernel.org, mturquette@baylibre.com, 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: Re: [PATCH 5/6] dts:qcom:sdm845: Add dt entries to support crypto engine. Message-ID: <20201118041051.GF8532@builder.lan> References: <20201117134714.3456446-1-thara.gopinath@linaro.org> <20201117134714.3456446-6-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201117134714.3456446-6-thara.gopinath@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue 17 Nov 07:47 CST 2020, Thara Gopinath wrote: > 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(+) > > 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>; Can you confirm that this can't be written as: iommus = <&apps_smmu 0x704 0x3>, <&apps_smmu 0x714 0x3>; (and same below). Regards, Bjorn > + }; > + > + 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"; > > -- > 2.25.1 >