From patchwork Sun Apr 2 10:05:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 78224 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1663138vqo; Sun, 2 Apr 2023 03:09:26 -0700 (PDT) X-Google-Smtp-Source: AK7set/+KLystt2rdQSvHq+zmuvVrNaowEkYA0G2xISreOiCCQHBRcd11SKmaY5GdoJ6566+ooAZ X-Received: by 2002:a05:6a20:9304:b0:d5:8518:1981 with SMTP id r4-20020a056a20930400b000d585181981mr25840221pzh.42.1680430166503; Sun, 02 Apr 2023 03:09:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680430166; cv=none; d=google.com; s=arc-20160816; b=EhedG0+7Jn3az52szxIxyoQp0NsXH1TLQ8vXkGBRt0ux+9Q5kkbVaD09sseXSLizsh glZGCstEhTY5OnsZ1RGrnRhAcbvP1bkBICXrGBUjsZhho/nK6Ef7WJ3JmFAdmUfJhiD4 Gp7DKptWuVMkT9L61Xz8O8UnzuTjUsin4Tc1znFj7cEqTk3FEnxGfnILIHpHDOj2eJtO foBe0a9xuW+WDTQ29Okzf1Klw6vVR/9sHM0XdtbnFimoJrPvlTizF+YssQUZY2olXoRM VFX4xZZ/sIzRzh/7FZ0e8J10nDFSujnoisifxiPz+Ws2U1Ni+aGlaXpyHJSS31LsbyjE 0o6A== 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=zYfSPdUKigD+Nxx9Om82oGKPr49GOHR6JMjsjKF3pFKum9UR5oFLO2jNa0OT09391P AB1h8/kMmyuo2Im/Cm+6F+q8ioO6+v+bI/MUg59m4vyFqhcLJ9jLGD9WIU+9KKK+rtqs knmskBHpvFJxlclfWf6YJ7Lmb66xl5ftEHWJO7DPoQompHG1Q+h9ah8VVqu4TW92p1KS o+2Gk7yo1CfnYgEBjpVHdYsdylSC5or6WX735xarrdSdfltXIXg8owh1MgpZop4Nh8p2 wQIgGv9PbDkYRm6yhegqng/W6fXb9Cd2xXb06Fs3gU3weHQfwFIA9hGEy90H3ZBDOD+f PoaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NO5QchAA; 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 t189-20020a6381c6000000b0050f77f21491si5877980pgd.423.2023.04.02.03.09.14; Sun, 02 Apr 2023 03:09:26 -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=NO5QchAA; 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 S230461AbjDBKIp (ORCPT + 99 others); Sun, 2 Apr 2023 06:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbjDBKIN (ORCPT ); Sun, 2 Apr 2023 06:08:13 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 712521C1C6 for ; Sun, 2 Apr 2023 03:07:51 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id qe8-20020a17090b4f8800b0023f07253a2cso27711598pjb.3 for ; Sun, 02 Apr 2023 03:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430071; 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=NO5QchAAiX8nxK4rrdvECkFevEeGuWkK4uaqqNoeXGSX1jw/qgyZADY1FXvgWnd6TK D9q35AYvvrRjzSsPVabk6HveQgT5bqTv00HNFOYTorYKfl3UMuaPv1GmkjwCa5kRucBP Xt1yxsJ9BfLlios0H9g5G1hmNwtlf4Mvb0y3Me8TXmTDaYfGBVZeGx0nnA3hmn3XaUvS n48KLXQFag51mE6XL6JpasLFKQzinX/vKvunX4sSl+f8s+HI7RXVnWD27kmDrr+Z47hj hwE7BDptQc/FX0uLr3OklU/SN7yax/xOhCI7dta7II0EScmSRKj1B0KhIxkAs2tWOz2w xmjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430071; 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=Oq7H9f2nua0WMtj49+mKmBhpOGyN1nPGrc9uKw6KKjPYRolU/YZ246/yxj/t0YzN6G d3oOi3+bOWAYDf2r9cxUJsWOj905imCZ/wiHezup97tfYSwtJCsQN011ZSBPYlcChKmG VBlUH8RFGD8M6giOrpk5lq9M21+T0JoS0U7s04vro2XT1xJFZ8EXqbAS3vZ2mtbxY9et byNJcNMDd4JxEbbQsvQT2T678InmWmBVTZQERXGJZ6fx+IDuewJHUeyQtrOheSoxl6fs XPvt6vwnO9iemKv/gEdUcLti4lBSn5DONJ4VKUZBgOE5CEgdUYfW5iP0jfOP0IF9Eygd PyKg== X-Gm-Message-State: AO0yUKWSopViSz6u14fg0BkRvsEecKsdoMaTyTSRcuMxgByYt3AsanYu hB44yQkZJ9q0iaGsuJ21mKKEBQ== X-Received: by 2002:a05:6a20:6ca6:b0:dd:2577:4018 with SMTP id em38-20020a056a206ca600b000dd25774018mr28432249pzb.49.1680430070996; Sun, 02 Apr 2023 03:07:50 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:50 -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 v5 07/11] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Sun, 2 Apr 2023 15:35:05 +0530 Message-Id: <20230402100509.1154220-8-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-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?1762058742179078884?= X-GMAIL-MSGID: =?utf-8?q?1762058742179078884?= 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>;