From patchwork Wed Mar 22 11:45:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 73382 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2297604wrt; Wed, 22 Mar 2023 04:57:48 -0700 (PDT) X-Google-Smtp-Source: AK7set9AOxFYWAkLFakJwTkxGEzC+6wjdvgy8PuGZCdTp2IMb91MMJ0Z0wc2juh2DzyUODX07KYQ X-Received: by 2002:a17:906:1611:b0:91f:5845:4e3c with SMTP id m17-20020a170906161100b0091f58454e3cmr6319749ejd.42.1679486268693; Wed, 22 Mar 2023 04:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486268; cv=none; d=google.com; s=arc-20160816; b=rxwzauOmJvfGbF7/qDsjk6LvSA0QmmR8cmCaPPIKcOAarOz77gsPd7AJD3n+tPiO0+ t/jQPTTPfyPBN0ybpxypuplE+VkvagDj53Ode3ZKTEHbFRsoG2N1bz6/bCvscbsozZjb ClNlQT4W+zfjFOY9XbW+xsdkY2OdmjUjrw5WA4ssbi2MFpThLhCqKwbFLjDY816VsVP6 I/DZBWAHBbkV6MHR7AOaqyVE52G99UgkHYa0bGbGVw3JkZ2c3F4vxyu/Kc6NhcnBQzJP AiuqSDfXS7cCmKjss4vwk4QJB8hsET4MPnxtlBFQIM1beEvtDTZLHLN5PQuh75d7DXX5 ZbPQ== 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=b+8IuRB7wPiG8RcwMJh7jwuTW8oHkpDSzf2to+aWgkk=; b=iOR6XPCS+QKERRYHYxAj21Za5m5FE2JRoREwFzyXN8c549RRcBal4qs9mWAxDbto4I wXQ2PoZonzedytG3x/1CEIdK67ZUt2ueWLdcqV0WYSeKI/e7qphO13+v+MEthz5TVW+a XOzbeGS4VdOW+bPYxvj/4GIibqC8ILpcyrF0BkBQDGq+Yg7puOPyGhkPo7g4qgBhKNbF 0j08jFBmrUgRSeM39Mjw7e3BzR4iZ8ja+Jpx3TomdlDEOqBD5kjppggp5uZM9QExEs+W rioT6doFxXqUXbLmOmBAFSRvPNW/XmOjvpmV0ueLh9NEODKv9wtnViF8MtN7VtPZQKX2 t3iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JuLXRqui; 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 lu10-20020a170906faca00b0092beffa3359si14173548ejb.14.2023.03.22.04.57.25; Wed, 22 Mar 2023 04:57:48 -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=JuLXRqui; 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 S230111AbjCVLqo (ORCPT + 99 others); Wed, 22 Mar 2023 07:46:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbjCVLqV (ORCPT ); Wed, 22 Mar 2023 07:46:21 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B0CA61899 for ; Wed, 22 Mar 2023 04:46:04 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id c18so18986182ple.11 for ; Wed, 22 Mar 2023 04:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485562; 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=b+8IuRB7wPiG8RcwMJh7jwuTW8oHkpDSzf2to+aWgkk=; b=JuLXRqui+5M3hNGpgOtC9Y1YzExdFvkHC7RdPWtEVyntoiFH4r1wOhLskjgGLJ6R7S kyF3jr7HMLgYOS3+21KKkGK8s0ampd+vWvtbDuBppPfizAk9uEmwlAs6Yq78q6rTXR/T qTQGNFy5JepXGqOzWu5ALkuNQIQwFnQmjU+7VPLZw+mIvB4fmHNlk8g4LTpkzLOAA9lZ r5iJjoV5ec8AjSp7y87rJHORt0smLFVW5rgM36zMGAofEQw9YyF31Faq/A7t1jAbbk17 9enRAWne3t/FrurWH7t6qF4w8jSI2Ejp6VmUplWhrtMRnVSFXb9CAcy7ikrL+FpAQZrm SOHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485562; 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=b+8IuRB7wPiG8RcwMJh7jwuTW8oHkpDSzf2to+aWgkk=; b=S66VY1ExZM8ybucZ+LKAXWRH/QgLXiTBiRgxIQSPbljwCb7EbktgTEJyitmUD+1oOu +24GU9kAFrbUfeigf0WmxGZaF+ZmYOxcbGARtVWbqCwB2U84wHl3kcU0g7E3m8hlDk0H TeyGuOq/eqP/WIXKqZG31fzdKRmJCARbT2dV6PO3GPNxuT7/nb7w91+1w7vV0uO4hhD9 QikeWcR9gvTHZ6s2gEDPo23xuwiXuYmz2P1U3hbI6iaKrMMJnYd/WBD8bSheyGaXnOtF R591Dq8/PKonE6xzaWj/g9wYIfjiFXTAHTDZXN4t5pQHNcS3VgC7NvCNfy7iYUselUI8 2bVQ== X-Gm-Message-State: AO0yUKXGcCtj3R+DLyHsiMHmnD8YaJ/sUQRC/8eoo6u91gkb27sVZgLP t/W0/kTNwZoIhUBx+xjj1w4YQg== X-Received: by 2002:a17:903:686:b0:1a0:4b9a:bae6 with SMTP id ki6-20020a170903068600b001a04b9abae6mr2459904plb.30.1679485562498; Wed, 22 Mar 2023 04:46:02 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:46:02 -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 v2 06/10] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Wed, 22 Mar 2023 17:15:15 +0530 Message-Id: <20230322114519.3412469-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761068993799276040?= X-GMAIL-MSGID: =?utf-8?q?1761068993799276040?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm6115.dtsi'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index c56738633431..d657e1b02062 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -664,6 +664,28 @@ usb_1_hsphy: phy@1613000 { status = "disabled"; }; + cryptobam: dma-controller@1b04000 { + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; + reg = <0x0 0x01b04000 0x0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>; + }; + + crypto: crypto@1b3a000 { + compatible = "qcom,sm6115-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0x0 0x01b3a000 0x0 0x6000>; + dmas = <&cryptobam 6>, <&cryptobam 7>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>; + }; + qfprom@1b40000 { compatible = "qcom,sm6115-qfprom", "qcom,qfprom"; reg = <0x0 0x01b40000 0x0 0x7000>;