Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp312701rwl; Wed, 5 Apr 2023 00:33:27 -0700 (PDT) X-Google-Smtp-Source: AKy350bqHq/ZgLapM6SmGuF7D6YGnI/5EfMb7rcrxx45z7+GZIuyCBWSLAkxkpFBt+zSi0Vz5vKo X-Received: by 2002:a62:6204:0:b0:627:ea74:3484 with SMTP id w4-20020a626204000000b00627ea743484mr4297133pfb.22.1680680007246; Wed, 05 Apr 2023 00:33:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680680007; cv=none; d=google.com; s=arc-20160816; b=efZN7NmwzVkcGrEq2IQYZtfNu4/Fss1cxtmqB3y+k0jcKpQ7dL70QDHdzodpZdgLV2 K5RUVjvR2Ybclhxlk4po4vT3/EAiAqj/vxrIyVD6FnRahb9NT39G4pfpNOx7FVgtBS74 sXjHVUwJgeBAg7MYuQ/ytgcIgzYya9hNZm6YRWHnDfxlJq4pAye03YORwzSW4GAl3Jry 7IouCY2PVsLQUh5xkuIi+ivH082vgHbpR/S5d2OM4H5oo/lm9iDLkNtVjTeatS4TYh1q GW1YUxq1l+PKmanZInyJIEi8gPMT2DGuBFkMOVj4a60h0qxWMw814RH9Q8ttcwoyB7zt BAwQ== 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 Return-Path: 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.33.15; Wed, 05 Apr 2023 00:33:27 -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 S237238AbjDEHcl (ORCPT + 99 others); Wed, 5 Apr 2023 03:32:41 -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 Content-Transfer-Encoding: 8bit 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 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"; -- 2.38.1