Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1717890ybh; Tue, 14 Jul 2020 05:40:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdALQt1l5vvk3L/ja/pfqXy7RG15BTSUG+cSR5GJ68xKQsQCDhPAv0CTljv4ZFuy5d2wTZ X-Received: by 2002:a17:906:8601:: with SMTP id o1mr4406820ejx.326.1594730420040; Tue, 14 Jul 2020 05:40:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594730420; cv=none; d=google.com; s=arc-20160816; b=OQ58xwp4b4z8KccIdPmJxfUehmIuq5VagOVlQi6aMx+ECP1dOkttBxsm+g04NzksxA cVCNGrI4EZUY9p6o69goneQsYUCmDJfEr3Mpn24u9vsli4C0uo+LYwNqA0Xww9P3Hs7d c+d1VY5yAy4za9Du/7UWS9eTnNdpu/BVfeVo4vGaUf05zA+n/R9ufTVkbgnDkAzQbF2i GIuE4QPfin/WC+brBj28vMLgwOExJMqPPmkxdyYklKUiaqJF4SC6eBNBuwl1M92A5qRI fqTV6znuY0Qg1C8eYr1NdUPk0COwviC4c+pgESolrkJmct+26FMFJaZLOXBOvr81jRSJ RCzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ifKWD4idNsUrD1/Wg7jNJT2wwdelOnxWPfd7fROrv/M=; b=r4ZnUtiaLKe/OGRBL4V56Vb6fvWK4AXH+iTTQyNgKl8q4GLXM8haAL6XTAcKcPYn2H 4r7B3j/yoZVz4/pOToNnhVV3bTdrkHTzOsHl2qNhy/JvgqQh+l7ijm/j9ETnOukqNSIN PPbsZWu2weUn//tBnfaSQ7TMSYOzqjpj2u9MtFk8+S5cMBUbUyxLTQ4lTsed1Ik8N9lt WueLgZZncpZSq+NCc0BqJfxp9nvT/TooSeYsOlnsoj7PSsqfOScjAvfRKMwo/BFSOUxY 8BumOa+mbVuJ1ZzholhIyHkbW5vZBUQL3sXfbHaWu2QqxqC83ZTgvrXM34+9GXQkVhaf UUwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do16si13698591ejc.166.2020.07.14.05.39.51; Tue, 14 Jul 2020 05:40:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728076AbgGNMjg (ORCPT + 99 others); Tue, 14 Jul 2020 08:39:36 -0400 Received: from inva021.nxp.com ([92.121.34.21]:51946 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbgGNMjg (ORCPT ); Tue, 14 Jul 2020 08:39:36 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2492C201000; Tue, 14 Jul 2020 14:39:34 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 17CCF201004; Tue, 14 Jul 2020 14:39:34 +0200 (CEST) Received: from fsr-ub1864-014.ea.freescale.net (fsr-ub1864-014.ea.freescale.net [10.171.95.219]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 5A165205A4; Tue, 14 Jul 2020 14:39:33 +0200 (CEST) From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Rob Herring , Shawn Guo , Sascha Hauer , Matt Mackall , Herbert Xu Cc: Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Greg Kroah-Hartman , Martin Kaiser , Marco Felsch , Franck Lenormand , Iuliana Prodan , Silvano Di Ninno , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/5] hwrng: add support for i.MX6 rngb Date: Tue, 14 Jul 2020 15:39:15 +0300 Message-Id: <20200714123920.23711-1-horia.geanta@nxp.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Add support for RNGB found in some i.MX6 SoCs (6SL, 6SLL, 6ULL, 6ULZ), based on RNGC driver (drivers/char/hw_random/imx-rngc.c). This driver claims support also for RNGB (besides RNGC), and is currently used only by i.MX25. Note: Several NXP SoC from QorIQ family (P1010, P1023, P4080, P3041, P5020) also have a RNGB, however it's part of the CAAM (Cryptograhic Accelerator and Assurance Module) crypto accelerator. In this case, RNGB is managed in the caam driver (drivers/crypto/caam/), since it's tightly related to the caam "job ring" interface, not to mention CAAM internally relying on RNGB as source of randomness. On the other hand, the i.MX6 SoCs with RNGB have a DCP (Data Co-Processor) crypto accelerator and this block and RNGB are independent. Changelog: v3 -mention in the DT binding the compatibility with "fsl,imx25-rngb" -collected Reviewed-by v2 -update rngb DT binding with compatible strings for i.MX6 SoCs Horia Geantă (5): dt-bindings: rng: add RNGB compatibles for i.MX6 SoCs ARM: dts: imx6sl: fix rng node ARM: dts: imx6sll: add rng ARM: dts: imx6ull: add rng hwrng: imx-rngc: enable driver for i.MX6 Documentation/devicetree/bindings/rng/imx-rng.txt | 3 +++ arch/arm/boot/dts/imx6sl.dtsi | 2 ++ arch/arm/boot/dts/imx6sll.dtsi | 7 +++++++ arch/arm/boot/dts/imx6ull.dtsi | 7 +++++++ drivers/char/hw_random/Kconfig | 2 +- drivers/char/hw_random/imx-rngc.c | 3 +++ 6 files changed, 23 insertions(+), 1 deletion(-) -- 2.17.1