From patchwork Fri May 26 19:22: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: 685972 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 70BDFC77B7A for ; Fri, 26 May 2023 19:22:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237623AbjEZTWm (ORCPT ); Fri, 26 May 2023 15:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237561AbjEZTWl (ORCPT ); Fri, 26 May 2023 15:22:41 -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 31B2A198 for ; Fri, 26 May 2023 12:22:37 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1b01d912924so5439165ad.1 for ; Fri, 26 May 2023 12:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685128956; x=1687720956; 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=YrjvdZSqXKi+MzhLUYpp9EjIDqVatd4GVNSMEpyYnzM=; b=HTFoP4m/KzdkNWwsXmOkyw8oHw3x66dQjBNKv5POjSNBeIlLOuM7UCjCf15eu3hiXY W0JzoeIac8HudaGgcWYGRPf7w3rYQC2JR4896NrFutHzV9M5KRzhc+KAYFZ4UGT7bTBj VTbb+hyZvo5PiLzVDP1C1h1Z9MXVWNcWQZ9WLMB4LkbV9TBUy498c+cYLVScqo5cdZq9 YzSZ0uKE9V/RN7wuXkfsyBjqUjk5qpEWOC8L9JKzTR31Xih/qODE96T5YItlJjZzlK9d 7OdR+aqHoJXlAOenOC3DM57WXruMmSOwSUEwmG9dmt4RbRVdUYmPg6pEJ+hzd7gHqqO5 KrMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685128956; x=1687720956; 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=YrjvdZSqXKi+MzhLUYpp9EjIDqVatd4GVNSMEpyYnzM=; b=MKtV/t1lSzKTPvK9ekuc+jmkmXtUkZ1ANMdbT5YQwIBi+WSXaEHT4x+v2qJaTpzcSU /ux4/8rgmDLBai1XS+V85Lb5vFcJ7Iz/7lAB6iY1NwtmLoGdmXueCRt5TDSbRUuJNtNl LuE0tUuib5qC7D/wi5sQc1Ubz7sQDZFLIaTCdjKxXUxBSPlKm9mOgfVc4otYdhNxO9JQ NDDqGlvHWSYbINNl8aLtcwuNNbc4nblKKYjMutRiXfwlFYkrg2KgrjV3KnhuTy8Qaq6r 60JCOsstF/QSQK7IxqjZAmKQu3xI+po17b/6IE5vISvxnIyWOyo3Bicv8MztcPq5xK4W E/HA== X-Gm-Message-State: AC+VfDwrqTul/yqlfR3WDoAuvJ21wVHA06x1MXcZvQhDmSuc0Tnkj43P yPki7Eoo6A8MDBdaYs3v5IB8qeJ/+mDyfHivxrY= X-Google-Smtp-Source: ACHHUZ4UArCDjWuEi+cSUtH0hktf8DnI6jWN5twY18OKujfYmlgy7/MVEUVN4Sfe6pUoZjmI3d2ylg== X-Received: by 2002:a17:902:eacb:b0:1a6:84be:a08f with SMTP id p11-20020a170902eacb00b001a684bea08fmr3481356pld.64.1685128956253; Fri, 26 May 2023 12:22:36 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.22.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:22:35 -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, djakov@kernel.org, stephan@gerhold.net, Rob Herring , Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 01/11] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Date: Sat, 27 May 2023 00:52:00 +0530 Message-Id: <20230526192210.3146896-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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. Acked-by: Rob Herring Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Signed-off-by: Bhupesh Sharma --- .../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 Fri May 26 19:22: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: 686529 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 3D99BC77B7A for ; Fri, 26 May 2023 19:22:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242286AbjEZTWu (ORCPT ); Fri, 26 May 2023 15:22:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbjEZTWp (ORCPT ); Fri, 26 May 2023 15:22:45 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E48919D for ; Fri, 26 May 2023 12:22:43 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1ae763f9c0bso8414655ad.2 for ; Fri, 26 May 2023 12:22:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685128962; x=1687720962; 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=EeTyHFbJy5rhBfWD0hnvFzbXupDmLYxqq1Exk7EAP/w=; b=ZL28kT6giCxmUR4KbNlszsaCvOIkmmxXrArlq9gzG28NUSNGZS0d060fkS8h/yG2ob p67OqTG14X94RPFNbEQn5uPRCkkt5MhdTtvGDmXiuk5Qt0Fj2LiBn8NvhQv3MIT4oBUb qIubhaxXsg1Jn1S73vFLcdu9T7jdRv3uer6F8L9M5juE9aLNe77K+5p5VcdfD+AbB3Gp F7RNCjOD+/hhf1jzqhPERjSpJOSwiOeLQf5Sk66YcUcK+mxx/u1BEAfnEulwx76XDmFQ CuK/OSB8BLs+/ToXrZI27HU7Y4S/4aT6Ae5DuE+mYQf0LXDW9Ea10iZgwKYjZKLFkzPR OT0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685128962; x=1687720962; 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=EeTyHFbJy5rhBfWD0hnvFzbXupDmLYxqq1Exk7EAP/w=; b=Y5upxNJ0ZMLwHreHOe2rzbDZDK/e9/SYvH3kZDFlh4xH7VvTTqS9iX6kPKkxESnc63 I7kTlnojwhikGbRzUsLRQpTSXWjs5ggIvYQtqCYzuIqwzmEszi1rBNrwnFqbAK/5PLm3 APpCn8yATnGHi9Jeb1nX4cMoKE4mAg5DWMiWAglEGaFIbnJrHx3cHqEVncvclIXZaGic l7kPzkDsyEiFRarBzSAvTOw0eNMColKyyIzdvqszgP2wT8p1DGZH/Puj9ZmyI9J1BzIG EHpCTGKehbVThzGQBaBIi74+ugv3px75rRcqRACvPHcBlCuYkwc+BmgGtf8SdU5BuW9N nlRA== X-Gm-Message-State: AC+VfDxGG1vJY8dnOqHOvAW9kp45pmOCG1rFo+7sPQxjBvMgrSr2lVB7 s666m6axtaxeBXS6WWRF++cHO6NP2NbUV88e1wo= X-Google-Smtp-Source: ACHHUZ6adnhF1iUNUSKna36v1dpD9ONH+lLUYROkCaDsTwsPBSQkg2PW5L2Ru+BtAKVxDeIayGLhdg== X-Received: by 2002:a17:902:c1c4:b0:1ac:b4db:6a62 with SMTP id c4-20020a170902c1c400b001acb4db6a62mr3794057plc.65.1685128962376; Fri, 26 May 2023 12:22:42 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.22.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:22: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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 02/11] dt-bindings: dma: Increase iommu maxItems for BAM DMA Date: Sat, 27 May 2023 00:52:01 +0530 Message-Id: <20230526192210.3146896-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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 Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing 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 Fri May 26 19:22: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: 685971 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 F1861C77B7A for ; Fri, 26 May 2023 19:23:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243357AbjEZTXA (ORCPT ); Fri, 26 May 2023 15:23:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237261AbjEZTWy (ORCPT ); Fri, 26 May 2023 15:22:54 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54051E4C for ; Fri, 26 May 2023 12:22:49 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id 41be03b00d2f7-5343c3daff0so749022a12.0 for ; Fri, 26 May 2023 12:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685128968; x=1687720968; 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=54cDFJeSGSXG52/B4DosN83/4R3Mi7SpQa7UatFpDqI=; b=b2lzihYg5M6iCzLBXlF88l5Ap3kClLx0dCY0MfER3ClAtPvcLCU1IrMJvMjWLfkQzJ Kcfkw96vBN5XtJNcQLKT4l01uNUmbOXQAFuWQsOV+xppoOBjZe9IgwcR5ltS7DDhGeGB Y+tuQgsULHr2QcEczOZZeOQNXPC4AWL41bZZwlQHCX1hpyZ7Pjjr881SGK7J3ckxEhXm ZYD/jmVSP2DdAZz8bs0CgYlkCDj3Fx+Efv5Nd96teg1d+CmQ9SEZgwHUUdmsX6o4SfTx BJZb6QdU09Jeqr4yvL3T7XGYzitpw6y7EHMDTHvlmy/j34IAjM3iESfMXpNkoVFwuHPJ G1HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685128968; x=1687720968; 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=54cDFJeSGSXG52/B4DosN83/4R3Mi7SpQa7UatFpDqI=; b=L+Q7awh7i0jHbMqqrBbOeFHl8/fUhpdR1afp/78Gt8XYCHrwONBljnW/S/7Bda7DtG 3stJd1GSokuJlpYVEI4qPzXgq023pBLeNgCOlaJDF+1UojoPM6+fbHAfLSBnERhoMN2W 739ZdtjKHP3NXs59q2RP0Q5ikhCC/rk2TyJipQbP6YVEqNBtosMJrUwn3VwFlXErfW/N YISsJI/5jqAhxoolQxnru4l+cTyEDvufmn46fDDW7HnKQC1JfcR+WZFpopDH9UUi3NsT lcf7B5GMdKqElEyNrSnhFRWwwEIJkLxr6gHkiqFvvDkYWvFv43LvXLO4QObFZP03on+V CAIw== X-Gm-Message-State: AC+VfDzHQ58J26+ideCMiXSqtda1CdVnO+aZ8VIgshyhIs2C6ibZc+5s LJJsHp2Cca2aqg6uw0WD+OFJpEG7G5xsB1e+lJg= X-Google-Smtp-Source: ACHHUZ6o47bDq6z9DBl7EGitghXheC/LQHkoFjUi1X+GLMYSKSOabZ2cIbN38uYkbtsRYiOTazK4EQ== X-Received: by 2002:a17:903:2350:b0:1b0:45e:fb02 with SMTP id c16-20020a170903235000b001b0045efb02mr3823014plh.35.1685128968276; Fri, 26 May 2023 12:22:48 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.22.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:22: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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 03/11] arm64: dts: qcom: sdm8550: Fix the BAM DMA engine compatible string Date: Sat, 27 May 2023 00:52:02 +0530 Message-Id: <20230526192210.3146896-4-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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 Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing 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 c9b70cdf1320..577806795a00 100644 --- a/arch/arm64/boot/dts/qcom/sm8550.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8550.dtsi @@ -1848,7 +1848,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 Fri May 26 19:22: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: 686528 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 CFBF8C77B7C for ; Fri, 26 May 2023 19:23:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243187AbjEZTXG (ORCPT ); Fri, 26 May 2023 15:23:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243417AbjEZTXB (ORCPT ); Fri, 26 May 2023 15:23:01 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F361E61 for ; Fri, 26 May 2023 12:22:57 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-528dd896165so753828a12.2 for ; Fri, 26 May 2023 12:22:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685128976; x=1687720976; 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=Bfn7W4wlvGKYY1Xv+0AM7IhBXt2kfIwNQPmd+vEv/4w=; b=Dtoy7ewh54wR5VT72iH4ijb/9S+LZy3gcmEkuL3y9fXW/n43FVEitTHRQhuWvtZSOg KA7OKe8eJ3Mosl1THk8rMj+NSGnAmVmHIJ1Lk02nAqUwFpvw+i0aMp4SbTwyr3HAWnp2 JOhXtWjEtdochNrzeiJmvZtuw3TCJxpCMon/9fr1hloWj0W9SVPjI3BuiGDEQUXbNcaH IvcPLGvRtVvw23Jxo/0SS3B58mRuAj2X3XtAOz99PzN0hfQ95yKL0JT+80glWyrCaEHW 2cjZ4au835aDEGbdkFmtQYoDVRbRTF5LqKIFCMTTjbFzcrKh0SMiGDH0ISd1sIhP7QIf axqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685128976; x=1687720976; 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=Bfn7W4wlvGKYY1Xv+0AM7IhBXt2kfIwNQPmd+vEv/4w=; b=LYuzpyJWz5uGwVoPTeFVc51xP/e3R/bVqPB8F429XeQhgzOzzPZP+aErTsOICmswmY Xw+KsjygBDZ5BvuG3yiWbEFW2XmIfLCXQ+/qQ3OUWOyQGbiNmtaWzyNv0MuGia4ZWYTN UTiiAuu+UAKafyhm13wbxQN0q/gA1JGQxXCnPgfl7aYE2HBFMeYsvSJPn5NLBV+cG/Fv OStqtiINbdE5qMaZKLJfx2aoKx9aU7o0/I9VXwsx4VmonVrAgln5BC93AR9EWpEhASY0 jZBTbLg/fY+V+KAkgu6y3KwKdDaASTZ7j2/nstg15kLGlT2EQFrcHNIRHUQZTMIzQWRU pQng== X-Gm-Message-State: AC+VfDwi+1+28uU4lh04V8DHt6IzPf3k+fq39M/QE6i/e+p5n9sECRW6 ackjl1ooMX3karAuGLVymJ9svEdz640WVnUves4= X-Google-Smtp-Source: ACHHUZ5wANoFsNTRQmDGKRNutkbGrk9m4YPYtyi77j8epfqprAhfnQpkcsQ20alJ3V6q4FfYvzj5SA== X-Received: by 2002:a17:902:d4ca:b0:1b0:440:7f5f with SMTP id o10-20020a170902d4ca00b001b004407f5fmr4451943plg.49.1685128975895; Fri, 26 May 2023 12:22:55 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:22: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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 04/11] arm64: dts: qcom: sdm845: Fix the slimbam DMA engine compatible string Date: Sat, 27 May 2023 00:52:03 +0530 Message-Id: <20230526192210.3146896-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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 Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing 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 cdeb05e95674..0d1d7328cd62 100644 --- a/arch/arm64/boot/dts/qcom/sdm845.dtsi +++ b/arch/arm64/boot/dts/qcom/sdm845.dtsi @@ -5221,7 +5221,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 Fri May 26 19:22: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: 685970 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 6A796C7EE23 for ; Fri, 26 May 2023 19:23:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237066AbjEZTXT (ORCPT ); Fri, 26 May 2023 15:23:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243630AbjEZTXI (ORCPT ); Fri, 26 May 2023 15:23:08 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82007E4D for ; Fri, 26 May 2023 12:23:03 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1ae3ed1b08eso11081985ad.0 for ; Fri, 26 May 2023 12:23:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685128982; x=1687720982; 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=ZpPwFY/HaOY0pRrudkg3nKNQcds7yLTTcGxLx+E7yvc=; b=nZQpG6XjCRIqdjJ97HJtAVdHuT1jvfE5pxEBmtp5eh9nn1h8JGQ3nZH9EUL3Hjh6Nt +W/CA7MU0r1vgzW7Kcxjn3iCWfKpR2ofORw70PL+TqhHTrXDdtaLC6BWCUNOUmSBSyAh rrlGYAt48vpx9pe2i1R+6WK1gzlgDrF8RCdvJQ2uc9BGlcEqa0i1bJBSWeatOLb36g7f 5GaAbc5V3ujgJTB7ntSA27x3Di91GXQYJDGWE0PMvWYWl33SFz4se9ZkCZZaE5cQXPMl Cd8qMPgrCOwue075A07tVRpGTL31OcrtuKeHMxIZaZxAZqEVlitOx0qDKkpaoFMoWafY INhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685128982; x=1687720982; 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=ZpPwFY/HaOY0pRrudkg3nKNQcds7yLTTcGxLx+E7yvc=; b=CtdRmaRafg9kpfZKSlf/GfRUGavC9gDalogms7aEOb6AyOVx5veDW2+/0o2KgXRQ+r O+Of52CFyeZpcenPbiIn7C2cGb8t+czHg9esIJ7sYpghkZXR5m3YYVRii5AB8PQhQGlZ g5xCsSxoZZ4v5IwTOBHbmZA8QdCn0Rn8a6lGU555F6jj+Ij7WbM73U2+O+ty88C2hPVe 1M50gxvBTVKWwPeyRqV4/NgF7o9jn+mdnsVJWxMlkOnvwm3hJQvhbateCiMOEAuzB2Sm f9xvvU95Ubw2EdV0eONDA76j1p/MuzJg5wfUU+JbpQ8hKg2jZ/h8DQ4/E4w9XPb13kL2 hAYg== X-Gm-Message-State: AC+VfDw1nNbXGCRN94msMybWSLIZ1xk2+Q00MCMkCsLQoWWOSWlRJXBj Fybzqkzh9ejjjX4uQxm/olyMXMizFPtPonXF82Q= X-Google-Smtp-Source: ACHHUZ7XYpVClx7JLDKuJ1eXmUISuCMmvGE9KcNe309uhN+vHxT/tRg4Qv0NpJRgB569/wa6/dZK5w== X-Received: by 2002:a17:902:e54d:b0:1ae:6e7b:9bb4 with SMTP id n13-20020a170902e54d00b001ae6e7b9bb4mr4013984plf.59.1685128982454; Fri, 26 May 2023 12:23:02 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:23: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, djakov@kernel.org, stephan@gerhold.net, Rob Herring , Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 05/11] dt-bindings: qcom-qce: Fix compatible combinations for SM8150 and IPQ4019 SoCs Date: Sat, 27 May 2023 00:52:04 +0530 Message-Id: <20230526192210.3146896-6-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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. Fixes: 00f3bc2db351 ("dt-bindings: qcom-qce: Add new SoC compatible strings for Qualcomm QCE IP") Reviewed-by: Vladimir Zapolskiy Acked-by: Rob Herring Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing 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 Fri May 26 19:22: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: 686527 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 7F342C77B7A for ; Fri, 26 May 2023 19:23:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243907AbjEZTXa (ORCPT ); Fri, 26 May 2023 15:23:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242853AbjEZTXO (ORCPT ); Fri, 26 May 2023 15:23:14 -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 DB425E5A for ; Fri, 26 May 2023 12:23:09 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1b010338d82so7373085ad.0 for ; Fri, 26 May 2023 12:23:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685128988; x=1687720988; 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=prFhwvSxBQ/UQ8d4CbWdnfwjRcrN8xUyHXxMGOEWxfk=; b=NZpF0bEaiJ64NKcd0IR9qeUnMib3NkOs5ZN6tMGQtVc6S9eyXNxuLqp36iIypZKrEs t+FAvfflBOhUraeyz5P0Vf/rt2pVio9P3b/l5xFrqajyS5X4L0WBxiZMNLvcARzlW5j4 xvIvJr+U63Ed26XkG5Pfz7Rzy59JuUXNhVA5PGSSNJ70W/OYmgssepxSbYFdtflV9vaZ bZYPxzU0Ia+/zpWxFv1QVbL2QlF24Hi4yUMpxaJD9QmQXt0MW4oY0rWB4dWOzn75jkbU e/BNCajd5h8EByWnBb7qXGp2f4+d8lWKyLjck6LVM2kq8aBWgg1/qJlpy7BH7l41i+EZ Souw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685128988; x=1687720988; 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=prFhwvSxBQ/UQ8d4CbWdnfwjRcrN8xUyHXxMGOEWxfk=; b=Asiq9VZg2QrSoVilKLPCVdQUPzCd7Id4DbIC1Zz0R7UFf6ynX9JsDjkvabhMoOootG 6Y/UF6Q02hPe/7aFckthLelDfDIK3kPEkC6QB8tVxK9e6VTqaAu8Sm71lCIsPy4NCmGQ OCU5jxBU95KLZcki7rmFm0+MtB7KSAcTZlJTZagwZvuwJ2rCu3S29hBp3XW/UjzQGmE3 N+X2vJ8lHHjdWRVokr67Qv52E4O++1SyMsbd2YO/925AEztVwQZjNXiIc3dPOuF/SnDS 41OlyAcuYOI1SZn5fkqmuuhGOQl6KNTfskW5VuKUwaeOxkoD3Tu+OlsSKa7T/RRcWt0o MfUA== X-Gm-Message-State: AC+VfDwm47vvrET3fFA3W3WLnFp5Kdxjcp7745JebG1TUjZS3LpNPddd SA4R1x+o3psEeJqlUXZNdl014tb62+kP9ewi9/8= X-Google-Smtp-Source: ACHHUZ60c6AQTj4K3Aeo78Ha1u4XyOFEb9uQ4viBNyubuHN3rC3+0L5JFqBYaNSBovMUc2Xk8c8C1Q== X-Received: by 2002:a17:902:d483:b0:1b0:12e:3bfd with SMTP id c3-20020a170902d48300b001b0012e3bfdmr4463175plg.7.1685128988620; Fri, 26 May 2023 12:23:08 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:23: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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 06/11] dt-bindings: qcom-qce: Add compatibles for SM6115 and QCM2290 Date: Sat, 27 May 2023 00:52:05 +0530 Message-Id: <20230526192210.3146896-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The core clock for the Crypto Engine block on Qualcomm SoCs SM6115 and QCM2290 are provided via the RPM block. So mark the compatibles for these SoCs to indicate that only 'core' clock is required for such SoCs. Acked-by: Krzysztof Kozlowski Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Signed-off-by: Bhupesh Sharma --- .../devicetree/bindings/crypto/qcom-qce.yaml | 44 +++++++++++++++---- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml index 90ddf98a6df9..bb828068c3b8 100644 --- a/Documentation/devicetree/bindings/crypto/qcom-qce.yaml +++ b/Documentation/devicetree/bindings/crypto/qcom-qce.yaml @@ -35,7 +35,9 @@ properties: - qcom,ipq6018-qce - qcom,ipq8074-qce - qcom,msm8996-qce + - qcom,qcm2290-qce - qcom,sdm845-qce + - qcom,sm6115-qce - const: qcom,ipq4019-qce - const: qcom,qce @@ -52,16 +54,12 @@ properties: maxItems: 1 clocks: - items: - - description: iface clocks register interface. - - description: bus clocks data transfer interface. - - description: core clocks rest of the crypto block. + minItems: 1 + maxItems: 3 clock-names: - items: - - const: iface - - const: bus - - const: core + minItems: 1 + maxItems: 3 iommus: minItems: 1 @@ -95,9 +93,37 @@ allOf: enum: - qcom,crypto-v5.1 - qcom,crypto-v5.4 - - qcom,ipq4019-qce + - qcom,ipq6018-qce + - qcom,ipq8074-qce + - qcom,msm8996-qce + - qcom,sdm845-qce + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: iface + - const: bus + - const: core + required: + - clocks + - clock-names + - if: + properties: + compatible: + contains: + enum: + - qcom,qcm2290-qce + - qcom,sm6115-qce then: + properties: + clocks: + maxItems: 1 + clock-names: + items: + - const: core required: - clocks - clock-names From patchwork Fri May 26 19:22: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: 685969 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 05EDFC77B7C for ; Fri, 26 May 2023 19:23:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237672AbjEZTXk (ORCPT ); Fri, 26 May 2023 15:23:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243809AbjEZTXY (ORCPT ); Fri, 26 May 2023 15:23:24 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE7F41A7 for ; Fri, 26 May 2023 12:23:15 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-52cb78647ecso729852a12.1 for ; Fri, 26 May 2023 12:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685128994; x=1687720994; 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=sOhQfsJK5dTieFAHpndB0sp0nugrzVr1VK8sl6Is5JA=; b=TH3DzXklVpoQLcvmbEHgOMUwYCSXzJn2RotIMOVEnaSCBK5DLHrLNleol3LHbsl8aY erU8ZFwyP46nnAPJkfJBG1orX/i15p0f9kVnbRpSAby+UUB3GNMVn8EzPtZ1ZQStGRj7 VVn5uOGKMDZahEjOU8Xg/88CJeaR0RuP7qYO7AhSOqGM5t/fV4TWvi0bM4pwlbw1PLr0 o8VAlAgqPsLdOaonmaxCY+IMJ8fmu0/H14+EaW52G9P1qnnqezlAjg5ff7d+atEjgVx+ UuPfg9l/FIp6z8zPo12czfN39oI0vhXSj/axCiC++aCv6aXjqH0M3tjMJSr7h6rme5/Q ejKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685128994; x=1687720994; 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=sOhQfsJK5dTieFAHpndB0sp0nugrzVr1VK8sl6Is5JA=; b=Dn/Sx46hQbEsP/STxrCAPN3CU/0q0sUPbQqtGUO8+Ehq98E5gxdWVFBcHHoZqQAoMw LwXN+PDRJY+c5raNEHoYCZMJPTUjUBhv+3Ba++DAQWXmoQ0bd4+pHZp2fUz4ymsjGBgF 5LmeZWfZhrH6EDXYjUi0CPzv79W0KEImrjtPWaJmIVPWMAlht+llJuIdycyBPZeVuJCc 6ed79dhLbcbf39/ZeVwEDhBiPdm5Re8U2qHPOyX31+EqKVW22FYlbyOI/Gou07obdhPq Cfb+iH/EmNyhdQExb5wmdacQrhh9Ae+6M1ZQ5tycBuHxIPf39suPGPmMhysip9gbDBJx cMyA== X-Gm-Message-State: AC+VfDxOdUOv3B3zS9kmmRmErk8q5yy3F5TpoySTeRiNXLnePiYSl26i MFCv/Cnh+Yvy0Wx1fgygeXczBZfSYsmIlV0QB10= X-Google-Smtp-Source: ACHHUZ69KXEBSfoKY/MmiFtjut3HQuddyCGPARLHLvRDsNSz6mtvzwJmpCI/R26bLuCllY0hhGCFww== X-Received: by 2002:a17:902:7084:b0:1ac:6882:1a6f with SMTP id z4-20020a170902708400b001ac68821a6fmr2794943plk.30.1685128994398; Fri, 26 May 2023 12:23:14 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:23:14 -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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 07/11] arm64: dts: qcom: sm6115: Add Crypto Engine support Date: Sat, 27 May 2023 00:52:06 +0530 Message-Id: <20230526192210.3146896-8-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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'. Reviewed-by: Konrad Dybcio Tested-by: Konrad Dybcio Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm6115.dtsi | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115.dtsi b/arch/arm64/boot/dts/qcom/sm6115.dtsi index 43f31c1b9d5a..2aa148340277 100644 --- a/arch/arm64/boot/dts/qcom/sm6115.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6115.dtsi @@ -663,6 +663,37 @@ 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 = ; + clocks = <&rpmcc RPM_SMD_CE1_CLK>; + clock-names = "bam_clk"; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x92 0>, + <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>, + <&apps_smmu 0x98 0x1>, + <&apps_smmu 0x9F 0>; + }; + + crypto: crypto@1b3a000 { + compatible = "qcom,sm6115-qce", "qcom,ipq4019-qce", "qcom,qce"; + reg = <0x0 0x01b3a000 0x0 0x6000>; + clocks = <&rpmcc RPM_SMD_CE1_CLK>; + clock-names = "core"; + + dmas = <&cryptobam 6>, <&cryptobam 7>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x92 0>, + <&apps_smmu 0x94 0x11>, + <&apps_smmu 0x96 0x11>, + <&apps_smmu 0x98 0x1>, + <&apps_smmu 0x9F 0>; + }; + qfprom@1b40000 { compatible = "qcom,sm6115-qfprom", "qcom,qfprom"; reg = <0x0 0x01b40000 0x0 0x7000>; From patchwork Fri May 26 19:22: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: 686526 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 E3DE8C7EE23 for ; Fri, 26 May 2023 19:23:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243734AbjEZTXy (ORCPT ); Fri, 26 May 2023 15:23:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237561AbjEZTXd (ORCPT ); Fri, 26 May 2023 15:23:33 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E741CE4A for ; Fri, 26 May 2023 12:23:20 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-528dd896165so754111a12.2 for ; Fri, 26 May 2023 12:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685129000; x=1687721000; 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=btA26CfzhWy+kp3uofjDjq8wT7mv+U+LR27ouy/0RX4=; b=YvOcPDllz+idyR1ffVcHFcFhrJqHuqZGFvD8KNb2sMQRfZq+tA667Yv1SuzQzVnW8R obE/cJI+3dcRSEhNj8Z8aGeM4dxVlPzjyKvukEr0/GvBDJEe4WssqOrYjPSiWoMmAYc5 yHW7BH8hoP2UO7HT6i6Q7NNQDi9ZNmSAZ/3xoXqe9LLLapFd3deWM05x9F/tjOQc1iRF mhUdR3HYCfmc13SDwOW5DN0+rJaYcgJa50vXyVyGsMByhrWpVU1yqUyATIfJ8DfIbJpV vbMEpKKAguQb7d5kz1VFYPLPVSORiNKDM0HATSseCeItr0iQ4YigF4rqu5RZ+ii31Uyd aT2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685129000; x=1687721000; 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=btA26CfzhWy+kp3uofjDjq8wT7mv+U+LR27ouy/0RX4=; b=gLosIHLCpewWwvLdABiCGq8ViPkHhCFeVftb9XXIGzHJRqZbqUANU1XKV257XyPSrI Wvql6nG/9EjEOYX1RTmmdBPeInW3zY5ajT5HKrwRVVzkeyswsRKwbG3KggojPep20WJ9 lsecKtJcvbBGGPvZQWShSU9WrgHbUequwukSIMBam0oVJHb0c+I9LZLTpVe+xcqNEMiP bKqZ0CJmMfrnBce37GGxp+ukhOboeQ7meJRL2kGWhO8r6F9ZEvs1jk5fv/AViDHSOg0T 5baEDuFMRdNmOQi9UeO0+5mcSK+TjQgqwlxmYIm/s1UbE2BsnapoW7XOl3ligI+mqz9o 12dw== X-Gm-Message-State: AC+VfDy4LkilQ84NYfZXoNsO7w1LPG22Tg14RT+tXF1t/jHv0C9mykt6 fQMcw0Aq2cHpnC8LdEFtCXf8hmYC87lyD6cVRM8= X-Google-Smtp-Source: ACHHUZ7dqztEuFf/KVWC3ihzMKkzAMMAqg+0d94cF8m7jOxyYey9Y2I1YaDXbNVtVd9JwZ+GCE1dVg== X-Received: by 2002:a17:902:e750:b0:1af:9b8a:9c7b with SMTP id p16-20020a170902e75000b001af9b8a9c7bmr3557556plf.47.1685129000220; Fri, 26 May 2023 12:23:20 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:23:19 -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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 08/11] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Sat, 27 May 2023 00:52:07 +0530 Message-Id: <20230526192210.3146896-9-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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'. Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index a7f7bbfefa5b..197c016aaeba 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -2094,6 +2094,36 @@ 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; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x502 0x0641>, + <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x508 0x0011>, + <&apps_smmu 0x512 0x0000>; + }; + + 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 0x502 0x0641>, + <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x508 0x0011>, + <&apps_smmu 0x512 0x0000>; + 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 Fri May 26 19:22: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: 685968 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 91579C77B7C for ; Fri, 26 May 2023 19:24:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229966AbjEZTYx (ORCPT ); Fri, 26 May 2023 15:24:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243112AbjEZTXz (ORCPT ); Fri, 26 May 2023 15:23:55 -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 A3431E58 for ; Fri, 26 May 2023 12:23:32 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1b01aa5526fso6211975ad.2 for ; Fri, 26 May 2023 12:23:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685129006; x=1687721006; 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=LMTHG8l+qigWdbQ7cyJvnKtXRMQ+ez6nvcozSSImI4Q=; b=GJQcey1tIco4VsgW2wCa3EVnoFzVEek0hn7ePdRn29+qgiW0g9UYwipeEXNnCsMFmm QdeaTktSBVaTQZCWHHFS06jCo6Aah31J9cn/15FwpU6QELQEa0EWimTP73hYhMFcHhE4 U/lK6w5eW3vOpHDeVHqcEkXq0g19aLyz68otddynIjR3pd2MwTG3g0sEP/5LX08fZZge VR97znrZayCVAWtB16b2Z6oajzdVluVxGtmZO6LVZoPZOrOOjXtYBX08KhZJNcEZY4M8 lQRRghIrInaBgcKvJ1bsn0YK+aGeBMGWrhvB4TVXfEGyWseLzJnlmjVYVGJslPT4KAvK JGCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685129006; x=1687721006; 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=LMTHG8l+qigWdbQ7cyJvnKtXRMQ+ez6nvcozSSImI4Q=; b=SBWURBPcEsfcOWaCcs3J6IFwnq7/Zao0CNISrGtKSQpCpXz3MUzqHJkaPuVB5px8Qs RNoos//AlrFntDBLFKfs6oLP0JdoVvaPR94Z57pxnb/CBtSNSBwqaUi9/HQ0zI+U0SaB KZGjYajwewD4d8O+GpOKsUkfdkR5AUf6tWcPMMKeBVad3WRbh9Qq0YoC/blLfrA1dx41 PtrC7YngLPBpZQJhdzkbS24igYKXEg8EerW3U16ltn4lfCfLDiZtSFsiYIKkNd/iLzvn cUQh0L7PAqBJEltFPu1TRaDXQWLHy+1bW8E42pubko90XqJIdnvNGZQVcFvIu6AZSeXS znug== X-Gm-Message-State: AC+VfDwJhiH6NKGBGYdGJK+P9vROQl1CINEslk7iFjaWYEbwRSzONmX6 DcpRD8kp/vM+NT1Ho2g1ZLT751+1u4bBmChZiM4= X-Google-Smtp-Source: ACHHUZ6BO9w5FdXzRsIZxZBqjjuAe8EPfEYlgN9HTmnQi9ZZydY15sIjo/INoBxrERq9+zRRSBPEhg== X-Received: by 2002:a17:903:2312:b0:1b0:155b:bff2 with SMTP id d18-20020a170903231200b001b0155bbff2mr3221607plh.59.1685129006728; Fri, 26 May 2023 12:23:26 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:23:26 -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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 09/11] arm64: dts: qcom: sm8250: Add Crypto Engine support Date: Sat, 27 May 2023 00:52:08 +0530 Message-Id: <20230526192210.3146896-10-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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'. Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Co-developed-by and Signed-off-by: Vladimir Zapolskiy Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index 7bea916900e2..79fad917d142 100644 --- a/arch/arm64/boot/dts/qcom/sm8250.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8250.dtsi @@ -2232,6 +2232,38 @@ 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; + num-channels = <8>; + qcom,num-ees = <2>; + iommus = <&apps_smmu 0x592 0x0000>, + <&apps_smmu 0x598 0x0000>, + <&apps_smmu 0x599 0x0000>, + <&apps_smmu 0x59f 0x0000>, + <&apps_smmu 0x586 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 0x592 0x0000>, + <&apps_smmu 0x598 0x0000>, + <&apps_smmu 0x599 0x0000>, + <&apps_smmu 0x59f 0x0000>, + <&apps_smmu 0x586 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 Fri May 26 19:22: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: 686525 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 2E1C0C7EE31 for ; Fri, 26 May 2023 19:24:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230037AbjEZTYy (ORCPT ); Fri, 26 May 2023 15:24:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243927AbjEZTYU (ORCPT ); Fri, 26 May 2023 15:24:20 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9145F1717 for ; Fri, 26 May 2023 12:23:58 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-5341737d7aeso997931a12.2 for ; Fri, 26 May 2023 12:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685129012; x=1687721012; 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=LzLxRqESfAzhWOHk9jWggF2sKez+2FAQRolSYn3FDhg=; b=UZvG6SPqirBlWwo5g3YildSNzcleAp3Rwlt3UKE8P2jPVYOL9fo4scwjEO9njeI4C4 n0POx7PAKH8wF9/wdNF47kCoAkbIMNM4utf8vz0Vs9QNpcZMvYIQ5EcUjEZTWTA0r2Oc 2zDFWnhpSbWn+NDDESS2dvuFQySHKuCaKxfL/nIyZEmy2to/CnRpa4OSqekUPS2QuNvb ZE1J2v2l3ooCfGe8A5pJlA5+x4Rg4q6+cQ2EUUweoyeH5FP023qPhtdWCY7y/AOoPJaP UWG4M0zYTvRpIADCs1hKKejlHxEiEOASIqknBhbF/j2VtMhDsGlLbUF2cQuGwm3NSAiF kvrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685129012; x=1687721012; 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=LzLxRqESfAzhWOHk9jWggF2sKez+2FAQRolSYn3FDhg=; b=e/kDDK9u+ZlvOFrIoFz1r982/HFOMZ/IoU2RSSa5HCK1zkr/NcnDjGBKljR4tmyn2i 0ToVVLgUI8zrCn6vqrrFgUABHSXyY0Ql6IreDb/DLhThuYm1a8f6ktKbasmmw5FQ0otC lRjZhfa800o4UZWd2i643VlNQWS4LzBAmqapvTFxyLjr33avYgSMRQktteCBf5v6ybKG B5p1W8VGVF/yWMhLkTJVhXQevtnEYSj8CP4s2ctnxVL1IM0Ig9Wv2JAMTGy700+xsth3 MLqnYvbfVl6LKFeqccRaOXUhobcVBbqHTGqpU7gufxCfyHoiMYbT7SQT/9kvW65L/Bdf CoHQ== X-Gm-Message-State: AC+VfDw5EXzd79LcDH0QdXUDx+hwF4YndeDaeLYEmPPajYrTDQyEhmed YhDVAZ1uM0p1CVL8myO9cwm3PfRUwtXiw2sCvzc= X-Google-Smtp-Source: ACHHUZ5Gv2aoxtmLLsPeGviJahVJN0Zpn7y4bJSqPAL5PO1NAht9Llw/S1mI72wY5+gz4F3n8p5x8w== X-Received: by 2002:a17:902:ce90:b0:1ac:310d:872d with SMTP id f16-20020a170902ce9000b001ac310d872dmr3587422plg.52.1685129012380; Fri, 26 May 2023 12:23:32 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.23.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:23: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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 10/11] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Sat, 27 May 2023 00:52:09 +0530 Message-Id: <20230526192210.3146896-11-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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'. Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing Co-developed-by and Signed-off-by: Robert Foss [Bhupesh: Switch to '#interconnect-cells = <2>', available since commit 4f287e31ff5f] 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 d9aa591dccf8..52afdf26b2bf 100644 --- a/arch/arm64/boot/dts/qcom/sm8350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8350.dtsi @@ -1735,6 +1735,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 0 &mc_virt SLAVE_EBI1 0>; + interconnect-names = "memory"; + }; + ipa: ipa@1e40000 { compatible = "qcom,sm8350-ipa"; From patchwork Fri May 26 19:22: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: 685967 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 9BAD2C7EE37 for ; Fri, 26 May 2023 19:24:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236289AbjEZTYz (ORCPT ); Fri, 26 May 2023 15:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243985AbjEZTYW (ORCPT ); Fri, 26 May 2023 15:24:22 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E205B171F for ; Fri, 26 May 2023 12:24:00 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-64d18d772bdso1539710b3a.3 for ; Fri, 26 May 2023 12:24:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685129018; x=1687721018; 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=1njn0X79ZVa4bpFpIROGKaYXKaM1KuhMVkxwXfg7gOQ=; b=HrGYDfvG0Xsp/A/zedL8nS5rkVVlhkW+JEy5OlneDMG/FgpWWoHBL4qqfR3sqNrAHw N02hyr2pY/kCoaFrrLZW33UmvPQ96h3Xx5/ILcF1jisy/CHOfgOd86RxzB14dsdsmfsd eKLq79NclssCpBvvUwCSydAK6IKdT8VxPP7g9gzsBStvgk4tyIfza7M3D8fc7wAggdPf NpZTMewKyelWDwdU0FWZf8Aij6Okk5N92xuX+jn8UEZosrGxQh7eKUknyIh0iOoVe34t gh5vOcoAvxV7xexxHfH0dX3T0kFUTBdWel+49SZ64pQtbnZJELkjGVSMB6ovUEBHh98t bRog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685129018; x=1687721018; 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=1njn0X79ZVa4bpFpIROGKaYXKaM1KuhMVkxwXfg7gOQ=; b=YJ2POrrfAD4frzmy79AoujJtDvZ+FJOrDyoquvOPgHMX3wrWrSbVLaN46zqPKNXdHv NRw5yTE9dEYGdtTmf4go4JPR5PA4cEKJcoyjvqwDNWFoKkOKirZhfZk7vUvxYF9XFJNM yvC3rheLn58sSOPVlEAxgPQZeJ5JoLxU3Qgsa+rq4ebnBckKCYDDmnnt7VGeQ7e+FC2l 4c0oPiI4IygDZC1yHm1tVyWERfVOsk8bVOJvRQKUiPzz69I6TMaJIGywQ1vh1qKEhhw8 Ifd0kot1ZZn9wCkG92DStEqKGpV+EzxrgXaKdkkXKHoR5K0ojqIpt1Fr0BDd5M/TQ3Kt pp2g== X-Gm-Message-State: AC+VfDwIbdyacZ6kHIm4XGGpI8nEmczD2w53to2BMeofNMc3V7pnv/06 d+geC+mk+kH7dhhQisioBsFZy7OS+WKIS0Zhs3w= X-Google-Smtp-Source: ACHHUZ5x/8y9Vqs+MmpKmGon+S9SqikwtMNf3bIFaTila4wvgIZ2XbYAzpTfJLOZHFc47WEEg9bC1A== X-Received: by 2002:a05:6a20:d493:b0:10d:3134:10d7 with SMTP id im19-20020a056a20d49300b0010d313410d7mr437546pzb.27.1685129018344; Fri, 26 May 2023 12:23:38 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1f3a:6990:1a5c:b29f:f8cf:923c]) by smtp.gmail.com with ESMTPSA id q18-20020a17090311d200b001b008b3dee2sm1955079plh.287.2023.05.26.12.23.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 12:23:38 -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, djakov@kernel.org, stephan@gerhold.net, Anders Roxell , Linux Kernel Functional Testing Subject: [PATCH v8 11/11] arm64: dts: qcom: sm8450: add crypto nodes Date: Sat, 27 May 2023 00:52:10 +0530 Message-Id: <20230526192210.3146896-12-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230526192210.3146896-1-bhupesh.sharma@linaro.org> References: <20230526192210.3146896-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. Tested-by: Anders Roxell Tested-by: Linux Kernel Functional Testing 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 7f193802a7c4..1642daea9624 100644 --- a/arch/arm64/boot/dts/qcom/sm8450.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8450.dtsi @@ -4173,6 +4173,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>;