From patchwork Tue Mar 28 09:28:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 75940 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2087410vqo; Tue, 28 Mar 2023 02:44:58 -0700 (PDT) X-Google-Smtp-Source: AKy350aL+0cuBz0Kp8FIbQxA+0oQso7X1PD8SSh54UGMgoraWTNS5J1DiQfo2nSmBkNI6MTZds/r X-Received: by 2002:a17:906:7241:b0:935:1565:d661 with SMTP id n1-20020a170906724100b009351565d661mr14689571ejk.66.1679996698700; Tue, 28 Mar 2023 02:44:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679996698; cv=none; d=google.com; s=arc-20160816; b=fRO1iONKq2sWEGC4FHZd97UJzWYOgBRKbEjjJh59Il7mL/R3Raafmw8GiKnWXWL40N 1Bfy6oraZoa9nJoqSmtPeppx+YFSx/ZduFuRwCZ6zePdsgi6TSFIjhYF43T5ZblgpNGH 0BRTKaV9B0J1di/2ocnQP82O6fHy/ZejrCoLJoYvx/TeUBEr5a8gBWi9SJqI3Y3P92k5 qXIGngtnULAX+WT7QfhGbnCE34lasKjz+drlPWcjn87hqqpyOFIZTPXIE5SPgNvFSG/Z XnQqn4XQ1jWt4dzB8hoXtlUOciqGTz/Z2n/WzE49aRai9myUvgj7jv1LBLTVQmtETd7W 41eQ== 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=GyBPBQaKm/5jEJ73opxh3un93Buj/EGoGHLucj/C0IAAQENlqCO8xPIFV9lo1Ljp3Z ODeTen66JOd2bU8byzyfXFio9ppWYpI+Fsdl4iiRl5Wwmb//p9fBU0yfnNFihoNQLxXP fbTKj1S+DXPZO+77E2YHBBBUuaBXn6bTi1Z83Jx0+TGWUM2R5YMQuB59UPk/tYcuwjKt G9yNtZJrjuwwGHWxfAL6FQnvBpBs246Qw3T0ppUjCukuIrGoKHZipp7zQG9yjl9T52DH Mf6aWLv+RmSBFjSiKd4+23Z2+EH79Os9vnFXsjoE9X0G6N6owDMWgGKnpYSqlVc/RRD5 +MjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XPbTuwt7; 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 b26-20020a170906151a00b00931bd1631f9si27232794ejd.423.2023.03.28.02.44.35; Tue, 28 Mar 2023 02:44:58 -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=XPbTuwt7; 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 S232748AbjC1JaH (ORCPT + 99 others); Tue, 28 Mar 2023 05:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232734AbjC1J30 (ORCPT ); Tue, 28 Mar 2023 05:29:26 -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 125786A58 for ; Tue, 28 Mar 2023 02:28:59 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id w4so11047982plg.9 for ; Tue, 28 Mar 2023 02:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679995738; 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=XPbTuwt7+oxjeDsq+cRYBV4Z5FEpQJ18mBBU4NWVPh4b7rC11O2uV7anDgBQefJs0n SxIZwyi1heaQWUTSUwVs/F+Jr9J4j3n4eQGMD1J5zVHzaFF9vmgs2Z0wPIhKXSMUxPug cB8EeS27ckBAKjfY1qabS5Np59eWrT7MuOI34z/BVRJ/KFZ5388LOUuYVMkURQIUVjIJ DR0hiNc8HHzdLj9dgDGfXcKgHVe7DRy4Wl4PVb7SB1+wwatcZ4AKhWjj2PLj2MU/gavl kO2euXIyx3tZrhdGdPN7FhbEZhCpb/ViY3YsE2G9MEyX036ZDikf37EnqIhFDIxRrSp6 +oOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679995738; 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=t34zOI8sdmL6lTROdz8/Rg7YNcImsuiGamGzVLSRIGkRVXMcF7K6NiBTVCSFAotIbM 2izAz0gf0UM+iktmKIClnDE8QBhJYIjjW8VnpzgXMqJY7TKcQGXKxZO0crOvO+xF0fxM Tn0QfNTFpnLz2oICKiBYVrd7+tpsyuvN9+T4lgxXpwgQ7qjbBnjtUBjpUB644EnM3bPF jbNqloW6AlkAS1aPupARW7yJ/nhBDMbRanDjhx+OCpD318I5zoL11FhbFeTzBpqey75V oKaHCizGeQo2eDMQdfcnrrZf5Z3O03q/YsB2SvveoVve5vs/EYsNtQ+H4vYNq3HJzwjs aLoA== X-Gm-Message-State: AO0yUKVd1psM+Lbfiu+sfka3GlHJ6tlxM86QKXtr1qWmUPel04AbwEF7 J8WovTakZKgM8ksyAO1uMVeBsA== X-Received: by 2002:a05:6a20:811a:b0:d6:8c70:85ce with SMTP id g26-20020a056a20811a00b000d68c7085cemr12536739pza.54.1679995738069; Tue, 28 Mar 2023 02:28:58 -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.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Mar 2023 02:28:57 -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 7/9] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Tue, 28 Mar 2023 14:58:13 +0530 Message-Id: <20230328092815.292665-8-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?1761604218636040445?= X-GMAIL-MSGID: =?utf-8?q?1761604218636040445?= 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>;