Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2540578ybc; Mon, 18 Nov 2019 00:15:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxWgDAzfk3hZ8uGtU3s+QXfwwhTvSLbHLmaadX9wNoQdRnX/eUuTYCjKQS9HBIYsI3Ynalg X-Received: by 2002:a17:906:fad1:: with SMTP id lu17mr25049456ejb.24.1574064901889; Mon, 18 Nov 2019 00:15:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574064901; cv=pass; d=google.com; s=arc-20160816; b=SSC+7ilZLecjlEFOA981SqsGGnIB8zsM1RQU4sfvEtP4NNI5xfy+HWN661izhRTGxS dt9PRmPO7r74KWYXzzq+DT3OS7MZzUMOedH7hyGeeJ86OiPyPIvd4CORzyo1hIzMRSbk Zm6Bt/Tw5kh/CQGn7RRcV6VpbceVYLsKeLty1G/t1Ek4iTy/3BS0t9GQN+2Zk6otX4ZK P58lU6H6ocCNFtPf8suDVndp/9TuzaRToFaXizS2xTEH+4ViRzbd/zvHv637TmkVWA8P D8V/Aq++kU1SUUb8r6AXkTfLKjP4AOjif1Mx62spEXl9xZX33Qidm+rwPsrW5OnY7ZMV 9x/A== 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=QaA7BDbSdX9jfQDBkM/kSQl2g+5tNndLUXgFesI8JtU=; b=ZwCIF3BfpsVF7fEQRjkGqojJeldq2VUd+0rw34mnbz6L8Yef4uaYzoawogPyeNxSYT m6cKrtqWAYJ8oj4cQvB2ju3hYRi3qF1He/5GgNckFt2Goso/mADEbPjDSEbOdoOxRUa1 kDgfUF9rPAiR3N22UldbvxoZBkJogMDDB14YGlpA+z8sMiliZDuUcnDCWkhwvN6Jywrs VmviypO3+imnUQOjZGAnWGkm62PZpwSqPtMTj/nLPbOMN2SwtoxLpBzILrTVXtUCq6sU hxTiGric/RMJcaWzsoZgpFocqkwn1blaUDLot2Hs8ps/n5XYXLYrCWibEtDMLNw1Hr6I WtDw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@brennan.io header.s=selector01 header.b=gGcgYyBn; 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 e19si10498720ejb.379.2019.11.18.00.14.37; Mon, 18 Nov 2019 00:15: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=gGcgYyBn; 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 S1726435AbfKRIOA (ORCPT + 99 others); Mon, 18 Nov 2019 03:14:00 -0500 Received: from sender4-of-o58.zoho.com ([136.143.188.58]:21835 "EHLO sender4-of-o58.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbfKRIN7 (ORCPT ); Mon, 18 Nov 2019 03:13:59 -0500 X-Greylist: delayed 903 seconds by postgrey-1.27 at vger.kernel.org; Mon, 18 Nov 2019 03:13:59 EST ARC-Seal: i=1; a=rsa-sha256; t=1574063907; cv=none; d=zohomail.com; s=zohoarc; b=n6ZjxkhAaCYdVbmonyMT0gX8EtdaPseXqA8EVlamRr14hEIO4ZIPQuN3Th/p0tFNLHSlK0iQPaeUNip2/ohWm6MW33vHSoZ8IApAVOQIUs/MnLyAmyCGwuy+TxYLLPjaae5BLQKRdxtJDCJH2s7X/k8ykW64Ep8D6sw3BosQ7Vo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574063907; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=QaA7BDbSdX9jfQDBkM/kSQl2g+5tNndLUXgFesI8JtU=; b=jmPe8liHwyhc+lisp/S0bh1t+B/fnJYcuQwzN8exNKgyt763W7UA2QDkcB0YIXqYdZP724iOHuTAWbTEgokonhFpAR8+R3CJ3hbz++aoUvpH+k/CEUtL90JKiK/zQeSqkPFDIR1eT0g2D+pDGxtrrOLKMVv6uafy8nWU5fnaKXM= 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=1574063907; 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=864; bh=QaA7BDbSdX9jfQDBkM/kSQl2g+5tNndLUXgFesI8JtU=; b=gGcgYyBnfcHlRSvkWvOyaMKlDuqnVHD02oQQ6lKwfw9HdpqJzHZ64areSk9yJro2 nRfGp4wk4iw8ICXEKmystIxgKJ/3oXMM4LdHyCDYkiJc4VeNVGxcZTnm6KBK6RT5grj kNawSeC6tTY81TexVMAwtRyTvFukohJOqFzW4xmU= Received: from localhost (195.173.24.136.in-addr.arpa [136.24.173.195]) by mx.zohomail.com with SMTPS id 1574063905483664.0921926369589; Sun, 17 Nov 2019 23:58:25 -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: <20191118075807.165126-1-stephen@brennan.io> Subject: [PATCH 0/3] Raspberry Pi 4 HWRNG Support Date: Sun, 17 Nov 2019 23:58: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 patch, the same command gives two random bytes. [1]: https://github.com/lategoodbye/rpi-zero/tree/bcm2711-hwrng --- Stefan Wahren (3): dt-bindings: rng: add BCM2711 RNG compatible hwrng: iproc-rng200: Add support for BCM2711 ARM: dts: bcm2711: Enable HWRNG support Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt | 1 + arch/arm/boot/dts/bcm2711.dtsi | 5 ++--- drivers/char/hw_random/Kconfig | 2 +- drivers/char/hw_random/iproc-rng200.c | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) --=20 2.24.0