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: 12126983 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D6429C4332B for ; Wed, 10 Mar 2021 05:26:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B213464FE5 for ; Wed, 10 Mar 2021 05:26:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229927AbhCJFZo (ORCPT ); Wed, 10 Mar 2021 00:25:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232182AbhCJFZY (ORCPT ); Wed, 10 Mar 2021 00:25:24 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE31CC061763 for ; Tue, 9 Mar 2021 21:25:24 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id x7-20020a17090a2b07b02900c0ea793940so6581719pjc.2 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=HBuAYfXj/Gx0uI2TQb2XdRwe006lO9HJnOq71m4bE+vgJ3jduesPzqzUroDUI6k8pz 4Cs47fN6XtBxBmDGVJ7KXZtrD8d3OHbotM9s8Z5LSFOk27mqwGVOIhjy6vkrSEfVaihz RIfbDebF8avtTQuj2SKQTqTI7+Kj0yVLyD9bOehwtDgDilY/Jgn5MhUStMp+eiwb0dSU CJY1TsfeObMVGZ7cOgqK/VjuecPcfIx2ONWfqgOrDwW8q5aevPGkHUl2X/CyPMn3Fy+3 ETN/jOuMILTdYIVx3wcjA2ZI8wjncAGRktgjeRwXGqr2YT2PP1KIjwXp9zXoPlwz6CUy h78g== X-Gm-Message-State: AOAM532Yms37ec53fltQOoXaCbhmh0jRkZM6Yw78lGFOMnnlvJTnP9px qKaO/VQJrIo4LVyH5FUQV3Bvh4mOf4N7gE1XkY4= X-Google-Smtp-Source: ABdhPJyPBZ8rYvr2UCW1gOkvSX4hRlcWea4qu2bNh7MA1mhWDB3UAODRk9IL8RPxRR16pSQuHPo7vw== 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: linux-arm-msm@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(-)