From patchwork Fri Mar 31 16:43:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 77898 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp702361vqo; Fri, 31 Mar 2023 09:54:49 -0700 (PDT) X-Google-Smtp-Source: AK7set9F0vYdvu6h/b0p0l8JaTuWRkfGb5QF25SyhMkJNrbtfdJPvNxSSIIiwoVsFMsyRzn+CHPu X-Received: by 2002:a05:6a20:c2a7:b0:d6:ba0b:c82c with SMTP id bs39-20020a056a20c2a700b000d6ba0bc82cmr24362002pzb.38.1680281689019; Fri, 31 Mar 2023 09:54:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680281688; cv=none; d=google.com; s=arc-20160816; b=vWWMTPVWYAaAOq1aYpginOjXLNu2J3IpabhdnxvaP8GJy08gAtGIgdE06LelfHV23E UIvLtyxFeMPCPuzZ7Sx6sP4erwkztZvgIemVXqW4yNJCmeQcfiBtqpMcSFYvrQDxslrs Sue0sUpXDH+ygVapbz3VP4dAfM/zc2ksZ9/Iv5ggwM6t0gY091+n4GMonwQUn9LZYBQ0 JAFwPyNWFlVEwsr5p642ECq+ybwskwhiwAKPCn2dnikfjInA1VHSdQ7d4uefRSW1cyHA 2V6WxQoeC+wOxtlBzbjkaaWB/6vkIj7/mT7/V8E12ge1wknJVcSkschU5FEPlOcNHwIi czWw== 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=PuEDYxPh1iqRLp/0Giai1ZnY3ruEMo64qCfhktsCtAU=; b=kLdr6CaKbSAPZ/BeSNwASXwcMO7KzUIHyhrVkoet8KNSLJSC6PBNfhIucpNcpRCppS EsXoV46SflbuTMBNWl+g8jgGYwhQldolw35B8TOjJPpE4LTgtBafxDw7fckY2huQ9pxt UtFD8MFyzZ3s7Y57DexN3z+7k08H5Uag186ZHULY491oZCH4Nz0rMIQzf4td3y0eFdxu pu6LU5b3V3XoGghr4FsLytsiBVDIhil6UdamzPhFtRQ8qTABPCknrTXlLsayDFiOFoQy 7o3DsOYDpxhIdXfr4x0HW6Y/qkjHTRhhG+Ptswg/s8UJjRVFzoPZSedxlonvNv/FnRQE lUQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ux+Q3qKm; 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 j191-20020a638bc8000000b0051372e8f9b5si2585198pge.791.2023.03.31.09.54.35; Fri, 31 Mar 2023 09:54: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=Ux+Q3qKm; 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 S232933AbjCaQqO (ORCPT + 99 others); Fri, 31 Mar 2023 12:46:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbjCaQpU (ORCPT ); Fri, 31 Mar 2023 12:45:20 -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 7CD11CC05 for ; Fri, 31 Mar 2023 09:44:09 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id h12-20020a17090aea8c00b0023d1311fab3so23961268pjz.1 for ; Fri, 31 Mar 2023 09:44:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680281046; 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=PuEDYxPh1iqRLp/0Giai1ZnY3ruEMo64qCfhktsCtAU=; b=Ux+Q3qKm93LGW1CPI1uH9edfXV60TnNyp231STi5a0jylVo3YVPtuFwGbfLcKnphCq suXMco85bicN22P5FfzSSIKWDGaUpFO/PAXuWxGsV3TlPKXTnj7FlOfnr1HxcCzMDgGq GIQQu5zGRy7xh9ym91vUK8bjbWq2iIpQdu8wYOifkrndI4f2/keq74jtn5+P+/18EDFD OdPyvDhzt/0auzhWvdF6+Ga8Gdi+VEBGhEy4PGnzk7tUr4QIaYVigT329Z9wVf5NPQ21 YPP4p3wiyQ7586U95iZEedGGAWl1vZrlFyH/YytW9n6N4D//2T9vUuzDI2ndC4uXUUcT +nOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680281046; 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=PuEDYxPh1iqRLp/0Giai1ZnY3ruEMo64qCfhktsCtAU=; b=WNhB3C/KHLttTD3Hw2qKq0UH2VzhVG0zfnJ5sn3JHOn93i4aYh50+WGYj1azYrJpr1 Ksi0zu2DF1bniy8ubYJAOzeN++nxv//kYo/Ui2uoqILc0mPHSzSBTcidGd+14Wx977Fd NHPjeGeNQFPin9vM98XTGWsG+Clz6NVISRHqIiAYODdir9AN19Rq1WezdAfd92ZGgoKT j538jLCYt4hB1P+RFveBO1EVGDCUJxf0NY8wYmWhdCmH3XD8XyVFhaqmvlMDHPMI6qBI XXi5kvxGnbBEnhPP027I7GB6wY8dwNDfw0JaYzf88WaDNGPBtOpjZIDWtV4+1tCOZBmb PQGA== X-Gm-Message-State: AAQBX9fnpNFg0A1mLwwe+Hwyg54+uCdvGipMklN2m3SYhvpQMZmyyxDd q+BgsKpVOWBx/hmet6gevbPk/g== X-Received: by 2002:a17:90b:1a88:b0:23e:aba9:d51d with SMTP id ng8-20020a17090b1a8800b0023eaba9d51dmr30114332pjb.7.1680281046637; Fri, 31 Mar 2023 09:44:06 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 09:44:06 -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 07/11] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Fri, 31 Mar 2023 22:13:19 +0530 Message-Id: <20230331164323.729093-8-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?1761903052124907291?= X-GMAIL-MSGID: =?utf-8?q?1761903052124907291?= 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 2a51c938bbcb..ebac026b4cc7 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -650,6 +650,28 @@ usb_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>;