Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp151996ybc; Mon, 18 Nov 2019 22:17:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyK7G/3A1qZHfDDIidGYSsNHJCF1FHGKBxau0opecB7ZCFe/8UzsfWUSiT+S9RslkJGMtO3 X-Received: by 2002:a17:906:53cc:: with SMTP id p12mr32295586ejo.52.1574144223945; Mon, 18 Nov 2019 22:17:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574144223; cv=pass; d=google.com; s=arc-20160816; b=dnT8TqUmwf8nVVlOXAw/Hkl/jc8nYg+cojsif/qm3FZa7v8NKfI6lCTtrjCRlxntRB eLHfhLWpImuidiQg49D22TSo+duY4frU6HCw0UpYeFJBkYxBnLVr4+cuU62XwJ6FAIUr P5XBFRn4v7S9HY6p9FCye0Vx9POJnM3UZi4ihDJFDc+yRnqrCHwtWCX8cbf+kej0UhkF d0AtQ56tR8+g9Yj89r+5rwvE6HTtzq7/ka8fAmHkKxK4t3cCNIwaFnnI7McDjWOadMj8 uMmEt85K/I1wpgkKRAdnv1eaKLpb3AHGgzz/PW7k4IKWKjYvLA0C0Emx3xovbPgoHrbm zBYw== 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 :references:in-reply-to:date:subject:message-id:cc:to:from :dkim-signature; bh=IPoYpGPpQsih0UlY0KIRwlvTF5g15RLNEpbWU4+o53c=; b=i+6jb2m37Y5cEqw7JnCKBKvtaTTiHhBGz2a+HcJGnq9cUjPUXUFIS/PSYJuFF8xlq9 sOILjCQc+uSFNItweAHgMxvXthyXUC+/fpn4ffbkckgD616UAQeZX5imp/U7Wlc4wLG1 FGI4drC2Zga8lN2JLvXVHYLsX0MSfVKNVmh9DlgbscUiCLTiy4hFL5JRdEgI+cI8WsEP MkX/TjA6HtWRbAt3D4shm0oO//0M2avU+gEVl6tc+u6UunLGdHJym9XLvSSc8gywu17B LeUVZCyFGZfJjh4vZzJnY58+EDBKidkY94ov0kbRB/6HCbcSM45MWrU0OGsCSF7NlK9B 6BXg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@brennan.io header.s=selector01 header.b=c8QTc0bX; 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 mj3si12649976ejb.381.2019.11.18.22.16.38; Mon, 18 Nov 2019 22:17:03 -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=c8QTc0bX; 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 S1726911AbfKSGQB (ORCPT + 99 others); Tue, 19 Nov 2019 01:16:01 -0500 Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21405 "EHLO sender4-of-o54.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbfKSGQB (ORCPT ); Tue, 19 Nov 2019 01:16:01 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1574144065; cv=none; d=zohomail.com; s=zohoarc; b=jYsQ/Ang1g/QV7bYQiF7N9psKdbFqIWI67awWl7sGQ5sUVq4pFa7DdVBs7hGmwTHz8e9JwIGnhBohnjFSxDR1UAhJdYNSHDb2Ia2YFT4AI0GecIrUmMdammD0jdjZZxl9wRxcns9vxN6SauBLDF6oGV/ri8OHGCG118Q6eBq0bM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574144065; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=IPoYpGPpQsih0UlY0KIRwlvTF5g15RLNEpbWU4+o53c=; b=JmauD1JpuJv5SlGgLaMJKAIZM+poM3PtTuyxq0enqgNMZ9vqofR628kLGgsi1d1uglvRid4KdT8MnM3qnUC+Fk+NxtmwOAZwI2J4YDBuF+xIwkApufX325uQPXyWx6wXTqtq9shVjmCN5eEaLZdC2SD3JPUXbQDio0XnvC45OkI= 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=1574144065; 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=3354; bh=IPoYpGPpQsih0UlY0KIRwlvTF5g15RLNEpbWU4+o53c=; b=c8QTc0bXkXSsr9jbhaFvBMSJM+Wj9IzfOuuUVE42e+ZOLMQvBuNAoh9HZPFRWCDJ TqsbrWzvMm1zWpNWqV+BBEIzqdQ99LsiK26cUp88uwmOuvaiTi+4/0wADf8uFkhOGB6 I2LtJvViCfsBkvWA7r3n/u+KFtHpDfhjYOwgCeTA= Received: from localhost (195.173.24.136.in-addr.arpa [136.24.173.195]) by mx.zohomail.com with SMTPS id 1574144064042832.9788464647007; Mon, 18 Nov 2019 22:14:24 -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-4-stephen@brennan.io> Subject: [PATCH v2 3/3] ARM: dts: bcm2711: Enable HWRNG support Date: Mon, 18 Nov 2019 22:14:07 -0800 X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119061407.69911-1-stephen@brennan.io> References: <20191119061407.69911-1-stephen@brennan.io> 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 BCM2711 features a RNG200 hardware random number generator block, which is different from the BCM283x from which it inherits. Move the rng block from BCM283x into a separate common file, and update the rng declaration of BCM2711. Signed-off-by: Stephen Brennan --- 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 ------ 6 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 arch/arm/boot/dts/bcm283x-common.dtsi diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dts= i index ac83dac2e6ba..4975567e948e 100644 --- a/arch/arm/boot/dts/bcm2711.dtsi +++ b/arch/arm/boot/dts/bcm2711.dtsi @@ -92,10 +92,10 @@ pm: watchdog@7e100000 { =09=09}; =20 =09=09rng@7e104000 { +=09=09=09compatible =3D "brcm,bcm2711-rng200"; +=09=09=09reg =3D <0x7e104000 0x28>; =09=09=09interrupts =3D ; - -=09=09=09/* RNG is incompatible with brcm,bcm2835-rng */ -=09=09=09status =3D "disabled"; +=09=09=09status =3D "okay"; =09=09}; =20 =09=09uart2: serial@7e201400 { diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835.dts= i index 53bf4579cc22..f7b2f46e307d 100644 --- a/arch/arm/boot/dts/bcm2835.dtsi +++ b/arch/arm/boot/dts/bcm2835.dtsi @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #include "bcm283x.dtsi" +#include "bcm283x-common.dtsi" #include "bcm2835-common.dtsi" =20 / { diff --git a/arch/arm/boot/dts/bcm2836.dtsi b/arch/arm/boot/dts/bcm2836.dts= i index 82d6c4662ae4..a85374195796 100644 --- a/arch/arm/boot/dts/bcm2836.dtsi +++ b/arch/arm/boot/dts/bcm2836.dtsi @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #include "bcm283x.dtsi" +#include "bcm283x-common.dtsi" #include "bcm2835-common.dtsi" =20 / { diff --git a/arch/arm/boot/dts/bcm2837.dtsi b/arch/arm/boot/dts/bcm2837.dts= i index 9e95fee78e19..045d78ffea08 100644 --- a/arch/arm/boot/dts/bcm2837.dtsi +++ b/arch/arm/boot/dts/bcm2837.dtsi @@ -1,4 +1,5 @@ #include "bcm283x.dtsi" +#include "bcm283x-common.dtsi" #include "bcm2835-common.dtsi" =20 / { diff --git a/arch/arm/boot/dts/bcm283x-common.dtsi b/arch/arm/boot/dts/bcm2= 83x-common.dtsi new file mode 100644 index 000000000000..3c8834bee390 --- /dev/null +++ b/arch/arm/boot/dts/bcm283x-common.dtsi @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: GPL-2.0 + +/ { +=09soc { +=09=09rng@7e104000 { +=09=09=09compatible =3D "brcm,bcm2835-rng"; +=09=09=09reg =3D <0x7e104000 0x10>; +=09=09=09interrupts =3D <2 29>; +=09=09}; +=09}; +}; diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dts= i 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 { =09=09=09=09<&dsi1 0>, <&dsi1 1>, <&dsi1 2>; =09=09}; =20 -=09=09rng@7e104000 { -=09=09=09compatible =3D "brcm,bcm2835-rng"; -=09=09=09reg =3D <0x7e104000 0x10>; -=09=09=09interrupts =3D <2 29>; -=09=09}; - =09=09mailbox: mailbox@7e00b880 { =09=09=09compatible =3D "brcm,bcm2835-mbox"; =09=09=09reg =3D <0x7e00b880 0x40>; --=20 2.24.0