From patchwork Wed Mar 22 11:45:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 73380 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2295797wrt; Wed, 22 Mar 2023 04:53:10 -0700 (PDT) X-Google-Smtp-Source: AK7set8Rl7lKx8ppVHNZX8JNSN1BFOsmUzESs6wg9PN1IPkG8r7kMy6szrHiyqmje+sY5tYl25og X-Received: by 2002:a17:90a:e7ca:b0:23f:680e:78bf with SMTP id kb10-20020a17090ae7ca00b0023f680e78bfmr3611575pjb.29.1679485990496; Wed, 22 Mar 2023 04:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679485990; cv=none; d=google.com; s=arc-20160816; b=K7Ocuq4vQ9V82lB8ido+nmN7kz5ttD6AxG1RZakhXhEgEeYCKruXYKCIG6EAHw5RJz 77vYaynqk3GaZSUSp9NfAhp/U2YxUzWNG9Vhz/nv2C6/EhgPafbSLUjyzRI1PblbssMq X8ii3w9Yo8lctMEmO8jadeXpc3oxKiPT6hf8zFs+1F0qOzIKzFxA7G1FfThgNZzOVGSy zlMYydWZOPML2Dpsvl3ttSi3dRtKgRjz9jhtlqEK66DyNfM1F2CIhu5NWeHMRVwSNRYl w2wsx8oz+wzbvBtx8OR3FNRfHmo9pitN1TWG5kIBGpvSo/bW1EyAOhb9uwJYLhJYpAJC ffgQ== 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=49XEgaz1wK95phl0NGb6ukHofMpjAnNHJLsVXiISQD4=; b=eU7Rv2Bu5l/Kx9yAKUEHt89fdOndg0iUeclG2nIXCf/33nFr3f9V5nEe/bGI1k8cOK rmhsbYg8XqOP7vY9O2QFJ19AZ5oxHasnpfVWF0liODQ422LOKL4lraR/Z7+Aymz9noeq zMmwXDhAjVgLtuZrqIX32Qz5bw148RE1qVT8fHabsXf0HtiKJPUhvs8iCcE+XgNwGASQ Uk/aDtiYxEMOXABC4uO7j72FYdyyxsNSXBP/3gIU7yqn6RXgrxnwrg/30gOAbGYW8SUr 8U4qwOYJKhZGkI1sLtmRQBPJqoQDRG97VriboSK4XDSGNjukivSTkMo1Aqw+KunSqipW exRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yowy7WlR; 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-20020a170903110300b0019f7977c9cfsi16791247plh.319.2023.03.22.04.52.56; Wed, 22 Mar 2023 04:53:10 -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=yowy7WlR; 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 S230154AbjCVLq7 (ORCPT + 99 others); Wed, 22 Mar 2023 07:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbjCVLq1 (ORCPT ); Wed, 22 Mar 2023 07:46:27 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89C8A62847 for ; Wed, 22 Mar 2023 04:46:09 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id c18so18986374ple.11 for ; Wed, 22 Mar 2023 04:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485567; 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=49XEgaz1wK95phl0NGb6ukHofMpjAnNHJLsVXiISQD4=; b=yowy7WlRK5hc22HigoKlwXZgbQ8buRt/BgUGxNx6g5N1KZw+aL7DODseO7mEhddT99 4ASWA0EjCSTa4URJr9mG/vPAJ3fKSOXXdSiFk/R9O5k5YsU31Wra0yBr/j4MRwqf1H46 6a8NmIzF2BzgvfRefNQ5XxuDa3/RsqT+lftIql+hLTIuieVlyI3iOpb/TiHoZsFiWVMH Anev7hHjwplnDVvI720YgrOd5dPWeiolj1wUfGK8wlIewKPPmid9nZa7IIWaNFOBW8mi 1OVF87BZCz1gJZvbKqfOhCSMaBCTs7KhDzQ8B/wqnQ8VJOEvklxaMy/VMbgWQ3opMM6J g5ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485567; 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=49XEgaz1wK95phl0NGb6ukHofMpjAnNHJLsVXiISQD4=; b=TUEEbuT1BXIcJ6hTcOCYDWBtyJ/frB492MjCmAsOARbDi5/bVuj4sXrxB07v2yUSho ZWQgejJu6ZaEi7e4DUBZLtrRwufnVJ461ZNhZ+Pxrg4uBw24ZVyYEs8SvThCv+SEWC0r zprZDNKuosa0gADv3pJahfSrSkbjkb5Gva4YMzsWT5S9MnxE9f/rcdSpX5yhtIlJRygV hXHlB5VgYs6Vd0O1tDD8D5mnJs5LTkz3brDK0weywZo3G+NSYJtXoSOtvXCnFlyyEMHr WIHUuC3hdjUVqdmNWskXp2V02h3Ema+WeFmHB3/SPJRbPGKptk345nbcAPa2pZeE0DFi 71Qw== X-Gm-Message-State: AO0yUKXM2Vy4CfXv+Msu7MnosfOjTV9yG62/ecXtevFZYwaHyqiTE+Tt Vm6hCY4mdVtoOnUH17yCOqkHnQ== X-Received: by 2002:a17:902:f9c7:b0:19e:839e:49d8 with SMTP id kz7-20020a170902f9c700b0019e839e49d8mr2161408plb.59.1679485567500; Wed, 22 Mar 2023 04:46:07 -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.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:46:07 -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 07/10] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Wed, 22 Mar 2023 17:15:16 +0530 Message-Id: <20230322114519.3412469-8-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761068702194443452?= X-GMAIL-MSGID: =?utf-8?q?1761068702194443452?= 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 662098e85b97..5213e7e3e44b 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2082,6 +2082,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>;