From patchwork Mon Sep 19 22:08:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12981036 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1E118ECAAA1 for ; Mon, 19 Sep 2022 22:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+9aXJIlBSHopQHy9+Y8sh4DipUn5M4ncM+Te9yWjZAY=; b=jS8rlbVc6ExpT+ ad4CpiSwQanwazAizhUdTTr4k22CWO8xlJZUcdDuy53CqnL9Vc4eQw18I/Ss0fMkshtTyAo7U6Fcg 1KX0dNwoq68MelqP9/+y+lLpE65KWxtADLa1MSBJItdEX+qDBGxLpGJFN73c0IOrwzIu57WVR6PX/ ug3EmcOVUjWzKoogNTUKpbNx/tLK9zGBB69kiS5jaqUQlSOyMXAd0OQQIk/L02gKyMXJQM5Vuunx+ lhN6r+V5th4IRFLPzrdhh/OCD4ntesfJIMTi/DKj02oTd8xTx07aWftx9idg9/q1FqtgdXbZ496Xp JDLt6P2+bBwSFc4frkyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaOwZ-00FlgD-Ut; Mon, 19 Sep 2022 22:08:48 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaOwJ-00FlWg-Ad for linux-arm-kernel@lists.infradead.org; Mon, 19 Sep 2022 22:08:32 +0000 Received: by mail-pl1-x633.google.com with SMTP id c24so535404plo.3 for ; Mon, 19 Sep 2022 15:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ULCMcZ+Weq8ahgDLA2SKhRRxvxoclcBLchkSc7jAqNM=; b=Ye6300eXUIZAHv0rYRGmO/Zyt1gzU2bx2cqLk43yzM3yzDNvGg4EZx3pYE9epsbWdZ p2AlgRmDol1nKMKgPGD9jtnOmW+GcpuzmWFRvq0Q0Rrsn+8EufXIQ8Vn0NUTcRrKMwue W53S1EyVZSPkj37Xe5I2ih0I7PG4nJjB0p1HZjcaRMJCFfwXJL7soGmhlf23XgRKC9IS Ht1k7wb+7ozD3MbZq4j6ctzlM9QL/UteUSzc/pRBY+sFDgE4nmOYzpJ4OM2dWnsEAEJ4 N4QLgKUJtLInY3w/egXGME3iGFveNDsNi22BoYZkAW4icA7a7QG4YH4+hMtwlToaG0/H upVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=ULCMcZ+Weq8ahgDLA2SKhRRxvxoclcBLchkSc7jAqNM=; b=VDvrIFWsEm+YL0jaJ0O9P/TE/8llRzeZDRGkDWKP+iT3/iIKapEZM9LWOnvYlGxjmx fSF9oQoVAYrw8q4vjEyRE307xoUHNy1nm5WEirR8eVvWxP4YeoFqbA/1PRP7KX8MYHz3 M5BcMxMJHv2mgSzDuU9nl3UHJm1X/9N9lAqZr/9oM+/Z8OQigGPwqiJxTwI70Ad5Iogy dlUEOiLn3Atn5yJsoZL2XE2YZG6CjSVvPP+1QnizT6BUM7HZYQDNjjUrAIu4FD7mQchb 9FV90g0RJxRZUOGY1MAbj+H+/j3SeYPOnZHdHUP/lisgEA4dM6p8YT/Ngwyf72AWRrJE 34jg== X-Gm-Message-State: ACrzQf3Y0yGbDX5prmtcM257v+9xg7Qjoh6Vxer0Yz/v8EbnRjfl9jrQ CzlvxBeOnWO7qU3pndj9UGVW0Qrdk6Ey8Q== X-Google-Smtp-Source: AMsMyM4aSeZUrbhqk3LyPbALtkW1FXKWQPvHMVUc360mF6o0d13SfcoVXtxgDTmd1/NgaQoOYvrfTw== X-Received: by 2002:a17:90a:fa8e:b0:200:b4b9:c6f3 with SMTP id cu14-20020a17090afa8e00b00200b4b9c6f3mr366671pjb.190.1663625309322; Mon, 19 Sep 2022 15:08:29 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:6535:ca5f:67d1:670d:e188]) by smtp.gmail.com with ESMTPSA id u2-20020a17090a6a8200b001eee8998f2esm7068167pjj.17.2022.09.19.15.08.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Sep 2022 15:08:29 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, thara.gopinath@gmail.com, devicetree@vger.kernel.org, robh@kernel.org, krzysztof.kozlowski@linaro.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, Jordan Crouse Subject: [PATCH v6 3/4] arm64: dts: qcom: sm8150: Add dt entries to support crypto engine. Date: Tue, 20 Sep 2022 03:38:03 +0530 Message-Id: <20220919220804.1047292-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220919220804.1047292-1-bhupesh.sharma@linaro.org> References: <20220919220804.1047292-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220919_150831_400183_7EF5370B X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8150.dtsi'. Cc: Bjorn Andersson Cc: Rob Herring Tested-by: Jordan Crouse Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index cef8c4f4f0ff..6e21352a158c 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2041,6 +2041,34 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + ipa_virt: interconnect@1e00000 { compatible = "qcom,sm8150-ipa-virt"; reg = <0 0x01e00000 0 0x1000>;