Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28575rwd; Fri, 19 May 2023 14:51:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5hLSXpn5/GWdugkZ0WcWgDboPtVTh987ShAJkjyig7h24efUbrdUHNXtYp9ED+p6KajLIO X-Received: by 2002:a05:6a00:2314:b0:64b:7c1d:518e with SMTP id h20-20020a056a00231400b0064b7c1d518emr4337182pfh.31.1684533096732; Fri, 19 May 2023 14:51:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684533096; cv=none; d=google.com; s=arc-20160816; b=iYi0JE/wzrd1ktyW44/nvdAZDxIaRfi+hJZkFdeaiQKbZ2NPdW/b20Kmj1e9sSyHQ9 CBgrUULZLkvrWXILPV7OV9gQsYOsV7+I5sXC2YU5iEuJJTSJAhaVqus/ksrc5pjluE+H Izp+HBEvVQ+9+4e+vwyMx98KDmJ/1m9lEhqC6y2MnEsGrV0EYTAeVV26Xj220dkHEjMD cwabN4cf3dd2kryUwF6H1OIlbv/axuwkkV6JX+GmF6jXp3r+kdmkDQDQwDC4ciOQoxNl BDb2zkDaX2nnL+3KSzoCxgD1mSkPEqftmocxTxJwOejJBerMQlD8WtYkcONI6lx96BAr bRsg== 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=/u5nTt5TmzYuCAEpy7v0bHr/c9oYRWSHg+eceJeWTGI=; b=MOImQYtB8EPQ1H5+x+WU/c9DNtV4lJnIKgnVqCWuyCPxi7ft1w2pfO3EZ3wXoQAVL+ FWF8S16djFudTwT5E+PYoy4fOEqDI9mucFp5cLCXvzI7gAnrNYzzrB98iWFbL3iFeWPG 6mZUa02ZYFyEPAvMVGf75B6PtL4SB0NDExbI30X0IJcFg5Id+uW3f5mmWPbmNjgP436Z DhoLelxIItLcSYwgto9haRYeazfARLO5ZUmoRzpwIJiZl01nyrxRQSDPhH1ivZm68BJc Be8BQc93mNivX91884EmGCg+nFMCN7F3aPItmPRpzXcnrb9SCPlqQZolfQ3waQU94D13 p1Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BNcyzkI5; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y22-20020aa79436000000b0063d24857c5bsi287997pfo.43.2023.05.19.14.51.22; Fri, 19 May 2023 14:51:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BNcyzkI5; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232004AbjESVu3 (ORCPT + 99 others); Fri, 19 May 2023 17:50:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231792AbjESVt5 (ORCPT ); Fri, 19 May 2023 17:49:57 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59ACC10FC for ; Fri, 19 May 2023 14:49:34 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-64d2da69fdfso1848819b3a.0 for ; Fri, 19 May 2023 14:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684532969; x=1687124969; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=/u5nTt5TmzYuCAEpy7v0bHr/c9oYRWSHg+eceJeWTGI=; b=BNcyzkI5/aihfSFsClaLOQm5qCqi7N8SqPFqAezWjcje7uvU6ZcljKsCJiEwz9IN/h 3qq7ZhbMm+72kIvZQazYy3NmUSzM5EKKixo1LZkvz3D1MmGuyHwv1GmhyQF14qMe30+3 ZfdRtkjoylDfqzQ4Lje2H80D2X2cEoWI3JQJs8+RuDSKWBfmnkS+MK3ydyoX5PzA7M53 w5s8kp02qIviUeemdpRAJaDt6LmZjlfpnX9QNHindvZhb5ryIRK77oRSS8M7tABDXiM5 cfLGKLONxdb0k56mNq+KeHkgxQ1GYQWjWfBzLRLpBSRjT0fmJ+UPUtPb1cjqhhPCTUwV iN2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684532969; x=1687124969; 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:message-id:reply-to; bh=/u5nTt5TmzYuCAEpy7v0bHr/c9oYRWSHg+eceJeWTGI=; b=fXL17w9489/UKUA488Lgg08dnXx8wTJuH4MhSfCA7tMfof3kC1bsvTfJcKba9ggzlq GguUiqdlBQK4nV+OJyo4Ma/OJTpQIT8mN+nK+7gXDx9LtXVPOVCtloI5UmzlnvIddTyV XCU8bqk/OXoajawjt24DS4Ij+nESr4s7YhZToF5vjvDo8iz+mwXlNEmbM19BgYJMJS5h 1NTtyTp+UIlgShz2AgbyhujtbW2BEuTSUJ6zO/kedarKRjcv/rwEwh1omLB80/vOPwkd 8rs8K2F2GJk8+TTg0PZ59sKsOJWF+DMgLhFjRyJkF98xeqQB9+UQST7xYaxP5cVU+d+2 qLXw== X-Gm-Message-State: AC+VfDzB2gOOWQS1K1TO4FVcRmRYaAyFouOt7O79M90fGmTd9QOdxjTR ZHq09YtMdN+E6iawB+OFHfQfxw== X-Received: by 2002:a05:6a00:2d96:b0:64c:b819:89c1 with SMTP id fb22-20020a056a002d9600b0064cb81989c1mr4762386pfb.27.1684532969596; Fri, 19 May 2023 14:49:29 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d309:883d:817e:8e91:be39]) by smtp.gmail.com with ESMTPSA id n14-20020aa7904e000000b006470a6ef529sm144891pfo.88.2023.05.19.14.49.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 14:49:29 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v7 10/11] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Sat, 20 May 2023 03:18:12 +0530 Message-Id: <20230519214813.2593271-11-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230519214813.2593271-1-bhupesh.sharma@linaro.org> References: <20230519214813.2593271-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8350.dtsi'. Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Co-developed-by and Signed-off-by: Robert Foss [Bhupesh: Switch to '#interconnect-cells = <2>', available since commit 4f287e31ff5f] Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index ebcb481571c2..d00542f29dc8 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1726,6 +1726,28 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8350-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "memory"; + }; + ipa: ipa@1e40000 { compatible = "qcom,sm8350-ipa"; -- 2.38.1