Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp337275ybc; Tue, 19 Nov 2019 02:09:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwm/LWTi2eRU0NEHoF7e8h2i0hre6DBIla6To7z8f1ev/KSZRYuvhXYybIezcN5YqgDS8FR X-Received: by 2002:a17:906:c45:: with SMTP id t5mr32953674ejf.296.1574158185619; Tue, 19 Nov 2019 02:09:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574158185; cv=none; d=google.com; s=arc-20160816; b=cf9weRHMMlhptkAeXsjabYuWozsvbJ84Y4CI3UBu7QnZmh/w+qlImdQmzIGqZOXUVq Y6NDZOoWvvfvMni738Fv8o5nVbbTmqou0fT9Gy8+1fbUTJP0ZNvZur/AhNPYjZ8uL2OJ vH0wCZhPkDFHtZkywUMtfrtsUl81MUocemcLevaZkWvSBsBgEZ3Rx9PaIV07SrFfhY3J vR/7x1RQYmEZ4FItpz/Uck4yZhLGKA+p9KgjyB1A0l5HTyQJ1qBrXsAYQasBlfrn1eON uW8+mJ0Qc1sr3XL4DqMh36U79B18tJj7YX52kClxbwn2EbCfs7+or+CFrtt0RKacvf9d ZlrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=Rli8/w10krUwtnbJyU6/92y9Du09rtDu2EBgkI2Hwas=; b=hMVeuFDtuIk51Fq7nK8N479X9lEwgYucC7HV0buBXkhY2CkdhUOF78DPBFmBjAhltd NdHhrwr93KelhS8ZlZA81PxCb5U9YDfQVGgF/yqj2RwzLE2maRaLAAZt3jk6i0c9sX7m GDbAoHmzHYLtD5ZCN8LCpSBb0ATAbvE5dRdI0WqafZzf68MoMMhAql5r+b8EG2joURaG hSE3Ccqp5oIM9BT4100FuwEvM3BUGrQRt4G7mEpAy6IT3ylvCFG0eB49Ql9pl2114eKh hvRzxGGHqSpeLJj9nOpISSstHDGvsiRL6UyonzBh81BIpF67aCqFxU3qx5av1SaF1ZPh e/uA== ARC-Authentication-Results: i=1; mx.google.com; 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 j20si13443772ejm.348.2019.11.19.02.09.20; Tue, 19 Nov 2019 02:09:45 -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; 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 S1727255AbfKSKHH (ORCPT + 99 others); Tue, 19 Nov 2019 05:07:07 -0500 Received: from mx2.suse.de ([195.135.220.15]:39546 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726510AbfKSKHH (ORCPT ); Tue, 19 Nov 2019 05:07:07 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 879F6AFBD; Tue, 19 Nov 2019 10:07:04 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 3/3] ARM: dts: bcm2711: Enable HWRNG support From: Nicolas Saenz Julienne To: Stephen Brennan 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 Date: Tue, 19 Nov 2019 11:07:01 +0100 In-Reply-To: <20191119061407.69911-4-stephen@brennan.io> References: <20191119061407.69911-1-stephen@brennan.io> <20191119061407.69911-4-stephen@brennan.io> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-f4TrG9pLSfNSCk5pcMvM" User-Agent: Evolution 3.34.1 MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org --=-f4TrG9pLSfNSCk5pcMvM Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Stephen, thanks for the follow-up. On Mon, 2019-11-18 at 22:14 -0800, Stephen Brennan wrote: > BCM2711 features a RNG200 hardware random number generator block, which i= s > different from the BCM283x from which it inherits. Move the rng block fro= m > BCM283x into a separate common file, and update the rng declaration of > BCM2711. >=20 > Signed-off-by: Stephen Brennan > --- It's petty in this case but you should add a list of changes here too. > 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.d= tsi > 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.d= tsi > 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.d= tsi > 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.d= tsi > 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>; > + }; > + }; > +}; I think Stefan wrote bcm283x-common.dtsi by mistake, he really meant bcm2835-common.dtsi. See bcm2835-common.dtsi's header comment: /* This include file covers the common peripherals and configuration betwee= n * bcm2835, bcm2836 and bcm2837 implementations. */ Regards, Nicolas --=-f4TrG9pLSfNSCk5pcMvM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl3TvsUACgkQlfZmHno8 x/4BbAf+MpKR4ihlPDuftuddKUI/HC7nve3fsLHoczZfLRf0pj2/FnKvX3qgFytE xAYDpOXI1dprqHUPR1OavYQFO/UWFOSS3MRDIducwmDELc9gc5Z8iToD5ijYQiLM z6/NO8BxIQJFky/2inBcsx70fEM5VLLJHQOfkSuf5NxfDR/iETwuzE0EMEBLj3tz AnB31t86PHWGxFL2akCTFAdsbK8kJLiL0c6zrMb9xYct9S/9LC9ll0mU920HMUc9 Rwu7je1CKU72Pik+GQOTt1fF5b/TOvVENxprfCoTcelH3QudGfqVIQcXkNJFOMrd oOhtvpofrtSfG1Dt9fsKdenSpi2gdg== =ikdQ -----END PGP SIGNATURE----- --=-f4TrG9pLSfNSCk5pcMvM--