From patchwork Wed Mar 10 05:21:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396663 Delivered-To: patches@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp91181jai; Tue, 9 Mar 2021 21:22:02 -0800 (PST) X-Received: by 2002:a17:90a:c096:: with SMTP id o22mr1713521pjs.119.1615353722160; Tue, 09 Mar 2021 21:22:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615353722; cv=none; d=google.com; s=arc-20160816; b=MxNrWRDAuzed8R2iDKZYI11FZ4eQAt8EizidYufv/InNvx44+yWgTJHCDg3/L9grZt pyAwyUMmuGfmK7Lb6JOxiaR34IYhupViueWggmegaUGWiXloBBBm0j946UPXJtkhA8kG yns62CoJ3zf43M2IDQ/30OiBmEi5FcCyOEfL7ZX9OfFpGYkps7GkXW8wNsgp7t2KXO85 lGadEIMqlFC0R2L0XqGSGarb11a1YtIbISLoDdoxGL1/Nfmkd0rppjblejsfzcNhrgfZ p7Ac6ywPODlvC5P/YC6/9bBipva5iQAQZ5n+nghaZi4+13aaGEiMaP8GL5paGpJEfVXQ Y5ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=lmRk4W9psPWHB+/Q1B7Q6YGKf/tXK67nMAE63UGJDWU=; b=ZkXsQlEnNFKufj/a5TYi7FrW22d1trqLT9qIYqe6W2vpJxKJwRhBa/Fo1GyecSSwBW me2j2CGS1ns/ae7OAGYHsDqPMRQ8UEoX9o95fKO3wJbzxk+f3/Beci7pk3gh0uopfEuh mxuDeKQ7g7TibB/Xm7nvpaIplFjWqTzIBitjpg5N6lzHJj7U3JLMBAZ5LB8zicQNAMq+ ntQLFb4hkuGJY9x3DsU+8Wx8oqzRzDbaxlcyE4YpVS4MhA5k+vZrTCpyByKXnxGWULoK TrWZ0dyRbsBgTMAqkvOqi5LUHw7o+DpaCi1gnDRF/DdaOIpLUpfmaj2mErCht5+avKVu gk1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NS8f5VWE; spf=pass (google.com: domain of bhupesh.sharma@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=bhupesh.sharma@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id y195sor7875386pfb.11.2021.03.09.21.22.02 for (Google Transport Security); Tue, 09 Mar 2021 21:22:02 -0800 (PST) Received-SPF: pass (google.com: domain of bhupesh.sharma@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NS8f5VWE; spf=pass (google.com: domain of bhupesh.sharma@linaro.org designates 209.85.220.41 as permitted sender) smtp.mailfrom=bhupesh.sharma@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lmRk4W9psPWHB+/Q1B7Q6YGKf/tXK67nMAE63UGJDWU=; b=NS8f5VWEr2Q/5/amP4T1i8uyuosIAIjm4E0MS4YnnD9sHMYQuNw51FI5UAVPwV/Nfn fhY9JwRjlgKb6lV9cz44GMmGr5F9Hfl1peYikypsOrHksFoiqPKxjdodc25raO/2OukH wr1xjdNLrD3bl3FCJEB2JghCztprXvlpeluiYdOOk7g8CqDtr4mGf6ZAgTDiRU8rC8Nm FEpWpRwmMJu/schshid9FjJtpyjzGyi/w4wt26RVbRrp3JbtEqTLfLjQqiL8IUyj/9S+ ZOeiunRBWqWNqhN0+1Qx7gdpsrKw4wAO84Sp2Ue3r/UXOBeGc86mGKjaNt8aH1bxeENo YvRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lmRk4W9psPWHB+/Q1B7Q6YGKf/tXK67nMAE63UGJDWU=; b=mrlBrHLAVCzleYe63T93D0JHZeqNFjpgztErUna9G1QGGXU3Eu0yeJ3kndL3r3Kzu4 QuUsv970JdROfhAIyPy0+ggJIowPfbKqyR8oZjvfHheZwDZFliWJw/INI4z0oIxNjyp1 H+ZdcbuT2BVfA4Q5un1oh09NQsH7vK55f/xj72BJ+LlvRQgYl7ISJbpzJ7TvOPEtGUuV 1IaKLUnJcmMeIhIkVpbNhjHKCMS360LgbiYn5Lw1USWwIzAtrB9SPwM/kcoP0r947iHg u49CoVfzM7NoWAJ+pJG7RGpemfSdZ9pDfPwNkN2RLc1FEeldrAHYACLWkMLcKJhoHZ0W DnHA== X-Gm-Message-State: AOAM533K3eYvPnqq6AGzlEeyynnXlcYeGTxSDBU5u65+2au9CQoe1QTf yQQyjXe8aANJ3cIde0SsOVA/pJZSf46n9g3ML9E= X-Google-Smtp-Source: ABdhPJxtwIfAu0uRgoNgHCKc5XPoidtaa2wzNjTquHWyL9paQKrEPXfN23tFbzcY7T5x3WjzrqwhaA== X-Received: by 2002:a62:8203:0:b029:1f1:5ceb:4be7 with SMTP id w3-20020a6282030000b02901f15ceb4be7mr1324990pfd.48.1615353721801; Tue, 09 Mar 2021 21:22:01 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id j27sm11364184pgn.61.2021.03.09.21.21.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:22:01 -0800 (PST) From: Bhupesh Sharma To: bhupesh.sharma@linaro.org Cc: patches@linaro.org, linaro-kernel@lists.linaro.org Subject: [PATCH 0/8] Enable Qualcomm Crypto Engine on sm8250 Date: Wed, 10 Mar 2021 10:51:45 +0530 Message-Id: <20210310052153.3617888-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Qualcomm crypto engine is also available on sm8250 SoC. It supports hardware accelerated algorithms for encryption and authentication. It also provides support for aes, des, 3des encryption algorithms and sha1, sha256, hmac(sha1), hmac(sha256) authentication algorithms. While at it, also make a minor fix in 'sdm845.dtsi', to make sure it confirms with the other .dtsi files which expose crypto nodes on qcom SoCs. Cc: Thara Gopinath Cc: Bjorn Andersson Cc: Rob Herring Cc: Andy Gross Cc: Herbert Xu Cc: David S. Miller Cc: Stephen Boyd Cc: Michael Turquette Cc: linux-clk@vger.kernel.org Cc: linux-crypto@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: bhupesh.linux@gmail.com Bhupesh Sharma (8): dt-bindings: qcom-qce: Add 'iommus' to required properties dt-bindings: crypto : Add new compatible strings for qcom-qce arm64/dts: qcom: sdm845: Use RPMH_CE_CLK macro directly dt-bindings/clock: qcom: sm8250: Add gcc clocks for sm8250 crypto block clk: qcom: clk-rpmh: Add CE clock on sm8250 clk: qcom: Add gcc clocks for crypto block on sm8250 drivers: crypto: qce: Enable support for crypto engine on sm8250. arm64/dts: qcom: sm8250: Add dt entries to support crypto engine. .../devicetree/bindings/crypto/qcom-qce.txt | 7 ++- arch/arm64/boot/dts/qcom/sdm845.dtsi | 4 +- arch/arm64/boot/dts/qcom/sm8250.dtsi | 36 +++++++++++++++ drivers/clk/qcom/clk-rpmh.c | 1 + drivers/clk/qcom/gcc-sm8250.c | 44 +++++++++++++++++++ drivers/crypto/qce/core.c | 1 + include/dt-bindings/clock/qcom,gcc-sm8250.h | 3 ++ 7 files changed, 93 insertions(+), 3 deletions(-) -- 2.29.2