From patchwork Sun Apr 2 10:05:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 78230 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1666935vqo; Sun, 2 Apr 2023 03:20:13 -0700 (PDT) X-Google-Smtp-Source: AK7set/1JfeozttySJGokNeKhmyA+1iRk5m3k2Ivjtgo4JsEPSqp6XdgD3DlEJfT8P9Cqh/DYCU3 X-Received: by 2002:a05:6a20:b2f:b0:dd:44a8:9d2b with SMTP id x47-20020a056a200b2f00b000dd44a89d2bmr26867351pzf.1.1680430813426; Sun, 02 Apr 2023 03:20:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680430813; cv=none; d=google.com; s=arc-20160816; b=lcTV+P66ZRUVe7LtwNbSRbYWZpzNh2xkN+374tA/1OdheEWzNNolheNsgb0sNVg4Ft YeWagH81fyAaVQylYH4ddgD/SraxnbMwzfODw2Kj/rrVdVbbvuFJ2zxoG2GFWe9Ya1Ad q1OTlqVtYlzRRnmqr4TtgEoeNJ604dTnurYXZr+A/iaMTFcoPhIAx0ry1UrLpAp78Zwq XjZL2HR7IOTJZhiEl6QnDgjOdj2i0bwq76K+BYChnghzXjk1Hkor1FNslkaNYH33rXNN G0UzqUDusSq8lNeRhFtdx+0jk6kF+b8oyFiHWaxQVJmzJfZjEPvJ0og+/jP/rg62MH5a 11xg== 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=Ac9/fEeWdOMWYa5xD6k3TcfOzVm6spkdJY/C5ihZ7W7rYlXtUHwUA4WbzagzIwvdgA XMMFQaRiMCJBuj9FIcWe7Wqf0z/ZVWGzL/DmAyLEo4wH72WdCDs7SI9vfEAS026/mFal Gmk2d94I6h5tZFtMLgFNd7N9obJCammoKlVYNG1drBR7zcPYvNqvlqaXOirA2GskaPh2 KHZl1Pp61a0KP3usFxBiiLDi6BpARbgdbGqNAk3Lvx61JjrvUw8snfvRJzc+69eJndGm lUVmbZRbsBX/QxjdaSZg0al70PuYigtjOs0eMgZ+Lh+AZGRGtwCyIpYEmCiUOp99qr0z 53cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XVANtkx4; 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 z4-20020aa79904000000b005de484ca9d0si6487034pff.342.2023.04.02.03.20.01; Sun, 02 Apr 2023 03:20:13 -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=XVANtkx4; 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 S231137AbjDBKJf (ORCPT + 99 others); Sun, 2 Apr 2023 06:09:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230503AbjDBKIw (ORCPT ); Sun, 2 Apr 2023 06:08:52 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95BA22C9C5 for ; Sun, 2 Apr 2023 03:08:13 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id cu12so17308115pfb.13 for ; Sun, 02 Apr 2023 03:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430089; 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=XVANtkx4Ujw3O5BQDdROvCmsJ6bq7/P0CEhVqCx7RKpYllQpA+HHyVWzXbE0HS3xf0 Jd1UOqNKuV+vl8IM0Or/7X/3Yi1xw1HwlHBZ5PkipbTnWSMrfvlC8bScqXriH7n0NbhY Jy3qhn1oYCb8KTdrAIThAkQKmXygHhp/XqalOlg1jSpv7ORCmVnK7qzDXvO3BJ4LuLpM /XaTs1zSCdfyRVskPDEArs3wjKMo1c01vapmqf2xpCUA0bvLYjbNGFj/ccFKJBxwNCZt zucClueWyQIXFy8Iwv9EGn9mqKey7YNJycezAEPBK5+i2cj8wVlsSGGI+D2cvKjB7gUW YDxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430089; 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=bWgXu/uuYOVffjGswWpUHIvnhC/bQUa72u5XgjMtXK0Jvizl0W8ZLAi3/UhJsNAbuh xUNXJ89yJKPGLNHnhoEHM91WwrlLgKhDq5uyQeCIHcedBrUgUm7eeT0A2IALvTAkqK/n oe28hxXFKWBuEULcobEl2w3R9rhvaffJU2MlUNsaYQVY7z+2+buwOpRGJw2HyKR2Ns2r zYuQhpZR4lY5XS1Treq6aeIUXEKPEupzFBYACv/L7GamfMeS3f24djral3wjxdRqv7kj HBrLfxqPyrBP+/KqWxqywvFZ7CaMPu+6rNvrbS1lrmGALs2WO5YAR+x2LvyiyUku1DT/ zuSA== X-Gm-Message-State: AAQBX9esEC1OkgHEIUE0EU1GdDCGwQNnBjNPZDrEd2QhhjNEcNEm0FgS geMb8JqUQLV34EvT4PzfMoiDwg== X-Received: by 2002:a62:8401:0:b0:628:1852:8431 with SMTP id k1-20020a628401000000b0062818528431mr36133939pfd.30.1680430088880; Sun, 02 Apr 2023 03:08:08 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.08.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:08:08 -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 11/11] arm64: dts: qcom: sm8450: add crypto nodes Date: Sun, 2 Apr 2023 15:35:09 +0530 Message-Id: <20230402100509.1154220-12-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?1762059420824610002?= X-GMAIL-MSGID: =?utf-8?q?1762059420824610002?= From: Neil Armstrong Add crypto engine (CE) and CE BAM related nodes and definitions for the SM8450 SoC. Signed-off-by: Neil Armstrong [Bhupesh: Corrected the compatible list] Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 31877f18dce2..d7a28cac4f47 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4146,6 +4146,34 @@ 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 0x28000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x584 0x11>, + <&apps_smmu 0x588 0x0>, + <&apps_smmu 0x598 0x5>, + <&apps_smmu 0x59a 0x0>, + <&apps_smmu 0x59f 0x0>; + }; + + crypto: crypto@1de0000 { + compatible = "qcom,sm8450-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x584 0x11>, + <&apps_smmu 0x588 0x0>, + <&apps_smmu 0x598 0x5>, + <&apps_smmu 0x59a 0x0>, + <&apps_smmu 0x59f 0x0>; + interconnects = <&aggre2_noc MASTER_CRYPTO 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "memory"; + }; + sdhc_2: mmc@8804000 { compatible = "qcom,sm8450-sdhci", "qcom,sdhci-msm-v5"; reg = <0 0x08804000 0 0x1000>;