From patchwork Sun Apr 2 10:04:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669641 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E15ABC76196 for ; Sun, 2 Apr 2023 10:07:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230409AbjDBKH3 (ORCPT ); Sun, 2 Apr 2023 06:07:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230399AbjDBKH0 (ORCPT ); Sun, 2 Apr 2023 06:07:26 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 152967A9C for ; Sun, 2 Apr 2023 03:07:25 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id cm5so11486336pfb.0 for ; Sun, 02 Apr 2023 03:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430044; 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=7cyyEvHEssezG350mcxRNL9zoyy1P0FugZ/giQ7ZT0E=; b=A5u/48vXC2EPO/GAEEDGEcOmU6s2Yz2M0iY8Ge335JaUSCOQfJUfsgjdqta+D+ax5o nF6OvwGhcK8gM7p4/UlT7+OM74gJuj6nMwNjcAqQmfxtpWoQVnW1pYfSvnSmpRfo0Ck6 CC71p4rUn7Awt6VUBwu335Nd0kZoHlq/K6arUWd+YgcE/VnBoYA/krYx3Bpnp9Hwn8mQ Mpy2gDchRhSx5JHdDvKvEvi1TK5VPtZIiUfJwN1jxHtMwtonKWcXInqqhmx753FLIiTW YiCrggEQVPcfj+e+X58Z7FTginb4OadPxCpJHV1jZVZasZQ2fG/+YB6zLRCDaDUoqM6x VDoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430044; 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=7cyyEvHEssezG350mcxRNL9zoyy1P0FugZ/giQ7ZT0E=; b=ahHoJyDvGYUb+o20DaaHptXSd1C2tmIkLCcHLvs796GekuCJVIZC2Tf3A1UOaKzstn bC38RTLsf2QsYNB15uM2dNdLf9xQSMG4QownW+uz6cTnXxu0ctHpLejyFGaNqZUjJZ3y iC+wWhY3HMwRZq+h9HLsK//QXZj8vgzmQcXqZwVK+Qwi1Brhrwlfe/5sOXDZDiFeHnL6 R7gNdlVUUbDks28aiBZz1Gnhj2AmExAkQXVNr62onWBos1h4IOUdE1n/xCtRiMutjsTj as4PRawTKmGBMjUeYjSfaATMFFN4+wanCg792t51NWt/hjFbvP+8zKC3ZZCYYy6jSonA GD1g== X-Gm-Message-State: AAQBX9etYTdTcHnc+jdcYC50rLRUbMjihFTOWD/XG0kCjH2dTRwiiP4m r9FO/F5/ifV6AQjtiRJEGmfFt7JndestjQ2Y4Ps= X-Google-Smtp-Source: AKy350byBhQ9DVsRKc1i6SezXfpFkghsN9frvThMfBLE3TXRBWkDYQRas1Rj1slU9mRnmFh7VT0t+g== X-Received: by 2002:aa7:9728:0:b0:626:17b8:8586 with SMTP id k8-20020aa79728000000b0062617b88586mr32284202pfg.30.1680430044139; Sun, 02 Apr 2023 03:07:24 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:23 -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 v5 01/11] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Date: Sun, 2 Apr 2023 15:34:59 +0530 Message-Id: <20230402100509.1154220-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Acked-by: Rob Herring --- .../devicetree/bindings/dma/qcom,bam-dma.yaml | 20 ++++++++++++------- 1 file changed, 13 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..c663b6102f50 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -15,13 +15,19 @@ 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: + - enum: + # APQ8064, IPQ8064 and MSM8960 + - qcom,bam-v1.3.0 + # MSM8974, APQ8074 and APQ8084 + - qcom,bam-v1.4.0 + # MSM8916, SDM630 + - 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 Sun Apr 2 10:05:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669860 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A58DDC77B60 for ; Sun, 2 Apr 2023 10:07:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230450AbjDBKHj (ORCPT ); Sun, 2 Apr 2023 06:07:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230394AbjDBKHg (ORCPT ); Sun, 2 Apr 2023 06:07:36 -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 C65ADA27B for ; Sun, 2 Apr 2023 03:07:29 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id p3-20020a17090a74c300b0023f69bc7a68so27717538pjl.4 for ; Sun, 02 Apr 2023 03:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430048; 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=Wgd39WnlXQz4tbC4i1NLP3F+sroosdBDzPGDIcLrLlo=; b=s4g1ikQ+ejs90B/h+ovPQPulj/2nnkWFkwF/BWJhTgGHftvFNZnL24rvn30DXcNU50 nnAL0fowvVZyVv5jbVqQSCokgGs6oa4xgi74jaRbXdfS3hM7xqyOuLKbxRp9RJJe+NwP qHCyhVg8yVCCsJHUMvX3ev6XhKqkCyk8M+d3P0Mvigr9uk5uy+bPxxOZ+mtB/Ytm0PFG 8lcbogFR8mCIxHH+/6/hSzcxnpTmQQ5yx+gRIyNEsVwtlcGXGsWuf1F43ETKUcjeCa4h wleDwDhBwFqkXKx6lgitC9ACgb0bkVhzO6zfyThTvLxYEDr2bbIVfrnV8IP6x4mG+xS4 28kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430048; 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=Wgd39WnlXQz4tbC4i1NLP3F+sroosdBDzPGDIcLrLlo=; b=MJ+DG6u3a606hdy3GF+2AeEHMD8J4WI5cFfOhnMeUeCcMONuaLIquD7+jPiZ7xInow CHRvJofeM1y1XF/yC3TIPG8dvQKPvcLByH3TVVQz8WW7Qm5xKUR2yzmurWmkRQvoHU1k oqcSS8n49kA8snmYOPpNCt20XvJfD3B2+DfUNvQ3YkvCUV3VCpXFwlfVUy+t4ic3J+YW p58EeYHicYTgyTIoL5bnLDTezECMx6drJQtmXjR7LDwm4bEr+Jsh1+UIEPKVf6QGscbi q2cJWKm4fl64DE0Guzas9X7JA46kd/+i6f2jU3qFr6tn55OTp5Gwsq0BF2xLhAk1euQz o7jg== X-Gm-Message-State: AO0yUKW/xZG1jL6xMXadUSWQ9XrfIGZR+boapHvzm24U3mXqJzey0uFR 36Ki16RCinXJrZX+4q5bsbUqHuJSYfRALtRaNhg= X-Google-Smtp-Source: AK7set9kCxxfQ4C59fJFyCT5aLCMfMeEI0o+RAvOdLaYmW91DsAXt1m3mFm2bW4qUJDjDKk7LuQM6g== X-Received: by 2002:a05:6a20:2e90:b0:da:2fdf:385e with SMTP id bj16-20020a056a202e9000b000da2fdf385emr28030089pzb.49.1680430048593; Sun, 02 Apr 2023 03:07:28 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:28 -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 v5 02/11] dt-bindings: dma: Increase iommu maxItems for BAM DMA Date: Sun, 2 Apr 2023 15:35:00 +0530 Message-Id: <20230402100509.1154220-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 Acked-by: Krzysztof Kozlowski 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 c663b6102f50..5636d38f712a 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -44,7 +44,7 @@ properties: iommus: minItems: 1 - maxItems: 4 + maxItems: 5 num-channels: $ref: /schemas/types.yaml#/definitions/uint32 From patchwork Sun Apr 2 10:05:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669640 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39CBAC76196 for ; Sun, 2 Apr 2023 10:07:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230454AbjDBKHu (ORCPT ); Sun, 2 Apr 2023 06:07:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230458AbjDBKHj (ORCPT ); Sun, 2 Apr 2023 06:07:39 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68EAF27821 for ; Sun, 2 Apr 2023 03:07:34 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id iw3so25393344plb.6 for ; Sun, 02 Apr 2023 03:07:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430053; 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=USgI5KIZDkQs51mZEs919xqTD9B9rGrh5rzRG7rRJwk=; b=YeX5UOWgQVGmyrhzZ82cTpIyfrmjqONY0Izo9vYzx+DIl+ysHX0IUrDNroGzdQhC1b V7ZpjcPuaRBdboghC2/llLIRhmWelBv6cNiegWV92y56zn8Z7QIgxzxJW7Bw5ZSYlV/G klZ5spVywHCcB+GrHwmDWCM3VTOR0O4NlAXuecdP5LAFaMKn6l9GaOEI8KuqjYU1kedp QFc7b0U+GnVN+A1mqxI8VyOwVibEj+tX2546JmvY15j0M9EerqvH7JJENdt6matbuImH q8SEWeTy7z0w1lAijqJqzX0fr04y4/DK41M4wETghn8L0i1J4N1+WKRPSrrIiBhW2A4s HH8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430053; 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=USgI5KIZDkQs51mZEs919xqTD9B9rGrh5rzRG7rRJwk=; b=Te755K5E4wolUu/LpGP/2+gI/IIY8GQpaNba8fYqu/02bJGjn93iXruT4QhF56qWAF P44tNcu4xQW3ZNcNk48qAWMiTuxE7AYVUg+cIv1Ahgyz7UGEcnaam/qRm1w0gMPhpIKd JwXsFjCIebwI7WNuBxt2Y9+SA8eNl5Isa6KwQQ0xr5aQK8Efik/k3YVLnsSyiPHIBMw8 JiBASY2ZQW0mIK4u/801Ea3qRP3lk95yemOwQmiY7JlzCli+ksI2zuySfQ9Ziw8tewcJ 3j9FFyi0Z1QlCM7zutvUFoap8f07b2IqIBNuNQ/ghQ3sYxVIt9hIasUx8FL0HlHte5Fo Ug6g== X-Gm-Message-State: AO0yUKUexeDxdoUmJoog4tgZhvS1TlPaG5dCsVH3gunUF8rJBTK4ZhFO mzegX6SGR3dy61QkjOhr24Aec5s7D2EMVkd/aoY= X-Google-Smtp-Source: AK7set/T2Icgl7ZAgzNyL1bUT+Wuz1wyVIKtq9f04c/4z33KwkgzYXP0AI15bomvnQL1/FoaY1aL2w== X-Received: by 2002:a05:6a20:4f24:b0:da:6c0b:c3b0 with SMTP id gi36-20020a056a204f2400b000da6c0bc3b0mr26146909pzb.39.1680430053128; Sun, 02 Apr 2023 03:07:33 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:32 -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 v5 03/11] arm64: dts: qcom: sdm8550: Fix the BAM DMA engine compatible string Date: Sun, 2 Apr 2023 15:35:01 +0530 Message-Id: <20230402100509.1154220-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org As per documentation, Qualcomm SM8550 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/sm8550.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm8550.dtsi b/arch/arm64/boot/dts/qcom/sm8550.dtsi index 9c24af40ee61..774e3295081c 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -1841,7 +1841,7 @@ pcie1_phy: phy@1c0e000 { }; cryptobam: dma-controller@1dc4000 { - compatible = "qcom,bam-v1.7.0"; + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; reg = <0x0 0x01dc4000 0x0 0x28000>; interrupts = ; #dma-cells = <1>; From patchwork Sun Apr 2 10:05:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669859 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 92540C76196 for ; Sun, 2 Apr 2023 10:08:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230440AbjDBKIE (ORCPT ); Sun, 2 Apr 2023 06:08:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbjDBKHr (ORCPT ); Sun, 2 Apr 2023 06:07:47 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B50886AF for ; Sun, 2 Apr 2023 03:07:39 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id h14so15834178pgj.7 for ; Sun, 02 Apr 2023 03:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430057; 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=6lP0xe1rpfhrIkLyhMnO9naLS5LLel1l/TortX66fNI=; b=LOeyIFsKKy+XJsARfcWNpshFn/LPEX5tD9i0y4HEgVmpcGcjFZQfrhiEeFh1crOarP LeODmuYnWJSUfm2jkBFZGFkI/ZKUhwVz48wtzDo2z+U0daZHI00OZWn4tQ9jzCBeP1Hd fXNeEaag1+EBfEpMtCD2yZS71S/skJANIJnfd/3ohJBV8anNyURCse9PbmmZrMEDObPc 5yQSGeV+lZXH7aJn8L+4ApedbvxjbTRKAm/3TcPyI/+f7nsfhojSZNCDIsKilXkohKKu uAEftXcB+ZxeeynaSmkjDz0YMG/ObXFLFf0SO1Hvd0gkY7rSXl6jCI6fcgVnM69/xVHn 9DyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430057; 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=6lP0xe1rpfhrIkLyhMnO9naLS5LLel1l/TortX66fNI=; b=rXqPIo3Mt7Y9mmrV6pz6tbqSu5yWqwarJSD+4kqhzadgfig2sFrcxqoIsbqcxx7vOk o5in0DBgJphKTyXU2h1Ek7e39/KXVf7vUsw7NOSpgO39YzQuvBTE+WwCpFjFTODhNV9A mlDeObLv8+QxzEPUEQBLowLwbUrF3JNM1W2jI5+956hwg3IznxrSN/DkJndoLzawVqDP 1MaFkBznkzIdkSBsXweB3TJVs/CjKb6/sv/0ysW8eLGscljv3miZdPArbIcXQA3aO7kx RNoaaeIxl0VhAKx3bZ5fSbtRDzfpJCRBbEkBOHLJuaPDbN3kD/3m8pXV0YZgCB+BgKIc 7H7w== X-Gm-Message-State: AAQBX9e1MvUYUG2dC8pgVf10WXZmzRJnf1MruThbkLmvJx3qOg8iQeQN LjvFWNpuRRYOxP+sGP3iiTyPzjhrw9tJjphHD78= X-Google-Smtp-Source: AKy350bHvBOhHQi22FwQX30G/FBgwKKrZXUcNR9akk5kEj4Q69bQwQyfQzjIvOEsLz6uGxgi3LYR7g== X-Received: by 2002:aa7:93c4:0:b0:626:6a3:6b81 with SMTP id y4-20020aa793c4000000b0062606a36b81mr31183118pff.15.1680430057624; Sun, 02 Apr 2023 03:07:37 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07: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 v5 04/11] arm64: dts: qcom: sdm845: Fix the slimbam DMA engine compatible string Date: Sun, 2 Apr 2023 15:35:02 +0530 Message-Id: <20230402100509.1154220-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org As per documentation, Qualcomm SDM845 SoC supports SLIMBAM 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 2f32179c7d1b..17a29184884c 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -5152,7 +5152,7 @@ msi-controller@17a40000 { }; slimbam: dma-controller@17184000 { - compatible = "qcom,bam-v1.7.0"; + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; qcom,controlled-remotely; reg = <0 0x17184000 0 0x2a000>; num-channels = <31>; From patchwork Sun Apr 2 10:05:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669639 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48529C77B60 for ; Sun, 2 Apr 2023 10:08:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230516AbjDBKIT (ORCPT ); Sun, 2 Apr 2023 06:08:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230515AbjDBKIB (ORCPT ); Sun, 2 Apr 2023 06:08:01 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85B1D2B0DE for ; Sun, 2 Apr 2023 03:07:43 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id f22so21270469plr.0 for ; Sun, 02 Apr 2023 03:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430062; 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=Ns2jPDGRWz/czfPYAkU0ANfXA6YC0owDF4gxQpajwV0=; b=xfXgK3qPqZv33ZCRsFAI/dxIgHUBk9UciMyK4AAaL6NGWvIdyrYKpTCVICXpcDv9o3 baL8j22lLNyKQiPAy+yANoGY8BSSTtOY8827aoXHZyDiIzA08bSoa3+xWVPMzbnuGNkr M14F19AzW3sgpDsoaORTkJIFRAHZmI/QXKC91ohoH4UHGY0sqW6Pdk3FjHsBBloLTuls eKya/6fDGno2nm+k6HyZJuZ7A8YMiIXRbQcah0U6oZPrRPVbqRq+ZKXhvkP9T4veU1Ji Rthu7TQnhnmXEsfeNEVcKaNQBoRcm5F/S5iTOJ6MgjxmjUb8D6PWVJqLrHUo/BM9NEdz RbIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430062; 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=Ns2jPDGRWz/czfPYAkU0ANfXA6YC0owDF4gxQpajwV0=; b=uAiLI6a/wABrRLGXPTTFzBxUTOvVxFA7bqKzKCmEq0COQ9L8zBgwZ2NF8x7e1jxCj+ Vbx9AGvb/WC83WAA9zN3XBNCin4fxew+YCmyIdPDzGKmucOGvM1qCjx3zQ4g1KsB4MvH DftQ6XJBVDOn0S2yPBZx4W+l2Woyvn3tIY6kHyzVURT9Pf6NyOwwns6t4sZaOCFAaTNN 4aEubOHDciOJGNNtQ1Eh0xJ094l2VNzZuYY99a48nqp59VzJ3JREdmuFAjdqTobXAghQ 3Nh9xbmiXUTmns/5BcRKAAlNjgkZ1fkf8edDgffcCFobkVDA+csgv3hf82Pq+mHDAATT UPxw== X-Gm-Message-State: AO0yUKVZAjViuoqfc6JvOeVcTNFOPhYiRkyUDGpSHARJFHhweZ08PNX9 MVT5mcVjt5eHF4Bqt7n9/urk+An/sYjFERdQcZ4= X-Google-Smtp-Source: AK7set8/k+S1+Gow66T1mn6KMnnFC34t1zsT+r597uKySIZ9JC0a1EiCunte3PoH8IdvJ/jWFfAs9A== X-Received: by 2002:a05:6a20:4ca8:b0:db:7382:cdd4 with SMTP id fq40-20020a056a204ca800b000db7382cdd4mr27445442pzb.6.1680430062097; Sun, 02 Apr 2023 03:07:42 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:41 -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 v5 05/11] dt-bindings: qcom-qce: Fix compatible combinations for SM8150 and IPQ4019 SoCs Date: Sun, 2 Apr 2023 15:35:03 +0530 Message-Id: <20230402100509.1154220-6-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Currently the compatible list available in 'qce' dt-bindings does not support SM8150 and IPQ4019 SoCs directly which may lead to potential 'dtbs_check' error(s). Fix the same. Signed-off-by: Bhupesh Sharma --- 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 Sun Apr 2 10:05:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669858 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 34BA6C77B60 for ; Sun, 2 Apr 2023 10:08:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231130AbjDBKId (ORCPT ); Sun, 2 Apr 2023 06:08:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230490AbjDBKIG (ORCPT ); Sun, 2 Apr 2023 06:08:06 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C2342BEC2 for ; Sun, 2 Apr 2023 03:07:47 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id cv11so4592000pfb.8 for ; Sun, 02 Apr 2023 03:07:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430066; 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=ScrPtwLifF81mLBCSzco8cbRfT+aGGc+R4ZbxOTPL28=; b=xgu8DjvZsG1vIfCnPmIyi1d1f1dEnXwIxVUnJ+R1sAT2Y9/CdCohp8mwakGRuJWxCW Pzo3C+382VCOMTsjrqfpyFBEXi0gwVgS63ibE3kM7Ga2OaMGJOZdoZ1y96Pipq0CMCcJ PvfGHkfY17g/iQt2p5CfUtKQfSjrYcauqc5hlOmQVeeJ4GHpF7Goxmp0bKEWPE10gF5m acHHOhse70AqeKG1te191ex8uSQ93ZPfT+yMXZIXUvIVLEx+4UOhRoqjdWAQlzI+CPkk 1s7F3aRmeyBRKj5lOgCPVeM0CXnjjlcShABXDw1ENtP94d6d3vBZyOqb40AXMAyMMNuy w4cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430066; 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=ScrPtwLifF81mLBCSzco8cbRfT+aGGc+R4ZbxOTPL28=; b=ayGKfaK2S/maefWgdobyOSF2B4o2gnb8LmJqbNE+no51f4OrLcl0jNUqSHsme/8uSD RltEugkyEhVzLrjAXe+lI+m/VCXo2FrUyXvmUntqKjTE6VRRPqEKgSxnzzGJTnflzFpH wKQFl0iLUDW6TaoFJlyx9/C4hsuFnxu4uXvFqh4paMECDBRnZ1/j3eHfxDBRNG9Y6Q0b 3zQy16PQbl2DT4S7Y+/fOjdjxJFPQELzPYGqI4cgZoI9v9+NIVGGxK6vKsf6jTXSugZj o8drR0/aQ68P+KmGpGfzy4CP6eqRJz0u81GlL+6lWMBl+T3+YQ+uNn8Dxr8xEXmXXAvd Kz5A== X-Gm-Message-State: AAQBX9cy5zaeEnKaYoqOMUgBUgJW5XvmVQYCyADOTbug2K/do9+u2EOP JR6JsrzQYfzeal7clmdwVb9pqvSb06ItEKf2E8c= X-Google-Smtp-Source: AKy350bE8U9vbqH+ow3+PWsevkiaCi1uYp8UZh1ap078kAA+wHtCuycGeEFGfcgAXqx1peBrXMn2oA== X-Received: by 2002:a62:18d5:0:b0:625:ff85:21ec with SMTP id 204-20020a6218d5000000b00625ff8521ecmr32686433pfy.26.1680430066539; Sun, 02 Apr 2023 03:07:46 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:46 -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 v5 06/11] dt-bindings: qcom-qce: Add compatibles for SM6115 and QCM2290 Date: Sun, 2 Apr 2023 15:35:04 +0530 Message-Id: <20230402100509.1154220-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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. Acked-by: Krzysztof Kozlowski 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 Sun Apr 2 10:05:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669638 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3DCF3C76196 for ; Sun, 2 Apr 2023 10:08:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231169AbjDBKIo (ORCPT ); Sun, 2 Apr 2023 06:08:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230424AbjDBKIN (ORCPT ); Sun, 2 Apr 2023 06:08:13 -0400 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72D2C2BEEA for ; Sun, 2 Apr 2023 03:07:52 -0700 (PDT) Received: by mail-pj1-x102c.google.com with SMTP id fy10-20020a17090b020a00b0023b4bcf0727so27768027pjb.0 for ; Sun, 02 Apr 2023 03:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430071; 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=PuEDYxPh1iqRLp/0Giai1ZnY3ruEMo64qCfhktsCtAU=; b=NO5QchAAiX8nxK4rrdvECkFevEeGuWkK4uaqqNoeXGSX1jw/qgyZADY1FXvgWnd6TK D9q35AYvvrRjzSsPVabk6HveQgT5bqTv00HNFOYTorYKfl3UMuaPv1GmkjwCa5kRucBP Xt1yxsJ9BfLlios0H9g5G1hmNwtlf4Mvb0y3Me8TXmTDaYfGBVZeGx0nnA3hmn3XaUvS n48KLXQFag51mE6XL6JpasLFKQzinX/vKvunX4sSl+f8s+HI7RXVnWD27kmDrr+Z47hj hwE7BDptQc/FX0uLr3OklU/SN7yax/xOhCI7dta7II0EScmSRKj1B0KhIxkAs2tWOz2w xmjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430071; 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=PuEDYxPh1iqRLp/0Giai1ZnY3ruEMo64qCfhktsCtAU=; b=ug23NMvp8BFUL+AgcKaIXsOxIM07F0K0P4tajnm/XFqoW4+NEtbreBgKI9RU9/mzlU Hf9ddnHDUXZuJqBX52LqqBNg/PsYWOk2l94AJ9PIGS69D0+Wy+XW0fuAb7AOhGFFQM1l 8XqreQJUMCqAkLW+9ENELl9c3mN95isgwPyZzxDAQIHtXSrwk2YIqec0zhBD/+716aaw eAcSmPbLDLSTaRhSA3/EXoEN43LxEL1x1ClaLnUbz4+suKrZLjVtHoi4KVqJjymgD05c 1mhnJcNlhAa555IHuaUn4rTofEfSgBKGIZ4AF1PVf1t/b6MygkmED9++JVoIWH00jbef 2Hhg== X-Gm-Message-State: AO0yUKVLF0Ym0tzqirx4B8TEYhuNw+xg7ZqJ0k4R4j017ZGI5O9Tuonz oCYAvgEIYCeJ3AlT3VwkGTB/WGcG7caYigIa1SU= X-Google-Smtp-Source: AK7set+wPRYRXyFtC6QO0rNNDfJZgfLxY8u9e6wgqZWEYohIIuRd8DFdKsqGwPaRn/V4i53GUl9X4Q== X-Received: by 2002:a05:6a20:6ca6:b0:dd:2577:4018 with SMTP id em38-20020a056a206ca600b000dd25774018mr28432249pzb.49.1680430070996; Sun, 02 Apr 2023 03:07:50 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:50 -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 v5 07/11] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Sun, 2 Apr 2023 15:35:05 +0530 Message-Id: <20230402100509.1154220-8-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 2a51c938bbcb..ebac026b4cc7 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -650,6 +650,28 @@ usb_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 Sun Apr 2 10:05:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669857 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8EE85C77B60 for ; Sun, 2 Apr 2023 10:08:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231195AbjDBKI6 (ORCPT ); Sun, 2 Apr 2023 06:08:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231150AbjDBKIY (ORCPT ); Sun, 2 Apr 2023 06:08:24 -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 C6E2676BB for ; Sun, 2 Apr 2023 03:08:01 -0700 (PDT) Received: by mail-pl1-x632.google.com with SMTP id u10so25384097plz.7 for ; Sun, 02 Apr 2023 03:08:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430075; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=JT63Rdhv/c5JJ5GCMTVSXvcZVx4bC/BZrzg1L8YflrpvJhy83hlbx+Xq5LAfxEkOv6 ws8KXu9cULU4hHrByxg/rEX4R+VQgHOj9uLYiMCpUlOdHRXkNjBePqyIAi1bD6JMvmk0 vy2xfk7ziuSDm7zwYt9DNnhIinKUKAvTLU8/Az6Pb4LNjFI7B/5xGhGTek7OB5PZDboR HlYRM6Dy2upjTDMaW4QQz/dJLM9S/U177RksXavoVJGi4cTWhV/pSAoRAN/B0OXuS0xO FBPUzajRoqzoF/J9Y1TxkKHDM429XvjVuBnT44KlrrgCUcKfOXdMUt2gswsCoDP0yGZ6 cizQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430075; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=pooVG9Z1/vOXgs4nAxcPjv0Jki47o1490Oo2qivvb+G+Zms2VeQWbvPAa5WbD5e5UB KzmDEMqCId0mkbTRzWIpSlA5LysM6QKArwt3KVl7uU7VKhnn4fhQtwfWA9wrBRc3g9TL AHpVXfqwrTYXnLH+iRZqVxTVYJNOz8R2DtmTlfrQCoaFiRQ14snxQM1bk5Tj09YX9Yrb ZK+iE1dB1Potw3Suou/OmEDfGOcw/RVD7c+GCYwdgCBpF2lfF+BoQFMrNMew/wJOgoYK NeBc3Txfhyz8Hu1uVSQDjILV8hJ18sSmOff5NeiuPAjgzfBT/QIyHIJ2W4TYdAAa13o8 Lhdg== X-Gm-Message-State: AO0yUKWVuYyWEHMMf6QmfAzw5x52JF44QjZgYHZlEyCoam2IQUhl50NC yzMbmZJJdXfBO0EBp/kw+XPxiqq1UkP9k6QdfeA= X-Google-Smtp-Source: AK7set/a4NgE5LwbYfh0ahtKl9foMp+tcXqTh0MqHAh8T0+VmTx9clHTv5xmJZ45GCuvFvhLcIqVbA== X-Received: by 2002:a05:6a20:1222:b0:db:a03c:713d with SMTP id v34-20020a056a20122200b000dba03c713dmr25718269pzf.23.1680430075466; Sun, 02 Apr 2023 03:07:55 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:55 -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 v5 08/11] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Sun, 2 Apr 2023 15:35:06 +0530 Message-Id: <20230402100509.1154220-9-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8150.dtsi'. Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index 9491be4a6bf0..c104d0b12dc6 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2081,6 +2081,28 @@ ufs_mem_phy_lanes: phy@1d87400 { }; }; + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.4", "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce", "qcom,qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>; From patchwork Sun Apr 2 10:05:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669637 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DAFEC77B6F for ; Sun, 2 Apr 2023 10:09:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231154AbjDBKI7 (ORCPT ); Sun, 2 Apr 2023 06:08:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230522AbjDBKI3 (ORCPT ); Sun, 2 Apr 2023 06:08:29 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B4B79005 for ; Sun, 2 Apr 2023 03:08:04 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id bt19so17336798pfb.3 for ; Sun, 02 Apr 2023 03:08:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430080; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=Gpz6VtETaK//avdhCorrlMmSppv7bZNZ05V/38SSYs1jShO+ddJ+H44PZBH4+dhDeK O91qo1JzVuicsuTwKStAPsONstVfhAYwUh08ePzXXOF5LnYzFprDXzEFziInIwc1xtwH ZWCNms4tHDCF91QMoVtiaIxRQVXHkL3lE13d/kVM7c4CsNbfznhM1gesdrY+BG93AAxc OeLDMmURbjO4hvPaQ9EIXD8UWDwWhk28YeWHjL6Hnebf2jfnwgRuCtH5/X1311mytVrV tzNagQUZlgWGaWfC0JAnMXn5t9LMlOeRlHPEocecKA1yz8bgRUnuoBzVfMUlsUcj79YN AGcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430080; 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=9Gaq2pRYkVNQyPJ3XRF2sgEEJ7K2B6BxZF4eeMfjNR0=; b=uL7UhlXcvVJJuljHfwI9q1zVldlW7qM/W5apLvskq6sy+0CDoje7XLwmFD8d/LybBv yBA6FexPxAbYbFd923OcsNJ5BL+ATAP1BvJKlU3VIqpIliHAKOFvdakTBNkSf8rOsdoT U+8bTGzDFcnCl6Md+Vuc093OtWCmTucdEq1yq2OJzHRhe7mnCf8iUDZleUBvgeGLifhI wndHjyZyL0jmSobJygTiusPBByFIkWWxV03Supv/MmC5/wBenMEX5pL0wrStq8P6EbjH CNkF82c9uZSUE1jwUjM1JqkiwVU3/znjTFWNJRx7qe99ivOUJaBW2DjbL7zgKz06/8y1 Gbww== X-Gm-Message-State: AAQBX9eQYyyW/RpE1qRqVt6b6i6aOhYPK+ov6UL7ir7wjs/Cl/TKkp3T 9hKzW/KLyVR/1eLPqN3sQxa+vE4F0/MooVvF8Jw= X-Google-Smtp-Source: AKy350YuxMue21NEafG9PkfCA0rGV2ay1vqXaEXI0PoKX0TC8l2kEObFvVIagv5j+GZ5oEEHBniqtA== X-Received: by 2002:aa7:8f13:0:b0:626:2ce1:263c with SMTP id x19-20020aa78f13000000b006262ce1263cmr30701528pfr.5.1680430079934; Sun, 02 Apr 2023 03:07:59 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.07.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:07:59 -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 v5 09/11] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Sun, 2 Apr 2023 15:35:07 +0530 Message-Id: <20230402100509.1154220-10-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 7b78761f2041..2f6b8d4a2d41 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2222,6 +2222,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 Sun Apr 2 10:05:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669856 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E8F2C77B6E for ; Sun, 2 Apr 2023 10:09:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230522AbjDBKJA (ORCPT ); Sun, 2 Apr 2023 06:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230526AbjDBKIa (ORCPT ); Sun, 2 Apr 2023 06:08:30 -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 8BBBFCC07 for ; Sun, 2 Apr 2023 03:08:05 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id z19so25403117plo.2 for ; Sun, 02 Apr 2023 03:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430084; 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=pQeWB7xzGpVsc7eSrbLdl2ydZmcfTTPBoAGH1zyjD1o=; b=vRPZr3p4VpgQ6vXed9A7xF4IPQ8CIb+6EzV250PkoDWrBcaUYh57h6rmRB/49T2etT 6KHQaERageVbRqWbT5+tQVWQI2rFlztY3UTrutyY3TvB+/iBU5Ut04T3JuhX3NjMVSyv BAIo9ThPK/D2Dfs92UlXXT0gm5C/rRQ3Dx388pxmoBGP76iQPVcod8zysw1mo9upGx63 /SfeMnRLKy5z+8xh5yomBJHsCNV2PVxufg/vIObezWFi2R36z3ev6QAZUhFDsPfGPchU Mq8cZNe7K0qXZBKTtmvdv5z0ZAy2iKAVt+7ko3L7OZs8znXtVF38TmYW1MVUzeO0sxcc p8mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430084; 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=pQeWB7xzGpVsc7eSrbLdl2ydZmcfTTPBoAGH1zyjD1o=; b=VOWmeM0Z3Y6OtyVKVRfRzBlZlLxwL/NkLfN0WuL1A4akZizgd7ycmVPiJ5wH2lit/y PUBjTWo92rk3/oJ+sYuyZWtXBUlfz2GgKfeR8ANCa7nsB2h0uUs2Yqk2TWYKUJGdz/fO bvK8IGKVXDoPdrir59V5IjqLRP/TVxrFF94RsgeczVSrjOfryxLuuTsuBmkqzrO3aYQ/ nazUvO9NP2TJ+Dnu7rUjcaC1W4bEuz8UFt3cRcvopA1uwN8W4UO3nxf/rdHBey1MJzBy X5sQmyzezk2nFWBDIcs4mDASDhPyby8Ee08vD8sLkDFad675SShoyuXhgGgFDiAjBLmK KE5g== X-Gm-Message-State: AO0yUKV9imUv5DMy0PSuSLwgJJeRqykSxyBEVhSerFCo6dL4C2FDl5lI 6F9yfJz0moAWLbqj9dzIG1u+Hkhxkww1QVdMtoc= X-Google-Smtp-Source: AK7set8xL8z2WnG8+Da7ZwwVGgyCFnqdjuzEvIUG+sAuI3tEIWmMDHK1AQHMlxZez4vxrS6eT8Y86w== X-Received: by 2002:a05:6a20:671b:b0:da:dbf4:e385 with SMTP id q27-20020a056a20671b00b000dadbf4e385mr27587349pzh.54.1680430084388; Sun, 02 Apr 2023 03:08:04 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.08.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:08:04 -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 v5 10/11] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Sun, 2 Apr 2023 15:35:08 +0530 Message-Id: <20230402100509.1154220-11-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add crypto engine (CE) and CE BAM related nodes and definitions to 'sm8350.dtsi'. Co-developed-by and Signed-off-by: Robert Foss Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/arm64/boot/dts/qcom/sm8350.dtsi index 7fbc288eca58..090ee07d1800 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 Sun Apr 2 10:05:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669636 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA805C76196 for ; Sun, 2 Apr 2023 10:09:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231138AbjDBKJc (ORCPT ); Sun, 2 Apr 2023 06:09:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230424AbjDBKIp (ORCPT ); Sun, 2 Apr 2023 06:08:45 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D2BC901C for ; Sun, 2 Apr 2023 03:08:09 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id cv11so4592230pfb.8 for ; Sun, 02 Apr 2023 03:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680430089; 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=XVANtkx4Ujw3O5BQDdROvCmsJ6bq7/P0CEhVqCx7RKpYllQpA+HHyVWzXbE0HS3xf0 Jd1UOqNKuV+vl8IM0Or/7X/3Yi1xw1HwlHBZ5PkipbTnWSMrfvlC8bScqXriH7n0NbhY Jy3qhn1oYCb8KTdrAIThAkQKmXygHhp/XqalOlg1jSpv7ORCmVnK7qzDXvO3BJ4LuLpM /XaTs1zSCdfyRVskPDEArs3wjKMo1c01vapmqf2xpCUA0bvLYjbNGFj/ccFKJBxwNCZt zucClueWyQIXFy8Iwv9EGn9mqKey7YNJycezAEPBK5+i2cj8wVlsSGGI+D2cvKjB7gUW YDxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680430089; 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=9oFHBwDflAuoBx3nAvQZJqLFUNje4jYksqgr3MUJ8Rg=; b=6ieurVllN/P/D8mMKfSVXZGBYSJW0r9qJ6COcQCer/21/nDE8a6lPiHXugLETQ8wol 7kXfKTdi44ERZK2yuWuSg9Yg5LUmqpaJvVI094FtFexOdFNTIf5Ei+7CxyNiWXTNdN+q yNVYIXadrFcsIDFbVB0OyFJHet8QHKMQnncg8HtTBW5rOIlJWIrs1iVQsc9vcwai40bG JdOC24uIYNcST6DbK9HaAQk89XIANwUpY2hu+5kIEg1oVdjvp2K3R7shPNFXSwFUmiWZ K9zZwE491QlUsSww8zWrtVCB38SSHkPejKSFyZfcwL1cfBYMbTomDCiR3pOB9yPUEksk gR5w== X-Gm-Message-State: AAQBX9fUYiRJmRXVkxesf5xzRmdk6BYkfIr46eHzWRPDIQw3N+/LSMWM bR4UZxno6NCiF7LFct/Z7xCCqB/RN99Gk70qnrg= X-Google-Smtp-Source: AKy350bg1jeAuFYwFwN9setvofB4ridXSnnwqFYhX53Ad6wGS71AeJ0ual7JAZZJlInCZ+ep84USXA== X-Received: by 2002:a62:8401:0:b0:628:1852:8431 with SMTP id k1-20020a628401000000b0062818528431mr36133939pfd.30.1680430088880; Sun, 02 Apr 2023 03:08:08 -0700 (PDT) Received: from localhost.localdomain ([223.233.66.184]) by smtp.gmail.com with ESMTPSA id a26-20020a62bd1a000000b0062dba4e4706sm4788739pff.191.2023.04.02.03.08.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Apr 2023 03:08:08 -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 v5 11/11] arm64: dts: qcom: sm8450: add crypto nodes Date: Sun, 2 Apr 2023 15:35:09 +0530 Message-Id: <20230402100509.1154220-12-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> References: <20230402100509.1154220-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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 31877f18dce2..d7a28cac4f47 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4146,6 +4146,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>;