Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2059189ybt; Sun, 21 Jun 2020 07:58:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx90I4KPOQ6KzKeIl/MtUM1dZ+ufU84HLTXgS+AOeItjecXcnQSYLC1mNembZauDGHu3c66 X-Received: by 2002:a50:a687:: with SMTP id e7mr12265015edc.62.1592751480983; Sun, 21 Jun 2020 07:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592751480; cv=none; d=google.com; s=arc-20160816; b=Z29aXIrRrfCuyXO1Yf/MPQ/c1p1axMWyRHcR5FXlGgDavgfG7+aU/t8ssOpzTDk15A hgqZkNzoozHND5aggf0UUVRfZVYC5wyeWTR39h8mR2KNnlpkbgOla2jmwv+vOAWENt1P s5LHxUJD1xMBvx0GqS+D8oOWyeQp41lzLyeIMuVHgjqqeu01b0343ehINfH96K/i0Ly2 RomT7zv+OYQtUzW8KGzkADkOfP88L6P8GwIqp29uhIHGxAUcbsHesnNdWdiFFEvg2KOO pSRbLKHzBIT1fBJ9GMb92xlOrmOC1fr70hzbDgHkiit4+gSOxfkTx2EgDDiFR0xtFreM W+Ag== 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=luj7njT9Fnn9R66nkh8JPY/LTeE8Rz5wxsmlyKtfvng=; b=VoVv9iXYsNcigX/foE1S/XuKJW6/ASFun08FGgGuQfN16y9QL1Py1fqHPxO5wOEmxL ziOxz8dThdM4pVnWkOPZcCH1ei5WORCO8lk7zpiLqyRuVrwpTJNbtntdoiFCfkHGHga2 ivKatMk+5snTRB1+68lUiXb/PSwb6RYcgmqok7KZicI5GARjTo4c/B+6Mxv5Ir3NXs2a iMaAlB9F8znM1eJLTo03peYedsq0tf8kzEjNfVEzBTvyFr5ke3jaaupmyKahRuepK4Pr FrKWADlUXMiG5CjlLK1aFTL8SnGTO3M85ZPy4WuIcy4hWfv91WBEHrB4oa8zbaQhhTU+ 5Odw== 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 l20si7671777ejr.66.2020.06.21.07.57.27; Sun, 21 Jun 2020 07:58:00 -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 S1730264AbgFUO5S (ORCPT + 99 others); Sun, 21 Jun 2020 10:57:18 -0400 Received: from inva020.nxp.com ([92.121.34.13]:53568 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730154AbgFUO5R (ORCPT ); Sun, 21 Jun 2020 10:57:17 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 05E361A074B; Sun, 21 Jun 2020 16:57:16 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id ECF721A0744; Sun, 21 Jun 2020 16:57:15 +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 44338203C2; Sun, 21 Jun 2020 16:57:15 +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 , Franck Lenormand , Iuliana Prodan , Silvano Di Ninno , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/5] hwrng: add support for i.MX6 rngb Date: Sun, 21 Jun 2020 17:56:53 +0300 Message-Id: <20200621145658.12528-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: -update rngb DT binding with compatible strings for i.MX6 SoCs Horia Geantă (5): dt-bindings: rng: add Freescale 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