Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp362763pxh; Wed, 10 Nov 2021 03:03:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzc6Nh2Px6tqj6JaqZD0HJNegbml6ALlSY8ixVOpPVGQP2zp6IbVcmp1qGbHTAisEXjI6ek X-Received: by 2002:a05:6602:1510:: with SMTP id g16mr9875694iow.30.1636542200496; Wed, 10 Nov 2021 03:03:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636542200; cv=none; d=google.com; s=arc-20160816; b=nFHwEIgsxXVJSVeVwXFna2NcrwkrEX9kxc3VlEW6jh07u+sttmkwHRMH2IfM/7EzS+ et9NliuStSxUhnT9jJGKWiYA2RVrs8ROtbBsMKMzRdIfirAWGTF2YXapzHgYgmrR7DeO 74UQflaDsjbrpWsIZY1El28Bx9pwtrXZeYqNibJpbnyMxcmVTsZNjbbq5KrJhqyX1lOG H7VufyB4QmNM8f7lZP24nW6yUtzLYuzbloZGRoyxll45Gbn43CB0K0iHF6HYfoEAM8XU HuJGOMw6v6VBD5ZMtMYfaH44h0wGJIMrOwvmeGY1ohBXXq+vMp/FonjiVbS+NCOX4YrF MHQg== 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=rsJUSeawRggU7HvC1GGQkny+erynvmNA844erz8yhy4=; b=WlT26F4Auf3Ge4TUXjeflYCZfMasHbjyPk71yAlxodcYFxRo8uveUpsFxQP6HGPT6P Y+h8qxEorO1+JOcv5BEKt4UOdoJHhCM6HtCJaQQsiZQzON9zPe0SmLH2MM/OSrVR/1Te Wh53mC8QBIo1+rtfRqdsME4RYE9zWOi5Y3sq1dO5oRkSHVJExs/PoI/Bzf7TCrLcvjie EbJXLav+ldW0NStd/y5YsHqG66iq8CvZr8+AvlWHaXvuvL/xtB679AOXMBQqGfArvIV7 0vE4kLU0dLLHxdO28+04TAMpV40HQnRMdt22UAh4Oi7jlGjrw2Bw0BQ3S4mMv43XrWOM t8ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OyyzqvHE; 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 n13si9417100ilt.131.2021.11.10.03.03.07; Wed, 10 Nov 2021 03:03:20 -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=OyyzqvHE; 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 S231708AbhKJLFP (ORCPT + 99 others); Wed, 10 Nov 2021 06:05:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231601AbhKJLFD (ORCPT ); Wed, 10 Nov 2021 06:05:03 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39439C0432D3 for ; Wed, 10 Nov 2021 03:01:28 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id np6-20020a17090b4c4600b001a90b011e06so102171pjb.5 for ; Wed, 10 Nov 2021 03:01:28 -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=rsJUSeawRggU7HvC1GGQkny+erynvmNA844erz8yhy4=; b=OyyzqvHEGotpRlMylxG78FbvLVcDXUkQRB9SZR2k3eQPQ6grpX3VL05W0fngsblcif mFKJMzJt3T3SGWco6pXk7UOsCfYx8193kD5pyUN+bRj5S3BJbJAFw1z56sNPQhvxcS+M bDpMr877A1sPN45e4frzLakQHBWZWm7pIzNOXlZsowU5vG8ZHhj8q6UzZ0GuZ4KTD/Pb nFBMFLA1FCdNkgS70sGl+kOPcYjbair6Hhn8GzkE4+In8y7nVXUV6TeVLi89IFfhpthR SkQ6mqZ7uWjbcHs0BIOtlLj3OllyKOWgjSI5Ek8RpdXQqRMd1mCJtWYvh+8WNCaMiXV4 w+HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rsJUSeawRggU7HvC1GGQkny+erynvmNA844erz8yhy4=; b=Z5uGUDE1be/xdhCFk6KJ9BKpi6U2tejbSfxQebwy972nGE3s3KSE0arFG3FkSbjWHW CQW+kXJYxrYiW76bxC7xzuLEAUpGkRL5bgYWxZd0D0DVz6csAPR0RxiS+XoqwbYTQx/B HzUqifxjI3XXdgoyJr5HjYDBoez9+KQ8tkTpDkdEmqm5YXRirJciPgXGgTziN8LBEJ/S MVkM0DK2q8QFSIkkaWm/yJKlsuYsRbBppA8jsXgHC0YLQUgwN5EBpV7qSkCRYRbdCDB3 gP0yiZdyZ8ULhCap7rr4BGL2PwmCCUY085SgDBwOlzHrLxQyOdiYa+CXFCIwYUDehvIa n/oA== X-Gm-Message-State: AOAM532/U/6268SJoaXYa+1VTtfliuPrmnb+hu9tLLloBlAuAyejb/NB F7AbYvOXYptG4/fIlIiUPbUlOw== X-Received: by 2002:a17:90a:bb84:: with SMTP id v4mr16003228pjr.4.1636542087735; Wed, 10 Nov 2021 03:01:27 -0800 (PST) Received: from localhost.name ([122.161.52.143]) by smtp.gmail.com with ESMTPSA id e11sm5585282pjl.20.2021.11.10.03.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Nov 2021 03:01:27 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, agross@kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, stephan@gerhold.net, Thara Gopinath , Bjorn Andersson Subject: [PATCH v5 21/22] arm64/dts: qcom: sm8250: Add dt entries to support crypto engine. Date: Wed, 10 Nov 2021 16:29:21 +0530 Message-Id: <20211110105922.217895-22-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211110105922.217895-1-bhupesh.sharma@linaro.org> References: <20211110105922.217895-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Bhupesh Sharma Signed-off-by: Thara Gopinath --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 6f6129b39c9c..691c28066cec 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -4104,6 +4104,34 @@ cpufreq_hw: cpufreq@18591000 { #freq-domain-cells = <1>; }; + + 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 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 { -- 2.31.1