From patchwork Wed Apr 5 07:28:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 79476 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp117834vqo; Wed, 5 Apr 2023 00:34:41 -0700 (PDT) X-Google-Smtp-Source: AKy350aNzV/YAUhHdBTvWUQQg7DLT3IUlVfAhGNF1ALetCdJ9Gq/kJEumhV9K/WJsaOEySf2wAWJ X-Received: by 2002:a05:6a20:89a0:b0:d3:78ab:77c3 with SMTP id h32-20020a056a2089a000b000d378ab77c3mr4516593pzg.48.1680680081439; Wed, 05 Apr 2023 00:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680680081; cv=none; d=google.com; s=arc-20160816; b=B8jo3cY0LlQz58xjNxBbdkm3mjyILXluT4htNQYp0hyike1Wzqrls2HD7+iU6Ty5/4 rs8hdunxlmJMGeion181nsSvaDs9rW1bCTUjAXDLbzTLINNq1ueHW3yCBxdnHpUb9Vyk u7vWyIRXSnX0vKh0YVtcvoztG+hkiWUwTqozVRupi+a6Vcsj6KNmfA8zc9W7BmuwCveQ Fa4Im4O8I0dSN/cLIlTJsNoPZov6iwoN5ckrLNjUF4wk/Nzdh39aPpZsV0xzEx/0cuQw N/5sMD2P+E60Gnd413RUNX+fR2bDN+XVl1wh4kLZv4R6RuxzAzsxOUOhG/dA7mCBP69m J0WA== 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=f/RYbIoQQSZn/Ts++Mp2c4kDKlRAoOOYD0ApgKEdtIA=; b=OnL3EP2HQ6e2DSiMZQS/cQ1hNXBNU5W7/X9veaYbUe41y1e/XHJATICtMUnfc3IAy6 XW1mpKzLKxIj0j5e19atraF5CWOAJDyliVzaGUYbnRp8DDE6Bkp9N+13H98i4aM9iS/2 HbQUGV3So8pGW3WcoYqLvBSUj+EVafxfx4Rwln0PyX4JwDZm1VsX43aGXpsVSgKMG/9h hVJCf+USq6WDrktSfOwU+FSMxpvIX2hSE+5jyDCIaJaKHZkeB0pvu1G7woUyG7+9aoXa HDxb8UNZ5guJmYRamv04pNQpKqJvQMwjj38cL+UpIWhZEwi2UcAJF/1pyrbYEfMcNiqu Hyug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lyhGsVY1; 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 n9-20020a63e049000000b0050be692a718si11865149pgj.530.2023.04.05.00.34.29; Wed, 05 Apr 2023 00:34:41 -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=lyhGsVY1; 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 S237239AbjDEHcm (ORCPT + 99 others); Wed, 5 Apr 2023 03:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237172AbjDEHcV (ORCPT ); Wed, 5 Apr 2023 03:32:21 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBA755B83 for ; Wed, 5 Apr 2023 00:31:40 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so38680487pjt.2 for ; Wed, 05 Apr 2023 00:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680679898; 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=f/RYbIoQQSZn/Ts++Mp2c4kDKlRAoOOYD0ApgKEdtIA=; b=lyhGsVY1vQFoMeLY+50TIZRwxNd5jChMWgIvDu3C/FldFAKe1fJ3ClrarWz8z9nWwj rL5UqjtZBxxCcSYz+YpSv8XfckdvfPGuqxxv5Dnd3uFT0Uq5WdtOkCo1GrFWzXItJteh yd8ms6/Kj0pwZ+bBaHWS4ip19Zv8Kalz7cmZy6y4cmhqV8VNnV6/VDJL1L94ki/j/Geg fzRmn83aQt/RV70zDlHcdmybcbFmMw4bikjMzjXqvnsdyZDPj4O00ZyFNEnHCT5itJ0l JPBFV33WnRsYYVnGNa/hjn9UyT9tzr8BzVatYwFpk4M4c6Kq3IDNfOKLGctQzt2s+XoV zV7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680679898; 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=f/RYbIoQQSZn/Ts++Mp2c4kDKlRAoOOYD0ApgKEdtIA=; b=QVU4I6lScWzDDgT3pPyPMuxdyfV7wXdvmnrJbe6JmJfeWMPVJ1hInpGt7lwPtbIM+S XO/8/tIR/tlFNRCREQsfum/rsgwtoS/AN/naqcgIimkHnh/igJaMvOMFuBMsx2beW2/k ZsAtgm60JauJQqT7XR4ItaEns5fJaycWA98ab6bqlYwR1K7UOGX6MeWw8TP/kY5MU2Pe 4ewFvCiJpUEqiUShr9/jC6/Zhk4hXXZS/53Qa16c9E7kM+DiE7/VQ/l56vgppUQevZ5/ mnOJeYW15FYWq+GBokpMq1qI6g74DeLmW9MPGLo91Yla2uIJXdwVCcBGjfYx7XxsvABE y/aA== X-Gm-Message-State: AAQBX9fcjclQUA0RUHjCDbfqk0ssgyGv6pSQlOdw6ck7zgYb2Id+vyR0 YFkHSjA1bRGlDjUrfPvLxkdBaw== X-Received: by 2002:a05:6a20:6690:b0:d9:3440:9a26 with SMTP id o16-20020a056a20669000b000d934409a26mr5155435pzh.20.1680679898522; Wed, 05 Apr 2023 00:31:38 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 00:31:38 -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 10/11] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Wed, 5 Apr 2023 12:58:35 +0530 Message-Id: <20230405072836.1690248-11-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?1762320797576963935?= X-GMAIL-MSGID: =?utf-8?q?1762320797576963935?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8350.dtsi'. Co-developed-by and Signed-off-by: Robert Foss [Bhupesh: Switch to '#interconnect-cells = <2>', available since commit 4f287e31ff5f] Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 7fbc288eca58..d0677d9076a5 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1730,6 +1730,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,sm8350-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 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "memory"; + }; + ipa: ipa@1e40000 { compatible = "qcom,sm8350-ipa";