From patchwork Wed Nov 20 03:16:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Brennan X-Patchwork-Id: 11252961 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A0D1714C0 for ; Wed, 20 Nov 2019 03:17:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E8092240E for ; Wed, 20 Nov 2019 03:17:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="f4TZPWvN"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=brennan.io header.i=stephen@brennan.io header.b="WN8HwTFg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7E8092240E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=brennan.io Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Subject:Message-ID:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3ZywUCnbek3DulnbqVcfKE8FjTm9VKK3ClqY88TPPvg=; b=f4TZPWvNI33Doy 6poYDzucwLf2rSAemwH6xa7X2yJ4aWmZ9sS+C9Cym6596d3RQH+7XIosCEO5nZtWy0ymFLXVTj5m1 ApOn8MTMcZN/h/rR7cjuVUJecwZvrCT1QfXYFJJKgFo/hr4FPGqTa6cqfqdb0OUXrkE+2mfPMWiI/ m3cmzlKtjNjfOYb+IEP/O41hva7g6SVGIJbhuT1vcZ2cLM34ZBfg/BjQzLAGpHu98sMa+8oPAlYGQ 4IU+VdCSRDZKxZS+ggL7ozzqnhVGdRe5dkRL8cKViSFVyId4CXNbktChj8slNGgzfLl6LlPQ5o+yC Le+YBmI/MJ3hnOQiSWsA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXGUO-0004Hi-Jv; Wed, 20 Nov 2019 03:17:08 +0000 Received: from sender4-of-o54.zoho.com ([136.143.188.54]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXGUM-0004HB-2d; Wed, 20 Nov 2019 03:17:07 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1574219791; cv=none; d=zohomail.com; s=zohoarc; b=eFoKa9qXy1tgn9/SUB+A/HnLyFMrVY7caqc9mj56iP/ZNPuNaRAbXAXthYqfMLSXXHKMG3ljKA8TtpLretv/n0gia4vsWqp0iijXN8RBrt9XGsbWMAggM9Q+u7HKjsT1xOns9v4gb3AY5lEs85fTQR0jYXOfTk+hiQpfE6WC7qA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574219791; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=cfu4tgSh/ZEFa8HY5V7AvfFEMPP8yuNAhIRi2KmoYKY=; b=KJvZ+Zc6yLN+/HgpZn3e+Wm+6nozQD1EqqPXoeSL2NAcx19lKiuitkW/p3EjK2VOYvKSEsbEGvl51HI53S4mu+wByeP0PivZFqZPTuOUry9aJfZXWsZG8Xdj/r3Xnuy2U29evBkEgjKbozztqAPAoVAA7wbvBYDrGin1m3ItIYo= 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=1574219791; s=selector01; d=brennan.io; i=stephen@brennan.io; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; l=881; bh=cfu4tgSh/ZEFa8HY5V7AvfFEMPP8yuNAhIRi2KmoYKY=; b=WN8HwTFgQirOnyQsKTh3e72cq43UUGVZTzZEQn6LdO04Pwd+LBN0iKETukWu5wqt 4l19Aj8kskfypoU9JvrDbSna8DuyPgxt+9q/LpoRmbwEAU3KglEdyHP1rGvd/eDvZEA qjoVHtHaVEPUqKX7nEWoqT18HE/j78sKMfDrUdL0= Received: from localhost (c-98-207-184-40.hsd1.ca.comcast.net [98.207.184.40]) by mx.zohomail.com with SMTPS id 1574219790523910.6750032020789; Tue, 19 Nov 2019 19:16:30 -0800 (PST) From: Stephen Brennan To: stephen@brennan.io Message-ID: <20191120031622.88949-2-stephen@brennan.io> Subject: [PATCH v3 1/4] dt-bindings: rng: add BCM2711 RNG compatible Date: Tue, 19 Nov 2019 19:16:19 -0800 X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191120031622.88949-1-stephen@brennan.io> References: <20191120031622.88949-1-stephen@brennan.io> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191119_191706_163782_5A877E29 X-CRM114-Status: GOOD ( 10.40 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Florian Fainelli , Herbert Xu , Scott Branden , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, Ray Jui , linux-kernel@vger.kernel.org, Eric Anholt , Rob Herring , bcm-kernel-feedback-list@broadcom.com, Stefan Wahren , Matt Mackall , Arnd Bergmann , linux-crypto@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Stefan Wahren The BCM2711 has a RNG200 block, so document its compatible string. Signed-off-by: Stefan Wahren Signed-off-by: Stephen Brennan Reviewed-by: Florian Fainelli Acked-by: Rob Herring --- Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt b/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt index c223e54452da..802523196ee5 100644 --- a/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt +++ b/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt @@ -2,6 +2,7 @@ HWRNG support for the iproc-rng200 driver Required properties: - compatible : Must be one of: + "brcm,bcm2711-rng200" "brcm,bcm7211-rng200" "brcm,bcm7278-rng200" "brcm,iproc-rng200" From patchwork Wed Nov 20 03:16:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Brennan X-Patchwork-Id: 11252965 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8F42D109A for ; Wed, 20 Nov 2019 03:17:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6D9FC2240E for ; Wed, 20 Nov 2019 03:17:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Iyp516mL"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=brennan.io header.i=stephen@brennan.io header.b="UWPcAzhZ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6D9FC2240E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=brennan.io Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Subject:Message-ID:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Fgg+nalb88Ryne17b8ay7vTYP78oIdm5jb80CUL5Jd0=; b=Iyp516mLALUb2s 10eXRP4h/TPX9rSy011y4+dw3TbEAUEmBCsKeUgZ7EIZV1RqSyInfO0scCpUz1auilfTqczPOc/f1 TkaMeLRXiADInRUpQ/BtEwv1KXy+CxRbzyY2OZk41w533VvbRBLCaIXL4T0KyDKq5x3W3ytqSwqn6 Tl2gufU3qyMATSiSff24wJFFbxyzfKwQELY4nBkrZWjrmuEevFZtu6JtW3p4ES07qLc9qjFDP0I+z 6MRAorT8ZhpOAEUY8fT5hbpcbvv81JLsSsTjkYtbhN2xExVdVqMLFVEzEAuayjpzxyBzbi53O06As JBFT43ocfktHIi0DTXVw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXGUq-0004X7-KT; Wed, 20 Nov 2019 03:17:36 +0000 Received: from sender4-of-o54.zoho.com ([136.143.188.54]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXGUn-0004Wc-DB; Wed, 20 Nov 2019 03:17:34 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1574219793; cv=none; d=zohomail.com; s=zohoarc; b=RSpCohzv+f9T1VYLNuM8wp6pAQvrLm2bKPIikd/UwZECpWbbBVVVhp69Cvkpk7/gGbh6uRsH1moDUiysa+RhfWfZ+Ba32Z7pf+t9nkel2v664fc1y9pUnZUqnS3rckmCMh0Qd8rP67n72+osy8VGAlgZcYX/jNYSyLujz0U6MhA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574219793; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Efwht2VhX2X3iX4OfpDosxQefq6lHG/BFamPUzKTwA4=; b=Rbp24i5z1RYEkQYC8Z1NQ6DyJodMQSQtP7W2lRO7GYMKztZgjHS5U2vWWYPWmAiNYgJZMyl4+NfKedGPSCi6w2WmP6w4JfCUi3Sokr05dza6XEBDxXQYw7x0xSGnhGylqlT+smki0HlqY3qw7+IA6oQja2mkoH16agHSRm0c1M0= 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=1574219793; s=selector01; d=brennan.io; i=stephen@brennan.io; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; l=1571; bh=Efwht2VhX2X3iX4OfpDosxQefq6lHG/BFamPUzKTwA4=; b=UWPcAzhZF95UNB/VBCiQqqO3KguKbaI74BeISboBhYdO8f5QKIgVvoUMQtr/PRhX MTjevbThZ4/+9GKNQbVjFpiM/saGGh27+zxzoHJ7fNOb0qbEjEHGrBvKK6Ws0RIz+jj RxrDLhzmSKr9sNU3oVSI5YzvO9HennBi+bFgW6uc= Received: from localhost (c-98-207-184-40.hsd1.ca.comcast.net [98.207.184.40]) by mx.zohomail.com with SMTPS id 1574219792572634.0146447404323; Tue, 19 Nov 2019 19:16:32 -0800 (PST) From: Stephen Brennan To: stephen@brennan.io Message-ID: <20191120031622.88949-3-stephen@brennan.io> Subject: [PATCH v3 2/4] hwrng: iproc-rng200: Add support for BCM2711 Date: Tue, 19 Nov 2019 19:16:20 -0800 X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191120031622.88949-1-stephen@brennan.io> References: <20191120031622.88949-1-stephen@brennan.io> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191119_191733_494256_08322486 X-CRM114-Status: GOOD ( 12.98 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Florian Fainelli , Herbert Xu , Scott Branden , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, Ray Jui , linux-kernel@vger.kernel.org, Matthias Brugger , Eric Anholt , Rob Herring , bcm-kernel-feedback-list@broadcom.com, Stefan Wahren , Matt Mackall , Arnd Bergmann , linux-crypto@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Stefan Wahren BCM2711 features a RNG200 hardware random number generator block. So make the driver available. Signed-off-by: Stefan Wahren Signed-off-by: Stephen Brennan Reviewed-by: Matthias Brugger Reviewed-by: Florian Fainelli --- drivers/char/hw_random/Kconfig | 2 +- drivers/char/hw_random/iproc-rng200.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig index 7c7fecfa2fb2..77e848fca531 100644 --- a/drivers/char/hw_random/Kconfig +++ b/drivers/char/hw_random/Kconfig @@ -90,7 +90,7 @@ config HW_RANDOM_BCM2835 config HW_RANDOM_IPROC_RNG200 tristate "Broadcom iProc/STB RNG200 support" - depends on ARCH_BCM_IPROC || ARCH_BRCMSTB + depends on ARCH_BCM_IPROC || ARCH_BCM2835 || ARCH_BRCMSTB default HW_RANDOM ---help--- This driver provides kernel-side support for the RNG200 diff --git a/drivers/char/hw_random/iproc-rng200.c b/drivers/char/hw_random/iproc-rng200.c index 899ff25f4f28..32d9fe61a225 100644 --- a/drivers/char/hw_random/iproc-rng200.c +++ b/drivers/char/hw_random/iproc-rng200.c @@ -213,6 +213,7 @@ static int iproc_rng200_probe(struct platform_device *pdev) } static const struct of_device_id iproc_rng200_of_match[] = { + { .compatible = "brcm,bcm2711-rng200", }, { .compatible = "brcm,bcm7211-rng200", }, { .compatible = "brcm,bcm7278-rng200", }, { .compatible = "brcm,iproc-rng200", }, From patchwork Wed Nov 20 03:16:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Brennan X-Patchwork-Id: 11252969 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A14F7109A for ; Wed, 20 Nov 2019 03:20:04 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7CCC72240E for ; Wed, 20 Nov 2019 03:20:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lLaDxjF4"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=brennan.io header.i=stephen@brennan.io header.b="NUsCEu3m" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7CCC72240E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=brennan.io Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Subject:Message-ID:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wtN7oV5+oWLBoj38sHwqC57oTb711lpT2nCYlAJBXxI=; b=lLaDxjF44G7hOg QIPQvGPMWq2Wm4ANRnhKB8Q5dasduFLRQHTf9Bh8aIkui+GYdFY5l9mlXRLTYuOdRH3P7+3jtI3vx pz4Z1grebSmvBDs8eOQwTwdLq+n4Q0O4MotxAoEn2fe8sflfF7sAuRCAqal73KwmsiZVzKXj+N+6n ogsCdKXmtsMfHlXqD0Lc58ZA/9tOOE1LrvyZKrUkvtyLirih3gXrSld0tGHSEqUgDssen10acv0ni kg+kGKew4QkwXZ3rtN/XuSZjN0Dp4zK1JwVOJAoE0wlgqy8vMeV01K6qXTT7L5saHokRo/MH9Zk4w xuXKjIAuqWnuC9xw9atw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXGXC-00057Z-7s; Wed, 20 Nov 2019 03:20:02 +0000 Received: from sender4-of-o54.zoho.com ([136.143.188.54]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXGX8-00056q-Eo; Wed, 20 Nov 2019 03:19:59 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1574219795; cv=none; d=zohomail.com; s=zohoarc; b=BpjWrV94yGBTXFWbbdxFHjxmAm8D9PMwse96A0QAyOXhcxoCS3EFHC4RLDkzT5fjVgWGzQS+89EO/XqkqV3Zf7w4OLJUJXoCJr4EzdSsrAyvwobPdFkN/w0G9lDz9Gh4PyIQ2RS544KQt15d9Z9ZajPfhOmgrTfEt2mXxi527fg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574219795; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=hUM9b+dswT9UPWGlwBwCNyrp4zRDfMTZRh5LuHt9eB0=; b=RJpQYP6XmffOYPpCLiiielT1JXzEKudU4xMENecGYWvMEqZx64IlLXKZgvqPb4er8fpHQ2AZ64n0Pkd+mU2ObizN3THucxM0vqNekNOoa17BmmS6Ak4rO8XcAQPYG0AMQCex77fYTFjqeg92KOyrSAuT3DvQbnC0/FLm07QWYFs= 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=1574219795; s=selector01; d=brennan.io; i=stephen@brennan.io; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; l=1694; bh=hUM9b+dswT9UPWGlwBwCNyrp4zRDfMTZRh5LuHt9eB0=; b=NUsCEu3m2VD2aRVon4jt5dm6oAxDZHk9Yjr2uODkCgJ38hUoqLq7v9i1MR6rYBLe zGMHybZ9vSep+yuuiAi4yHQsgocHApFByNyDEEJHOBlcpIW/8A1w5xrzYJAuY6CA1o5 S+fAHdgKU/WF2QpeN5CyjogDciPe8iMPJ5kIRwwo= Received: from localhost (c-98-207-184-40.hsd1.ca.comcast.net [98.207.184.40]) by mx.zohomail.com with SMTPS id 1574219794570904.3468110611888; Tue, 19 Nov 2019 19:16:34 -0800 (PST) From: Stephen Brennan To: stephen@brennan.io Message-ID: <20191120031622.88949-4-stephen@brennan.io> Subject: [PATCH v3 3/4] ARM: dts: bcm2835: Move rng definition to common location Date: Tue, 19 Nov 2019 19:16:21 -0800 X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191120031622.88949-1-stephen@brennan.io> References: <20191120031622.88949-1-stephen@brennan.io> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191119_191958_545853_6A32C7DC X-CRM114-Status: GOOD ( 11.12 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Florian Fainelli , Herbert Xu , Scott Branden , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, Ray Jui , linux-kernel@vger.kernel.org, Eric Anholt , Rob Herring , bcm-kernel-feedback-list@broadcom.com, Stefan Wahren , Matt Mackall , Arnd Bergmann , linux-crypto@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org BCM2711 inherits from BCM283X, but has an incompatible HWRNG. Move this node to bcm2835-common.dtsi, so that BCM2711 can define its own. Signed-off-by: Stephen Brennan Acked-by: Stefan Wahren --- Changes in v3: - moved the bcm2835 rng into bcm2835-common.dtsi rather than a new file - split out enabling rng on bcm2711 into its own patch arch/arm/boot/dts/bcm2835-common.dtsi | 6 ++++++ arch/arm/boot/dts/bcm283x.dtsi | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/bcm2835-common.dtsi b/arch/arm/boot/dts/bcm2835-common.dtsi index fe1ab40c7f22..2b1d9d4c0cde 100644 --- a/arch/arm/boot/dts/bcm2835-common.dtsi +++ b/arch/arm/boot/dts/bcm2835-common.dtsi @@ -70,6 +70,12 @@ pm: watchdog@7e100000 { system-power-controller; }; + rng@7e104000 { + compatible = "brcm,bcm2835-rng"; + reg = <0x7e104000 0x10>; + interrupts = <2 29>; + }; + pixelvalve@7e206000 { compatible = "brcm,bcm2835-pixelvalve0"; reg = <0x7e206000 0x100>; diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index 3caaa57eb6c8..5219339fc27c 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/boot/dts/bcm283x.dtsi @@ -84,12 +84,6 @@ clocks: cprman@7e101000 { <&dsi1 0>, <&dsi1 1>, <&dsi1 2>; }; - rng@7e104000 { - compatible = "brcm,bcm2835-rng"; - reg = <0x7e104000 0x10>; - interrupts = <2 29>; - }; - mailbox: mailbox@7e00b880 { compatible = "brcm,bcm2835-mbox"; reg = <0x7e00b880 0x40>; From patchwork Wed Nov 20 03:16:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Brennan X-Patchwork-Id: 11252973 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 90C8D109A for ; Wed, 20 Nov 2019 03:20:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6F3A52240E for ; Wed, 20 Nov 2019 03:20:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="At08crOb"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=brennan.io header.i=stephen@brennan.io header.b="JRrajEjD" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F3A52240E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=brennan.io Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:Subject:Message-ID:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/rhbtJPX6vXycxr7yqc+9B1sRV1WKCRyzTjzidExQFk=; b=At08crObzkmSty vIiZ4sA8h+kSOu5bjRoYOh2lF76MlK70QZAlQ3I/DnOH3VOpxCMqyalUBRpPTC6fFhwzxv59a4pCi myeYiDSta6sJg4kdIvwAeAdk7qJd8cFhRxEd+ho7FMAc6zNEVfSv6j7vPn+D37S3NPwFnJuOuwKG3 s2aHhxQ2vSTEf7zA4xNYrB94kiXrWFrsAT/mc0GUjfdYjAyZ5qjYT/aYqTeAVcHH1LDHboyPIz5cE ZxWc/QlYG2LrtSFiGMYFSBv6QwJ58D7iSBNn2EWznxk81lGV5pBXSOOCty0J7azbJ0QOKKWXEfycj O0FAUnRbHSBTcZNtPZ4Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXGXW-0006d5-Mx; Wed, 20 Nov 2019 03:20:22 +0000 Received: from sender4-of-o54.zoho.com ([136.143.188.54]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iXGXU-0006c7-2D; Wed, 20 Nov 2019 03:20:21 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1574219797; cv=none; d=zohomail.com; s=zohoarc; b=MJqYY4klgG6JsagsSo7sKKSS+LgL644mpWpkTc9t7F6khmj3fD0q95+ydAe51Uip2GaPu2ORppSLonc4rLIXFP4Wg8IDqO/0StvmGVh2Iyk+YZq9ubLosGm37xOZ6cnOUfQbA5ZHzK/UULmRB4aF0Bi22HApVifggoWFCLDCfWo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574219797; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=o3ll4FP6xCHVlz+SirNioLQSMfodSwmxu31hCQHcgJo=; b=gjiSGHFfAgFyo/CvJXgRx9cA1J32I0Y/9RFSY+KhRqYl23tM5s3vAjfMLy5gQA39DfWgIDm1Hf0S0CQQc+m1yId61ZFMKgoWsKFpQQBHQ7fbC0HRCYQojRWhKVCIx0cRZAQfZhV1JCeeAjn3UOAguZYw0fw3+ILWLuGLE3bc4p4= 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=1574219797; s=selector01; d=brennan.io; i=stephen@brennan.io; h=From:To:Cc:Message-ID:Subject:Date:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Content-Type; l=877; bh=o3ll4FP6xCHVlz+SirNioLQSMfodSwmxu31hCQHcgJo=; b=JRrajEjDPjquW3CRi7H8oRGyskJ6kSrwYzLA8dXinGI+mnDEqxCWFkJrrwl0UhOO Ge3XI5aPwW3SlrKc48Bb1stSjn2ld2RO/VohjcZHUwTkM2FOrosQ01WDub8nrSwQ3pb I2b2n8q1o1SUa8Ldigx2owlPVaX1aGibDuEu6T6Y= Received: from localhost (c-98-207-184-40.hsd1.ca.comcast.net [98.207.184.40]) by mx.zohomail.com with SMTPS id 1574219796587191.63371913747665; Tue, 19 Nov 2019 19:16:36 -0800 (PST) From: Stephen Brennan To: stephen@brennan.io Message-ID: <20191120031622.88949-5-stephen@brennan.io> Subject: [PATCH v3 4/4] ARM: dts: bcm2711: Enable HWRNG support Date: Tue, 19 Nov 2019 19:16:22 -0800 X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191120031622.88949-1-stephen@brennan.io> References: <20191120031622.88949-1-stephen@brennan.io> MIME-Version: 1.0 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191119_192020_177307_DE7B83E1 X-CRM114-Status: GOOD ( 11.23 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, Florian Fainelli , Herbert Xu , Scott Branden , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, Ray Jui , linux-kernel@vger.kernel.org, Eric Anholt , Rob Herring , bcm-kernel-feedback-list@broadcom.com, Stefan Wahren , Matt Mackall , Arnd Bergmann , linux-crypto@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This enables hardware random number generator support for the BCM2711 on the Raspberry Pi 4 board. Signed-off-by: Stephen Brennan Acked-by: Stefan Wahren --- arch/arm/boot/dts/bcm2711.dtsi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index ac83dac2e6ba..ed0877d5a1e9 100644 --- a/arch/arm/boot/dts/bcm2711.dtsi +++ b/arch/arm/boot/dts/bcm2711.dtsi @@ -92,10 +92,9 @@ pm: watchdog@7e100000 { }; rng@7e104000 { - interrupts = ; - - /* RNG is incompatible with brcm,bcm2835-rng */ - status = "disabled"; + compatible = "brcm,bcm2711-rng200"; + reg = <0x7e104000 0x28>; + status = "okay"; }; uart2: serial@7e201400 {