From patchwork Tue Mar 28 09:28:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75936 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2087210vqo; Tue, 28 Mar 2023 02:44:31 -0700 (PDT) X-Google-Smtp-Source: AKy350aPD3lJUeeIEq3V5OLr9hCpMgBljngKzlTgmZ0d/4NDhvKCIavOZLJdx44OMn6N8Obsfm3H X-Received: by 2002:aa7:da12:0:b0:4ff:7116:189e with SMTP id r18-20020aa7da12000000b004ff7116189emr18594175eds.31.1679996671614; Tue, 28 Mar 2023 02:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996671; cv=none; d=google.com; s=arc-20160816; b=pLIgi62wMHQEQpqSdzEAYFDLNwnJjDY1AsDxG30p0R1o37WrELEv6cp+vIAcQiUt4m VPB/73WBUNhFSbdDCO4Yc9cHTnPSkeVby1WPklT3hZl06WEyys15EVtcGkTpCHk1AGxO SPvY3kSqR+fUcZSWWP36szWizKqJuKiPV6dLf2GXC/3DU4ua/vxM7BB0TFSEPf7EFva+ 3py3dUH5yknGb/fiNvXRcpseXbTnI0gwlAm2n/v1Gwzpjkdw5QREO04NdN/JJkza/FJ+ rwGZ6lnow9h8IVbNIbnMVVdmaL04NnwDq0MD8R9tFLWfi8/YrJWLvDcccUDnRNV3N+a8 96qA== 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=hRiii3VTMRKRG9NJ3tWAhJVXIfpCRCutmn49vntfYF2g9hmBL+/WVkLkxp5U+xLSNO pPxwJ3lB015vXtMqlSaD40HZBSfRZYY0aT/Vs4UkCvm1vOTA+eyMnhyQmZmIkO69z/+o kQU7MbiUscBuvq5nA1rr6gMvW+cemNl8gGn/tsBmZhIkHFW9IS9VDjSKnIoNYi/GA4FC qmyPBw4RgfeBQN1os009iNTTu2A1Q0RSk4I+984YBIy5Sxpbn5bVwCj0YlaKiqXhI9BV Xe2QkWBW55XZecukjIvtwYdECa+ayVVQnSrnF7N/ftoQPOlUDCooiFro7KTJm0Rg+Pze Jk/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Bna4dcnj; 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 r17-20020aa7cb91000000b00501e283279fsi18060347edt.205.2023.03.28.02.44.08; Tue, 28 Mar 2023 02:44:31 -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=Bna4dcnj; 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 S232573AbjC1J3H (ORCPT + 99 others); Tue, 28 Mar 2023 05:29:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232644AbjC1J2x (ORCPT ); Tue, 28 Mar 2023 05:28:53 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A790659B for ; Tue, 28 Mar 2023 02:28:49 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id qe8-20020a17090b4f8800b0023f07253a2cso11847752pjb.3 for ; Tue, 28 Mar 2023 02:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995729; 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=Bna4dcnjysLL0bcaRAvM3Xbv7qkf/tbSF5JvaQh9JBonwOssho353RcyEQ+7+PBdCq liHUSu4DF9wUclqe8xIfeWPCOGWXhpwY7LzGclJE42HafSOmoUimcuMeH3jTK/uzdKUb zYR0cilGv/LCMiXvuIj2EDH7FjYlAVgyOmFVze7ZgjMqLcWQkzRpjNT6JcQ1mZvBcm7B Ea6lv2xhn9NPMR/rITkdK3tuTqgumz6m3WzF0925IYIYckBWRNOOdtRUw0whHiGjLL0o CZ4EoGNlqL+FJI3DCOsVVvhzqfI7fg/BBZ7UCugL15IwQ2hUBb22ldBCRiZUGgaQ0DUs xClg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995729; 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=Qcg85Zzy/rNytsVxPDbWrr9OgdYYgaLsWt+6zcunD/3jtPTBeiHVEZUMJFtYDZcXgD OObn2XTEri2Vs8okven7O1fp1FoZaVR4MJFcxuao4t95DXyXJVNFxl2EeMAkivUah/cK FLvHtg/3IXOvypzj5ILk1iQGBpwR86kft9PjKZIhjXWRTvaPTBPOf3Kr2/skxG/eV8wy 8rw2XwRKBhP6Z9rxh3PV23DWSbKc1/CAcL2y0tM4NzsdMIAQLBLtcY/09OBi91gLXcTA 7RRPKdPqaq9fg32Y3r8WehmL3kRHBflZC0/SVrAs6BxWtmJ4VNwF2oqLSNKYwT3uS7oB IStg== X-Gm-Message-State: AO0yUKV6wC+LrE6PC94J+uHRSa9PA+A/o/i0TG2Kt3Lj6Q5yMmBS0lCo cx42fytZuKdQ3Su0zDV34iHemw== X-Received: by 2002:a05:6a20:671f:b0:d8:f312:b3b with SMTP id q31-20020a056a20671f00b000d8f3120b3bmr12843229pzh.3.1679995728630; Tue, 28 Mar 2023 02:28:48 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:48 -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 5/9] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Tue, 28 Mar 2023 14:58:11 +0530 Message-Id: <20230328092815.292665-6-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?1761604190273248645?= X-GMAIL-MSGID: =?utf-8?q?1761604190273248645?= 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>;