Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp786728ybc; Tue, 19 Nov 2019 09:14:43 -0800 (PST) X-Google-Smtp-Source: APXvYqyng3L/DHVCiQpuWB39C+SdVF3j/QzuahLfRWVk8/Z8YDTWUJBOUagrv7o9lxpPoYFv0Gqp X-Received: by 2002:a05:600c:2909:: with SMTP id i9mr6868279wmd.39.1574183683172; Tue, 19 Nov 2019 09:14:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574183683; cv=pass; d=google.com; s=arc-20160816; b=Q0VSba1nOGvEOKGe101h+NwGfZwTKolTSuWmj63XRc+mdEExXcQT2Fm673EetMyQ+f 5P9U0ZV6okpWJAKjVky9cTCsJ+R0saLRlhI9lY20KB3TnOseqSCqzqAmwutM72Bs9JaW bPKZgy5cm807ozs247adOYW8140t0y3yMFbZMjmJoO1eFqbcS66l3H6m4glNUOQdxK5U 4XLbrkT30UC8f62GWwVeFHbaGXbmBOKhg/tyD7yBo/iAaV1eZVAWvtw5ivWZci+TH8t2 yOPe/G4hOo+H/hw3PiMQy9/gpLlZwHbWeKL+vDLv+RS3nfAM6i5MZCBcUGHRghdCFIfu nxKg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:to:from:subject:cc:date :in-reply-to:original:originalfrom:originaldate :content-transfer-encoding:dkim-signature; bh=ZoPNDtgpNo969SUav3/naw8G3H4Fg/a6JWrsoZRqzTo=; b=b9qMRK0uem9gp6tDn0USES1kOA9zN0+M5ZZM9YuSWmzDf6e6RCOnch7MdvJ4GX6i9q Z6wHUQg+n6LBBGyLqQN01ZBLtWGE+0sgGvKV1zNE4YeDTWGzy02OwYY7ubtvtmo8ip3u dN0A+SN9HR6Wb/GHaTBVJiLFlgbSq/eE4lvv49DaWCUIQWdfs+CiXFuxMIkJA6vTN0nW XgK9gDtHBWU+E9uSWAscBHk+nXvwGuy3RtdfCzlYYFjrX/KloFUR59QOmm6tI5Hdlj7P ApjyIOIEyESGauzc3ldxsO0A7kaly8sdW465KsLNShI6MWoUif9R9K0dPTr0t1DPCuOI rA1g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@brennan.io header.s=selector01 header.b=UvF7Z8d8; 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 o19si16116800edz.393.2019.11.19.09.14.17; Tue, 19 Nov 2019 09:14:43 -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=UvF7Z8d8; 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 S1727212AbfKSRNj (ORCPT + 99 others); Tue, 19 Nov 2019 12:13:39 -0500 Received: from sender4-of-o54.zoho.com ([136.143.188.54]:21433 "EHLO sender4-of-o54.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726985AbfKSRNj (ORCPT ); Tue, 19 Nov 2019 12:13:39 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1574183599; cv=none; d=zohomail.com; s=zohoarc; b=WDSjZYruHs846rVnBZJQO7u5WX2egbgNexwb1BkCxPJ9Hg4jeYLi9kgZBSLjWcieaaGy78vwPoQIOnWDPQLN7bnehFVBM/x0rmKNduQ04HpDqEyMAso8N7QtVkYsn/kp+qmuHqdcncb5o2m2jOjZ3ir7Ziygn2iswx8Jdtpmw8c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574183599; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:Message-ID:Subject:To; bh=ZoPNDtgpNo969SUav3/naw8G3H4Fg/a6JWrsoZRqzTo=; b=jQhE5Ve4Mu+bFucQLAmsCCOJ7yYptJNkRjhOR0ok2Cro873ZGEkegXNsf5rB4Op3dskgwzCOXeA6eInZi6qKvUtJgYqD86GGgEqMr55oBbmPak9uq6WFkmLhpZwQ3YiXzsWstIMN/IxRfXN7Wkpb/KUDtakgnM6ZuWxF04qNkbg= 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=1574183599; s=selector01; d=brennan.io; i=stephen@brennan.io; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:Date:Cc:Subject:From:To:Message-Id; l=4081; bh=ZoPNDtgpNo969SUav3/naw8G3H4Fg/a6JWrsoZRqzTo=; b=UvF7Z8d82GFpt9cJsOCdOegi2H49Uri5OVc5RNyq337PtKyWoL6EaTKyKfkYyoSx c/Uvo+uFf+JD9Hz3Uj9iVnYggHSTnN3sOn8FAJDIujboM9bI0ergbP+OLVmlCpabGIL oSugsA10iu0T6QaCDWEAtObH2/BIc/iMHTnTMwXM= Received: from localhost (195.173.24.136.in-addr.arpa [136.24.173.195]) by mx.zohomail.com with SMTPS id 1574183598332174.61623192517845; Tue, 19 Nov 2019 09:13:18 -0800 (PST) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Originaldate: Tue Nov 19, 2019 at 12:14 PM Originalfrom: "Matthias Brugger" Original: =?utf-8?q?=0A=0AOn_19/11/2019_07:14,_Stephen_Brennan_wrote: =0A>_BCM2711_f?= =?utf-8?q?eatures_a_RNG200_hardware_random_number_generator_block,_which_?= =?utf-8?q?is=0A>_different_from_the_BCM283x_from_which_it_inherits._Move_?= =?utf-8?q?the_rng_block_from=0A>_BCM283x_into_a_separate_common_file,_and?= =?utf-8?q?_update_the_rng_declaration_of=0A>_BCM2711.=0A>_=0A=0AI'd_prefe?= =?utf-8?q?r_to_split_this_in_two_patches._One_moving_the_node_and_another?= =?utf-8?q?_one=0Aadding_the_new_node_for_bcm2711.=0A=0ARegards,=0AMatthia?= =?utf-8?q?s=0A=0A>_Signed-off-by:_Stephen_Brennan_=0A?= =?utf-8?q?>_---=0A>__arch/arm/boot/dts/bcm2711.dtsi________|__6_+++---=0A?= =?utf-8?q?>__arch/arm/boot/dts/bcm2835.dtsi________|__1_+=0A>__arch/arm/b?= =?utf-8?q?oot/dts/bcm2836.dtsi________|__1_+=0A>__arch/arm/boot/dts/bcm28?= =?utf-8?q?37.dtsi________|__1_+=0A>__arch/arm/boot/dts/bcm283x-common.dts?= =?utf-8?q?i_|_11_+++++++++++=0A>__arch/arm/boot/dts/bcm283x.dtsi________|?= =?utf-8?q?__6_------=0A>__6_files_changed,_17_insertions(+),_9_deletions(?= =?utf-8?q?-)=0A>__create_mode_100644_arch/arm/boot/dts/bcm283x-common.dts?= =?utf-8?q?i=0A>_=0A>_diff_--git_a/arch/arm/boot/dts/bcm2711.dtsi_b/arch/a?= =?utf-8?q?rm/boot/dts/bcm2711.dtsi=0A>_index_ac83dac2e6ba..4975567e948e_1?= =?utf-8?q?00644=0A>_---_a/arch/arm/boot/dts/bcm2711.dtsi=0A>_+++_b/arch/a?= =?utf-8?q?rm/boot/dts/bcm2711.dtsi=0A>_@@_-92,10_+92,10_@@_pm:_watchdog@7?= =?utf-8?q?e100000_{=0A>__=09=09};=0A>__=0A>__=09=09rng@7e104000_{=0A>_+?= =?utf-8?q?=09=09=09compatible_=3D_"brcm,bcm2711-rng200";=0A>_+=09=09=09re?= =?utf-8?q?g_=3D_<0x7e104000_0x28>;=0A>__=09=09=09interrupts_=3D_;=0A>_-=0A>_-=09=09=09/*_RNG_is?= =?utf-8?q?_incompatible_with_brcm,bcm2835-rng_*/=0A>_-=09=09=09status_=3D?= =?utf-8?q?_"disabled";=0A>_+=09=09=09status_=3D_"okay";=0A>__=09=09};=0A>?= =?utf-8?q?__=0A>__=09=09uart2:_serial@7e201400_{=0A>_diff_--git_a/arch/ar?= =?utf-8?q?m/boot/dts/bcm2835.dtsi_b/arch/arm/boot/dts/bcm2835.dtsi=0A>_in?= =?utf-8?q?dex_53bf4579cc22..f7b2f46e307d_100644=0A>_---_a/arch/arm/boot/d?= =?utf-8?q?ts/bcm2835.dtsi=0A>_+++_b/arch/arm/boot/dts/bcm2835.dtsi=0A>_@@?= =?utf-8?q?_-1,5_+1,6_@@=0A>__//_SPDX-License-Identifier:_GPL-2.0=0A>__#in?= =?utf-8?q?clude_"bcm283x.dtsi"=0A>_+#include_"bcm283x-common.dtsi"=0A>__#?= =?utf-8?q?include_"bcm2835-common.dtsi"=0A>__=0A>__/_{=0A>_diff_--git_a/a?= =?utf-8?q?rch/arm/boot/dts/bcm2836.dtsi_b/arch/arm/boot/dts/bcm2836.dtsi?= =?utf-8?q?=0A>_index_82d6c4662ae4..a85374195796_100644=0A>_---_a/arch/arm?= =?utf-8?q?/boot/dts/bcm2836.dtsi=0A>_+++_b/arch/arm/boot/dts/bcm2836.dtsi?= =?utf-8?q?=0A>_@@_-1,5_+1,6_@@=0A>__//_SPDX-License-Identifier:_GPL-2.0?= =?utf-8?q?=0A>__#include_"bcm283x.dtsi"=0A>_+#include_"bcm283x-common.dts?= =?utf-8?q?i"=0A>__#include_"bcm2835-common.dtsi"=0A>__=0A>__/_{=0A>_diff_?= =?utf-8?q?--git_a/arch/arm/boot/dts/bcm2837.dtsi_b/arch/arm/boot/dts/bcm2?= =?utf-8?q?837.dtsi=0A>_index_9e95fee78e19..045d78ffea08_100644=0A>_---_a/?= =?utf-8?q?arch/arm/boot/dts/bcm2837.dtsi=0A>_+++_b/arch/arm/boot/dts/bcm2?= =?utf-8?q?837.dtsi=0A>_@@_-1,4_+1,5_@@=0A>__#include_"bcm283x.dtsi"=0A>_+?= =?utf-8?q?#include_"bcm283x-common.dtsi"=0A>__#include_"bcm2835-common.dt?= =?utf-8?q?si"=0A>__=0A>__/_{=0A>_diff_--git_a/arch/arm/boot/dts/bcm283x-c?= =?utf-8?q?ommon.dtsi_b/arch/arm/boot/dts/bcm283x-common.dtsi=0A>_new_file?= =?utf-8?q?_mode_100644=0A>_index_000000000000..3c8834bee390=0A>_---_/dev/?= =?utf-8?q?null=0A>_+++_b/arch/arm/boot/dts/bcm283x-common.dtsi=0A>_@@_-0,?= =?utf-8?q?0_+1,11_@@=0A>_+//_SPDX-License-Identifier:_GPL-2.0=0A>_+=0A>_+?= =?utf-8?q?/_{=0A>_+=09soc_{=0A>_+=09=09rng@7e104000_{=0A>_+=09=09=09compa?= =?utf-8?q?tible_=3D_"brcm,bcm2835-rng";=0A>_+=09=09=09reg_=3D_<0x7e104000?= =?utf-8?q?_0x10>;=0A>_+=09=09=09interrupts_=3D_<2_29>;=0A>_+=09=09};=0A>_?= =?utf-8?q?+=09};=0A>_+};=0A>_diff_--git_a/arch/arm/boot/dts/bcm283x.dtsi_?= =?utf-8?q?b/arch/arm/boot/dts/bcm283x.dtsi=0A>_index_3caaa57eb6c8..521933?= =?utf-8?q?9fc27c_100644=0A>_---_a/arch/arm/boot/dts/bcm283x.dtsi=0A>_+++_?= =?utf-8?q?b/arch/arm/boot/dts/bcm283x.dtsi=0A>_@@_-84,12_+84,6_@@_clocks:?= =?utf-8?q?_cprman@7e101000_{=0A>__=09=09=09=09<&dsi1_0>,_<&dsi1_1>,_<&dsi?= =?utf-8?q?1_2>;=0A>__=09=09};=0A>__=0A>_-=09=09rng@7e104000_{=0A>_-=09=09?= =?utf-8?q?=09compatible_=3D_"brcm,bcm2835-rng";=0A>_-=09=09=09reg_=3D_<0x?= =?utf-8?q?7e104000_0x10>;=0A>_-=09=09=09interrupts_=3D_<2_29>;=0A>_-=09?= =?utf-8?q?=09};=0A>_-=0A>__=09=09mailbox:_mailbox@7e00b880_{=0A>__=09=09?= =?utf-8?q?=09compatible_=3D_"brcm,bcm2835-mbox";=0A>__=09=09=09reg_=3D_<0?= =?utf-8?q?x7e00b880_0x40>;=0A>_=0A?= In-Reply-To: Date: Tue, 19 Nov 2019 09:13:16 -0800 Cc: "Mark Rutland" , , , "Florian Fainelli" , "Herbert Xu" , "Scott Branden" , "Greg Kroah-Hartman" , , "Ray Jui" , , "Eric Anholt" , "Rob Herring" , , "Stefan Wahren" , "Matt Mackall" , "Arnd Bergmann" , Subject: Re: [PATCH v2 3/3] ARM: dts: bcm2711: Enable HWRNG support From: "Stephen Brennan" To: "Matthias Brugger" Message-Id: X-ZohoMailClient: External Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Matthias, On Tue Nov 19, 2019 at 12:14 PM, Matthias Brugger wrote: > >=20 > >=20 > On 19/11/2019 07:14, Stephen Brennan wrote: > > BCM2711 features a RNG200 hardware random number generator block, which= is > > different from the BCM283x from which it inherits. Move the rng block f= rom > > BCM283x into a separate common file, and update the rng declaration of > > BCM2711. > >=20 > >=20 > I'd prefer to split this in two patches. One moving the node and another > one > adding the new node for bcm2711. > Makes sense, I thought about doing it initially but didn't do it. In the=20 patch moving the node, should the bcm2711 continue to inherit the moved rng= =20 node from its new location? Thanks, Stephen >=20 > Regards, > Matthias > >=20 > > 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 > >=20 > > diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711= .dtsi > > 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 { > > }; > > =20 > > rng@7e104000 { > > + compatible =3D "brcm,bcm2711-rng200"; > > + reg =3D <0x7e104000 0x28>; > > interrupts =3D ; > > - > > - /* RNG is incompatible with brcm,bcm2835-rng */ > > - status =3D "disabled"; > > + status =3D "okay"; > > }; > > =20 > > uart2: serial@7e201400 { > > diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm2835= .dtsi > > 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= .dtsi > > 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= .dtsi > > 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/= bcm283x-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 > > + > > +/ { > > + soc { > > + rng@7e104000 { > > + compatible =3D "brcm,bcm2835-rng"; > > + reg =3D <0x7e104000 0x10>; > > + interrupts =3D <2 29>; > > + }; > > + }; > > +}; > > 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>; > > }; > > =20 > > - rng@7e104000 { > > - compatible =3D "brcm,bcm2835-rng"; > > - reg =3D <0x7e104000 0x10>; > > - interrupts =3D <2 29>; > > - }; > > - > > mailbox: mailbox@7e00b880 { > > compatible =3D "brcm,bcm2835-mbox"; > > reg =3D <0x7e00b880 0x40>; > >=20 > >=20 > >=20