Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp151190ybc; Mon, 18 Nov 2019 22:16:01 -0800 (PST) X-Google-Smtp-Source: APXvYqx4C4NA2prkYXgZEsZ2eh55Gp9vlJ5kz9fbXwTZNXCsRMHbI7m4tG1IvkkqcR3YegyYrNDZ X-Received: by 2002:a17:906:bfe3:: with SMTP id vr3mr32204439ejb.273.1574144161283; Mon, 18 Nov 2019 22:16:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574144161; cv=pass; d=google.com; s=arc-20160816; b=T37uL+pWWaOqR23L0HrpwkWPrm2/QRKt1BpV4WNelC34s00NopFVhG11XjwqttRj14 DJR4g9Mv75PmM7ueLHSNudTOTyQ03Sz0Lq1Z2DEQsSo86DLAxD8qWO+w3W6ncr8MwyGI YDmlQxR/OCP5I0/Hs33afpt/YdpcM9L7ppF+CPSzo8C/gVZd3Zvzy+5y1COvNMzM7d5A BDbITKopGq0uP1RbGo86WhyjHpgW/S8hOAROwGb9ayZG7lbsz9cbFa05PRnbCRgHKW69 EeyKdaocctQTQl8uZqC2ZcejEQBQ966DSUS6tUHJSqLFfKv8cf6xS6PnWIBl5xnfNxHQ QC8g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:subject:message-id:cc:to:from:dkim-signature; bh=c7L5ybwI41MQuUShcRtA57Ge+Ip1hk0Hb3ub23HMqaQ=; b=agkDWCFiRjgM/1s25Pw+txB1fCPcFRWQKMN9J5QTSSEad98p0ZXnLgEuRvlOVGM/d6 HkhdxFbZfxnMeRZ3qVKsD+D0Be0pbIPen1Zaoy0X9Pb9EAr4wNdIYeKfaZEa8roo0VTw pyjoqtbbkD/4pEX4VoEmG9BGqnvWDzNwsZf8fEUHe2FP5r+wOixbkICDCuPEJ0hz41wM kUfln3d4mJXpQk2jHxs1Jlk2DuqiBWnn2TJL8kicgeo8E4UgFehxQQDcZg973Ss/H1pj CBJsfZAauC4YGmEYI4fai+TCBxlRDrAkykoCJM4i6Y+TBPFO2YJVZ8KGQhaac14mNDO/ 6s0A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@brennan.io header.s=selector01 header.b=cwmy2wB5; arc=pass (i=1 spf=pass spfdomain=brennan.io dkim=pass dkdomain=brennan.io dmarc=pass fromdomain=brennan.io>); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si13456608edq.415.2019.11.18.22.15.34; Mon, 18 Nov 2019 22:16:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@brennan.io header.s=selector01 header.b=cwmy2wB5; arc=pass (i=1 spf=pass spfdomain=brennan.io dkim=pass dkdomain=brennan.io dmarc=pass fromdomain=brennan.io>); spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727117AbfKSGOp (ORCPT + 99 others); Tue, 19 Nov 2019 01:14:45 -0500 Received: from sender4-of-o58.zoho.com ([136.143.188.58]:21825 "EHLO sender4-of-o58.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727014AbfKSGOp (ORCPT ); Tue, 19 Nov 2019 01:14:45 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1574144058; cv=none; d=zohomail.com; s=zohoarc; b=FDZb191bVzzsmEhPHuSDRaaVt7KFIt6KQmswEHW57HA+Cvb8V+jTzRidED3Tjz7Xm96HWmBJ7KUDXQFl/wjoCpoaPSqhcNZQRr+QI1U97jojCKx5XpR+c1FKu2C/BpuLbqkIk0+59jlaUXPiT8tqqwLVOT0XK8sQTd8miJsEwcc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574144058; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=c7L5ybwI41MQuUShcRtA57Ge+Ip1hk0Hb3ub23HMqaQ=; b=EVXnrACu/oK4Kz7ddwHdXs5N6VnpFcWRdQG9wf0BHjbCuxoDJM7S4BjU6QO8iYXtX681eQb1ErHkAvTEanYfEATZCIxq1Wkgi6i04HB+ajTd5RHK+VyHNi62Sfs6BEwZqyDs6yUQcFAUFTfV0iDJqtna60s3e/2DS9IpQH8AMpo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=brennan.io; spf=pass smtp.mailfrom=stephen@brennan.io; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1574144058; s=selector01; d=brennan.io; i=stephen@brennan.io; h=From:To:Cc:Message-ID:Subject:Date:MIME-Version:Content-Transfer-Encoding:Content-Type; l=1186; bh=c7L5ybwI41MQuUShcRtA57Ge+Ip1hk0Hb3ub23HMqaQ=; b=cwmy2wB55tgQXK/vQOWlD0swe4jSvp7d9+e6rK8Bvpfqq1lWyISr2Q+caX1K0uKJ iN4iRAVa+khnM2t8o0YWkT58iS9CLOjGLSYm89a2+NqqcvA+if0BGcX+3P3U22kjJqV gaYUl4LZ9JiVjTQYu9Gxf29gt7KjG/K0mdCxuxT0= Received: from localhost (195.173.24.136.in-addr.arpa [136.24.173.195]) by mx.zohomail.com with SMTPS id 1574144058311185.86846931854632; Mon, 18 Nov 2019 22:14:18 -0800 (PST) From: Stephen Brennan To: stephen@brennan.io Cc: Matt Mackall , Herbert Xu , Rob Herring , Mark Rutland , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Eric Anholt , Stefan Wahren , Arnd Bergmann , Greg Kroah-Hartman , Florian Fainelli , linux-crypto@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Message-ID: <20191119061407.69911-1-stephen@brennan.io> Subject: [PATCH v2 0/3] Raspberry Pi 4 HWRNG Support Date: Mon, 18 Nov 2019 22:14:04 -0800 X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org This patch series enables support for the HWRNG included on the Raspberry Pi 4. It is simply a rebase of Stefan's branch [1]. I went ahead and tested this out on a Pi 4. Prior to this patch series, attempting to use the hwrng gives: $ head -c 2 /dev/hwrng head: /dev/hwrng: Input/output error After this series, the same command gives two random bytes. Changes in v2: - specify the correct size for the region in the dts, refactor bcm283x rng --- Stefan Wahren (2): dt-bindings: rng: add BCM2711 RNG compatible hwrng: iproc-rng200: Add support for BCM2711 Stephen Brennan (1): ARM: dts: bcm2711: Enable HWRNG support .../devicetree/bindings/rng/brcm,iproc-rng200.txt | 1 + arch/arm/boot/dts/bcm2711.dtsi | 6 +++--- arch/arm/boot/dts/bcm2835.dtsi | 1 + arch/arm/boot/dts/bcm2836.dtsi | 1 + arch/arm/boot/dts/bcm2837.dtsi | 1 + arch/arm/boot/dts/bcm283x-common.dtsi | 11 +++++++++++ arch/arm/boot/dts/bcm283x.dtsi | 6 ------ drivers/char/hw_random/Kconfig | 2 +- drivers/char/hw_random/iproc-rng200.c | 1 + 9 files changed, 20 insertions(+), 10 deletions(-) create mode 100644 arch/arm/boot/dts/bcm283x-common.dtsi --=20 2.24.0