From patchwork Sun Apr 2 10:05:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 78231 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1666955vqo; Sun, 2 Apr 2023 03:20:17 -0700 (PDT) X-Google-Smtp-Source: AKy350aa8+PeLeLlog1kYF6c2c4NdFAlxzqd1bPQg+CQ87KqX9gxVGPgMQPik1W4hsWsB3KCa3Sb X-Received: by 2002:a17:906:74b:b0:8b1:3a23:8ec7 with SMTP id z11-20020a170906074b00b008b13a238ec7mr32500589ejb.43.1680430817450; Sun, 02 Apr 2023 03:20:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680430817; cv=none; d=google.com; s=arc-20160816; b=qb93y8i2l6UqXPQ6VsNlNBVfcCP3xdWRcBDt4USRcZghiS7HvynK91xSNyYSay0/Qc RsEzly1pxgKubV4xyO014jwPl8IMPdjWpW6SmkjEQ3Awb00Mpg/7WpQEO7+VdGjTnUK/ gbrPBflocCdJb4ApKmCybG1uYIdgT0ciGUtQEB6f1oBnt3sOqmD3uyr+z7wNWBSu1bXW wiEdzNCu4CvWaNYb43LO2W4pk9ZBjg20OxDJB/Grb8zG9Y3YkoRJG9poBYqBR8hjHiix OtGKP1KzJ3b1g13rwoGwoLAoCOyKM6JU5pSumiRA+AW2BiYQThKiW91/k9I3f79gAldQ mmZA== 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=nJfPCZ5v2OZ7RqB+VWh31gOSRoObkKQ3JmQVl1TQD56AFFL50ZJ+2dF0T4AntYK7Bx +QjlzJueJND3kLt2TMYOMTmlt2KvIrAIvDnPiy2t2RT/6V4QH0yikCU0bW0r2lCP+7T/ 5cxXZ2HrJ/JuLLNyhOjPcUJ33I22mCJIfRYPEklzDONjwidmctvL6KYAxjrHFmJMfUfp Fbi3jDDxK2yqdUKE9Ya6SMOi8RTPgYvIplCHWPgnMkyrlCnSP1yE4LnZeVOLPO5ntewI s2yxMt4r0DW0In1GK68/ASLFNG3TFWafvIS1Hbxz16pBhtFQQ4mqHQyhpZLAmCP2hGlX bw6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JT63Rdhv; 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 n3-20020a17090695c300b0093e3a33d7easi6181795ejy.451.2023.04.02.03.19.53; Sun, 02 Apr 2023 03:20:17 -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=JT63Rdhv; 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 S231187AbjDBKI5 (ORCPT + 99 others); Sun, 2 Apr 2023 06:08:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231144AbjDBKIW (ORCPT ); Sun, 2 Apr 2023 06:08:22 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6556CB753 for ; Sun, 2 Apr 2023 03:08:00 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id ja10so25390671plb.5 for ; Sun, 02 Apr 2023 03:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430075; 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=JT63Rdhv/c5JJ5GCMTVSXvcZVx4bC/BZrzg1L8YflrpvJhy83hlbx+Xq5LAfxEkOv6 ws8KXu9cULU4hHrByxg/rEX4R+VQgHOj9uLYiMCpUlOdHRXkNjBePqyIAi1bD6JMvmk0 vy2xfk7ziuSDm7zwYt9DNnhIinKUKAvTLU8/Az6Pb4LNjFI7B/5xGhGTek7OB5PZDboR HlYRM6Dy2upjTDMaW4QQz/dJLM9S/U177RksXavoVJGi4cTWhV/pSAoRAN/B0OXuS0xO FBPUzajRoqzoF/J9Y1TxkKHDM429XvjVuBnT44KlrrgCUcKfOXdMUt2gswsCoDP0yGZ6 cizQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430075; 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=QBppPM6mNMJA+l2wmkrjZHqHZq1+xvqH2yTbuCo+7ca949rxre5Hy5QzhRkCbgw9aL tY5BaVhvC0GUOhVF/tWTxfKBjENgNplm9uJMch/d9xUYAXXo6ntIM1i7vJ7RADnPGKtQ 2Fx56Nmajea7liNFOnS2NCDLvcLxmOOlcVoP701ZPrwq7V9dqCMzPulWquwRAo24/+XR NJ5e/UcEAdUIuV1o5t9Be9pMZ9FgSPWN7gxeZ6mFNpIji0BcqmAxo+yRUcKYnCPd10LU k/mNzn2JDWMW5me64NQxYCdP2k9TZMh8Hef9Qu/GFa5Wt6pUM9p8ikOKBOQe2cCKkwvs CW5g== X-Gm-Message-State: AO0yUKW//Vz2IW9MRHxt2Igp8SBfVzhZ/geR9NBZJHwvIgZLgumrGNaA 7VVWJtlXYUAW7v5CRXvawdyM6Q== X-Received: by 2002:a05:6a20:1222:b0:db:a03c:713d with SMTP id v34-20020a056a20122200b000dba03c713dmr25718269pzf.23.1680430075466; Sun, 02 Apr 2023 03:07:55 -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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:55 -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 08/11] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Sun, 2 Apr 2023 15:35:06 +0530 Message-Id: <20230402100509.1154220-9-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?1762059424670824915?= X-GMAIL-MSGID: =?utf-8?q?1762059424670824915?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8150.dtsi'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 9491be4a6bf0..c104d0b12dc6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2081,6 +2081,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 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 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 0x20000>;