From patchwork Sun Apr 2 10:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 78233 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1667446vqo; Sun, 2 Apr 2023 03:21:44 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEVbMFBqSwa/wdm4xN1GoCH9BYMjNkjha6H6YBuDYGsNSrG0dyp5712WM1gFqIARcthRlY X-Received: by 2002:a17:906:ca54:b0:931:a0cb:1ef1 with SMTP id jx20-20020a170906ca5400b00931a0cb1ef1mr29239722ejb.7.1680430903842; Sun, 02 Apr 2023 03:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680430903; cv=none; d=google.com; s=arc-20160816; b=K3rhtYtqwJnt7CB9B7MHGGJZ8V609OeUdslEnNhAKzfxz5YlpVb50FJrGb38wpO+I/ JBo6/kf6HVeXTNzDAG8vUJd1RRIN1b558iUTpDfkiXmJNKP/DrwMzAzpBPwzxvxtx1Uv lKvQzYViJ8DwHbh/+SkgxDtZP3HuDDxPmouEDyXx1kxT5CnVrQCdyXLAtarz9n+5yFy8 SXJOE9/W6c2frkpuQTN9/517WgnboLByP3vN98qZiXpnWpw5jLWkwcVdtRBCuCsk6C3d KPXoblvsm0c5hbiyty+f2SGUxDs7y2vU5mYywRmnI6PpoOcsC94uYe6ETam2uwZZTgrZ 10Gg== 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=AFlsMaaf5adb3uYfwY8a8o1c4+ndcYLkxwNGzL1eBLXQdqqS1U1CyHUQq8Dcwz+9J/ AjypFHm9h6gEP6vRu4mnvb1GjqlwFRiewozf5htLxG43LJljYuOq04/iwTkeO/GjAk5y w9XQGWiwOcfAk68OZ9Ub72DwWxrryLv+OcbbVtI17GSofz7w6Bvk4zbeHwWIn6Hx+ED+ okRKHIDf/gPyFGZxamWtKfRVH1TVGOk6gdrwwrGOfoMVvvG8L8Eb41UE6fcfsTiu+A6a 4oiAwN7+d/H6B4s3LaOM99TsgZsdxAbH2nRyOGUZbYSjv+0AIWm3KGMrZDWr9jyy/OJH veEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gpz6VtET; 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 lr18-20020a170906fb9200b0092beba8fe87si6051526ejb.318.2023.04.02.03.21.20; Sun, 02 Apr 2023 03:21:43 -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=Gpz6VtET; 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 S231128AbjDBKJL (ORCPT + 99 others); Sun, 2 Apr 2023 06:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230476AbjDBKIb (ORCPT ); Sun, 2 Apr 2023 06:08:31 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F342E078 for ; Sun, 2 Apr 2023 03:08:03 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id ce4so4285456pfb.1 for ; Sun, 02 Apr 2023 03:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430080; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=Gpz6VtETaK//avdhCorrlMmSppv7bZNZ05V/38SSYs1jShO+ddJ+H44PZBH4+dhDeK O91qo1JzVuicsuTwKStAPsONstVfhAYwUh08ePzXXOF5LnYzFprDXzEFziInIwc1xtwH ZWCNms4tHDCF91QMoVtiaIxRQVXHkL3lE13d/kVM7c4CsNbfznhM1gesdrY+BG93AAxc OeLDMmURbjO4hvPaQ9EIXD8UWDwWhk28YeWHjL6Hnebf2jfnwgRuCtH5/X1311mytVrV tzNagQUZlgWGaWfC0JAnMXn5t9LMlOeRlHPEocecKA1yz8bgRUnuoBzVfMUlsUcj79YN AGcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430080; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=m8BIIJ3rTNdbecJ3zGBTxTGRGzw9n9Gg+WQQiLouZKDak3tR8NSmkqoNBWr4lnU5wy RYKQihzcmaAnPZ6KhsX/f2462DqnZt/wgj8Ve9oCypgsgtnbdRsMyPn3FwD5gy125k7I w+g/gkvVJcZ0pxzA9M2EGpHjdMq/9g9OWYLMFJnQ7oAJZ4nOl88iBcxNldQxMdcP9ffa v+5n2BiWwpZLsI5uetskCQMILnGTjJO5/huH+VyzK8w8nCH3xjl7XHAe3GAVs54XKfQ0 f2VAPl4W06uHA7xOdjSQ0ycn0f2WWWLFMCo+nhupRNSITQN6NF2Km0YGmL8qmpkcSLs7 MwZA== X-Gm-Message-State: AAQBX9fvMRCO6xJc/7nEgtf9V3CvrMvPqaKQ5eD1ZaBPV9LZM9wSUzil 9YLyFNH5pC4EXYgTukugdQXCkw== X-Received: by 2002:aa7:8f13:0:b0:626:2ce1:263c with SMTP id x19-20020aa78f13000000b006262ce1263cmr30701528pfr.5.1680430079934; Sun, 02 Apr 2023 03:07:59 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:59 -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 09/11] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Sun, 2 Apr 2023 15:35:07 +0530 Message-Id: <20230402100509.1154220-10-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?1762059515469394595?= X-GMAIL-MSGID: =?utf-8?q?1762059515469394595?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8250.dtsi'. Co-developed-by and Signed-off-by: Vladimir Zapolskiy Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7b78761f2041..2f6b8d4a2d41 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2222,6 +2222,28 @@ 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 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8250-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x594 0x0011>, + <&apps_smmu 0x596 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>;