From patchwork Wed Oct 13 16:58:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12556415 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD48BC43219 for ; Wed, 13 Oct 2021 16:58:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B6B6E61139 for ; Wed, 13 Oct 2021 16:58:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238045AbhJMRA5 (ORCPT ); Wed, 13 Oct 2021 13:00:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238089AbhJMRAs (ORCPT ); Wed, 13 Oct 2021 13:00:48 -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 4B118C061765 for ; Wed, 13 Oct 2021 09:58:44 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id m21so2900268pgu.13 for ; Wed, 13 Oct 2021 09:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oNIscZN4pNeT8xlXkzpt1e9k3wuAf/h4QxrluxNZacc=; b=ym+HmUToOB0nIJ/6QJjlzffUg+ZcWGWEvFUbu1MlwxwjY9RT3TdDlfYqbIveutngzk u7Bj6p8alGws5CgUK5Y/qLqGBp9KYjczUgLzX87/cEPgc8cfB0zC6cVkJ26gkYjrV5NX NAcRDulgmaoJdYJ4c/XkzcieuK+CvkZMerl36a+RIJtgVcr6ZkGNUVpg3fvE/oQ84Nxy YULfAUGPPko6tWz52u3wMjgc9gbV1FQV4Qp13wUj0yLUyNQGyPoTkKLFFaaygFXqqZcx nZ9iMVPTFBpM99FYTwi4VhoyhCeTOEOUteL4cu1tcY35jb7HCWSH7N1eo8PCFXnhRegV WxRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oNIscZN4pNeT8xlXkzpt1e9k3wuAf/h4QxrluxNZacc=; b=wJa+Cg6izRSfpXBqvRZ4lZvNKHHOZT6YJl4kL1vmoWTFwDUQNjSVAqJOsknbCH6hOS LuNIAdZ/6ny/WOLzVnPN3Z6G+MH1tSSh/3wAbCG3cK6ar13ytmpmmFR3s7V7d0HDZgB7 3NqxV8tPqp/wv6ftwQqMMDNIv+Qi9hNTmHgyltzhUvYG60p4YyvbcNNrxjjQ+vLcTJW9 UiikSyiO/9Rrq0I4ZJP8sk1qnpKHWr+gRfSDvlpdgNZrNqm9pjzlB0TooEI5T6e+CSmW jEllphjG2wE9df6iVKcyMQR1HeqAe6DPeK6GwjTKVyB7edv38EhoPtPT6yaaC4U/W4QY ZbaA== X-Gm-Message-State: AOAM5310qtYWuPVWfirm8SOuo6aT92kblOyiXPyWnPJ8O09H5QKOxmsa EUtFeFZtkDbcRIbeY70RXmuAhw+8oodpsQ== X-Google-Smtp-Source: ABdhPJycuIqU30EM3ra9hlqSMZ7W8ZLMQTmaR6xBqWr0oIay7sNaTF6yyf/UJRlmDRa+BiVFJ6PdUQ== X-Received: by 2002:a63:6a05:: with SMTP id f5mr203416pgc.97.1634144323611; Wed, 13 Oct 2021 09:58:43 -0700 (PDT) Received: from localhost.name ([122.161.48.68]) by smtp.gmail.com with ESMTPSA id z11sm6661602pjl.45.2021.10.13.09.58.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 09:58:43 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, agross@kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, Thara Gopinath , Bjorn Andersson Subject: [PATCH 1/2] crypto: qce: Add 'sm8150-qce' compatible string check Date: Wed, 13 Oct 2021 22:28:22 +0530 Message-Id: <20211013165823.88123-2-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211013165823.88123-1-bhupesh.sharma@linaro.org> References: <20211013165823.88123-1-bhupesh.sharma@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add 'sm8150-qce' compatible string check in qce crypto driver as we add support for sm8150 crypto device in the device-tree in the subsequent patch. Cc: Thara Gopinath Cc: Bjorn Andersson Signed-off-by: Bhupesh Sharma --- drivers/crypto/qce/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/qce/core.c b/drivers/crypto/qce/core.c index 4c55eceb4e7f..ecbe9f7c6c0a 100644 --- a/drivers/crypto/qce/core.c +++ b/drivers/crypto/qce/core.c @@ -306,6 +306,7 @@ static int qce_crypto_remove(struct platform_device *pdev) static const struct of_device_id qce_crypto_of_match[] = { { .compatible = "qcom,ipq6018-qce", }, { .compatible = "qcom,sdm845-qce", }, + { .compatible = "qcom,sm8150-qce", }, { .compatible = "qcom,sm8250-qce", }, {} }; From patchwork Wed Oct 13 16:58:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 12556417 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D9652C433FE for ; Wed, 13 Oct 2021 16:58:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C171F6109E for ; Wed, 13 Oct 2021 16:58:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238139AbhJMRBB (ORCPT ); Wed, 13 Oct 2021 13:01:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238147AbhJMRAx (ORCPT ); Wed, 13 Oct 2021 13:00:53 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17DB5C061768 for ; Wed, 13 Oct 2021 09:58:49 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id lk8-20020a17090b33c800b001a0a284fcc2so4912620pjb.2 for ; Wed, 13 Oct 2021 09:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MUoKrGcGLIv4lsj8yIkvr9z3hdI9OO4fYaXMDY/s9e4=; b=uz3prg1HuUeYXkunN46aUS+v3dYsKILB/foYmwnqhxQoSGnQ++/av9sIDK2iu+bNKr J5PgQBOP4OfuHFfov97yEz0VlI3M1fMqxzOezwO0FjhSS8IULI91ny5FChRop5E5oD2P 39TQkFyHtSrjLohYvji+13Nh1eto8GqunP+Lf/Mnli9ef8MHakOSwt0gQkc+oSQ9YWEH DhKeVOXx73cTgUXm/EHql3WUwz0dgyEGS1i6E3MeX3wEOOEqc6Fz9LgwXMXMQg1Quyqu Lh2J1eboJt2lXCPyWFC3m9xB1msPucqzKj2L3oXxqi8JskRpFFv3n6XzxmtdivT4mQqj yevw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MUoKrGcGLIv4lsj8yIkvr9z3hdI9OO4fYaXMDY/s9e4=; b=b7oxO89rJ5ZZbBcPb5FZnPjG0MjeMnwA6VIAT0BQM98I07BYQ1YqUfoIPn02HkdBML cPPA5L5oDXGyBmBE7f3lRPYE4OIXzEl9lGpn9RMTDaYyPxtJRmaLP8LhFHC6j1g8KDqF 9lUB2vxcPqrxo8ONAtabmQGi2n+a8Xnkpj53xtZ5yuMMa4p7Bop4WNOkVTyS95HgfJ6p QAq31UegEzBX3hII51EjdVDXOdhZewnIouVaGfO6B0uO0H7Nj0gWt4iA0fSnw9PDblXb d1nBzEzROAkCDnXvLP7xHsPS4XcEsFH8SRTtDQKX/PdivOc4fYC7enGM6meiBWF32V5H +jZA== X-Gm-Message-State: AOAM530G/673t6jFt0eDY/CS+RVTFugBZUlIcot0nday42xlrIBGGDh+ sLY6zlq7+V0bP//ZBzKDWPnHnT2S9UeuSQ== X-Google-Smtp-Source: ABdhPJyK2z8cX7c0EYkxG+jtF4nxOaRP127Xwod0uI/2UUuARE1XdH4NAKcpTeCJhYNS+bIemLT0hQ== X-Received: by 2002:a17:90b:4d8e:: with SMTP id oj14mr6111763pjb.237.1634144328439; Wed, 13 Oct 2021 09:58:48 -0700 (PDT) Received: from localhost.name ([122.161.48.68]) by smtp.gmail.com with ESMTPSA id z11sm6661602pjl.45.2021.10.13.09.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 09:58:48 -0700 (PDT) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org, linux-crypto@vger.kernel.org Cc: bhupesh.sharma@linaro.org, bhupesh.linux@gmail.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org, agross@kernel.org, herbert@gondor.apana.org.au, davem@davemloft.net, Thara Gopinath , Bjorn Andersson Subject: [PATCH 2/2] arm64/dts: qcom: sm8150: Add dt entries to support crypto engine. Date: Wed, 13 Oct 2021 22:28:23 +0530 Message-Id: <20211013165823.88123-3-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211013165823.88123-1-bhupesh.sharma@linaro.org> References: <20211013165823.88123-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". Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Signed-off-by: Bhupesh Sharma --- arch/arm64/boot/dts/qcom/sm8150.dtsi | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm8150.dtsi b/arch/arm64/boot/dts/qcom/sm8150.dtsi index ef0232c2cf45..2f7ce1fdad55 100644 --- a/arch/arm64/boot/dts/qcom/sm8150.dtsi +++ b/arch/arm64/boot/dts/qcom/sm8150.dtsi @@ -3549,6 +3549,34 @@ wifi: wifi@18800000 { iommus = <&apps_smmu 0x0640 0x1>; status = "disabled"; }; + + cryptobam: dma-controller@1dc4000 { + compatible = "qcom,bam-v1.7.0"; + reg = <0 0x01dc4000 0 0x24000>; + interrupts = ; + #dma-cells = <1>; + qcom,ee = <0>; + qcom,controlled-remotely; + iommus = <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; + + crypto: crypto@1dfa000 { + compatible = "qcom,sm8150-qce"; + reg = <0 0x01dfa000 0 0x6000>; + dmas = <&cryptobam 4>, <&cryptobam 5>; + dma-names = "rx", "tx"; + iommus = <&apps_smmu 0x504 0x0011>, + <&apps_smmu 0x506 0x0011>, + <&apps_smmu 0x514 0x0011>, + <&apps_smmu 0x516 0x0011>; + interconnects = <&aggre2_noc MASTER_CRYPTO_CORE_0 &mc_virt SLAVE_EBI_CH0>; + interconnect-names = "memory"; + }; }; timer {