Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5955298rwl; Wed, 22 Mar 2023 04:48:08 -0700 (PDT) X-Google-Smtp-Source: AK7set9wL/1pL28V83AACj/HBg00zX1dc0mo3l2NzkBkMJLRftvT+Ql5tfOC8oZBF3TWpAdO+gMH X-Received: by 2002:a17:90a:359:b0:23c:fb54:95d5 with SMTP id 25-20020a17090a035900b0023cfb5495d5mr3003031pjf.41.1679485688257; Wed, 22 Mar 2023 04:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679485688; cv=none; d=google.com; s=arc-20160816; b=e5LCqmG2RSUXbL68JnC9nMQg33BfFxZIg7vImlppCaLmy+q3DdzfYqMlPvN6EdB8bl Ni2o4TWFda+mVcLvlceUeC78j/9q4LSTyflAd2Zf+5V/MDmzItTatA8HiEZQGxK7Erth JPeZY2l6vqrSWDpXMGsWCeiO5SblRLvkgtgae+8+o6VOQapNGKfgdICElZJAlTzvo7q2 zY2T3ZXD1yOuH65+xKfLQfmQrX90Zwvq34Ql7W6fvLSJPEGTM34t7tWImbQtvZbqpaPn nRskqvFRThvtQghy+EFD6BJTYWWpQNsK6XOR8eJPOFZjPhMaT5n7WboJRlfFN3nJnPFs Vz6w== 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=EQ8VwymictzzawQ2njPv2aLJoWuJ1cUjyRKGWrHdB18=; b=TzVd3RF+tqgG1WIrG8mOJ2tTgV4rrhKkrHccEStFFTB2uFVhh4z6cn6BEGPNMk0EmM LlPFzZs0eaomBpZ/+I7VQ4JLsNTzSkcfjziro/BsAJOB4FYY/2WQkTkvgj0KLZJJq1YF bUEHxsPlGVfNHPy8trO6YmHjokOgsUW6ZWW4a04jbWyf1l8IMu+4q7Ev0HGhY8V5BWdD nhNeCqA5X116BQ1AZZ7gUB+kL38Z07GqeD/v5+0NQbNos3M3S10c2TxLosBQd7q6bMXi pbjzswjoJwpzw9l2omZS65UlFB1zRgx+uIH9pDE8QacEnPPIkXyApy2MsgkVN4hRsofb GIyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vGEPJkBY; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a17090aea0800b0023d22d0f0fdsi20925277pjy.19.2023.03.22.04.47.56; Wed, 22 Mar 2023 04:48:08 -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=vGEPJkBY; 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 S230428AbjCVLrV (ORCPT + 99 others); Wed, 22 Mar 2023 07:47:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbjCVLq4 (ORCPT ); Wed, 22 Mar 2023 07:46:56 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A1DE5F536 for ; Wed, 22 Mar 2023 04:46:24 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id q102so3744316pjq.3 for ; Wed, 22 Mar 2023 04:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485577; 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=EQ8VwymictzzawQ2njPv2aLJoWuJ1cUjyRKGWrHdB18=; b=vGEPJkBYf3Vzk15vG4ahRhn4t8IHl+EXIB581wbvhYLvLeNDQGBQ0jU1IEayMmlRN6 rljhxAVz6PcR07PWd4Ia1pVUoiIkHQOquVubotU/dJqA/sgh1zmqS7BgA2UrSVcKfGtU 85jOxF2Wuwz7Begyujoz7wy6g9tchOX8jXnkLWkZzgrmrNX258yOiwUEFUU8x2ALfrLW BizAZPyqznBszZAh5TYOy4SJxzG+xLzOae3kCE5gu7i9vvNWhhodpURsyeFhQ2qlwrYo 3KDBPjGjGvPxtSny7hMwxfVATcYw6Ymcxfi2pWanTVFyUwzoAbO4Djsk3oy4N2Q0n+WM ktwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485577; 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=EQ8VwymictzzawQ2njPv2aLJoWuJ1cUjyRKGWrHdB18=; b=tVYxDK/P++kL8KkkWZBctDaqqFRRB1nYrzAmDBORMNEUYtDmBielA7lwLZbOnypDBN Z/SYbDr3D+R3E23GX2/LewAQumMyaS1D0gzI16juNcmWOiDheLO3W8sf0rDEBzHBPl+2 ojr0WM0DhrxIZ0ZUhoUA+/xjocU9OXiMcq48dH/uGx0UH2kE45vzwhdOOc3GJu0knttj pMDqRGeEak78vqTbArHU9qvlJTbABLHh75oiaWv8giQBTmJvP59zvxWlLeXVUVF0GWWY MMoTDjx7jXU1IEdTgQqqjYPSzlMlq2RcHHRr2Q3pUmZpbKa1TmM/PZ/fyINK55jIXPI9 /oSg== X-Gm-Message-State: AO0yUKXKmHiOC/8Ryo5hk8ejKxCVichFhN5Wf4lYY33+77ve/iKDPHKj G3JGHU9GSOexKH2KNO8Rl2Kt2Q== X-Received: by 2002:a17:902:c94b:b0:19f:1e3e:a84d with SMTP id i11-20020a170902c94b00b0019f1e3ea84dmr2974008pla.64.1679485577446; Wed, 22 Mar 2023 04:46:17 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:46:17 -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 v2 09/10] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Wed, 22 Mar 2023 17:15:18 +0530 Message-Id: <20230322114519.3412469-10-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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, URIBL_BLOCKED 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 Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8350.dtsi'. Co-developed-by and Signed-off-by: Robert Foss Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index b2f1ea4b671e..39ee7ab78387 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1730,6 +1730,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,sm8350-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 &mc_virt SLAVE_EBI1>; + interconnect-names = "memory"; + }; + ipa: ipa@1e40000 { compatible = "qcom,sm8350-ipa"; -- 2.38.1