From patchwork Tue Mar 21 19:01:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 72995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1957357wrt; Tue, 21 Mar 2023 12:06:45 -0700 (PDT) X-Google-Smtp-Source: AK7set8N7bKH7fbCuL4x7Ws2tiSHn89tgH0UOy/U9dC/96fSzJoQdUo1CE9jSPBi4tiE8iZoouxA X-Received: by 2002:a05:6a20:be03:b0:d9:2cef:949a with SMTP id ge3-20020a056a20be0300b000d92cef949amr3003747pzb.28.1679425605164; Tue, 21 Mar 2023 12:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679425605; cv=none; d=google.com; s=arc-20160816; b=xwnlhVBO6ePpAo8GnESfDUz6Goi7B9v5170wqPiywqqyJJrrnjEoxLqiNpk35zlF14 5DKowDiYXjaNrbrpFSL0WTjBolkCRQNzEjXrvkZX9+AchPnizJErzX48QkelJsK74ZyH PrIcSaOPfFuvuqrF90YDhTrGB/l8qhwAkVM6Px+Mj7ABypiclkAFAmcaGzxECTjz3O8+ HpFHldtnlVP3JnxQixydyvH1M5d0LHCgreyh6N2eOybRcCngQIjbgBWCsdBC6Ujhha+Z 9LJRis109vUNHWPdjyxkd8N/9iNy9sAxMfxZoOp34SWA8mBV9PTdl1wPrxuTjVhWaaLC 6HuQ== 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=+EO5HCrL/48xWt1UFxSeB3X47wtvSFENBkrMN/kz2Z4=; b=htEgjABr8yVnd09Tc0sMjX61jEcEw0nriwSkyWTMOgvyeEIfvHRIxBrT1VbRSzaDzE BcxzAKlrludBBIO4tbZs9G9Swns25tsf76s1yLDn5hYmyNgCu9Lh8Tswd3mHExKvGusI XZxAGbpm8ygXgHYcVk8L+vspQGQSpKj4Y/3FAMYwXuK+/Bli0O4aMiupFZFUBnpROgNx iz1fIFAGQN+jErgKwrQHxfu9WPfdA6iH5uKv1Qo1axvlVjUWg0OhpDYGkfpoN7llt5sO XA9HeY1TvL3e5VJ9dbLr7xkrvld0RM4id9CFh4rWkroPX7GSF1pJ5xXhTeB7TQ/TtEOS sqcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hg0STW2U; 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 f29-20020a63555d000000b0050bf0f1b79csi13967526pgm.699.2023.03.21.12.06.30; Tue, 21 Mar 2023 12:06:45 -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=Hg0STW2U; 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 S230239AbjCUTBj (ORCPT + 99 others); Tue, 21 Mar 2023 15:01:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229913AbjCUTBf (ORCPT ); Tue, 21 Mar 2023 15:01:35 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D9BF55071 for ; Tue, 21 Mar 2023 12:01:33 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so21328316pjt.2 for ; Tue, 21 Mar 2023 12:01:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425293; 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=+EO5HCrL/48xWt1UFxSeB3X47wtvSFENBkrMN/kz2Z4=; b=Hg0STW2UxISTQFaVd+BmMq2m3Uq9BeGqe4ieVq9oVQh0j7mGiDs4cJvO3loji+E4pX W5YGItnjwF8zOtleNYvXqtwRqbExbRz5XIPq3qtv3PwpypoQfpDU0cYwplE/ew4iBOvM ZjU/UM0Q+Wc0UQfhoVjY9GvQWnUWSDZwHdFxticf5JTNmw82TQhvMZXCc4Xu2h1FWtZ7 hUwf/dPZdI/42mJcyjv9UgU9Q/0RRHfP+cnsJlY9EQpgfdic47IRqFKisJIed4zX6orP pShWvpsFgTg7lT6+6deiMexaBE/SeHz5SaSLma54Qjc3tyRSsFDrwm5nsA8rpAA6miNm MEWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425293; 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=+EO5HCrL/48xWt1UFxSeB3X47wtvSFENBkrMN/kz2Z4=; b=2UxVpj7x2qQnETi25CXBQvy6orkjL3t5zDxZY0a1MjPu0hNplqlmnAPZXCwIvMpuJm oA2/An/0ngeZ0G13+P1H3aOI9v0JDFv9bch90iJKBcak8hMzVMqZa+Fdwpi3v0vOkXW1 3ewGcAvu4nogn6pLJG7lchyVlYbFDrr7yuiuIxUKHC4mEx4OrDHkZoiHZnFp+ua87a9b yAECou7xec0v1jBVpJsfZKyVqMz28eADkksTgyvSKKcC/86JIHyxnJaUZ/sLxV5EhvPM BLkiWc7CDjLADIOP5tuxzzoI2DePvmoIlQQnO5XhCpUlKLTciZfXym+WlYARmVbyYeMM h7Cg== X-Gm-Message-State: AO0yUKWKUNl37HQbg1ZlhFJ1YommH/T57br1f3q3g5JhiiLbFIbMK+IL FSJTCOWdXNn/RXNb/P8eyqSjrg== X-Received: by 2002:a17:902:f1ca:b0:19e:6cb9:4c8f with SMTP id e10-20020a170902f1ca00b0019e6cb94c8fmr82042plc.41.1679425293022; Tue, 21 Mar 2023 12:01:33 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:32 -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 1/5] arm64: dts: qcom: sdm845: Fix the BAM DMA engine compatible string Date: Wed, 22 Mar 2023 00:31:14 +0530 Message-Id: <20230321190118.3327360-2-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?1761005383385520533?= X-GMAIL-MSGID: =?utf-8?q?1761005383385520533?= As per documentation, Qualcomm SDM845 SoC supports BAM DMA engine v1.7.4, so use the correct compatible strings. Signed-off-by: Bhupesh Sharma Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sdm845.dtsi b/arch/arm64/boot/dts/qcom/sdm845.dtsi index 0fdd59a9feed..e8e9aa4da914 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -2628,7 +2628,7 @@ ufs_mem_phy_lanes: phy@1d87400 { }; cryptobam: dma-controller@1dc4000 { - compatible = "qcom,bam-v1.7.0"; + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; reg = <0 0x01dc4000 0 0x24000>; interrupts = ; clocks = <&rpmhcc RPMH_CE_CLK>; From patchwork Tue Mar 21 19:01:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 73004 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1962021wrt; Tue, 21 Mar 2023 12:16:20 -0700 (PDT) X-Google-Smtp-Source: AK7set/7Ie+vpqKP7/T4gqrEycvXz61Ik3Zt+hHscYU5LUPMLXO2fVL5a4UT2shVRPrnXscWtSYq X-Received: by 2002:a05:6a20:1a8f:b0:d9:1ec8:e9bb with SMTP id ci15-20020a056a201a8f00b000d91ec8e9bbmr2743276pzb.28.1679426180071; Tue, 21 Mar 2023 12:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679426180; cv=none; d=google.com; s=arc-20160816; b=u4yAxWLpu6fzlsq4kR99druBC3XefEZVpO1tlgPjAl7i+OvYyQVveMJqYlDgDbhTkR dGET3pEgWPNhn8+jt+We/9XFGdrN26J7aaENOE3FiBgBtQE3Myllm0MwCWsroHDwwBo3 /HoGVcke2N96kP4Gg8CywWC+6I6BDSbz4mpxfjOdtykPGhmhViFO7VowZWjlgLZ8d+Vh lMKH/2rBK9jAYEy9M7JZvRwCGOfZJDDEzgeeqFUISfFdTAmpiTcZw3gERB7Rvrsnw5uO wulhNF0A4gjLPP4mHYEtJHtkviR3VMF8EG9U0VQbPCcmwIwY8MwtirsvuTA4Qb6e5stT bo2A== 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/f1KlYJ1sj6omoytOxModx8WTmRbKolqwyODRJBsN4=; b=r8NIY4dtm0zwcPymwUom7KYLP7lBSTDORfzWF1IHFHr6+by7J0pB38scUzTQZTYNem 4kOkWRXITc9k/0r2fNyewOktGduz/3+9udauZizAtvABCBKNRQ0APsdR3yskOCh/Lc37 Y5WyEe8+T+VbIda5J9lxK73LlDCo9lTiUwSvnWuT1rTnAPQ6DFSSlzpjU8iAIWENHyuW Jt/5eaxtO0VAEwRQdOUaPFTDDRPkEjdMxLLVoOSH9ZKl5OLLfbnL6VdG3YvyteYYyigg E770JZa/gsL+qaXchhm6nePaN7r5BZyQVhDpOow6EssS1U3z5H9cYLMmuvgXw88J3aDB s4fw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YZB6+Kx7; 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 c7-20020a056a000ac700b0062572679ef7si13445407pfl.350.2023.03.21.12.16.06; Tue, 21 Mar 2023 12:16:20 -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=YZB6+Kx7; 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 S230347AbjCUTBo (ORCPT + 99 others); Tue, 21 Mar 2023 15:01:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230320AbjCUTBk (ORCPT ); Tue, 21 Mar 2023 15:01:40 -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 04C0F56169 for ; Tue, 21 Mar 2023 12:01:38 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id gp15-20020a17090adf0f00b0023d1bbd9f9eso21359949pjb.0 for ; Tue, 21 Mar 2023 12:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425297; 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/f1KlYJ1sj6omoytOxModx8WTmRbKolqwyODRJBsN4=; b=YZB6+Kx7qsGOCcFh4UhaD0KElckR9bAVGI388CvWoghfHmg7uTUverbSwhR2WbnDwl kEvptIV3V3RZRTyN6WJZa7Pk8ReVUwYBrkLUpB5Mms9gd+Lgug3h72GJxiXyoGLAQPb3 qzAgWEofeVB1v0HqCtL0a0lNypQM3eIlOJTFJZDkpLdU+NE1BzCFoY5lLbQewd+cPL/f IaXLHTkv01KlLw5VchxNzCttFd2snWUTX9nrp2rQToqyzu87w0vmRrypt2MPR5zfKOw2 wZ4qeXBjjfCAx+qS2+aeSznsu2nsVHnul4Dhihf7mafo7M23iMtl8xGvby+xVtafyHJq G2Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425297; 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/f1KlYJ1sj6omoytOxModx8WTmRbKolqwyODRJBsN4=; b=Ff/dDwi8V4hW+H5NqijR20DCN17p7FwacAVpwC/X11xRqZD8Fk6DyP7+yAb2UOQ5ds 300hGhyyVk6E6D7FfmBYvEYerV4cj7qMBGjQQNP9qbTot9Ecb5shFQ1eKg8v9wt/3c5L 2VgMEGA2p2dwCDIPf0jNRzwipVvvg4KROLd3zFfCfQ4hm6I/vQgr5Ga/cDKARoYeze6m WuP1oyXxvorVpjj2FL/MDcN9lRmtH9UoQyb00kaE2034ONAh5Iod3ruEYAe2PCLbL8CW eDGtcmmk2PCrAynG4ipVMBWQyQF1YV3L8GW8l9K1aESP1SgTVZXBLroKMHNrvfaBF5I5 x0Tw== X-Gm-Message-State: AO0yUKWyhbFUZJ8ivG6LYyI23iClkcwu78rqj629oPhady+TyE3eNC/l 2yknuzSrm7YWm4WzFu1yix3UGg== X-Received: by 2002:a17:902:e881:b0:1a0:67b1:a777 with SMTP id w1-20020a170902e88100b001a067b1a777mr104894plg.61.1679425297304; Tue, 21 Mar 2023 12:01:37 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:37 -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 2/5] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Wed, 22 Mar 2023 00:31:15 +0530 Message-Id: <20230321190118.3327360-3-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=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?1761005986107129497?= X-GMAIL-MSGID: =?utf-8?q?1761005986107129497?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm6115.dtsi'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index c56738633431..b2d2cdde41fa 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -664,6 +664,32 @@ usb_1_hsphy: phy@1613000 { status = "disabled"; }; + cryptobam: dma-controller@1b04000 { + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; + reg = <0x0 0x01b04000 0x0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x84 0x11>, + <&apps_smmu 0x86 0x11>, + <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>; + }; + + crypto: crypto@1b3a000 { + compatible = "qcom,sm6115-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0x0 0x01b3a000 0x0 0x6000>; + dmas = <&cryptobam 6>, <&cryptobam 7>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x84 0x11>, + <&apps_smmu 0x86 0x11>, + <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>; + }; + qfprom@1b40000 { compatible = "qcom,sm6115-qfprom", "qcom,qfprom"; reg = <0x0 0x01b40000 0x0 0x7000>; From patchwork Tue Mar 21 19:01:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 73002 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1961819wrt; Tue, 21 Mar 2023 12:15:55 -0700 (PDT) X-Google-Smtp-Source: AK7set8jLEuWjCgZn1YhSx6oQmlSF9MGwVcobaI1woE2Nqr3ftItYsG99FY6LrY0IPMkDQHwqZgm X-Received: by 2002:a17:90b:4a46:b0:237:d2d8:3256 with SMTP id lb6-20020a17090b4a4600b00237d2d83256mr801520pjb.20.1679426155404; Tue, 21 Mar 2023 12:15:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679426155; cv=none; d=google.com; s=arc-20160816; b=qdcwAIHdHeYTTX+fqKuVNM6a5X6AZtSKumOlK46XZFHvr8yoN0E7NOiMAH9mdNy9N4 eQ+aybMT2nmgMX9Tm4MyXK3DQMybQ5n7ZjP2uvmW1/lvP6QSav7aNB4ox2vQNnE5Ub3l L/FwCbXtgavtWXwT5F7mLmWiMiyCAvcAmwiBv0r4rK3Tgvlaog+RdpHIP3AQg7dUKS9g VHAT2ZmszEuxm/fQUtBYj77QNCcudNtsAxr2JGxej8LHOl7GaNDsCX5mF6sixlCKoa2r zhbgdqsqPEzV5Bhy1ViFxKmknQsE8QnN6K4Z0QxOFQL5Tjy+2NK6mSp/WM8IgtRTc4ez AQYA== 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=X/HhfixYKI42Jnmvpurms4ZlKAo1XNYYYTpB5v8v+98=; b=nCAHclzSJEwEnqzkMhUbE8KVS3BdGwBXpYlu50SGPKXWGYWIiuanuyp+BieXFZaYH5 Y8JgqWAmdE7Z5IY37BZTa4RHxGh0JKdakStqEwkcPZKLzo67r2xh1L/vJgdSLPNs0vnx UKTzup8bx/tsQlxlOw/SH83cd8rBP7d4Q174UqoJD0Gp0RYrMA32WiBEi/4h+IjTIdBr XSxupvB91X/0K7iRe4cF1smj4f7svdh46yh8qrQUL0aZJwHhU+Q5SK9M0hYaYcv+1C3k T4mKuT1m+o38gugnfjmK8XrDCEZRjURCgXp3xBTnF2MpiMuLyMphfDUDreiSRG7BwNnS 6M5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SOxS+Sd7; 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 b5-20020a170902d88500b001a051fa4070si14296515plz.424.2023.03.21.12.15.42; Tue, 21 Mar 2023 12:15:55 -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=SOxS+Sd7; 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 S229828AbjCUTBx (ORCPT + 99 others); Tue, 21 Mar 2023 15:01:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230418AbjCUTBr (ORCPT ); Tue, 21 Mar 2023 15:01:47 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AD84442E4 for ; Tue, 21 Mar 2023 12:01:42 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id f6-20020a17090ac28600b0023b9bf9eb63so16873905pjt.5 for ; Tue, 21 Mar 2023 12:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425301; 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=X/HhfixYKI42Jnmvpurms4ZlKAo1XNYYYTpB5v8v+98=; b=SOxS+Sd7B1mfmQ7R+OzEUOpYIsHAUU/2uMgnReRNW5dCzHjWf8Vl+e7euB4wuhk3lc p9m1UZd4orNVtHnEVu3rURYkBrHMRORr39MepC4Jl8+skkS+orSMQZYsFFcjrGBJrerM lnoD5nC5ptsgSL43S0uuEY/RBq2YGOMaTMHUKtwUanVbzODBiBxfWMUp6mxg8JlJnhbm 4+zQ/zQKim77FDKAgqvRBjgnODoJhW8PDgVPLeGgv+K7aFz3aS/gV9mVWGVNo+otYKKI RK8kOo/gYb3hHgrMZOXdwtqREng2esMTbMfbRMNAMS4HStKMNv54G7njWhd8dGBBD3rg 1kOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425301; 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=X/HhfixYKI42Jnmvpurms4ZlKAo1XNYYYTpB5v8v+98=; b=ZXWSXiUaXcaozxhxupQKgJqMJ164DT0rgWQKjsNNPYxYOhQvZRhRLA8MeWGpPv+iNO fXnPDLTXB7Gkr4LKksI1Wd2GT2inyLSQjHz6OA2Tb5xO4t38LPZFUCUNU18nValRxAvM edjXeDsCqCTfYsZ/zKg5UxlfYJyRwgzhMSP88qH8y5xTc1nzuTW3wGwHd1u+IjT1aOic OeNly+AMVIYUYPq5ZTKC5zVXiUa81HMyjy922f4t3J/bJa7aCQdGFhdJYID+U1vFhJwv zqKccZRp6f71XAlk1bwF9rcwN3UnLlrK6+w8H/EkUvwNgpmYXWwmjZy8f1eKP0B6PyKb hdHw== X-Gm-Message-State: AO0yUKXpP68zUrGKNKleZ+dVaneqGIrFyOBy3YLHfAVaFIeT67Z0DJ+z dQGm0oMukzfpVKry+PLkpbljUQ== X-Received: by 2002:a17:902:f94f:b0:1a0:7151:3cbe with SMTP id kx15-20020a170902f94f00b001a071513cbemr139651plb.36.1679425301550; Tue, 21 Mar 2023 12:01:41 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:41 -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 3/5] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Wed, 22 Mar 2023 00:31:16 +0530 Message-Id: <20230321190118.3327360-4-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=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?1761005960007532962?= X-GMAIL-MSGID: =?utf-8?q?1761005960007532962?= 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 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 662098e85b97..6fb3596d3c01 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2082,6 +2082,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 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&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 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&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>; 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>; From patchwork Tue Mar 21 19:01:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 72998 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1958123wrt; Tue, 21 Mar 2023 12:08:16 -0700 (PDT) X-Google-Smtp-Source: AK7set/niotSkoPN/Za80DqYygbA2W84vs34J1LZETtXjff2YqG1+qidVIVCZ8mslG6xsq3JwbUh X-Received: by 2002:a62:5250:0:b0:5cd:d766:8a2b with SMTP id g77-20020a625250000000b005cdd7668a2bmr887950pfb.6.1679425696035; Tue, 21 Mar 2023 12:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679425696; cv=none; d=google.com; s=arc-20160816; b=W3U1UEPYvybN6yStUVgJpIBL3YWhrwQ2Lri/Osfzi/9Kk5w8lr//dSdBjJfdQIAown flpUk7hM793uqscO07YL9YarjGfJl5oKKc03m/VJTbCNgUsF9+KKK5dHi6BKwWRj0VmT tOVPAikj5K5NchgashFUbsFO5TIHKEvdFFcaBUzxhzMdNOPMoASET7lkkexWIijLYSce +8VWaH3XT31sN0cfbqFvJPYuNWyMiCTgKi3ZC/BluJbCwngMSbUxqK3mMJzLE9zTCgK0 Y+OvhlSZJtKC9WrEzmNLjOtZA1F9tiY1rPemWc1nxRv7gwyAUwQH2729eHqdfimt3MWR 3x/g== 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=JRSyezpsA/5MPMXpkL0qmxlQpxlVtCBZd4yM2HAk9OA=; b=A+RIdSfelAfcLIB+wxV+EXZ15+atQGcDel8UE8X9np/hxxrqIRHYu6YukY41TffLQa 3nMqv82Ypuaz4/wlN4GuDTKT5Lgcv6/PBJwRptM0uC2dyjjsf9IIUTD37G+lVsPeqkCF ajegD643b4fKOf7T1aL8aW+LYrmAPV/YjzU+EB6TQYzE7waz8oDb9Zz62BEsHjvlqBji vL4CktlcpsxfFk1VJl/jY2eJ4M/cZT9YiE68MUwIyaH+9pkpmVG9R1brwbjv50i57WKh 9YEqZUUb9fkzdMdqBFGHk/ZEVo3CdeVSuf5kQLKmIpsKOZ+yLgI2PM5jZBILcobaKDDQ jbcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XdWS0wBd; 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 o73-20020a62cd4c000000b00627fd9b86ccsi1773679pfg.136.2023.03.21.12.08.00; Tue, 21 Mar 2023 12:08:15 -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=XdWS0wBd; 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 S230299AbjCUTCQ (ORCPT + 99 others); Tue, 21 Mar 2023 15:02:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbjCUTCD (ORCPT ); Tue, 21 Mar 2023 15:02:03 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 525925650E for ; Tue, 21 Mar 2023 12:01:52 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id om3-20020a17090b3a8300b0023efab0e3bfso21190908pjb.3 for ; Tue, 21 Mar 2023 12:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679425311; 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=JRSyezpsA/5MPMXpkL0qmxlQpxlVtCBZd4yM2HAk9OA=; b=XdWS0wBdxLITpiS+chZm91jPxIc6HduEnOERlKtXXabZiNKLX5wZCWg75H/R4Ipt2G OCTDDPD6szBHEJjUefEGvyofsrm8rNANbHB8b9XpbsSBrZ3XebAcQ+gpqgc2M15ylFce XtWBMwQSb2uzqLI4/N6UZ6grcZdAkh283RChSLi+9aVF9m7iFN0ExYS9hfOmMq/qf0jZ dc64CtkDqlZ1n8qTmFLBlxVczdx0ZUno6W8RjC+z3TbUZ+oxH3IY7BxWale7V6+ZRHTK le5kbsG0qhGZqNvTNRkY7TYt/uwO/evsm/YrozLFKbkkWr8TbuVaRGSONGoNgI33Dnkh t8Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679425311; 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=JRSyezpsA/5MPMXpkL0qmxlQpxlVtCBZd4yM2HAk9OA=; b=mNWcqbkbhaUn61LyKA3y9m2WT0MRr2L5x8XYMa4Czts//zeT8653RWv/m8zWnqkNhX juwKwlXYkORbYsr26gjTw+MZJQd1mJhxdwxDy6SHD9YdGiyOJ6DeJSQ7ZavrIqcFpgKO djsFfYN3ASHG5RWMWUInRCzXm+zz/58ZK0XCbXTIe1hHuIWYZoWHF6+iiELhEaMDmLat YrCg7dSLsBgo47m+D+Y7hzqDOydwuzX3PZgOJ7b8LqxJt/ZpoU0gz3GEWaRawzSowQ3F JCr2iHvZfzKRE37sxGoBWqrBAHud4rLdImNT5UxePAplAvAttU9okskDmn1koiVSzEVs 5UeQ== X-Gm-Message-State: AO0yUKX+NjpqX4PKR+Ggin4yLAYxgn2+/pD4UBO3KpsZkjnqiJhXsJ/V IJsTxgimEhDV6g02WlLwKWLWwQ== X-Received: by 2002:a17:90b:3b84:b0:23f:63d5:c10f with SMTP id pc4-20020a17090b3b8400b0023f63d5c10fmr660178pjb.25.1679425310756; Tue, 21 Mar 2023 12:01:50 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 12:01:50 -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 5/5] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Wed, 22 Mar 2023 00:31:18 +0530 Message-Id: <20230321190118.3327360-6-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?1761005478806213237?= X-GMAIL-MSGID: =?utf-8?q?1761005478806213237?= Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8350.dtsi'. Co-developed-by and Signed-off-by: Robert Foss Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index b2f1ea4b671e..d017a0a11fcb 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1730,6 +1730,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,sm8350-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 &mc_virt SLAVE_EBI1>; + interconnect-names = "memory"; + }; + ipa: ipa@1e40000 { compatible = "qcom,sm8350-ipa";