From patchwork Wed Apr 5 07:28:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 79482 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp124005vqo; Wed, 5 Apr 2023 00:50:59 -0700 (PDT) X-Google-Smtp-Source: AKy350bQj5xwAOXc74Z9vwLLm3nJXEUAxfYZyFCmw6UcS5Mo1YDjQYvSK9M8dWBK1xNGIWyBfWC9 X-Received: by 2002:a17:907:210b:b0:933:816c:abb9 with SMTP id qn11-20020a170907210b00b00933816cabb9mr1367560ejb.36.1680681059301; Wed, 05 Apr 2023 00:50:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680681059; cv=none; d=google.com; s=arc-20160816; b=ntBwv2YbYkwMPkrHbEnEzsVmawoG8isJ6DVJbpOH3KxEO3Wm2WuOm088mnid5nFoj5 OYih3BIAropwbS7BpxHAhmQMqaHNACnXL5yWlMETMW7hWsVuU8cknecd35dZLNNeYdCy X4PX3hH9I8j8eYdZ3dQxGEP7R2rA2B2b5sVX003BgwPq+e9DrOjRK2g2wpE8xHjAnNNH 6eiCl06SK28scJ38fxjJ4RUbI56nFU5ywHGFd3ESFQLpK/4MfnkGdgbCS417HS8CRCST v5RhFi7mVT6WR76knSFypCM+p7/ptO0lXryjdaDKOKmD9TJkGI4eNNVYsGGDhmLwEp7d kpHA== 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=zbTV9+TgnBgKmNh6NySTEjhykfo0XXKtt7hKRcENq3oLnTLPy/Mgi68474Y7EBts0A m4rBwHgU9TiLtFPBD7PsTuzMVjXzRuqqivJuKEW9zaMFz8W86IKzeKATU1a31ntlXr9t ZOIYPkGgrADgVoJ5wuqbgfCLcOuV1sHGrvlT5VN6FcQAezCIG9cSPEp5kpzMn0DSlYND FHaeSwTpsOQMKh08S2JQMg86vfEwCxQ9oDrr4gYDiv2sN7KtQvdsTXTTnjEHMmPszMKF L3VznoYm9TbjCjmvZY4OW/Q/lcYeRtVI60kVTIf2pvRmmkm+4xxrB0i5BCOR9SHUxdtQ eZ4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sP7sS68h; 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 lg12-20020a170907180c00b00947fbba4dbcsi2580193ejc.727.2023.04.05.00.50.35; Wed, 05 Apr 2023 00:50:59 -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=sP7sS68h; 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 S237232AbjDEHch (ORCPT + 99 others); Wed, 5 Apr 2023 03:32:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237230AbjDEHcL (ORCPT ); Wed, 5 Apr 2023 03:32:11 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 641705270 for ; Wed, 5 Apr 2023 00:31:35 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id fy10-20020a17090b020a00b0023b4bcf0727so36457630pjb.0 for ; Wed, 05 Apr 2023 00:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680679893; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=sP7sS68h2FAazHX86fDCKwccRvVNAqMaPtueSGthkXm+M4INc6oWeaYuqNy5Yxj9xf 0Nqlcj206UEBHRHRy96fvpZbds+vcFHbJpIVtrXxqla62gsr964OcUGmQxzUvxV+AMIH hLpMymzQmkryiE3MhEy8xq6LzEZLvQ70j4gOL/scP0IMO9KqA+7G+/ZtjuiBugO4+BnU qEj2PaBiAIRcUevZYkHQaKigfNhi1j4c9AhQfGaGwt9Ni8fyeXRTWmYIjZp0KN1j9sVE MgawJ1N6nycm5N2BW8WnfFBkou4dm9/WGMKzudX/6b+8e6VBnBN/bk2GhcQzqs5/ya0M RP6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680679893; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=LoLwwXibf8Xy+ELmQ/9KXb0Bx2YfaOp2dxDgwM5oSavO+Hd3sz1oLgtI48wci5rlNk ku9xkhLPQ3Kf+RXOe7jQ2qKFuKi3UWqJnclFY1ozfjqvxmnJ4ydbwqQOSLbnH+hhjsCR 9LV7rtDjpNR3JTINPLjJftLRpfIaEXNJYonNDy0X5r9ejVzzHXuKa/k+7lUUJn+1qRxJ JAecxHJFV6IkutT0YPhzvgcKriek07IFuMyuyMPM8j84pxtfzPWs8pq6AorZU3UHMPR2 BGdS7R3+QF2xUOkdbno4sa7hL1P1/5akDRZDpCrGlpF4lnDcTAEjD0B6FWomlZDS6Q5A fwlw== X-Gm-Message-State: AAQBX9e1ctpdrIHkgZVL/ByQ3U2eKaOWXLRxZjXBpWfJrsDmR+EHQ+hO Q+hgyDeheBL2XHoXT1w8DcHHig== X-Received: by 2002:a17:902:d2c9:b0:19d:7a4:4063 with SMTP id n9-20020a170902d2c900b0019d07a44063mr6858595plc.46.1680679893677; Wed, 05 Apr 2023 00:31:33 -0700 (PDT) Received: from localhost.localdomain ([223.233.67.41]) by smtp.gmail.com with ESMTPSA id l7-20020a635b47000000b004facdf070d6sm8781507pgm.39.2023.04.05.00.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 00:31:33 -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 Subject: [PATCH v6 09/11] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Wed, 5 Apr 2023 12:58:34 +0530 Message-Id: <20230405072836.1690248-10-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230405072836.1690248-1-bhupesh.sharma@linaro.org> References: <20230405072836.1690248-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?1762321822173542896?= X-GMAIL-MSGID: =?utf-8?q?1762321822173542896?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8250.dtsi'. Co-developed-by and Signed-off-by: Vladimir Zapolskiy Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7b78761f2041..2f6b8d4a2d41 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2222,6 +2222,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,sm8250-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_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x40000>;