From patchwork Wed Apr 5 07:28:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 79475 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp117585vqo; Wed, 5 Apr 2023 00:34:10 -0700 (PDT) X-Google-Smtp-Source: AKy350Y9Occ+83sRP+hSSwh6grAHh4wt1k3BhEWE4cYrI3oUU9E/5vaLIpkpUfc2F0jQO0UmIq7L X-Received: by 2002:a17:902:f687:b0:1a0:49eb:4cb2 with SMTP id l7-20020a170902f68700b001a049eb4cb2mr6562880plg.13.1680680049877; Wed, 05 Apr 2023 00:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680680049; cv=none; d=google.com; s=arc-20160816; b=wYZ5zx8uQBhq9rD/e6w6lQ1LuzJ4jdBjd/jBG7R2V3WP2ghu7ThtvrZbLnP2QAiJ2B V74IpY7tKXEKU7GISgKiCKLcAhcsZiqUgm7DQFxviWjME0kvunKJpDbCYjwBuEZPXq1Y DwKS5OIWiHIJrdDtl7svmtuylPsFUSgpZjmX6MvwlN+Y7BxDoWUm+hOqGUYLVg9FDNN5 NL6v5dANDaNLFENUEL2+s+4UpHFisJQK61cUlLE2L/IMwzEExR/m7T05Tf0uA15NWdSz GwLwlOXMQmw3Y8tLb4eJoA92+ob4lN0gtNVstZ6XxAR64zz0NQnnAQ3WBGSVnRHOqIGw Hxcg== 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=npkuY+xwZCag3vabKDgGY4ydDrnsBnxJ4QYP8MpzdaFEKk3HnIfoNGIgOFd0s53hex ANeTD3pQRCK4kmc+atXClfbpqo7XoOEfPz/DPzGeK+GauGC+GrK/bgFeVdXcR3MmAbMs ftUFsWM+KhVLMPldaT8j8bJwgJ0YuQHSdxxN2ApBNidTJxaT0woI+Oh/Aj0za4S2hGEm bCvC62XY+QsQG+co2AVf+LLLAblCc4Q6lIsq+hL0GK80qCbzeQ6uctSYDiSLLfOFByGu jlWfyQ/Jl64BU8fszl0kTwMRtEKYxNxqajzAExwmPbGQiED4KJj1SNqY6CzfFjnkCb+a lCXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iXUMZHc4; 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 k14-20020a63560e000000b0051323bc5056si12003482pgb.860.2023.04.05.00.33.57; Wed, 05 Apr 2023 00:34:09 -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=iXUMZHc4; 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 S237267AbjDEHcy (ORCPT + 99 others); Wed, 5 Apr 2023 03:32:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237096AbjDEHcZ (ORCPT ); Wed, 5 Apr 2023 03:32:25 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5C0059D4 for ; Wed, 5 Apr 2023 00:31:45 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id l184so12060353pgd.11 for ; Wed, 05 Apr 2023 00:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680679903; 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=iXUMZHc446PS3IQBnpaoYwlsVWtesXSS14qR/2raGp8D9arZ2hC9sa7ua9uL3LlVWz ODVIdaWILyr+HCGJo8szz2pHi3D19q5+yC2y3dK5Ue2H96BOwQ7Bx9GedzGCAz0TSqzQ yLnvyeBLmNEoIveXrjAFAzyx6gjpmqkCFwz0gyUerlMBPip6iTofHr3jRF5glsxqTL3Z O5oGrcm8Gr7qkVYb/sd3WePQtA5khwlR2liNu5y0GiyN/JA+z50i2VAsfp1VV2osfDBT s078Ck6ypD0yAnFyG7Kv0NmlgK94VgCD2CKuLabl3K+D4yGbBCW/HQC8L0g8o3lfeCnY baEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680679903; 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=rVOFmfHRUxxakn5bZzwSOeqtQuXBqOwoM9efj9yKjuChKnUbjPe8/3olf0RJkLNVnS i7kG89rNGwlfrWc89DqImjnifZDYTfqC2vda664CBysD15vJew6DogZSVzKNuTTgzu2O D+RWnCCrmN9u8Afljn448tUCgCqCCP+PGMyMJxIqB3SgdXcwtKCitFhu+qUvjAVgZ287 YMI91QCE2S9SL9Rsu6jY5nDzWdgfD8YTRXkeXDV4Ui+uLjjQw8GEjvQsArg0COn2hkP6 Xa2CC0vtQzU/uBEIv1o8L9P1xYkKqum5GL202zv5QnJohXH+lkxmUB5W7uzDCfjyr4Z+ GPxg== X-Gm-Message-State: AAQBX9e2n77IBYHEaUoSPSJu/Gp8FXLz4uVfuMna8Px9/snHyfYxRNl5 oKiycYFb6SndzwnoZjgp6VSXtA== X-Received: by 2002:aa7:93da:0:b0:62d:d748:94d2 with SMTP id y26-20020aa793da000000b0062dd74894d2mr5410013pff.28.1680679903377; Wed, 05 Apr 2023 00:31:43 -0700 (PDT) Received: from localhost.localdomain ([223.233.67.41]) by smtp.gmail.com with ESMTPSA id l7-20020a635b47000000b004facdf070d6sm8781507pgm.39.2023.04.05.00.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 00:31:43 -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, djakov@kernel.org Subject: [PATCH v6 11/11] arm64: dts: qcom: sm8450: add crypto nodes Date: Wed, 5 Apr 2023 12:58:36 +0530 Message-Id: <20230405072836.1690248-12-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230405072836.1690248-1-bhupesh.sharma@linaro.org> References: <20230405072836.1690248-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?1762320764051186691?= X-GMAIL-MSGID: =?utf-8?q?1762320764051186691?= 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>;