From patchwork Wed Mar 22 11:45:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 73389 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2301962wrt; Wed, 22 Mar 2023 05:05:30 -0700 (PDT) X-Google-Smtp-Source: AK7set/lJlRLNM2gcldv3KCH9oejX3cGUHVcYLpnzR1pAbRSPTkxLsZMzrTn1ZLDqhV0IzcWF9Rx X-Received: by 2002:a17:90a:305:b0:234:13a3:6e67 with SMTP id 5-20020a17090a030500b0023413a36e67mr3614159pje.12.1679486730060; Wed, 22 Mar 2023 05:05:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486730; cv=none; d=google.com; s=arc-20160816; b=an8WrW1VNfZ0ObNAVKSwITYe6QBtOolc/B2aB8a+sTiGMDVBFj7U3YPTavPPwTxDxI nM9qHN6qoHKVfqDgC/f967/Zj16NJvlqKECLTuFPD+6/If4d1FndrWNW2sZCkPkubSJ/ 8Q1SMQhmP4UsBax/MiSMt5ieYDNOMF0iHExrXjy3NQ/HcbOqPEcTF+T0ewhCMCGCYb2E 7sUoLvK4V8XR2B9Tryd8zjarOm2RN2Tv+p14cOQN9oWZk6nChkc5G3nCs9+UENiaMfxY e7eBLjqUI0r0/8AjjlkHsU2mrvoFZOwNET/9KDmnx1QO/pyDtGJt4KSH5PYEg0zKGWYj SPhQ== 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=I/QZc9gZG9fueXODq2o89xljOdcpkBJcOX9/f1kD4r0=; b=SpkVLBDOrodDqbjk2Tm20B22VncXjjGFN6uzXafFZJcongHoswgkq1hNdExaSjh/TI XVkGwtPVFT6oQXK7jURwj4dRihn5JZCfKcVZPZPy+W8eeY5qu3KZzqFa2VZwbVBRrl2I SvnnjWpLMlW6GbNn6oDWRxlilcrJDAZMsupAOHB+hjJirdHu7vc7ZG6xearlzZOZo6aX C3+kXVZ+e0cybWDfZ+FEz5Ye+eyWD6MUVLki0Rd/vlv3yUFiov8WKGNp1TaBPVWzlLvl vDczfX7/G7/7nHe+kkimwc0rJqU74qaUHmpjRb2H2LJBuAO5Q6MIqmFnWFQEHrGldssC oDEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=or8ldxV5; 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 e62-20020a636941000000b0050be91fafffsi14945185pgc.818.2023.03.22.05.05.15; Wed, 22 Mar 2023 05:05:30 -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=or8ldxV5; 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 S230059AbjCVLpo (ORCPT + 99 others); Wed, 22 Mar 2023 07:45:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbjCVLpk (ORCPT ); Wed, 22 Mar 2023 07:45:40 -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 8A7695F20D for ; Wed, 22 Mar 2023 04:45:38 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso18844578pjb.2 for ; Wed, 22 Mar 2023 04:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485538; 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=I/QZc9gZG9fueXODq2o89xljOdcpkBJcOX9/f1kD4r0=; b=or8ldxV5kusHSiQsQe6hGg43hc2lWIR9VMZIxoE14kX98zSmsLfczaENHd+hmCP3X4 eB3d8d6ib/SP6DSz/XgWpnB4JuZhDgY/kk3Zjn8lFOFNJIeWyGWKdBK1AUD6CATWZvqP 72mzMLQmI2BEI8gWJ5Fm00SDxWk1Sj9kwTmayohDd3fVB/Xy9YD+FxFrfI0tqqBt9ZjU 6cug9Q8WmWVgwG9lyoKwbDNliFfUKl49IRfQM1DoFVdJDnR7x3CynO7H9ZfpVm+pS+KG fkR5qj232Rzb1hQfaCgqHsOrFhWH5h7ZSEAZaO/1FsDqMZXPGjSfvc6fhwA8PJWN90+H ePBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485538; 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=I/QZc9gZG9fueXODq2o89xljOdcpkBJcOX9/f1kD4r0=; b=SulthmxitwrVibiNSyK2jgtk2kncpky+r6UpGNVWZyzxIWyDsn8bfTp5hM1KeFAKsk vQXSokEoibfPCXjhl5/py66RaI1S6MYn5HBobNdMVkdgsNpkrS37tcpp5zzcJ6leE4a4 ETda8NAPgIx8zH1av/18AZ+U9pYNAuX4bsqI5cYaQKe4s+Z3iHAkVwjHuzc5RP2oVYvq Zbell+B/0BCM0hSmTeFBksYY6xQoxGmcTm81cpbIOnV4fIHdiuqSL3gdyRr0+PNXp9re Q7XgHtpBBvZv8R5zgyfnVB7ISqFGo0T63l2t/6C9o/82A16nUrxhd0+KYgXzoraceS2e 62UA== X-Gm-Message-State: AO0yUKV6XU0SijDw14RDyH/y6RvD87AmLXbnDXBMPIvBe1l5wWwpVNeE 4ChhfMP1QoxpujV1wiqeh9lUsg== X-Received: by 2002:a17:902:dacf:b0:19f:36b1:c35 with SMTP id q15-20020a170902dacf00b0019f36b10c35mr3257626plx.64.1679485537813; Wed, 22 Mar 2023 04:45:37 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.45.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:45:37 -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 v2 01/10] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Date: Wed, 22 Mar 2023 17:15:10 +0530 Message-Id: <20230322114519.3412469-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761069477527484368?= X-GMAIL-MSGID: =?utf-8?q?1761069477527484368?= Add new compatible for BAM DMA engine version v1.7.4 which is found on Qualcomm SM6115 and QCM2290 SoCs. Since its very similar to v1.7.0 used on SM8150 like SoCs, mark the comptible scheme accordingly. While at it, also update qcom,bam-dma bindings to add comments which describe the BAM DMA versions used in SM8150 and SM8250 SoCs. This provides an easy reference for identifying the actual BAM DMA version available on Qualcomm SoCs. Signed-off-by: Bhupesh Sharma --- .../devicetree/bindings/dma/qcom,bam-dma.yaml | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml index f1ddcf672261..624208d20a34 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -15,13 +15,21 @@ allOf: properties: compatible: - enum: - # APQ8064, IPQ8064 and MSM8960 - - qcom,bam-v1.3.0 - # MSM8974, APQ8074 and APQ8084 - - qcom,bam-v1.4.0 - # MSM8916 and SDM845 - - qcom,bam-v1.7.0 + oneOf: + - items: + - enum: + # APQ8064, IPQ8064 and MSM8960 + - qcom,bam-v1.3.0 + # MSM8974, APQ8074 and APQ8084 + - qcom,bam-v1.4.0 + # MSM8916 + - qcom,bam-v1.7.0 + + - items: + - enum: + # SDM845, SM6115, SM8150, SM8250 and QCM2290 + - qcom,bam-v1.7.4 + - const: qcom,bam-v1.7.0 clocks: maxItems: 1 From patchwork Wed Mar 22 11:45:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 73390 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2302104wrt; Wed, 22 Mar 2023 05:05:45 -0700 (PDT) X-Google-Smtp-Source: AK7set+ahexHDaJ1ogPZsIv2aLFRLpVnHyrqNfUyTKc3bUbzsvUUeN0HxZlXexjpCZcBJ16FN3UI X-Received: by 2002:a17:903:2287:b0:1a1:b9e6:28a8 with SMTP id b7-20020a170903228700b001a1b9e628a8mr3073960plh.45.1679486744946; Wed, 22 Mar 2023 05:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486744; cv=none; d=google.com; s=arc-20160816; b=c79/nGnRpYdwl0OgOBbZbdMncUFegKZoLAFYb/hZJBxLmeOiht/nbSt5P6kf7mYHT0 XoYSl5D0F/BP7E4If2X5xgdvRYr37yw/EoXnmY96+EpojDGhskIV14Lm8WbGjuyg7fj0 4nf44rfBzdFrtQv78KOAKahpgN3LGBcHse5qlsDLn0opZAXeULKPLCtoqKMHORwy+RmK 5zcJYhP/23VaGgYUMxOAvUGs7SPS3hFswEhxlCKR/PxjTFUVCcR5FYHiP3VO/UNUl3/D eaMmQYOpPtDPvTkFHyxhHXsrn3GZa3yZMYlcGtNSJ1OjIeRtMGqy83NbTdVCc4DDdP/A I6lg== 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=45NVBVpYiF52cvaoHl0w4JJTLlfK1ZDLXhzA7w3zmPk=; b=fv8WF4yDL1ooFBweGtO5bttvj8ajv5qlTGThI5tpnnnwFYBWM6KcqJL149+uIGc9zE jX/Ck5zXAvmF1GPczzClHHEyELogY9cUO9pnnBQVrowAAiDGRLRr6xGtoDZc2VB0rSV5 RibgR5GpAX3AVeqIFHzBpa3Y4OgBZZ6XlXRi6fcS2COt5yjbvwFsR2c80pn5wylOuFSZ Uw3IXZe1Z+j/hWkjz0ABrhnq0MGn99f8M8/wamrsosJORANSNDxLuDwqnm2zSHXqHZIx Y4/ytK1wlvKoxITV6PVP3ORmtWjIRv1yeW+/t6reijx9LAjl4ZDiAg5BljRRnSs/9Wfm Re1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QCpJz+I0; 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 z1-20020a655a41000000b004da377c33bbsi16531685pgs.85.2023.03.22.05.05.30; Wed, 22 Mar 2023 05:05:44 -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=QCpJz+I0; 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 S230086AbjCVLpu (ORCPT + 99 others); Wed, 22 Mar 2023 07:45:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229998AbjCVLpo (ORCPT ); Wed, 22 Mar 2023 07:45:44 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46C83559D8 for ; Wed, 22 Mar 2023 04:45:43 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id u5so18988218plq.7 for ; Wed, 22 Mar 2023 04:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485543; 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=45NVBVpYiF52cvaoHl0w4JJTLlfK1ZDLXhzA7w3zmPk=; b=QCpJz+I0YyR3Y8UkVEK9iQ/AZAdzUodv2rQnOxKrEWSDxgDV8DY3JtFwCbJO3t7JDj Hob3jgIEaE9lZrWnPa51rwhT6QLJPKYyxoWIx2O8OMR9uNx30QTb7rYeeeCvC3s13pgs FCOkhAlHaCtfQWJjPqj3eleMj1fK1fSQ+lnWysUNn8qgmb8OIbL5ZOeneaqpdiHptTMj nz5mMwZgXyKpHqt+brMwl2eWRlXy19BoENSXjZaGvpbN9i2H0hIUStbYS+rUbE5qztd1 1dWyqLnzkSERcbqocR3FCVVj7pRHI7QTWS9cIOn6ruJMn5BMFfa9EmVoOGuHyWjOypwR mPDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485543; 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=45NVBVpYiF52cvaoHl0w4JJTLlfK1ZDLXhzA7w3zmPk=; b=FIq3XghpMufk60kULppDI1qma9q3FATxCBCrXBbJe6FgjdmBrpgOjrYO/06lInDCNo hv0L5S38qbt2PTVr4HHivkncRBisVgQOaPky9PrmJkc9vJWc0IZKqPMXmzRhkGb1T+OC 31Y6XJuMJklogs8y4z23xIOIR2bGvldayBsNGLhmzXKaA/xHIKYcJB1CfRuYRAVsB+ng LJvUrwcR7t3YNvW5GJl5Noh9ivmbpYEnCkJ3mKGvV4m5hKFEafpL05PYCkq7ZTzHUFhG K7s+TLemmTu8fl5LcEtQGyvLNT/Poqn88eTqFybWmW2ExyyltB4iH6ntRzuGOZ2MGWQp LxQw== X-Gm-Message-State: AO0yUKXEHAHXG8YF5U05kr5HCZEP01/myIbeEPSKVzCPyi/HAEYo+rut 7p8QUopCFzZwF5fskLYIDeLLCA== X-Received: by 2002:a17:90b:4c43:b0:23d:21c9:193 with SMTP id np3-20020a17090b4c4300b0023d21c90193mr3430944pjb.2.1679485542718; Wed, 22 Mar 2023 04:45:42 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.45.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:45:42 -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 v2 02/10] dt-bindings: dma: Increase iommu maxItems for BAM DMA Date: Wed, 22 Mar 2023 17:15:11 +0530 Message-Id: <20230322114519.3412469-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761069493104935952?= X-GMAIL-MSGID: =?utf-8?q?1761069493104935952?= Since SM8450 BAM DMA engine supports five iommu entries, increase the maxItems in the iommu property section, without which 'dtbs_check' reports the following error: arch/arm64/boot/dts/qcom/sm8450-sony-xperia-nagara-pdx224.dtb: dma-controller@1dc4000: iommus: is too long Signed-off-by: Bhupesh Sharma --- Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml index 624208d20a34..5469c9c2a1df 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -46,7 +46,7 @@ properties: iommus: minItems: 1 - maxItems: 4 + maxItems: 5 num-channels: $ref: /schemas/types.yaml#/definitions/uint32 From patchwork Wed Mar 22 11:45:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 73391 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2302108wrt; Wed, 22 Mar 2023 05:05:45 -0700 (PDT) X-Google-Smtp-Source: AK7set/iK6XwqpjkTFg4Seo6UHoyeYG42VbOQZSIdEw5Lt1BY+d4USGFs9mO6Ekypkf20Dyc4ujr X-Received: by 2002:a17:903:22c6:b0:19c:b7da:fbdf with SMTP id y6-20020a17090322c600b0019cb7dafbdfmr3028671plg.26.1679486745522; Wed, 22 Mar 2023 05:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486745; cv=none; d=google.com; s=arc-20160816; b=wHakK4frJ0W4QlGXrcqR9Pl9XwpgjV1OO0ZA9xuX/eDPTIj0Wbsx6iF79kDcN/X7Iv YvZhNBxCAeQYz8AKqfnz6EWjuWf2uZS5Rop4iPWEFKTWV+un3BaWIDnOD/iIzZOZZvWs PJacDrgvMvt4Z3VQPCMGxLbw3w4HsITbAEmz0x4MtStIYqvC83/7V5wW3acO4XToPGFg BsrdsK1iAv2rmHCcokZ02RLlaM97lZJYicgXoDlTUFOgEqvW2PsptLNJVxh3wwlXSPbb uggvarUMQald0ZXRDxxjycOcMfpOA7rQMerFVrAYYov0ccfscHEYKjsgopWuzaLc/CQp Symw== 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=ZX8cxV4gmi38o9Pi6mmNL+xnFc7tlNvHJgTN5N6z5i8=; b=DiMWFnif7vrqyu5HmAPRerZ28D2vwJI4D37jTNTmBwoEdJODI+x0X8qTdMDc5pECR5 JAK/baMDO/LjM1IcGxWTtuZ/JwkSlY6kjN2zdPA647Shj90V04QaJ0NBUq6oV3hPoKKI 0TmCpE9WpNkFtr9X+XavIfZMhPemqe6mCU5SXfkV926Rwi+yZlF8vSua+8UWlmroBR08 7NHE8JdJuIdQbqTmgwC1s8wsEQFFD3/l/nqF15hOJjQzNf1Bt3s7YsVkSamBxXM0LC45 KD4fMp8urbt4hgEmIEmte26APAti/H+J6DnYBPIGjIU5R2lMrEV4Vz+5FXm6Khj/w1Up a1PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AX9DZXXM; 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 n14-20020a170902d2ce00b001a1b08aacedsi15227913plc.40.2023.03.22.05.05.00; Wed, 22 Mar 2023 05:05: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=AX9DZXXM; 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 S229720AbjCVLqB (ORCPT + 99 others); Wed, 22 Mar 2023 07:46:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230155AbjCVLpv (ORCPT ); Wed, 22 Mar 2023 07:45:51 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2586460A8C for ; Wed, 22 Mar 2023 04:45:48 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id c18so18985706ple.11 for ; Wed, 22 Mar 2023 04:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485547; 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=ZX8cxV4gmi38o9Pi6mmNL+xnFc7tlNvHJgTN5N6z5i8=; b=AX9DZXXME3un8pj7UdSfIKe1GjqelLDlEqm7BPP5UV7FblYgG1cQbIIyf3O9J41AM/ JoWdOMBL087P8bDBLKQ5pzNcXKZqRCrD8hnPw19kCG+jygl/BnNWuLzeTQdm8bcFVb7m Oy5ZxYG/14IANAFkHscVuUp3ZcdYVo8Fq5CZdDhkylXWzYVEbipT2hgiWuL++4dZbOk0 xu4hrlG+ibw6nCUcewjG/QOBO20rV83f56Unidsxc4U/8SUOR5I+ABSMjRSUUYKHATXY iCCT98hPzlZ/oGkGutxq4eRNk+Xwu3ijrPbwy7uCEE9qTcb9XwZxJQRWncdpRCO/yYf6 Muig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485547; 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=ZX8cxV4gmi38o9Pi6mmNL+xnFc7tlNvHJgTN5N6z5i8=; b=tKuFyXj79WduNjDRjKyWa1kh2dz/uW90QYE7CWlW7ywH8ekl2h5BOyHTXtnz8DYruG 1Pil7Hz7tZSE/0MSjQQAClv3S2ujuRE/POo4ytheua5ghxZbEeZeGlJZmU1OXbz/lTjJ CZr/Bv+f0TcsR3HYky8Tih0tTIPsn4muaY3DnKC+PyZQjT98f6GBO/OQDhQKMUU7hkDD /GUcceuTJCE3Qa0cq9uKU8wwEWZHn1Wf+pciZ5iwvsF3kLiv2LnICSfFWGbCS3Fk8KnQ qHST7LQotUNuRCkQvRqpZG4kfaRt3+8GVvWM5Lw4HYmsX/pJy2JSbHcwD7EMTX9jQS4V 0cMA== X-Gm-Message-State: AO0yUKXoxMWtyidZfx39/GnoGrh9bDI72VVvAaykhiuXKJQ/tSA+R3Xj iNGepocHqauGzvb4BhU/Lsz2oQ== X-Received: by 2002:a17:90b:1e46:b0:23f:8752:98be with SMTP id pi6-20020a17090b1e4600b0023f875298bemr3535836pjb.4.1679485547584; Wed, 22 Mar 2023 04:45:47 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:45:47 -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 v2 03/10] dt-bindings: qcom-qce: Fix compatibles combinations for SM8150 and IPQ4019 SoCs Date: Wed, 22 Mar 2023 17:15:12 +0530 Message-Id: <20230322114519.3412469-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761069493352825747?= X-GMAIL-MSGID: =?utf-8?q?1761069493352825747?= Currently the compatible list available in 'qce' dt-bindings does not support SM8150 and IPQ4019 SoCs directly, leading to following 'dtbs_check' error: arch/arm64/boot/dts/qcom/sm8150-sony-xperia-kumano-griffin.dtb: crypto@1dfa000: compatible: 'oneOf' conditional failed, one must be fixed: ['qcom,sm8150-qce', 'qcom,qce'] is too long ['qcom,sm8150-qce', 'qcom,qce'] is too short Fix the same. Signed-off-by: Bhupesh Sharma Reviewed-by: Vladimir Zapolskiy --- Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index e375bd981300..90ddf98a6df9 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -24,6 +24,12 @@ properties: deprecated: true description: Kept only for ABI backward compatibility + - items: + - enum: + - qcom,ipq4019-qce + - qcom,sm8150-qce + - const: qcom,qce + - items: - enum: - qcom,ipq6018-qce From patchwork Wed Mar 22 11:45:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 73379 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2295381wrt; Wed, 22 Mar 2023 04:51:50 -0700 (PDT) X-Google-Smtp-Source: AK7set8bgXMBnbQ9G9ERDK5qdsOLM+PM0aAkFYkVsxFRk634JjsQWEN7Yk6wRKTJZwWRN8PYhJ12 X-Received: by 2002:a05:6a20:3391:b0:d8:fd3b:f1ba with SMTP id f17-20020a056a20339100b000d8fd3bf1bamr4897756pzd.3.1679485910394; Wed, 22 Mar 2023 04:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679485910; cv=none; d=google.com; s=arc-20160816; b=AjxvrWde4TSd7vKN0sNB7NBNi2N6bYdTCjybEgr1U5jnGU63OtMgLA2vPUjSFiGm4g +1H0Nr9vJGDsLAfxSPY1xEj+KKzvEGd0UFYIOS3HGz748TZUb2zzq24oan30MEyx3oGi GLrvakU+NI7gumh+aXHBPCXecm5th3PsNKrHiSJ7RMrXvIzbgWCqxP0juZcO51OKyZ6d /aP4gz1IVetNVa4su9geaBYdAp/j7l9WMsCWHAUyvydlA3YjgudZ2/w/1B83oGQB2hI/ N6z3ogxWR1I5J4ByD54QntuS7svPjQv2P8JMRYi5ReGPZz8C53kuqi4QYGZgZrg7sgM1 v4dw== 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=T9gxxdsDfgbWi0NQQ186kXUJvaTNrijmTWV7yOKYXxI=; b=H+f9xxv19KP56DLZRJl/iqynQim0CYNIjLREAwRzBA5d0yz/XetGJX9qB7DaVR1CTb 9JbgGQUOW21So4lCGYGHeLarZKDS4tNWMR2g88YT7stWK3eSHbZ3Q/QBj8q6JdrtXEqC H1TmboEs0a55VQdgEOedkGfyiUo2Qb6oP7ioceSJ5JXGG4YMiHYRhJbUOK/ajUJpH9N3 1Qtnk4Jko+iHua5KX0UGk97USyi9HCoX8Vsqia2/HlDkFGs1dgUIuFlJbKpqLluJiVJF WzUi/vJSaUfFJ652IFBOcRoOREh+9G/oVCzSJlHymDajKPJ2+uXiQGB5wecOotwN7riA wqfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qK3kPSiM; 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 x26-20020a63171a000000b004f2022f3cc2si15733031pgl.813.2023.03.22.04.51.37; Wed, 22 Mar 2023 04:51:50 -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=qK3kPSiM; 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 S230299AbjCVLqN (ORCPT + 99 others); Wed, 22 Mar 2023 07:46:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230194AbjCVLp7 (ORCPT ); Wed, 22 Mar 2023 07:45:59 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC2F85F22C for ; Wed, 22 Mar 2023 04:45:53 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso18845318pjb.2 for ; Wed, 22 Mar 2023 04:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485552; 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=T9gxxdsDfgbWi0NQQ186kXUJvaTNrijmTWV7yOKYXxI=; b=qK3kPSiMKprxM4J5K/OfeRxaztw/KVwnscrBgzAkljdru/sg+reZSY6dX8H4KP1Rlo Fb+wwSMVTC+u4kX460OPNGEZMepcgiWkwxnW9NFNcy4SFY9jKHG0oIjz/5Jrm46uM86I P+Ymy3vGcaXEFQtX6LtYy49hDMAs/sHIdQc66P2UOxJxsbYxq4mZzUWo8LeiuoKAhcKY RWDmhoiyz1iOl5vIKdOlQeMYLER1AF94ehNM53s07AU/VsFjxSCyp4TZeOwnfbmwXDDR 8dd4vhv//DeihB0p2ZN4GsEMpbwvNF7/ukYwVzv37g+s2UwGcDfMuXuk+0uu1AhHJyXN d4Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485552; 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=T9gxxdsDfgbWi0NQQ186kXUJvaTNrijmTWV7yOKYXxI=; b=0B7bCoFFAqnW5PiiLtQ9lJ5P3FBMnI9hRxfssq7+AnJyUOQH3y+7lqQQwD98eePct7 70u1zq0VjUaSbZFlj9VbRQPTE09sLraeG8Nmf4RCj9oOXRS4/pyTyCTiFa32qtYxtTPD 7MJ+n3UDYp9sz4+/B/Voh20kLMxTZXWwB1IYUXGCZGBk6j3y4Tcgpb8j0gYAJ8Nj4N2/ FGBSK6ebjO2Pe08dEVrV0AKZMRVp6CdB65X93OsBd0U1zrSQFdqh3ghB5lEPO3Z+wG0r hkI7WkiAUCJ/fE2QNlr9x6RPpwXMm83mmEWFFuh6ZlQHidM3JGAejDOZV6SdmayBdFnL oBHQ== X-Gm-Message-State: AO0yUKUoPG+UlsGgW1fXCEFdP5tuswy2sUSZAGe1FVGtaQMSc/Abbz18 PF1GRafiW0jmWrNwt4LfmovtNA== X-Received: by 2002:a17:902:c40b:b0:1a1:d949:a54a with SMTP id k11-20020a170902c40b00b001a1d949a54amr3402037plk.58.1679485552558; Wed, 22 Mar 2023 04:45:52 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.45.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:45:52 -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 v2 04/10] dt-bindings: qcom-qce: Add compatibles for SM6115 and QCM2290 Date: Wed, 22 Mar 2023 17:15:13 +0530 Message-Id: <20230322114519.3412469-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761068617720046456?= X-GMAIL-MSGID: =?utf-8?q?1761068617720046456?= Crypto Engine block on Qualcomm SoCs SM6115 and QCM2290 do not require clocks strictly, so add compatibles for these SoCs, indicating that they are similar to the flavour found on SM8150. Signed-off-by: Bhupesh Sharma --- Documentation/devicetree/bindings/crypto/qcom-qce.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 90ddf98a6df9..82ea97568008 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -41,6 +41,8 @@ properties: - items: - enum: + - qcom,qcm2290-qce + - qcom,sm6115-qce - qcom,sm8250-qce - qcom,sm8350-qce - qcom,sm8450-qce From patchwork Wed Mar 22 11:45: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: 73395 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2302535wrt; Wed, 22 Mar 2023 05:06:33 -0700 (PDT) X-Google-Smtp-Source: AK7set9X/3JsaLcN8sPRnj7I7vo792T3LU3yzZLUMWDzRwAVRJdUY7IEZ4UjE7V3zN7IGtgegRHl X-Received: by 2002:a17:90b:384c:b0:23e:f856:147b with SMTP id nl12-20020a17090b384c00b0023ef856147bmr3618891pjb.11.1679486792716; Wed, 22 Mar 2023 05:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486792; cv=none; d=google.com; s=arc-20160816; b=KmwcHS2JXuCFp4A0q1ruwJJqmL3W+WMxaoIeeBwXYaWZTSK+nfa+ZVDE4jkEUREvbe XKNSxRQq10PPyy/ihJMknxEOCT7MGVy1txK5S6F2YPl3eaolSxR31Y0kolmIUVOAHR0U RERi5mpFm/RAAUzWKRqgCmewr9DbPRlUUZqdV35TQpcY4JFRfs/MKQk57Zh8Nv9TOT+l N38p09GE/8EShSkUXr/AflVD4wRRqNzt4FFrajtnNqLRNn77KqeW3mYEeUpg9FjbQXJl EAXL6Vyt1hcW1T4NPGT7XsTgxHIF5Yvxf665klBavxZE/Fza6fjJASupNnsOkZAX8xCz dbkw== 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=Cg1lgnQu4+xA6eepXo++mQt8woUG/TBdycNm/YyfbaU=; b=sKWcSEbSgx0Bd/4tfNpEpFo5Dxql9ojhBC+m8zqJAAl5GSJhAEhHeQgqs3FeQjKgrl 4suiH15m30Cuq0KLcymqwenQfBtyzryLmG6A+ur/QWQ4jC2diW9559SVd+lHR124Awss dNWjFOeB4DeGCUvBxNN+opnjlb6aS7QT1DBRDQEWUsLLTvea7X9W9+RLf+/T8fPnwpPp C1bjW0sqkkvQUOFqpjlA2ltp0mzBSy53GT5XL5qNmPGzhBtThwJrHQmHus+caf8BIwnu 5hbcSz5gp7hty3eE+IHPbRuRcbJry4Ep14kZG7krdLxpyl7LNeRZKXKEtMbW+Ryi73L4 rUKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bHloxSR0; 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 x9-20020a17090ab00900b0023747b24923si14824820pjq.53.2023.03.22.05.06.20; Wed, 22 Mar 2023 05:06:32 -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=bHloxSR0; 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 S230281AbjCVLq1 (ORCPT + 99 others); Wed, 22 Mar 2023 07:46:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230272AbjCVLqK (ORCPT ); Wed, 22 Mar 2023 07:46:10 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D91485FE9F for ; Wed, 22 Mar 2023 04:45:57 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id le6so18973129plb.12 for ; Wed, 22 Mar 2023 04:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485557; 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=Cg1lgnQu4+xA6eepXo++mQt8woUG/TBdycNm/YyfbaU=; b=bHloxSR06JBHimoDUxxzfoM96ibGI12KHvmJVET3Y1eeRqh14S//VtaWXAFdUMAeTX O8cTRndpBgrpUiIP12v7JU/G7g2xU6hcKR23IZOm2qSH1LLdeODlKQ68Muiwapt6c1ML icW0vMvyxQsORze51OHi33kN9b6FQdzuJ0NNAIiNRa1shWP02wkGUSvjXSESX/92lXmk NDDBVb3m0g6ItHmie0iwBtTVDszLT3uM+yGZ8ETmyNrDzkhx/IOEP3eGjSOyBLNVEByd EdtjWdAaMvdRcMLyJOY+7x+bASHp1JOMcPxLFJ7sNOb6JeLAWvJW4x3FETiDgs3uNf03 B5YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485557; 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=Cg1lgnQu4+xA6eepXo++mQt8woUG/TBdycNm/YyfbaU=; b=ZMswfZv5Lplay2ZPl+7u3ffI2wKYDPh9p0aE4ISrOd0XtMYUmkfTD2fEgDwkYy3kJf ZkAhPUm6oHLCvs0gIaaQ5nnL4IzGs7/5OpbuQVDM8rNcWIuuJVMF8fZykVP0BSWkRKp3 BppHAptzVEt313dpQHxqhKj2tM7DjQRma9O3KAhOrNRfnFhfPqhdE+65NxvhDfNyngdt 4+tBR3JGcsbBVHsnVyeP8cXILn7TSTyzzXI3TmqX+oU4zJk7r5lIEZQX7LlJkLLrEeaZ 3eZCjJ8gnY+2cR9GOYzdXIa7iDimCm+r0+ursrlssSSCrItxKVFZs36Phcmm6sL2SGFV j4qQ== X-Gm-Message-State: AO0yUKXtb8949WArVGzHU1hMMYoVDyJlmO29vfbPajE2XqT/0BY+TJwN VkRv8yEF9KwBZ9NcYNuZJAo69Q== X-Received: by 2002:a17:902:da8e:b0:19f:3b31:4d3 with SMTP id j14-20020a170902da8e00b0019f3b3104d3mr2620957plx.41.1679485557378; Wed, 22 Mar 2023 04:45:57 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.45.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:45:57 -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 v2 05/10] arm64: dts: qcom: sdm845: Fix the BAM DMA engine compatible string Date: Wed, 22 Mar 2023 17:15:14 +0530 Message-Id: <20230322114519.3412469-6-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761069542713613936?= X-GMAIL-MSGID: =?utf-8?q?1761069542713613936?= As per documentation, Qualcomm SDM845 SoC supports BAM DMA engine v1.7.4, so use the correct compatible strings. Reviewed-by: Konrad Dybcio Signed-off-by: Bhupesh Sharma --- 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 Wed Mar 22 11:45: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: 73382 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2297604wrt; Wed, 22 Mar 2023 04:57:48 -0700 (PDT) X-Google-Smtp-Source: AK7set9AOxFYWAkLFakJwTkxGEzC+6wjdvgy8PuGZCdTp2IMb91MMJ0Z0wc2juh2DzyUODX07KYQ X-Received: by 2002:a17:906:1611:b0:91f:5845:4e3c with SMTP id m17-20020a170906161100b0091f58454e3cmr6319749ejd.42.1679486268693; Wed, 22 Mar 2023 04:57:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486268; cv=none; d=google.com; s=arc-20160816; b=rxwzauOmJvfGbF7/qDsjk6LvSA0QmmR8cmCaPPIKcOAarOz77gsPd7AJD3n+tPiO0+ t/jQPTTPfyPBN0ybpxypuplE+VkvagDj53Ode3ZKTEHbFRsoG2N1bz6/bCvscbsozZjb ClNlQT4W+zfjFOY9XbW+xsdkY2OdmjUjrw5WA4ssbi2MFpThLhCqKwbFLjDY816VsVP6 I/DZBWAHBbkV6MHR7AOaqyVE52G99UgkHYa0bGbGVw3JkZ2c3F4vxyu/Kc6NhcnBQzJP AiuqSDfXS7cCmKjss4vwk4QJB8hsET4MPnxtlBFQIM1beEvtDTZLHLN5PQuh75d7DXX5 ZbPQ== 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=b+8IuRB7wPiG8RcwMJh7jwuTW8oHkpDSzf2to+aWgkk=; b=iOR6XPCS+QKERRYHYxAj21Za5m5FE2JRoREwFzyXN8c549RRcBal4qs9mWAxDbto4I wXQ2PoZonzedytG3x/1CEIdK67ZUt2ueWLdcqV0WYSeKI/e7qphO13+v+MEthz5TVW+a XOzbeGS4VdOW+bPYxvj/4GIibqC8ILpcyrF0BkBQDGq+Yg7puOPyGhkPo7g4qgBhKNbF 0j08jFBmrUgRSeM39Mjw7e3BzR4iZ8ja+Jpx3TomdlDEOqBD5kjppggp5uZM9QExEs+W rioT6doFxXqUXbLmOmBAFSRvPNW/XmOjvpmV0ueLh9NEODKv9wtnViF8MtN7VtPZQKX2 t3iQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JuLXRqui; 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 lu10-20020a170906faca00b0092beffa3359si14173548ejb.14.2023.03.22.04.57.25; Wed, 22 Mar 2023 04:57:48 -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=JuLXRqui; 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 S230111AbjCVLqo (ORCPT + 99 others); Wed, 22 Mar 2023 07:46:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbjCVLqV (ORCPT ); Wed, 22 Mar 2023 07:46:21 -0400 Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B0CA61899 for ; Wed, 22 Mar 2023 04:46:04 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id c18so18986182ple.11 for ; Wed, 22 Mar 2023 04:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485562; 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=b+8IuRB7wPiG8RcwMJh7jwuTW8oHkpDSzf2to+aWgkk=; b=JuLXRqui+5M3hNGpgOtC9Y1YzExdFvkHC7RdPWtEVyntoiFH4r1wOhLskjgGLJ6R7S kyF3jr7HMLgYOS3+21KKkGK8s0ampd+vWvtbDuBppPfizAk9uEmwlAs6Yq78q6rTXR/T qTQGNFy5JepXGqOzWu5ALkuNQIQwFnQmjU+7VPLZw+mIvB4fmHNlk8g4LTpkzLOAA9lZ r5iJjoV5ec8AjSp7y87rJHORt0smLFVW5rgM36zMGAofEQw9YyF31Faq/A7t1jAbbk17 9enRAWne3t/FrurWH7t6qF4w8jSI2Ejp6VmUplWhrtMRnVSFXb9CAcy7ikrL+FpAQZrm SOHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485562; 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=b+8IuRB7wPiG8RcwMJh7jwuTW8oHkpDSzf2to+aWgkk=; b=S66VY1ExZM8ybucZ+LKAXWRH/QgLXiTBiRgxIQSPbljwCb7EbktgTEJyitmUD+1oOu +24GU9kAFrbUfeigf0WmxGZaF+ZmYOxcbGARtVWbqCwB2U84wHl3kcU0g7E3m8hlDk0H TeyGuOq/eqP/WIXKqZG31fzdKRmJCARbT2dV6PO3GPNxuT7/nb7w91+1w7vV0uO4hhD9 QikeWcR9gvTHZ6s2gEDPo23xuwiXuYmz2P1U3hbI6iaKrMMJnYd/WBD8bSheyGaXnOtF R591Dq8/PKonE6xzaWj/g9wYIfjiFXTAHTDZXN4t5pQHNcS3VgC7NvCNfy7iYUselUI8 2bVQ== X-Gm-Message-State: AO0yUKXGcCtj3R+DLyHsiMHmnD8YaJ/sUQRC/8eoo6u91gkb27sVZgLP t/W0/kTNwZoIhUBx+xjj1w4YQg== X-Received: by 2002:a17:903:686:b0:1a0:4b9a:bae6 with SMTP id ki6-20020a170903068600b001a04b9abae6mr2459904plb.30.1679485562498; Wed, 22 Mar 2023 04:46:02 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.45.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:46:02 -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 v2 06/10] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Wed, 22 Mar 2023 17:15:15 +0530 Message-Id: <20230322114519.3412469-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761068993799276040?= X-GMAIL-MSGID: =?utf-8?q?1761068993799276040?= 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index c56738633431..d657e1b02062 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -664,6 +664,28 @@ 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 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 0x94 0x11>, + <&apps_smmu 0x96 0x11>; + }; + qfprom@1b40000 { compatible = "qcom,sm6115-qfprom", "qcom,qfprom"; reg = <0x0 0x01b40000 0x0 0x7000>; From patchwork Wed Mar 22 11:45: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: 73380 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2295797wrt; Wed, 22 Mar 2023 04:53:10 -0700 (PDT) X-Google-Smtp-Source: AK7set8Rl7lKx8ppVHNZX8JNSN1BFOsmUzESs6wg9PN1IPkG8r7kMy6szrHiyqmje+sY5tYl25og X-Received: by 2002:a17:90a:e7ca:b0:23f:680e:78bf with SMTP id kb10-20020a17090ae7ca00b0023f680e78bfmr3611575pjb.29.1679485990496; Wed, 22 Mar 2023 04:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679485990; cv=none; d=google.com; s=arc-20160816; b=K7Ocuq4vQ9V82lB8ido+nmN7kz5ttD6AxG1RZakhXhEgEeYCKruXYKCIG6EAHw5RJz 77vYaynqk3GaZSUSp9NfAhp/U2YxUzWNG9Vhz/nv2C6/EhgPafbSLUjyzRI1PblbssMq X8ii3w9Yo8lctMEmO8jadeXpc3oxKiPT6hf8zFs+1F0qOzIKzFxA7G1FfThgNZzOVGSy zlMYydWZOPML2Dpsvl3ttSi3dRtKgRjz9jhtlqEK66DyNfM1F2CIhu5NWeHMRVwSNRYl w2wsx8oz+wzbvBtx8OR3FNRfHmo9pitN1TWG5kIBGpvSo/bW1EyAOhb9uwJYLhJYpAJC ffgQ== 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=49XEgaz1wK95phl0NGb6ukHofMpjAnNHJLsVXiISQD4=; b=eU7Rv2Bu5l/Kx9yAKUEHt89fdOndg0iUeclG2nIXCf/33nFr3f9V5nEe/bGI1k8cOK rmhsbYg8XqOP7vY9O2QFJ19AZ5oxHasnpfVWF0liODQ422LOKL4lraR/Z7+Aymz9noeq zMmwXDhAjVgLtuZrqIX32Qz5bw148RE1qVT8fHabsXf0HtiKJPUhvs8iCcE+XgNwGASQ Uk/aDtiYxEMOXABC4uO7j72FYdyyxsNSXBP/3gIU7yqn6RXgrxnwrg/30gOAbGYW8SUr 8U4qwOYJKhZGkI1sLtmRQBPJqoQDRG97VriboSK4XDSGNjukivSTkMo1Aqw+KunSqipW exRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yowy7WlR; 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 n3-20020a170903110300b0019f7977c9cfsi16791247plh.319.2023.03.22.04.52.56; Wed, 22 Mar 2023 04:53:10 -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=yowy7WlR; 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 S230154AbjCVLq7 (ORCPT + 99 others); Wed, 22 Mar 2023 07:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230287AbjCVLq1 (ORCPT ); Wed, 22 Mar 2023 07:46:27 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89C8A62847 for ; Wed, 22 Mar 2023 04:46:09 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id c18so18986374ple.11 for ; Wed, 22 Mar 2023 04:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485567; 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=49XEgaz1wK95phl0NGb6ukHofMpjAnNHJLsVXiISQD4=; b=yowy7WlRK5hc22HigoKlwXZgbQ8buRt/BgUGxNx6g5N1KZw+aL7DODseO7mEhddT99 4ASWA0EjCSTa4URJr9mG/vPAJ3fKSOXXdSiFk/R9O5k5YsU31Wra0yBr/j4MRwqf1H46 6a8NmIzF2BzgvfRefNQ5XxuDa3/RsqT+lftIql+hLTIuieVlyI3iOpb/TiHoZsFiWVMH Anev7hHjwplnDVvI720YgrOd5dPWeiolj1wUfGK8wlIewKPPmid9nZa7IIWaNFOBW8mi 1OVF87BZCz1gJZvbKqfOhCSMaBCTs7KhDzQ8B/wqnQ8VJOEvklxaMy/VMbgWQ3opMM6J g5ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485567; 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=49XEgaz1wK95phl0NGb6ukHofMpjAnNHJLsVXiISQD4=; b=TUEEbuT1BXIcJ6hTcOCYDWBtyJ/frB492MjCmAsOARbDi5/bVuj4sXrxB07v2yUSho ZWQgejJu6ZaEi7e4DUBZLtrRwufnVJ461ZNhZ+Pxrg4uBw24ZVyYEs8SvThCv+SEWC0r zprZDNKuosa0gADv3pJahfSrSkbjkb5Gva4YMzsWT5S9MnxE9f/rcdSpX5yhtIlJRygV hXHlB5VgYs6Vd0O1tDD8D5mnJs5LTkz3brDK0weywZo3G+NSYJtXoSOtvXCnFlyyEMHr WIHUuC3hdjUVqdmNWskXp2V02h3Ema+WeFmHB3/SPJRbPGKptk345nbcAPa2pZeE0DFi 71Qw== X-Gm-Message-State: AO0yUKXM2Vy4CfXv+Msu7MnosfOjTV9yG62/ecXtevFZYwaHyqiTE+Tt Vm6hCY4mdVtoOnUH17yCOqkHnQ== X-Received: by 2002:a17:902:f9c7:b0:19e:839e:49d8 with SMTP id kz7-20020a170902f9c700b0019e839e49d8mr2161408plb.59.1679485567500; Wed, 22 Mar 2023 04:46:07 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:46:07 -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 v2 07/10] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Wed, 22 Mar 2023 17:15:16 +0530 Message-Id: <20230322114519.3412469-8-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761068702194443452?= X-GMAIL-MSGID: =?utf-8?q?1761068702194443452?= 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 662098e85b97..5213e7e3e44b 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2082,6 +2082,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>; From patchwork Wed Mar 22 11:45: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: 73388 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2301498wrt; Wed, 22 Mar 2023 05:04:48 -0700 (PDT) X-Google-Smtp-Source: AK7set9CAqu368TKgTvPqWXCGuxt8ROUcudR8N+n/SPPCmZ3BLu3rsZedOJuU+elW7kmraY4qc3+ X-Received: by 2002:a17:903:5c3:b0:19a:a267:f16c with SMTP id kf3-20020a17090305c300b0019aa267f16cmr2370236plb.31.1679486688449; Wed, 22 Mar 2023 05:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486688; cv=none; d=google.com; s=arc-20160816; b=Zj8vtK3zasU0uQS3erV19kk9UT6I3ZAzg9DH1OX1SqJuNcuH46hoXw9OQL7rM8vqUY XpYbAR+O42V2K4gauCNtHvA7e53ZH71loQk8C+iSgpwPbmLwZqdUXrJJNAfnRU0yEYby IrrRE7w+98mRqu3j6ie8RA/APWfkKFpiMgbPDDWmCt/UXQkdiSfUaEI/QnoQsb65aRkd V4VQXzFT9JXbiYUIXO2Xw2nJ6RtH/lUhhNGN2k+xcclRgpjiqQYmI9T4ujZPphaA58ij 46aOq+wyQnCc/pD6QwanFjNJCkgK0lZ1gA9HIrNIwiW+C7eZNnW0ZoEgN5CtR9PADWdV fjQg== 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=lBzdk5jveeS/JKT+9yyCQAyTFFXN6rxWCWlR5xuiXEk=; b=EBLs1ttQ1Mu95PBGtwL6rLe/FwWGqzVLiTQi5m6Rhu7YvoczkKH7SOMjKNKAPfbzHZ sP9OhNiNeoCaOot+LqrtaDQiB2KotMrjxW7OM/Jbrgqp0xa02ny9LsSn9OD/LW0Vxnw9 HWswjp0IdvTfTYjarKeyMDh95c3bBAVKBaEe8VVyFAwyHLchlrwwxKnUdYz/fAghOAsY xmC2aSGlOsCZ6/3QXLrGIRoaPhBqX6h5jba2yMyQZT/0+G1lOrONM99amf47B2hvEGQe 3Q1K0lprXUDIBziC8ZVX8D50aTr8SW4tNLqz/xZvKbzI5ZZNSNe7Sn13aCHBOoCNGRoy 5Gmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FQ4oEfEf; 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 t10-20020a170902e1ca00b001a19be445e1si14784615pla.514.2023.03.22.05.04.33; Wed, 22 Mar 2023 05:04:48 -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=FQ4oEfEf; 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 S230228AbjCVLrJ (ORCPT + 99 others); Wed, 22 Mar 2023 07:47:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbjCVLqh (ORCPT ); Wed, 22 Mar 2023 07:46:37 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 144C362871 for ; Wed, 22 Mar 2023 04:46:16 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id e15-20020a17090ac20f00b0023d1b009f52so23341727pjt.2 for ; Wed, 22 Mar 2023 04:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485572; 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=lBzdk5jveeS/JKT+9yyCQAyTFFXN6rxWCWlR5xuiXEk=; b=FQ4oEfEfKyutywrwUKaGClssESWA9XhPfdAqpLdcQ+aSTIQXXEB5QQo2CDKo5Ewsz+ SUfqfgHA+Ah11eXEgJnZOtfl81edD7qHdIvq5PS8q9hGt3a3FPmDSqr46riXzNZ3rAeG 4wpVWlHcwjo7VqMFiEWuVV9Uw2Rc8gJ8I/Y6EaMYXpmDnEHT7ASChXBnNyx2mlgxK5Kg QIq1K/kPfKSLJ9tn+WJZ17iIXw7h2SLdOx/U3P/KeouXvL2VEumyqPdnvbC0E5niTz53 YrJuZcc7HWHDszcwD/uOaAjJbn53lWZI5qFs58oeCQCKYJtdoCWo7eLgw/SuBSVA5sz0 zGTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485572; 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=lBzdk5jveeS/JKT+9yyCQAyTFFXN6rxWCWlR5xuiXEk=; b=6uL/ZXHzWv3hOIEkSWTBSaQz/ktKNezD4vnmczC83C9/TSrL8eOrG/Y/pLq0reKZBI psC5i0yQmS+m43+d37zslJnhlL4Z1KQJBE/xjxWmoU2byv2g/k9xHCbhKl/VyNod0Xwb ZJLJmKr2UH1y1qzLNMwi8B3eYTC3pzJemol8mstDj3qt2ep410+Sq1pBcdqngLdV28yf 2rjLlw+B8SBnQ0u8z4vYxl4LdgoG2kJBoeDjvVj59pf9XWlPNoideetoJvCYvtSjGQi/ dFbRiGhAdJXZ9aCCD+IHCNMEl8851v7Xp/HZtxyYiPvDY891dSGejS9qdoYaMLGOtVNW LkUQ== X-Gm-Message-State: AO0yUKWOQGhi6E1l+5nI8RF9TdEn3/mgc5t97NfDhyEJuTlTH9La2Kx5 6cAP5vgKootvBzhdLe1P4g+I4w== X-Received: by 2002:a17:902:d4c3:b0:1a1:dbaf:ae31 with SMTP id o3-20020a170902d4c300b001a1dbafae31mr3431138plg.1.1679485572317; Wed, 22 Mar 2023 04:46:12 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:46:12 -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 v2 08/10] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Wed, 22 Mar 2023 17:15:17 +0530 Message-Id: <20230322114519.3412469-9-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761069434155751526?= X-GMAIL-MSGID: =?utf-8?q?1761069434155751526?= 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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7ccec48255f0..d0fe17d0790b 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2223,6 +2223,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,sm8250-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_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 Wed Mar 22 11:45: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: 73393 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2302207wrt; Wed, 22 Mar 2023 05:05:54 -0700 (PDT) X-Google-Smtp-Source: AK7set/qlZGim6n+6MHUBWjZ//PbUlNHZOdeTNMThYkIXq52DeWZDTZ6rrTJWEtA+JhvMjF7b/bY X-Received: by 2002:a05:6a20:3f28:b0:da:2dc:5642 with SMTP id az40-20020a056a203f2800b000da02dc5642mr4890638pzb.58.1679486753865; Wed, 22 Mar 2023 05:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486753; cv=none; d=google.com; s=arc-20160816; b=kO0N1eVr0vCTjsIWFByDHl2BqFQg5DL23cZasirGpIlBeCEQU6h2LbWYoNcA9leE8K nODmnQKE29KfYCrejt/U6OXV50vIV/qZnbm9Tsai+q0jfm4Swjps/Os1Qj+na+tkpVl8 oLlRXhMtyXU+KjFJqsKEglm6Z9ixhyf2JJ2p6kpF8eVY1+0YXrp5GP25uc28w8hiORTU gB1+8y380aNIKJ6Ndgp7OzHavQryZIm3Hh+wkoYdw1y9/dIT+GbPEMqVKaeReb/QRx4i YUfnsblxHyA+UQHYdTckK1lq5u6bT5ryyv6jLeaHn2bnW1eKc0stj4eBGutH6n4Pfies 4GVw== 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=EQ8VwymictzzawQ2njPv2aLJoWuJ1cUjyRKGWrHdB18=; b=TzVd3RF+tqgG1WIrG8mOJ2tTgV4rrhKkrHccEStFFTB2uFVhh4z6cn6BEGPNMk0EmM LlPFzZs0eaomBpZ/+I7VQ4JLsNTzSkcfjziro/BsAJOB4FYY/2WQkTkvgj0KLZJJq1YF bUEHxsPlGVfNHPy8trO6YmHjokOgsUW6ZWW4a04jbWyf1l8IMu+4q7Ev0HGhY8V5BWdD nhNeCqA5X116BQ1AZZ7gUB+kL38Z07GqeD/v5+0NQbNos3M3S10c2TxLosBQd7q6bMXi pbjzswjoJwpzw9l2omZS65UlFB1zRgx+uIH9pDE8QacEnPPIkXyApy2MsgkVN4hRsofb GIyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vGEPJkBY; 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 a3-20020a056a000c8300b00619b451da30si16266701pfv.209.2023.03.22.05.05.40; Wed, 22 Mar 2023 05:05:53 -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=vGEPJkBY; 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 S229931AbjCVLrV (ORCPT + 99 others); Wed, 22 Mar 2023 07:47:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230181AbjCVLq4 (ORCPT ); Wed, 22 Mar 2023 07:46:56 -0400 Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A1DE5F536 for ; Wed, 22 Mar 2023 04:46:24 -0700 (PDT) Received: by mail-pj1-x102f.google.com with SMTP id q102so3744316pjq.3 for ; Wed, 22 Mar 2023 04:46:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485577; 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=EQ8VwymictzzawQ2njPv2aLJoWuJ1cUjyRKGWrHdB18=; b=vGEPJkBYf3Vzk15vG4ahRhn4t8IHl+EXIB581wbvhYLvLeNDQGBQ0jU1IEayMmlRN6 rljhxAVz6PcR07PWd4Ia1pVUoiIkHQOquVubotU/dJqA/sgh1zmqS7BgA2UrSVcKfGtU 85jOxF2Wuwz7Begyujoz7wy6g9tchOX8jXnkLWkZzgrmrNX258yOiwUEFUU8x2ALfrLW BizAZPyqznBszZAh5TYOy4SJxzG+xLzOae3kCE5gu7i9vvNWhhodpURsyeFhQ2qlwrYo 3KDBPjGjGvPxtSny7hMwxfVATcYw6Ymcxfi2pWanTVFyUwzoAbO4Djsk3oy4N2Q0n+WM ktwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485577; 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=EQ8VwymictzzawQ2njPv2aLJoWuJ1cUjyRKGWrHdB18=; b=tVYxDK/P++kL8KkkWZBctDaqqFRRB1nYrzAmDBORMNEUYtDmBielA7lwLZbOnypDBN Z/SYbDr3D+R3E23GX2/LewAQumMyaS1D0gzI16juNcmWOiDheLO3W8sf0rDEBzHBPl+2 ojr0WM0DhrxIZ0ZUhoUA+/xjocU9OXiMcq48dH/uGx0UH2kE45vzwhdOOc3GJu0knttj pMDqRGeEak78vqTbArHU9qvlJTbABLHh75oiaWv8giQBTmJvP59zvxWlLeXVUVF0GWWY MMoTDjx7jXU1IEdTgQqqjYPSzlMlq2RcHHRr2Q3pUmZpbKa1TmM/PZ/fyINK55jIXPI9 /oSg== X-Gm-Message-State: AO0yUKXKmHiOC/8Ryo5hk8ejKxCVichFhN5Wf4lYY33+77ve/iKDPHKj G3JGHU9GSOexKH2KNO8Rl2Kt2Q== X-Received: by 2002:a17:902:c94b:b0:19f:1e3e:a84d with SMTP id i11-20020a170902c94b00b0019f1e3ea84dmr2974008pla.64.1679485577446; Wed, 22 Mar 2023 04:46:17 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:46:17 -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 v2 09/10] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Wed, 22 Mar 2023 17:15:18 +0530 Message-Id: <20230322114519.3412469-10-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761069502558138233?= X-GMAIL-MSGID: =?utf-8?q?1761069502558138233?= 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 | 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 b2f1ea4b671e..39ee7ab78387 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 &mc_virt SLAVE_EBI1>; + interconnect-names = "memory"; + }; + ipa: ipa@1e40000 { compatible = "qcom,sm8350-ipa"; From patchwork Wed Mar 22 11:45:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 73385 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp2299441wrt; Wed, 22 Mar 2023 05:01:39 -0700 (PDT) X-Google-Smtp-Source: AK7set/bbt4Pouq8i//i0Y+8WjED8NpM8QMiGyrTNQKrFXojhVvqpWGZPTUWli0zVexEMHdcxBvS X-Received: by 2002:a17:90b:4d11:b0:22c:afd6:e597 with SMTP id mw17-20020a17090b4d1100b0022cafd6e597mr3573907pjb.17.1679486498487; Wed, 22 Mar 2023 05:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679486498; cv=none; d=google.com; s=arc-20160816; b=URNQXQfjzQpEr2hCpCHf18E336Cm1Rzh7zBbFrnQVdzWJcZ6a6oa9E/VANkolsAriM 7SmlXoJHQUFnu1vXnhTlFtUFgY+bgeOoofCYeX1Aa3S2/umWOdbUap94o53zk2SxccxN o5BrTQttPWCQ9VObHE/CgmPbtUaosu0taoYCYDbLRQqNj8lA2YM9ImPlNHi6pOjBPQLA KlQsLgesd0eEIlkJ3PBeKn7MisK/aiSdNBGeBbEyBSM1rUcHTjjOHohBGj7Bn0I2A0kI TfXwx4zZ3n5WYMuPv3zgPM9zW1sr4XaP+kFU4e+IKWT/m71oMN5ZqCZfO3uIPEc479nb F/1Q== 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=dGb3BIQsyUNL1+BgFa8yu/K6OVQSXWMJMp42ClXNo3w=; b=X/ZXOn5j9/JTJJ8DPDgSCtnq1cLCqY8KbP2pwEZw9u82mbbDSMGvlT+IGPNWaYYfhB YXpsiZlAONX+QeaD84JLVDgAruR7qBTTT/iEzToIpaifwBgUwOIjPoZhVrpbPwUcwVSh Dd7DsQwXM3cWP3v0GyHDTuCdFts6bI83OeUIAfOOCtCvBue+W2M4HZxR8LQQrlRwh1xD g2ahtbOOlSLb6EI99t3nJMkPPrQ0h0TGLWVjmKvhBlmT50TM8D3tpvsaPE1+7YkVfNX8 3f2tKFmDrl39L4OWz3ddQxgu09vMYycUqCuSifyOwwLuJVjARZ6nN5a8qb4uw84ACw0H fWSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qivrf3cV; 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 h22-20020a17090acf1600b00233c5363cdcsi15620013pju.142.2023.03.22.05.01.25; Wed, 22 Mar 2023 05:01:38 -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=qivrf3cV; 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 S230431AbjCVLrY (ORCPT + 99 others); Wed, 22 Mar 2023 07:47:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230260AbjCVLq5 (ORCPT ); Wed, 22 Mar 2023 07:46:57 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3386D6041D for ; Wed, 22 Mar 2023 04:46:26 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id k2so18994360pll.8 for ; Wed, 22 Mar 2023 04:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679485582; 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=dGb3BIQsyUNL1+BgFa8yu/K6OVQSXWMJMp42ClXNo3w=; b=qivrf3cVu8WgCYcV3RRjSXa3JDpbSbJwgsIyAGATk1QVxCl+JdpHhfMVBAsQi/JHbP Gsc38pRrGVopn+W5jf62e6KcU30cTBbra+Z7fdqrcSqf+Hb2l3TY7YMGm3D8L4FmE9NM QM5VUpA0j9LtQJjuLrbtl+iMW9I+pQWgyyRSSfubRfV5rPXxwESd0hYO8IS+uVcucpG9 DYeaiXkKuKDlibTuhSXf9Ty0IRbX5yaz2b3A8o3t5qHSmap5SJ6eppyotTxO7/QHnWFo I0BbunXYQyfnyowMIywHHuDp/1/60s343dY+DVmKaSUVu347mTMRNf9RkIABjGLy7B37 BGqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679485582; 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=dGb3BIQsyUNL1+BgFa8yu/K6OVQSXWMJMp42ClXNo3w=; b=QfW2FCGXS1NqEuT5ZgRpE0413SBQiiJADXKGNiU/Rg3yQOWsdIWPaGxjexgqeEyR4b fKEaqqzNKZrj936+osBBURR05pZ7fbA2BpULRx9DpUTBF/zQGRsvxgIYoS4D9iHTHM/v MNaUoXGDOCkRUsD3I39xTY88PadEVRKbbZc2h+DNnpPl8CEcbdz3kxp/PUe4d0QzKqJ7 jfSVs6/c2ga9qZOmRBMOlSH3SXLj20WKrHt+BEK0iyh+WNmoJ2yNl+kYI+ouAd8byvel WCDw4S5JxwegxLiPPJPwpEoi58WYj7CbjiblYpsB0hDUWkQFYeOGHKyDh43mwMl5BoTw xPjQ== X-Gm-Message-State: AO0yUKUEPiBRBtTzLMsYaHvQ3xTpOk9gKBuFjF/S/IIsx20cUNAtSYF6 EE03Ssh9xR+tvTThDS2ukinzVw== X-Received: by 2002:a17:903:27c4:b0:19e:8088:b852 with SMTP id km4-20020a17090327c400b0019e8088b852mr2282952plb.10.1679485582557; Wed, 22 Mar 2023 04:46:22 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c60:d4c3:8671:83c0:33ae:5a96]) by smtp.gmail.com with ESMTPSA id jd1-20020a170903260100b0019b0afc24e8sm10386649plb.250.2023.03.22.04.46.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 04:46:22 -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 v2 10/10] arm64: dts: qcom: sm8450: add crypto nodes Date: Wed, 22 Mar 2023 17:15:19 +0530 Message-Id: <20230322114519.3412469-11-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230322114519.3412469-1-bhupesh.sharma@linaro.org> References: <20230322114519.3412469-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, 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?1761069234523675880?= X-GMAIL-MSGID: =?utf-8?q?1761069234523675880?= From: Neil Armstrong Add crypto engine (CE) and CE BAM related nodes and definitions for the SM8450 SoC. Signed-off-by: Neil Armstrong [Bhupesh: Corrected the compatible list] Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8450.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8450.dtsi b/arch/arm64/boot/dts/qcom/sm8450.dtsi index 7c1d1464a1f8..c2b6c163ee6b 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4084,6 +4084,34 @@ 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 0x28000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x584 0x11>, + <&apps_smmu 0x588 0x0>, + <&apps_smmu 0x598 0x5>, + <&apps_smmu 0x59a 0x0>, + <&apps_smmu 0x59f 0x0>; + }; + + crypto: crypto@1de0000 { + compatible = "qcom,sm8450-qce", "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x584 0x11>, + <&apps_smmu 0x588 0x0>, + <&apps_smmu 0x598 0x5>, + <&apps_smmu 0x59a 0x0>, + <&apps_smmu 0x59f 0x0>; + interconnects = <&aggre2_noc MASTER_CRYPTO 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "memory"; + }; + sdhc_2: mmc@8804000 { compatible = "qcom,sm8450-sdhci", "qcom,sdhci-msm-v5"; reg = <0 0x08804000 0 0x1000>;