From patchwork Tue Mar 28 09:28:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75935 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2087126vqo; Tue, 28 Mar 2023 02:44:14 -0700 (PDT) X-Google-Smtp-Source: AKy350aG+x6m8dfASxMHp4tAIpRMk1tOhSgC+PJT7iIsd4ZXOoO5vTZSHad+ER5ueUV5/zQUqOpV X-Received: by 2002:a17:90b:4b89:b0:23f:84b9:d7a9 with SMTP id lr9-20020a17090b4b8900b0023f84b9d7a9mr14753190pjb.18.1679996654727; Tue, 28 Mar 2023 02:44:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996654; cv=none; d=google.com; s=arc-20160816; b=V5ODpsl8KnZVDas2c/08UprRvyv86lcu5fj8MBbN5uCBGpt7MHsVqubs4L/a1sHBJx 57iCmxpnRJzFJamSItersubbZg3PKebTBRSD/cyAd+fHo4RVfB//flN2xwzfYrCgT1PO HeNfF18QIuF0qjs6RrvxNEDYQZVkdRy4NifrpFDUnN+6F6/UywG57uadbdXnzKjXASde OTqoE6snenLGWovMQ0Z2U/5VhYMg0Ln2nRhHKKEuQIMxUaFAI1f7w2GjOaJZsmkxLP6O w3WFOnc7kKQc01aodxZ6FH2VVUS3/zokWtDbU3MQV54vLlGhKlmV/7CBrhSlo66n0i3s 9mnA== 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=pQeWB7xzGpVsc7eSrbLdl2ydZmcfTTPBoAGH1zyjD1o=; b=aE+up7HpikKIwzHYZpGj0EqDYAblzKr6VPzYKNrhYPUcq/f3CrYy4wFznzJtUCoSOD R8QIWXv4B5epYa4/CP/dydo/1F+H0l8en9JC+XCO+7uA8kqGtEI3Kj6JPNQ11p+4W6LK INLJryPPZAGEtYTta40e0LgT1M7KKGmVWXcf4lZ6TB3JUmSoonexFntzI9syRYpWFZK8 omC/7n6jgC2/W4QuOKLFtlmo/sc8jGUICcuFk9ooRkFt0PQwPaqvIsazPiUjbTipjWzQ 7OhDuTxaE4Q/UX/s/EQmfUkY4yY1b45yhFGEmKXDaZHpsK7dy5BO3CXMZQZxJZvO6TCt BmqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=spfH8d3e; 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 p1-20020a17090a868100b0023fb878c669si8156991pjn.6.2023.03.28.02.44.01; Tue, 28 Mar 2023 02:44:14 -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=spfH8d3e; 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 S232832AbjC1JaW (ORCPT + 99 others); Tue, 28 Mar 2023 05:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232775AbjC1J32 (ORCPT ); Tue, 28 Mar 2023 05:29:28 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E10D6A72 for ; Tue, 28 Mar 2023 02:29:03 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id iw3so11067246plb.6 for ; Tue, 28 Mar 2023 02:29:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995743; 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=pQeWB7xzGpVsc7eSrbLdl2ydZmcfTTPBoAGH1zyjD1o=; b=spfH8d3eP8L76VQ3aGrjxh0xAXDyNstLt4YDaU29ERkOYABQ67u2Z3Zxf3yp0AUQI1 7aK+QNMTZIY4HGmqjAWTrARyhCwlmpdDM6fBnuhYXfDXQLVcFzcrc8UTQd0UQt++Q8Ub XG7Mbdc9KvnTxMrvWHxg6nP4Hncjr9RN1unM43SN2WFlIiPNkTuXpujZoiSH5mezWuPo C6loxzvwNyPs+xK6FewX9DVddhamPp+W5YgXnT0qYv+SkLVqHxvLEpTmnGz7e9IMEnxM HAXDi8J/4pTnCZ0EfmcZqEs/hA+cFT7in+c6IWdc68qebKovq4hQXJZxTkE+eIbUAjo2 kl3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995743; 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=pQeWB7xzGpVsc7eSrbLdl2ydZmcfTTPBoAGH1zyjD1o=; b=bG1kpHBjrevJ1Hl0BL3g/5OSwgt8XhMVE+0q1NagzSAPXk+tISkVnuze+tSOO/Pca0 zfrDfq9KEZBRatncnH8pG1iUH9miNrgKet/qtKgcIkk8WH9lGGwEih4IItgcz9uSWPuX X7IMMaE1g0zEeneEI7PLeCpMJg8h9lPffigHp+4DGpeeuhNrfFUw8+yxcy8gZdQx5tMQ sczbSWdCjUAu9VgglTF1Wa9m6fQYt3CyBoANRphzNUxdTZXDzT4Iul+2PcEZvuZlUxYf BsaEyKlRo8WT8HP6IqUQUd23kbXTvjfO1EbUAEj6bKj8sHb11GEK3itAXND/gpbHd45l 8DFg== X-Gm-Message-State: AO0yUKUH+SwJBBLuwfAf4c1voupPkoGjemIG9yYV+IK2U0S4r6fMbJ7S blxufWuJZMU3lfFfpO6zsbyj9w== X-Received: by 2002:a05:6a20:9146:b0:db:c5c:e0a3 with SMTP id x6-20020a056a20914600b000db0c5ce0a3mr17872712pzc.10.1679995742712; Tue, 28 Mar 2023 02:29:02 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c61:449a:10df:e7c1:9bdd:74f0]) by smtp.gmail.com with ESMTPSA id a24-20020aa78658000000b005a8bc11d259sm21261518pfo.141.2023.03.28.02.28.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:29:02 -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 v3 8/9] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Tue, 28 Mar 2023 14:58:14 +0530 Message-Id: <20230328092815.292665-9-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230328092815.292665-1-bhupesh.sharma@linaro.org> References: <20230328092815.292665-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?1761604172612032256?= X-GMAIL-MSGID: =?utf-8?q?1761604172612032256?= 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 7fbc288eca58..090ee07d1800 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";