From patchwork Tue Mar 28 09:28:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2085671vqo; Tue, 28 Mar 2023 02:40:21 -0700 (PDT) X-Google-Smtp-Source: AKy350bKW5KvQXWq05mwncrf8tRJNbbT/uT2TJzNjn4ZTOMkKaCBoS/soprZQg9UMsesLn/1XNqB X-Received: by 2002:a17:90b:1b09:b0:23f:b609:e707 with SMTP id nu9-20020a17090b1b0900b0023fb609e707mr17515328pjb.2.1679996421250; Tue, 28 Mar 2023 02:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996421; cv=none; d=google.com; s=arc-20160816; b=P+gGX1DVhiAed5JqHynptaj6DeLOGNkL0fhCvwiYUrFYoUmlsrqqpMKgPYUtTwSSMb sNkd04Wpp3zfDf7cNpT4lO/QiEgevcae15CODQUx9i1MnuezNqQde6kmfV+fov8unylD 3uBW62uOmKA8lErIyANs4hHPG+kLTtjkpNLjwUV4TtGqOWMFgTtwdi9Fmp34yvNxePmK xpwxZGe5K/luy2xFgIAHwcCXSK7c/66JvWqb6/4Uco5J4V7dp9N9xOBX9P0/QV/O5/OG TxQdyqraDPQT/qbz017Z2vfQ9DUfyRdj37Gp+zcOt4KPd6vnOyQDy5Zh1RY6wjRh5LIP xZaQ== 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=c/ffwj5+a3Zj4Widm7sCnz1N2Q4ATRj7llM5SDOv7xuvdvxP3PBtehgX4FQLO9YhBx W+CBKP/XbVMu9CVhWlF1n5dii8tDSumkuLdaCEI+qCrb1w902XYpeZ/nhsq7pB36qjgN XwcZUg/Gn9eRHkjyTB9t1nmdNbuiU11SI/ssLgaeH+qs0dlDbXH0ZSMGrw++Uq0WQiyE ik0EZl3Igh7A7rIk8tQ76qr5TMswHNFda0Keuh+xrWbxKh/pKksBTuU2Nyw4MPl0gQxU L5HvnWvkTIxC7DwTD14teKgFKK6p0Aecbv65fGddPNMq6gIyed4DNmFR8haJh+7JPG+z 4qDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XEybTPAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p1-20020a17090a868100b0023fb878c669si8156991pjn.6.2023.03.28.02.40.08; Tue, 28 Mar 2023 02:40:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=XEybTPAh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S232524AbjC1J3b (ORCPT + 99 others); Tue, 28 Mar 2023 05:29:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232657AbjC1J3C (ORCPT ); Tue, 28 Mar 2023 05:29:02 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B4486582 for ; Tue, 28 Mar 2023 02:28:54 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id h14so6799984pgj.7 for ; Tue, 28 Mar 2023 02:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995733; 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=XEybTPAhej0C8WKdXNNHULqyYs87J4fUSAh7ZMvT3KBg8nUEaJz6vABo0+euB8ml0s 0SmXYf8/1JBB8RM/YXSCUnGgAJqs78jE2i4xZ4ICgMITQULqUzzSusE5zYtkTPhgXU+r HejKKwYa/jhcKcqZiHQLEUtg+iLRlKkWY0ZGKk/nxxgXqZFOkcpx1OX5wsDihAfUrPJA IAuC75ylJB4cpuZo9RDmcOtENl+PQyh0rDzmfu3L/4sgMB34IPHlPIwqBKt3QfECE/F4 HwRw4AeqgLV6hgojSWkgeNhbYyt6tgnkYRIsRPa+EyIgjElezK+rL4XarMnMVDLFj4Fb iu5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995733; 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=OPR+11quPz7P0olzek6dbzTFR0IEfyFJGd7ZQJLltc5RtHnqbKFQN2zf68wZR00yec Ykw2rpAjwjpETECxr2yOyPcgzfT109yK22SYDMwLjV6WmdYS1DTIZE6TVw95SrgvveZf 6QZuIa2gJMlyVNp69xHZyVfcnPf8Q0tbWxZfUex13Q5TfjiO51tE5T57mIy12+WZoH14 zR2+vmzgufXqw0M7BgETGGy/7Jos7JCcMGD46601kSmHKkT19ZvPgDqSSsOTW71x3OYd mpNwvzLxZoMcnZcwS9cSPtYy20vNiVmLHJfPUMg7SS3Mw6X7Phlh4Yy7AIH9nL2OjeOi /9Pg== X-Gm-Message-State: AAQBX9e0FPeMYp/TLc5z+IVSmE9A9KbtqAJBpgqykiLvzv/jwEKMypVO uY0EGLSPGeaT1WJHY2a56Me08Q== X-Received: by 2002:aa7:9472:0:b0:627:fe8f:716f with SMTP id t18-20020aa79472000000b00627fe8f716fmr14978973pfq.12.1679995733444; Tue, 28 Mar 2023 02:28:53 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:53 -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 Subject: [PATCH v3 6/9] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Tue, 28 Mar 2023 14:58:12 +0530 Message-Id: <20230328092815.292665-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761603927516895470?= X-GMAIL-MSGID: =?utf-8?q?1761603927516895470?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8150.dtsi'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 9491be4a6bf0..c104d0b12dc6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2081,6 +2081,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 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>;