From patchwork Fri Mar 31 16:43:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669102 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 DA1D6C76196 for ; Fri, 31 Mar 2023 16:45:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232621AbjCaQpT (ORCPT ); Fri, 31 Mar 2023 12:45:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230339AbjCaQpC (ORCPT ); Fri, 31 Mar 2023 12:45:02 -0400 Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F403C5BB1 for ; Fri, 31 Mar 2023 09:43:44 -0700 (PDT) Received: by mail-pl1-x62e.google.com with SMTP id z19so21780732plo.2 for ; Fri, 31 Mar 2023 09:43:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680281019; 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=gkYOLIZ1gQIsCBl6zAcU/vVfG9FTwn+4rSwIFFFP8Dg=; b=wqtW98+ku0+HQRwv1TcLcEicaTFMNbl2bsY6DojBGjgami1tewYS/PgQ+IUsY4Mekv BbqYFe9+uoOwsRm0h9ZOgad3Tc91wfacrGjdXsK/qMajLM86t7pfrONbhX0eBCIg9HD4 hQ6bIEH/3WLqB4H29xQfDpBl0bJuuu2H57hb3R/cVVQy6lim8gXqVxP5AiWTeZc1k1xn m8xvXpBiTwjek0BvAOneYc1xE9WRmqYnSVNiTWkGMlQunWvs1pKGOodEVaBJMUWYfn0n UOBFq930qTOH5XS8XBnHTV9odRoVOjHzXgWw8d8kJTwqvgumUAFBpVb64G+w8h2M0znM 1wbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680281019; 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=gkYOLIZ1gQIsCBl6zAcU/vVfG9FTwn+4rSwIFFFP8Dg=; b=7co/Qq3fppA1H6vVG4elPui3tdxGHoGnzVeDMwp0B6bhezWkf9ihuDxz6aNihN87MZ 9A3KfKW70ad0Z+th7tFPLqYhK3nXy/xgIKWcC6VCveGw73zgl0v17XNnRwarc8YYCUTx YPC0aJKZXXWYZiSWaXVg8OJQT/PKHKtI5Tg/ok1+4nC5QME5CHFxXupoOYjK6WaioJ89 9eHYp0HTZgSj1HLD7tHUMCBynGgfhYz4Load3lGPQhBbHzv2Zx7NXA1X5fciCTEomGxE AJV5MPkYNP1UmrUe13dsaSExn68Y1338iP2v3iXw/SApSh5mAZLVsUHzljAcCj73Bme2 SG1g== X-Gm-Message-State: AAQBX9f/t8zUww2gDqGHG1YfQefE7uCzt0k+YAF3u4WUH0s1oqHcOrxw D/clGfC6aqTvVpJRoLzD8Rj54w== X-Google-Smtp-Source: AKy350ZyJ0JS14L44Ky05I+5j+M4dseLFMeyuEpha8SjsiKWFrmveoQQgbD+N8z66AflZcv8CnMZGg== X-Received: by 2002:a17:903:1252:b0:1a2:37fc:b591 with SMTP id u18-20020a170903125200b001a237fcb591mr26219213plh.69.1680281019130; Fri, 31 Mar 2023 09:43:39 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c5e:53ce:1f39:30a5:d20f:f205]) by smtp.gmail.com with ESMTPSA id x13-20020a170902b40d00b0019b089bc8d7sm1798767plr.78.2023.03.31.09.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 09:43: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, Bhupesh Sharma Subject: [PATCH v4 01/11] dt-bindings: dma: Add support for SM6115 and QCM2290 SoCs Date: Fri, 31 Mar 2023 22:13:13 +0530 Message-Id: <20230331164323.729093-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230331164323.729093-1-bhupesh.sharma@linaro.org> References: <20230331164323.729093-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 --- .../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 Mar 31 16:43:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669101 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 2B9B9C761A6 for ; Fri, 31 Mar 2023 16:45:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232389AbjCaQpr (ORCPT ); Fri, 31 Mar 2023 12:45:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232411AbjCaQpL (ORCPT ); Fri, 31 Mar 2023 12:45:11 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ACB922EB2 for ; Fri, 31 Mar 2023 09:43:54 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id iw3so21769782plb.6 for ; Fri, 31 Mar 2023 09:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680281033; 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=UYD6p8k0MAvXLgW2ujOSm1q/H2SLlbnZmg0CclkW4x0=; b=PZpeZS1KXBC2YN+vJT3OPlyL1yl5kDhSsgqNZdKSUmyXcd4h8PnY79jZxr3Rb/eOo5 i84DsF7gZ7P5CgFuVCdS+oY2N+xIb+EvR3Xca5NPkQIsDouJUe+aM82iQFssfnWX6GCo 0DLYNnqoCLo7VSlydptNdrQE1S4o9iRNTlV5Us/vyDfxHIoICT0flwnNStGjVfb5D5SK ztFilqrXsNqw07wEE4TM9BPQfptNp97lsguJOjiEw1Z55vOGAXUsSoVRx1BsGERNq9VY YtW4u1NiI6VhMNpLqfxzQT1EjNUER4Si3XE5vR3q0mutoqOGSJ06Ew5TLuSkmIPHViel NV7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680281033; 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=UYD6p8k0MAvXLgW2ujOSm1q/H2SLlbnZmg0CclkW4x0=; b=M9/XTQDY2HKrSfaLbpSyNqFKlAHqGdJzBmEFA7Xv21jyUcoPZ9XnkVeyQ9OvBMXKyN 0mw/dutHPAPCwUFYLSWetBCj5C4ARTu/khu2ljNwEAP7JIY6qic+98hKHEya3P6Cxazz z52KrPNhQvErPxStcCiiYeMGFhJQqEqoPmEUmD+oWg9Xz1xt70eHpvoPx1U9/LyjqmOt kafYReVESLORFmTFdBMywW4xLEY8y/Axkywn6sXncPzjf0r1x3yJY67ufmFs335V1Eor 2iuK3UZgW/1LuQUy3waGlLO4P+6OthrjyILqRoQaihJiVR390aWwjIfwKdLpZHLsk4p/ eZyw== X-Gm-Message-State: AAQBX9dlxM1hzyo2HdKiE/7/4dV5G/DvClFTlmBt0nd56Vg1cS4Jqd7b 1+ijZvyanpYq2LWyxgFFKARf8g== X-Google-Smtp-Source: AKy350aUadKxCjC7T/jtAKyhtu8secZ5aS9M9FzLyNXe0UgsEzCUaS54081hv5nD8SoUiDgQslQ9Gw== X-Received: by 2002:a17:903:2848:b0:19e:675b:a40f with SMTP id kq8-20020a170903284800b0019e675ba40fmr24719165plb.8.1680281032922; Fri, 31 Mar 2023 09:43:52 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c5e:53ce:1f39:30a5:d20f:f205]) by smtp.gmail.com with ESMTPSA id x13-20020a170902b40d00b0019b089bc8d7sm1798767plr.78.2023.03.31.09.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 09:43:52 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v4 04/11] arm64: dts: qcom: sdm845: Fix the slimbam DMA engine compatible string Date: Fri, 31 Mar 2023 22:13:16 +0530 Message-Id: <20230331164323.729093-5-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230331164323.729093-1-bhupesh.sharma@linaro.org> References: <20230331164323.729093-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org As per documentation, Qualcomm SDM845 SoC supports SLIMBAM DMA engine v1.7.4, so use the correct compatible strings. 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 Fri Mar 31 16:43:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669100 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 D43C4C77B60 for ; Fri, 31 Mar 2023 16:45:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229951AbjCaQpz (ORCPT ); Fri, 31 Mar 2023 12:45:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230403AbjCaQpQ (ORCPT ); Fri, 31 Mar 2023 12:45:16 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05409CA03 for ; Fri, 31 Mar 2023 09:44:03 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id mp3-20020a17090b190300b0023fcc8ce113so25996557pjb.4 for ; Fri, 31 Mar 2023 09:44:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680281042; 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=jMqNDnVJgU7VTnx/m509pjSRih3eionpwuF1Gywgv0QT1Oqq9LDiOdiG0QGzWigaQM xz7C5xZ75rov/5S+huNW+OioCbk++BKSro8tivaJmk/ltyPFxcwcBM8KE6RcuZFCokMi GHUYeBYr+b3UuqK6O4uXwFOEERHFPR1y2aSNZBNBs+uhNt5WLRW2f8vsVVCPEnl2YfNj jzM208N0HQ+LHRkNfiiuoPbx0LCqzooF9R2UB7vevtQ1L941SurByakm+R2cVMG6Qevd C87SbZdEFQrYVZ7qnZWX1A2RbVTK6uq/snIxTDadLJIa8y7LPVJs8KnLeBiP+ezKoFxe DY/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680281042; 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=pgpc1sv56gEPNLM8UKKf0XME7wzqNV7T87Z30wEMP7Us0biAcavurGiu/Fu4lz205f zVOaPpVdV04j1D7uF03lSTysJfRs3YmlQgz5KXs0k3ubnwfiJz8jetGSOWpe3NocQQyF d/QObfMpD1/g+CZ1heZ/j74o6G6jBv45JdxmFtwUotg/vqMPIJccJOftjeBqkZzgITF6 dZ/mKAUwLB56Qmjbr3UnKWcfRJOSsflKMDkAkKfK8KxH2BVlraOKiRduVUBhN/QqPlDP rbgHN3U03Tb5b+bEP+XR8O4sMlf734bF0z1gKKh5ZnA4jiBPlkH6iLF5hc3AS2fDNsCa fq8Q== X-Gm-Message-State: AAQBX9e7rIeynL55um8gqLyC9h6+i2eHKocRGVE3z0DOxrUfM2kxrgYx DQkuixRp6TbHGPjPHE8tJ+SgcA== X-Google-Smtp-Source: AKy350axYry1znftsZjzg8LUEoktyveoFzhwG4Bb7Trgg+J45I/+MtYTQDxD96OldYQ7bQM7Lk76PQ== X-Received: by 2002:a17:90a:1d1:b0:23b:4f1d:f5d9 with SMTP id 17-20020a17090a01d100b0023b4f1df5d9mr32242983pjd.30.1680281042094; Fri, 31 Mar 2023 09:44:02 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c5e:53ce:1f39:30a5:d20f:f205]) by smtp.gmail.com with ESMTPSA id x13-20020a170902b40d00b0019b089bc8d7sm1798767plr.78.2023.03.31.09.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 09:44:01 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v4 06/11] dt-bindings: qcom-qce: Add compatibles for SM6115 and QCM2290 Date: Fri, 31 Mar 2023 22:13:18 +0530 Message-Id: <20230331164323.729093-7-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230331164323.729093-1-bhupesh.sharma@linaro.org> References: <20230331164323.729093-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Fri Mar 31 16:43:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669099 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 C5761C77B60 for ; Fri, 31 Mar 2023 16:46:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231786AbjCaQqR (ORCPT ); Fri, 31 Mar 2023 12:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232713AbjCaQpV (ORCPT ); Fri, 31 Mar 2023 12:45:21 -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 9280121A93 for ; Fri, 31 Mar 2023 09:44:11 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id z19so21782371plo.2 for ; Fri, 31 Mar 2023 09:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680281051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=TQiB4R55/WdgZqihCOYe0hueyPFgcPTGGlzurKjQi4zPOhVvb+Vj0JY+mU0T1jtfDY 3O6UZDf4/BS3N568NmYa4WWYNYlNmArkIgDpo37otAykKLnTusTpDzwg8DKRERZWHGwR h3kjAAdraoAVsrCD+KA50NrAnxpiD5LHpnHrISqgLrSPB4gmd0KdNdaRYGfbBo8hIxZ/ vqJWY3IPBprw9/peWQjs5dnH+K8oqR4DIbBBhy+UDkWNlcTNEExf8eN9KFkLV3HEBAGP 1rJs7irFhXp0YDeiUqhBilMc5ZegFS2sFTg5igN2mldfRJzo7WWCO28YwGALDlcLGo/m iX6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680281051; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3MVums2xGimULwLAksXbnkYaopPwvTqx5iwZKEFGpjA=; b=dIDEVuI/jLRMyq8tjYvGPNmx+awPpBV9ngk6eS4hIYAowQOKDd+sBGWepNRXDWJH4P CTwS4NQ/4it7uYzyD1m/wo9kzIWq2nWV6Lw8kjfdZ2FUSe5/bvXmVn9xvyd8KXvz9FR9 PhtEKl+9Ft39Jolsqfc7kFQaH7tv9ZcEjmIrjiAqDVtXb60BGZHmvyktFr0YYhDNCWtX sjmFu0dKdrUfaomcyN/DA/vyUHTCSB6Snb9r01JutKxcuOWt3RoPJmwQjzRIVkqE3UAN cLqdZgtl9xjODplFQZcA0THhs+MR8hLZKRmcbLe2KTCfWz77l+FNloMdoIVHt50lsdfP /Osg== X-Gm-Message-State: AAQBX9fSGUOcM8UnoKnv7HP4OfgPSq8LM9EUn50akgny0swnHotQ/9eF +QoxPlgHu1oLQXXHwx5eL5oOCQ== X-Google-Smtp-Source: AKy350YaMydpB176mJRTqkcfcka5RAdgO3drOTBe4s7bznkU93ZzbYbqP3LbPxRKqhCV0ADjWifTag== X-Received: by 2002:a17:90b:4b8d:b0:239:fd9b:85bd with SMTP id lr13-20020a17090b4b8d00b00239fd9b85bdmr32370105pjb.27.1680281051234; Fri, 31 Mar 2023 09:44:11 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c5e:53ce:1f39:30a5:d20f:f205]) by smtp.gmail.com with ESMTPSA id x13-20020a170902b40d00b0019b089bc8d7sm1798767plr.78.2023.03.31.09.44.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 09:44:10 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org Cc: agross@kernel.org, linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, andersson@kernel.org, bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, krzysztof.kozlowski@linaro.org, robh+dt@kernel.org, konrad.dybcio@linaro.org, vladimir.zapolskiy@linaro.org, rfoss@kernel.org, neil.armstrong@linaro.org Subject: [PATCH v4 08/11] arm64: dts: qcom: sm8150: Add Crypto Engine support Date: Fri, 31 Mar 2023 22:13:20 +0530 Message-Id: <20230331164323.729093-9-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230331164323.729093-1-bhupesh.sharma@linaro.org> References: <20230331164323.729093-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 Fri Mar 31 16:43:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 669098 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 6DDFAC76196 for ; Fri, 31 Mar 2023 16:46:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232820AbjCaQqo (ORCPT ); Fri, 31 Mar 2023 12:46:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232896AbjCaQp6 (ORCPT ); Fri, 31 Mar 2023 12:45:58 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4684322235 for ; Fri, 31 Mar 2023 09:44:21 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id p3-20020a17090a74c300b0023f69bc7a68so23933980pjl.4 for ; Fri, 31 Mar 2023 09:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680281060; 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=MgbGb9+BajR7U9Py9m3Waklr7ZRT5TbXE0rkhdrigVGuXvy9FH1Mb9DCA3RNwdC8P+ W7gZj6Ayj1u7v5GHACtoETocx4IX0wY59TWhL2ZoOe3M8NixjXSkKTgWNJTp1RzJICpb S1Tbb0eHpfCXHhRThqTFDgJNW5eKxLs9MLiN5qjnOEoM8X0lB43Wg6tSE2eQDMOZRu2a 5V1QJZ0WcDvQ00tFobV3d3AcdHLlyG7xOw+94sfLv9Wk5WxkXVNTou8mq5050nSyQIT1 wG3x3rq4uE1egPNbGXjb7YRjJMqwssU4MHc1tQg4loQyoM+gzu3yVZPS5tJXspbmaApF yDZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680281060; 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=c4kl/yJs+s5hwdBtszlwwZAXraqve87xc4oRAXFABbQpva7MX4WUjYZPKiGc9obs1X PM65jTtBxOZfIb9k3BHTXfG1f9jZ3LpxXss1S1nrUPdLrSGgMQ6OnxyavWxlXz5trAdF 6GQSB7MGYEvfJv7EIf9v+1sTO8MvyINXK3DlEefbzemBSGVVZI+N2apjYz6KYOyd8VNp ECm2p5x5SoLIsq3EWWKqVfR6o/JZ79UZ8vr6+qD1wjSaOfHAEksuPXjLS1IYyNUCaixU BjC+QK+LWjs+hM7TFHHP8sJnopu/0bZzte4qVxV3xiVTKK7VdBFIknEG3OHgUIVw161S 71cQ== X-Gm-Message-State: AAQBX9cIOSwkbA0hYesK7cawKFwoDr/aj3rcQ8fZj50G1YcfxMLzIjPW n4lw8E+LlJpUyq36+I15QZqncw== X-Google-Smtp-Source: AKy350b+9sXAELUkkF3jqAghaMeDCPUqUPxSM1UJMNGAYXF0XGG/jRg976mLigMSa5OmDBAqdFIUoQ== X-Received: by 2002:a17:903:886:b0:1a1:bcaa:aaea with SMTP id kt6-20020a170903088600b001a1bcaaaaeamr26472474plb.3.1680281060248; Fri, 31 Mar 2023 09:44:20 -0700 (PDT) Received: from localhost.localdomain ([2401:4900:1c5e:53ce:1f39:30a5:d20f:f205]) by smtp.gmail.com with ESMTPSA id x13-20020a170902b40d00b0019b089bc8d7sm1798767plr.78.2023.03.31.09.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 09:44: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 Subject: [PATCH v4 10/11] arm64: dts: qcom: sm8350: Add Crypto Engine support Date: Fri, 31 Mar 2023 22:13:22 +0530 Message-Id: <20230331164323.729093-11-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230331164323.729093-1-bhupesh.sharma@linaro.org> References: <20230331164323.729093-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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";