From patchwork Fri May 19 21:48:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 96663 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1552108vqo; Fri, 19 May 2023 15:03:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4XFQqGBVIgDhEgK1/jz1pORF6LxGvdfVP3u7F7hBWaf9pfUzGMAoQb45DSYaenoBvk4rEv X-Received: by 2002:a17:90a:3189:b0:250:648b:781d with SMTP id j9-20020a17090a318900b00250648b781dmr8026217pjb.23.1684533831362; Fri, 19 May 2023 15:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684533831; cv=none; d=google.com; s=arc-20160816; b=GiCTkLZkPmlK2MwOgvol5+Wmjoa97VxXc9p/S+MeZZMOZ4t4gjgZB911ERoP9kf9nc wExDZ4Ox/oD4XrRMFbXwEEngx7t4z7xSbMU1E4zWBZ+Qfx4ZzIneJAwxsdJIxNscoLqk THFsOu9VLD6LYjEkc+BWhWTNCUL3/UxDduny9KsJR6tPKT0tofEHPDtGj47OejhgwYyN auPSCPRNWVAZAK21Edy+ytNoCaco2QgnQNuD090s4uaUD4XUM+dmtdT82wvIOZyhMAls fb6DAJrnZ5vu5CLIfD4vxm1S7Z/RvWrUGBDGeV4OcnnzLwE2NzcVNBH/kbjFI5xqrZDW /dTw== 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=THzd+EMBnTlDtq026V58SAU7TYzPh0/G9GARo8OpvXo=; b=IJTOPOr3GJhxhK1NgwRC5Oj6qFJVtJ85Pqa8W0JhtBlAjDnbWMCYY06bvSWoXe3pNX b4c8QpWVxpO2lMvVTza12spWQw349cDk1958Ke/22/i5DegzkZf9m4yc9QBdFUp/OfL2 WN2YhD4ox7Xv1+it/iQPiU9FCtnIGwDUeIguwBqYB2XvpFpoZLnvBaUvhxds8tSey68N XQoT01d7uEy9sWQJ9LFRmQN3PDnVKwlOnVrs3rba6VECF3yhGyIEcjy3pAsau3V4Eycn cx1Nus+REGlsegndGowSurdWuc62jcbcmY8y1UpPp5N6JOUlSfIabUux+Smuwz72eSOp RGtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y0KODrdY; 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 fw15-20020a17090b128f00b0024ddcb3e1a6si2259723pjb.190.2023.05.19.15.03.38; Fri, 19 May 2023 15:03:51 -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=Y0KODrdY; 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 S229693AbjESVuI (ORCPT + 99 others); Fri, 19 May 2023 17:50:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230148AbjESVte (ORCPT ); Fri, 19 May 2023 17:49:34 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D5E49199D for ; Fri, 19 May 2023 14:49:18 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id d2e1a72fcca58-64d44b198baso28692b3a.0 for ; Fri, 19 May 2023 14:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684532958; x=1687124958; 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=THzd+EMBnTlDtq026V58SAU7TYzPh0/G9GARo8OpvXo=; b=Y0KODrdYDTlnYU5iok6ajWjS4SzzMynklnL9SWyMwWXUwR7jsKeIqRtLTg/dT3dDqH /+Ef/6wAW9UYKEXDclnU1hIRE3WDh7DKTomEpbeU0mif6KHopElXOsDNXeCmK4VzHYq5 qKbjcsdLc5VRO1lmKfAJ+WWnl0kmGMDhIilK2ugJsLzwRyCFpclRJMeoniD7R4P4Yizd A4Sz6LAwMPBUTke0B06bmYmlILN0lMPw5eHEy4o9hA9UuXbyYcVBtNOFvlOq3mZLKLKj vdIIaohkxfJkfjatCZD9yWDEIQMziN0nIGL1UIS1YZXL+cN52hFqd9XlkhawcVKwWUKK /Oiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684532958; x=1687124958; 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=THzd+EMBnTlDtq026V58SAU7TYzPh0/G9GARo8OpvXo=; b=PP7sc8ryQRF4gJWBjyiDPKkpiZFmygYhUVPUp2rrKSkAKYfh3ipEnkIdJUHkdTz8L1 Hbq18ZobMwuA2OYQSOLrvzrTHpY411/x9dnMS19YeMyU/OFaco3ET9tQSnXpwmzPRa/K AtW7Odf76sq1WofNLxg2P6NPXBA2bbTgaYNDf4mIFB1tV9qFq+28VPiRf3HomjRpiQih lj1L3R2bOS6jymKJp5keJWm+hFSbKtIUQND5w13abuS/5+eKwF505VNeQre/yofrUHpS wV5+ux4VAufW+jEXDJeSeJFEMFA52qwtMk/BySRbfZ75f+46SxxN3feIu+mvNnyTOdID srYw== X-Gm-Message-State: AC+VfDy/6gaSnzOtJBsWzAD/GS4AYDaVCTWS/HX/sQg9JquuzJV6c+hU J7X9SHpke4dKPiTa2qDRihxf0Q== X-Received: by 2002:a05:6a00:27aa:b0:64d:42b9:6895 with SMTP id bd42-20020a056a0027aa00b0064d42b96895mr789752pfb.5.1684532957845; Fri, 19 May 2023 14:49:17 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d309:883d:817e:8e91:be39]) by smtp.gmail.com with ESMTPSA id n14-20020aa7904e000000b006470a6ef529sm144891pfo.88.2023.05.19.14.49.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 14:49: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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v7 08/11] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Sat, 20 May 2023 03:18:10 +0530 Message-Id: <20230519214813.2593271-9-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230519214813.2593271-1-bhupesh.sharma@linaro.org> References: <20230519214813.2593271-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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?1766361746659882445?= X-GMAIL-MSGID: =?utf-8?q?1766361746659882445?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8150.dtsi'. Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 2c377d7bb3a2..2a5b2b99968a 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2085,6 +2085,36 @@ 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; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x502 0x0641>, + <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x508 0x0011>, + <&apps_smmu 0x512 0x0000>; + }; + + 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 0x502 0x0641>, + <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x508 0x0011>, + <&apps_smmu 0x512 0x0000>; + 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>;