From patchwork Tue Mar 21 19:01:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 72996 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1958052wrt; Tue, 21 Mar 2023 12:08:05 -0700 (PDT) X-Google-Smtp-Source: AK7set/jTz/Eof7AdT/CPFpeRBcVySGgLbTgjaJHwjKs6updjv8GaWjhKnTzWJBXbkVA9utOVfl4 X-Received: by 2002:a62:1753:0:b0:625:e5dd:7506 with SMTP id 80-20020a621753000000b00625e5dd7506mr695559pfx.25.1679425685487; Tue, 21 Mar 2023 12:08:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679425685; cv=none; d=google.com; s=arc-20160816; b=SyhKQ7+SUIAtmiCZEWviUnpCHlvLlhXnSPEjZkSWQVresb+q9yGVy6DeN7qvurS7e+ 1KrBFFpFVoqDEawyj2XbjRb1FWyzLBY3euntvGp6HaSO/WsuAbLSU4sNs4bAtX2THLgV TXfQzVPjOJWs/R+Qt1kLGMmmkQ3+8VC87BC2go4L18mPBBvDnwjhv5BT8MMn1lAAJuYQ /KuudEnn4/ERrq6kccqb54d6dw2wKGR4cwtxS+gGdChUY99C/H/VCST74rPTI1Id0N1H dar4Oqv6FpxBsOoRMGU7DXlILOSoIaGYDCM2sVD/5DrL5isEiVDgcd11f8Mz62xkA5kO DC0A== 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=0byJ4vgio8oe6w4cixjPFeMGxbOIjvzLVMg1AcvrT2g=; b=tBQ117oKWHeNjuJEOAvbqWsP7DEsWA8sgby34xBlXLhGV0LOrfkTRdI/D6xEJVo/yj 6irsQiy9vmpPXPFCEAz03z1pxlq14KeYrcwH5G017Aj3C38pfuU5X+bIk3yvMh7Qf5hZ WlI6Ef15/1Eu05AtsN0BxSpSYn1GTD22lmTbU+jhuPcCU1pv3+rrwYix68QoE5Fa7oPx 5MLShvLmDSPtnuDC8S/+fvifsnj1HKIAOMGcqnhzTa6Gs8rPXWmBrEH1dEe3DW6QSWUs +4jNbJCVtmoBrPRbYFLhEE7EPDgC8CShQp8NyCaHVRRKJ2KlHdwScgwD/geto8+TWnVq 4i3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eVociNZP; 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 v11-20020a056a00148b00b00627f0afab53si8720419pfu.174.2023.03.21.12.07.50; Tue, 21 Mar 2023 12:08:05 -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=eVociNZP; 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 S230263AbjCUTB7 (ORCPT + 99 others); Tue, 21 Mar 2023 15:01:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbjCUTBy (ORCPT ); Tue, 21 Mar 2023 15:01:54 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A4D856785 for ; Tue, 21 Mar 2023 12:01:46 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id om3-20020a17090b3a8300b0023efab0e3bfso21190516pjb.3 for ; Tue, 21 Mar 2023 12:01:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425306; 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=0byJ4vgio8oe6w4cixjPFeMGxbOIjvzLVMg1AcvrT2g=; b=eVociNZPk1ihgjTKAYBMNaIVllkWuINxLMgVXNLWbxt0Y5Py9oJIm5t/9ZhgMdxaye FHVV/O03SVv3mhVijK+pZSGvOk8ZWCh/mGqIXRz0AUFFzsD/GPVsVvulffsW1KrqI5mb aQuWDLxLTd1zF5gak3gQmsND4bbv6J/iy7DEUc+rmhZ775NiVzzAq/XiASJjDTiVTCR7 yZAqsbaOf61BZ9XH/3Hg3K8oIXEwjTWHZuFzOjFvx+KDBt6JCwavgK2mFTnVFfMSean8 GstC56VcWwKklCwgwUPosP5e4v5qAecv/TdpTU4FjKcFoG5LyP8BojTapt3b2jP87EPh +XyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425306; 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=0byJ4vgio8oe6w4cixjPFeMGxbOIjvzLVMg1AcvrT2g=; b=Yuyc7jHtFoKKXaJITZ6zoyvOER4wq3fZqKethNBEYyfSOB5l3v6okY6jRYS8K+Jqht 512SH7e4MQa+6e04VpcFVTHPWAflmBZ/GWlIzduB0mu0JUxtHCCprV7pBP8DvZG7IK9O AxwrYHWBLKkcrdK2WZ3egG6xqHI7ewTxXj99+49x+G7GqejdB3NTOv7o6dLLAjNnI0pe aS+3SBNj//zn1WTl/Ty0eRFJzB/dm0plKKhGYbF+nAh6UdPn3dQ6Im6bTq+t42K2ZFdc up/X3OGkFE4dGsa3mA3Y7uL7aInAJT/UkY0ecU2uwI+HYdOO9AZuZF/+PY/tKQ720dwR /gNQ== X-Gm-Message-State: AO0yUKVXIPf4GikXHBKYdGUix7nGg3hQ1Vu4iF9fQYQVRxibX1vTkWPh 7dBLDS6yo0UsXBfE5VNxm32wsQ== X-Received: by 2002:a17:902:d08c:b0:19c:a5dd:fadb with SMTP id v12-20020a170902d08c00b0019ca5ddfadbmr59178plv.54.1679425305897; Tue, 21 Mar 2023 12:01:45 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id v9-20020a1709028d8900b001964c8164aasm9043453plo.129.2023.03.21.12.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:45 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, devicetree@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 Subject: [PATCH 4/5] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Wed, 22 Mar 2023 00:31:17 +0530 Message-Id: <20230321190118.3327360-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230321190118.3327360-1-bhupesh.sharma@linaro.org> References: <20230321190118.3327360-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,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?1761005467299560057?= X-GMAIL-MSGID: =?utf-8?q?1761005467299560057?= 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 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7ccec48255f0..009e992d2d6e 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2223,6 +2223,32 @@ 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 0x584 0x0011>, + <&apps_smmu 0x586 0x0011>, + <&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 0x584 0x0011>, + <&apps_smmu 0x586 0x0011>, + <&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>;