From patchwork Fri Mar 31 16:43:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 77900 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp702551vqo; Fri, 31 Mar 2023 09:55:10 -0700 (PDT) X-Google-Smtp-Source: AKy350bv4bNN4T/vINtgLc8eL89pXibNiafT5nD9vdRFaiqMwLNSkSuIHS7f/z+pRjV40rHNqt8l X-Received: by 2002:a17:902:d101:b0:1a1:c671:8bc9 with SMTP id w1-20020a170902d10100b001a1c6718bc9mr22593148plw.7.1680281710376; Fri, 31 Mar 2023 09:55:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680281710; cv=none; d=google.com; s=arc-20160816; b=XeI+vgCrlU0h1giBUHY0gUwX5HHk9g2stq655/EFJb1HIMhpUbI5AnyYMnyG7jfZ35 dVUQeNQmxrKt7irtbtp/or1fTwDtu0SpGWioaj9WUHucuqqSQaZG6ju7qKKHMVTQwFuf GXQIXy/7i06UtPuVW12kKq+5b9k3pakt6qZyLw4wUsQXqxWvToGX9G7ikbjTK1lJtt9Y duCokYYQYRAf2Df7Rf/B9n9bz/+ecyEYA4mOCZ+/lvndV3+Vg+DjTLIAXy5T76ra4Vra z0DqmA/FqKPlJ4ojM9Cle+3Xcvo8MzVrNW6eI0e2sOnTby3+eElh6awA4aQR+Gs4v9Hs /nlw== 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=Saet7YwWCzVe7flAla1wksFG4OoegcUqLvT77iLztYsVpDjl1m8HpCoruMEcaQTyyx u3HYexszNIM7OhNsCXSleHxVSo2goU+RRchpBtENA5ytkhd/dd/8pNqm7YswrU6g0rUe K4O51hbXJglbj4d8Zw+8hpxCF5TOP+seB1gy+bK4QK/HhE3xHrSgw0dRT9k1p70wN4s7 sITImFRiDGtpYd/IL8xH4ZHwJ46blne9zhQaevNmmgr2EyxdqldQPmSl7KYj3K0vu1nY XFtQ+xifqg4SFsTRb7nxGM8BsCKPXieAVoa576qGkfe3ve7GBF226hpmaTHAD8GVbujM feyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vhvt1bNb; 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 v16-20020a63d550000000b004fab9a24dddsi2759929pgi.732.2023.03.31.09.54.58; Fri, 31 Mar 2023 09:55:10 -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=vhvt1bNb; 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 S232979AbjCaQqc (ORCPT + 99 others); Fri, 31 Mar 2023 12:46:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232342AbjCaQpn (ORCPT ); Fri, 31 Mar 2023 12:45:43 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00E7D22909 for ; Fri, 31 Mar 2023 09:44:16 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id d13so21042826pjh.0 for ; Fri, 31 Mar 2023 09:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680281056; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=vhvt1bNb6QkU5yrhCJAjrMCm4NFvN/8wcswt3yPGyH840zrvkgicpCW1ZQXoxRQMAT MdCH92JUOLelQIWBSKgBknCJYoQ5imnQb5whSd1kwPDVFK/EQF1mRYfMGTJ7Qp5ZjxJK IryyT7WZGDYMZuMFlFPpdDnyznh5qJxCb0PaI78OZBQOPjSjTDX8aZcWkwl5WpCEhkWs CSDiIEw9aEyG52ME218fAyNy+ZKGg1dqf1wT2YIAyfb5WG7v42xbgwTWiiABQrIEnhc5 Sv2vmv60UHnDteGgFv3qS7/jLecVSGBk7AXHANLNnZULTybm6GG6En+D9LVUldeTzCLA kaWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680281056; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=2XC2tDZISnFJmnQYdvNHlSjEOZzes7szJeEnywxsISH2DdVqCLaDlEQeuWog0nG0fP FNZ02gyln3kc6SWDisRO5xlzLuDKIQhz4JHoC/xOlO8AKS9c6m/xaFFWBMD5xWzrIq5b gVblasEg21u9R/84s5dZ16nhqJd8iuTJL4MnhvhWt3RxebAUC+MM2x0h62re+Gic7utQ eG2hJ2wiBTekCzCDNVFR9q50ys04okwH6Srw+MOi/KeAGoopbSO4aQqOuMsWoe4qM4JT hmLMUi56BKpIETGtFD8YuPgE30dJPBUg7yPE0IzOenDbZuh8vgzpee7yomBe2a+axRf+ Wjbw== X-Gm-Message-State: AAQBX9fNZXW8rWsVUuUyAFqfq0GC8EN9KCRxEB3hKP+23XHHY26PXoD/ 4sjVx+LopeppiaPTt6WxD37BPQ== X-Received: by 2002:a17:902:e30b:b0:1a1:7c2b:4aea with SMTP id q11-20020a170902e30b00b001a17c2b4aeamr21635785plc.0.1680281055758; Fri, 31 Mar 2023 09:44:15 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c5e:53ce:1f39:30a5:d20f:f205]) by smtp.gmail.com with ESMTPSA id x13-20020a170902b40d00b0019b089bc8d7sm1798767plr.78.2023.03.31.09.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 09:44:15 -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 v4 09/11] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Fri, 31 Mar 2023 22:13:21 +0530 Message-Id: <20230331164323.729093-10-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230331164323.729093-1-bhupesh.sharma@linaro.org> References: <20230331164323.729093-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?1761903074848567540?= X-GMAIL-MSGID: =?utf-8?q?1761903074848567540?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8250.dtsi'. Co-developed-by and Signed-off-by: Vladimir Zapolskiy Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7b78761f2041..2f6b8d4a2d41 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2222,6 +2222,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,sm8250-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_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>;