From patchwork Wed Mar 10 05:24:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhupesh Sharma X-Patchwork-Id: 396670 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp93066jai; Tue, 9 Mar 2021 21:26:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxmtTH3SKlFWtl6BCWkEmO1iTEg0UupVLKwnoEq0QZ9MG1wEH2gYPNXMMJGoAihclaDkhNq X-Received: by 2002:a17:906:1fd2:: with SMTP id e18mr1758492ejt.49.1615353975915; Tue, 09 Mar 2021 21:26:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615353975; cv=none; d=google.com; s=arc-20160816; b=UKmABgJiwuIPRqaWDj+8uf1Q9R/TXfGTt1VSiuFjTZcOUzP9VoYl+Hqgr1rVk9KjdE 2QSc21YhNTZ4xv2I/4kO4d15I4uNKmP+UZ0aya7dvJ8xUEl0mqfZLrwdgsqLPOP5Emov YPfe87PhcyOaOPcZaUpD57JPNeBtEdnpllDzOz4orXuvhZKe0jrXZAtnErKdyEi6ZevO wb/Fe53BNXRH+qiskVmTB24iq8HmFqJ6cVX0+GDr1l9VSO0gOeCtQmDCR83UtawoD6Yh 7wkAh5RIVBiB4JtaX8h2YtnQ0SyH20o2E+BahW9FjjRZLydjFNW27qGM4C47kU3q9h9G 088Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lmRk4W9psPWHB+/Q1B7Q6YGKf/tXK67nMAE63UGJDWU=; b=OAkNqgp0800ywzNfAs/Hyty4IEnJB2yfmdjnrfVmz1DRHMIMNu/UgvTmuheTknhGeb lnHwXS+9mLHqj/NHWFg+xk6EXzzXtSRpwCkuW7axj5kvAYHnK9iaIZgsqS0C22dj5VeW hu82d3dkucLykiKvsHW8GL4Obwl+pjdkZdATiVc2CyZ5fC1DGjjjF8gIu/h2k/qjaciQ 5EMre4PBdK7d+DbDSKECBZwKM1wMaMcA/kxGbw9ThzPJhfjxuyaA2rgvc0Fu/US0mFwr rBw/loi2lhzjq57KXL9vcf0xcv148MUHSgiAUWMs3F2uZ5Iebti1f1onTGLP3xDQkCKp BT3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HmOgRJjI; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si11236441edc.296.2021.03.09.21.26.15; Tue, 09 Mar 2021 21:26:15 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HmOgRJjI; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229784AbhCJFZo (ORCPT + 6 others); Wed, 10 Mar 2021 00:25:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232143AbhCJFZY (ORCPT ); Wed, 10 Mar 2021 00:25:24 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F75BC06174A for ; Tue, 9 Mar 2021 21:25:24 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id q2-20020a17090a2e02b02900bee668844dso6578957pjd.3 for ; Tue, 09 Mar 2021 21:25:24 -0800 (PST) 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=HmOgRJjIG7OX0jjpBPFCcoNkZGVp9FjfUwR4gDs5cpJzHgHyQqkNjqE0q+5vj2gZsS xIumY9RzZ1zZlRXqP6McPi2HXAu1tVO6Xq/DfxMyAIofnQVm0L0qMgjMD744Sw8Ds1w8 gCRUBY6d43wawzhoccso9X5MNTO3vutxcjzkH96MziYlSU2MLnBI+Gxnx8EEf5CDdz+Q 3lqgTCsMHmoIotfQjaFu6+q30yU86HXDVblHD8iB26pm2btY5ejtRfVtdAnNaSKZMwdC 96x1dpmFIthR4PShQrUCXo34CYDkeD6vsiqEBs152t4Hy95P86fsrTjb7D9RoKBUDm20 /Tbw== 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=dD6/+9LWims+Urn1P7+5WttcJgtbLeAtwGrfKMcvjTf0ts3Wg23vgqTT4v1evDuQM+ 2W1PU/BK7RoH+44qkXcTBIpcXnmbpAPgzsUrQZOePlIQKnX3ZSAYnx8AisR/3s5fJFxf h4WM2hdRlHARAgV1kiOsGCJ9wZICuAeHiM77g+jisG+aFBuXxbryszp6fQ15uXOQLERL mO1+ivLSd6p153c3VfTsyOAMCk/bSuZFevt4nQ/y/zRrbKwNn9gfVxKEmddQUIPafRHy dRU7gGGxQIjNBu/QxsQenodHjdak6kd6lDS96KLmEvxIUs311XFmF6Atl3+AzoH1Bly9 tLcQ== X-Gm-Message-State: AOAM531pQUpKcwYBau2/xTRid1nZtfVqczG4UUQ4YvMPRPzHhfC/E8Ku QTJHSWCZE98InHeCVyv1s1kMow== X-Received: by 2002:a17:90a:c257:: with SMTP id d23mr1734557pjx.102.1615353924025; Tue, 09 Mar 2021 21:25:24 -0800 (PST) Received: from localhost.localdomain ([2402:3a80:9f4:a436:21bd:7573:25c0:73a0]) by smtp.gmail.com with ESMTPSA id g7sm13915224pgb.10.2021.03.09.21.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 21:25:23 -0800 (PST) From: Bhupesh Sharma To: linux-arm-msm@vger.kernel.org Cc: bhupesh.sharma@linaro.org, Thara Gopinath , Bjorn Andersson , Rob Herring , Andy Gross , Herbert Xu , "David S . Miller" , Stephen Boyd , Michael Turquette , linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bhupesh.linux@gmail.com Subject: [PATCH 0/8] Enable Qualcomm Crypto Engine on sm8250 Date: Wed, 10 Mar 2021 10:54:55 +0530 Message-Id: <20210310052503.3618486-1-bhupesh.sharma@linaro.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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