From patchwork Fri Mar 31 16:43:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 77899 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp702390vqo; Fri, 31 Mar 2023 09:54:54 -0700 (PDT) X-Google-Smtp-Source: AKy350b/w0q3fnkv7RG8aLoVGQ0oAAsQZsU6dFv+GzVFa2D2xj7ZGxMrZOgXwveg9RhZYIEHU4ub X-Received: by 2002:a17:903:2448:b0:1a0:5349:6606 with SMTP id l8-20020a170903244800b001a053496606mr32621674pls.56.1680281694116; Fri, 31 Mar 2023 09:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680281694; cv=none; d=google.com; s=arc-20160816; b=Jz+SdDzR5ky8Vh6zwkHSkfvVJvpZhO2y8uFAz0e6fyFEzDl/M2iIe4uq5Wx9HdOltd phIfZkNIZpEOVWFrTy4/9dKmew9rxSty2xZYa1xgh+qk4BbLcUjqZ6M894+XiVHx+HLt Bylr/7JD0paW0/V2RTPwK3QERZc2vQHJvD4oiHCH/P82vQ0soSBj6LY6osNgVQvdHTO6 +/BjVkh1cJ0rBTGmqu4I8VmV6xnq5ecRX3m92G5/e9ykXVrjC5GSWyte/KOROF/obpAC cRDH/S+X0rxMqD9XjHHXUYlmyof8/hZUghFrwPIE64T4FBB2fHRACvJCNERjPKmR/cGB Xkrg== 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=cw24B3tDjYMpgxzjzo5k+esjlxc0MRgrnKJvByvQFiSDctpP9DDb/nnMRoLtieeQNs mli+Eaj7s0v4zJ7i6q3+82DzoRXo5312/6+DOreIDf1E4TTZ/iXvaDD7/2xnnt+bzFBz xT0mf4WFgtu0/p4NBe6pl0GMY7ouMwfELc3k1uKQ7ib6dMJsBTA/xQ1giTevkYCic2JV iy3eslC9/oUvgqE4KwoXi/qkMPON3nIfy/RiLSL1POv5hHNU8zS+XMHmPu5960tHbGm+ XP8jDntF/F06dM+I8YaRdcDP6hV/Nh5wU5oqpthI+AAmKB/+QNHhS+P4nXHpDSs3u0Qn +GJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TQiB4R55; 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 r13-20020a63ce4d000000b0050f66d53c3fsi2738247pgi.299.2023.03.31.09.54.39; Fri, 31 Mar 2023 09:54:54 -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=TQiB4R55; 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 S232007AbjCaQqS (ORCPT + 99 others); Fri, 31 Mar 2023 12:46:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232682AbjCaQpV (ORCPT ); Fri, 31 Mar 2023 12:45:21 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9211520DB1 for ; Fri, 31 Mar 2023 09:44:11 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id r7-20020a17090b050700b002404be7920aso21984079pjz.5 for ; Fri, 31 Mar 2023 09:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680281051; 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=TQiB4R55/WdgZqihCOYe0hueyPFgcPTGGlzurKjQi4zPOhVvb+Vj0JY+mU0T1jtfDY 3O6UZDf4/BS3N568NmYa4WWYNYlNmArkIgDpo37otAykKLnTusTpDzwg8DKRERZWHGwR h3kjAAdraoAVsrCD+KA50NrAnxpiD5LHpnHrISqgLrSPB4gmd0KdNdaRYGfbBo8hIxZ/ vqJWY3IPBprw9/peWQjs5dnH+K8oqR4DIbBBhy+UDkWNlcTNEExf8eN9KFkLV3HEBAGP 1rJs7irFhXp0YDeiUqhBilMc5ZegFS2sFTg5igN2mldfRJzo7WWCO28YwGALDlcLGo/m iX6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680281051; 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=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=0KyJAP3oP5a5H0jNKXNx6okqaMaBIFOIxOfOQXKEp1NuJwfNfb6Kdid597/zGXCGVH OUQBiFdlY57ONB6VTdi1SHnaBvq1HrF2eizQ70/QdlCFGI1d53hUfOj8sbgxfsW9EcLp jbAYojIMuKMYkNXQyNPZZF8tejzSxN6BVJ/fR71gZP3p1vBnRhZKbavqaiOhRzZsJpRF YuJ4fZnEyQPtfoV02YOp9IDN++sqFVUaqSBEu1qdSl+ALNrumW7jIRiXP9FINeQFZ0rK e1omzgpvtG4b//pKtJtuoJecQhzSs9qtBgCHgLRYPcNHX5BNtAzDALaTUDkCFQiXNDKd bLWQ== X-Gm-Message-State: AAQBX9cwqtPayJ2yTKTcvlI/qNx7X8N0j/RY/ii7TOFM/FYsmksbtyih DGaG//YFO6E/jmtSOE//rRwP6g== X-Received: by 2002:a17:90b:4b8d:b0:239:fd9b:85bd with SMTP id lr13-20020a17090b4b8d00b00239fd9b85bdmr32370105pjb.27.1680281051234; Fri, 31 Mar 2023 09:44:11 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c5e:53ce:1f39:30a5:d20f:f205]) by smtp.gmail.com with ESMTPSA id x13-20020a170902b40d00b0019b089bc8d7sm1798767plr.78.2023.03.31.09.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 09:44:10 -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 v4 08/11] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Fri, 31 Mar 2023 22:13:20 +0530 Message-Id: <20230331164323.729093-9-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230331164323.729093-1-bhupesh.sharma@linaro.org> References: <20230331164323.729093-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?1761903057525073632?= X-GMAIL-MSGID: =?utf-8?q?1761903057525073632?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8150.dtsi'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 9491be4a6bf0..c104d0b12dc6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2081,6 +2081,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 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 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 0x20000>;