From patchwork Fri Mar 27 06:10:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hadar Gat X-Patchwork-Id: 202748 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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no 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 D4962C43331 for ; Fri, 27 Mar 2020 06:10:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B586C20714 for ; Fri, 27 Mar 2020 06:10:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725942AbgC0GKv (ORCPT ); Fri, 27 Mar 2020 02:10:51 -0400 Received: from foss.arm.com ([217.140.110.172]:40764 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725936AbgC0GKu (ORCPT ); Fri, 27 Mar 2020 02:10:50 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2FF097FA; Thu, 26 Mar 2020 23:10:50 -0700 (PDT) Received: from ssg-dev-vb.arm.com (unknown [10.57.25.3]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 585553F71F; Thu, 26 Mar 2020 23:14:51 -0700 (PDT) From: Hadar Gat To: Matt Mackall , Herbert Xu , Rob Herring , Mark Rutland , Arnd Bergmann , Greg Kroah-Hartman , Krzysztof Kozlowski , Florian Fainelli , Alexander Sverdlin , Thomas Gleixner , Tomer Maimon , Randy Dunlap , Zaibo Xu , Daniel Thompson , Mauro Carvalho Chehab , "David S. Miller" , Jonathan Cameron Cc: linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Gilad Ben-Yossef , Ofir Drang , Hadar Gat Subject: [PATCH v7 0/3] hw_random: introduce Arm CryptoCell TRNG driver Date: Fri, 27 Mar 2020 09:10:20 +0300 Message-Id: <1585289423-18440-1-git-send-email-hadar.gat@arm.com> X-Mailer: git-send-email 2.7.4 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The Arm CryptoCell is a hardware security engine. This patch introduces driver for its TRNG (True Random Number Generator) engine. v7 change: in arm-cctrng.yaml, removed unneeded 'minitems' v6 change: add missing initialization of hwrng quality. v5 changes: 1. in arm-cctrng.yaml, fixed error in 'make dt_binding_check' 2. in cctrng.c, clean up cctrng clock handling v4 changes: update arm-cctrng.yaml to conform with json-schema standard. v3 change: removed few unneeded "#ifdef CONFIG_PM" from the code. v2 changes: fixed 'make dt_bnding_check' errors. Hadar Gat (3): dt-bindings: add device tree binding for Arm CryptoCell trng engine hw_random: cctrng: introduce Arm CryptoCell driver MAINTAINERS: add HG as cctrng maintainer .../devicetree/bindings/rng/arm-cctrng.yaml | 54 ++ MAINTAINERS | 9 + drivers/char/hw_random/Kconfig | 12 + drivers/char/hw_random/Makefile | 1 + drivers/char/hw_random/cctrng.c | 736 +++++++++++++++++++++ drivers/char/hw_random/cctrng.h | 72 ++ 6 files changed, 884 insertions(+) create mode 100644 Documentation/devicetree/bindings/rng/arm-cctrng.yaml create mode 100644 drivers/char/hw_random/cctrng.c create mode 100644 drivers/char/hw_random/cctrng.h