Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp771299ybc; Tue, 19 Nov 2019 09:01:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwZEU+agWnKPvpMrsqu/bvrcr/ZoJg6lotk5rpqAY2LZV4K3bqMVckP+VRLDBWwOBKhOuZy X-Received: by 2002:a1c:650b:: with SMTP id z11mr6861905wmb.149.1574182891547; Tue, 19 Nov 2019 09:01:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574182891; cv=none; d=google.com; s=arc-20160816; b=At3mdgl2haPOyaeuKVfBYM/+kzuhTIMaWog8aFIiAGKkoHDNA/2WS1gkshAyvR3fGC CiOZbtO4d/cJyc2icNV4pqi42PPe1mZnGNNGX1uCDtH8hSAkZ2fNvxGzX4RIwuSmNq5o DOQ4/e7peofOxKkT4LNzu/6LCkzLyd9sNZ+3Go0+CbYhgYTPoJZi0AB4wEk94CGXyRW7 3UXidielw5Cu/SFPax/E1VTnzkn7fVyYq447MfYaknJbee5yFpAoAHOTCg9KGZTnZwID x7v+E17uPkRsh0KyxbCYJCAvs8j9qIc+fAWx72nRWp9wsgnWeuw7UeBjlAf0/1pyGKEu Rkaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=XiQ9vJKknlkchWUPudo/+s2flgEKdAAFHM6/Hq15B3s=; b=ddbxIte1hndu67qAb/YJqWsfXq5rYYx+t3TFWBV8jEm8fdeBOd1Jt8/GBjZsxlvdFK 93w31gwnaAhMr8mDUn4R8lJFYhgFMxEUzGUikTJ9q0ApIsVpj9dMkrNVH/ltVhQXzJWR /WrTf3bibEiX5UMOcTAepeCpHS9JZCnjGDBU+0DVkkq208Rf6UQgmvQbrKgxg+wsBzg3 /JFjTiTraiLeMBVeYr318BdKjXX9mf8HsK3WdAq+qYxwjK01iC4MvHvDeMXM4Nfx0Ahr aYJmhRxCp48VMc7t3Uoj5g2+Qa4eCr2FkmryaOGsZ8zgahq6+i8iOOLzECsZBSvJA/gF XXSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=BJUxT4Ak; 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 c31si15543458eda.343.2019.11.19.09.00.57; Tue, 19 Nov 2019 09:01:31 -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=@gmx.net header.s=badeba3b8450 header.b=BJUxT4Ak; 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 S1728638AbfKSRAY (ORCPT + 99 others); Tue, 19 Nov 2019 12:00:24 -0500 Received: from mout.gmx.net ([212.227.17.21]:42271 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728630AbfKSRAX (ORCPT ); Tue, 19 Nov 2019 12:00:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1574182796; bh=TpXSWByPbpcS18BolyKKvZeopxt2k9g6A1fqu2PDz/8=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=BJUxT4Ak+dwZbIjg6+Ycb7pSyGwGV8FyauCguv503K9ohgt65z0Xd4/APR0YFU7Fy Bg1vOEMrUSCKpAMHUA6IPwuZBaNqmY+EAEILEZofqzPpBQ/7S846RNMyN30fGPev7k H/fUjIwLXbVizVUiUhH9iLxEhpuMIUZwo+MuDlIE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.1.176] ([37.4.249.139]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MsHnm-1hjG3a1c54-00toTm; Tue, 19 Nov 2019 17:59:56 +0100 Subject: Re: [PATCH v2 3/3] ARM: dts: bcm2711: Enable HWRNG support To: Matthias Brugger , Nicolas Saenz Julienne , Stephen Brennan Cc: Mark Rutland , devicetree@vger.kernel.org, Florian Fainelli , Herbert Xu , Scott Branden , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Ray Jui , Eric Anholt , Rob Herring , Arnd Bergmann , linux-crypto@vger.kernel.org, Matt Mackall , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org References: <20191119061407.69911-1-stephen@brennan.io> <20191119061407.69911-4-stephen@brennan.io> <4ae008c8-6e41-01f8-10a6-7b6ea72f96c4@gmail.com> From: Stefan Wahren Message-ID: Date: Tue, 19 Nov 2019 17:59:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <4ae008c8-6e41-01f8-10a6-7b6ea72f96c4@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Provags-ID: V03:K1:F3pJv1hU47e85VdlRkDt6C2TCE+n1NEcF8BVsmtfvZOQj+Z76Dp SLQNuTK+r50H1zWgUj7tbnOJMy6CY9k8uoLtNSnLSGgbFPapU2zxZ45awIUEC4DbspUFgwx dW3iyoLUcdq28eFqJo4boqTKbiUw61K08p4gzlompp+dktL1URL3LAHSb37ty0aJmGi7KSV b3DltoRvjqa3GmgINvr6g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:/Rbeb5FlTZE=:Tu5w7I/3fml3REGX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yFlhFN+Sfy8Oruv+pATmp853a7z NVit31ZUMKQ1xVwWeYAcGGxZS1e1YqV2YYXDdSssbOflAURVGy96lw25RQkCZJnfwrNEieGoP 95xyOJS7L8O7wGzR6I0vYPSogEMQFwjLCflXviEt8a90k08aO++QiTSqa0Zis0uyYev+iw0LL XeipxOxHjkHqH1AAsqa884coqTPr8q5DI5asP/2nTdedeyzy2asurcfouu94= Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Hi Stephen, Am 19.11.19 um 12:15 schrieb Matthias Brugger: > > On 19/11/2019 11:07, Nicolas Saenz Julienne wrote: >> 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, whic= h 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 >>> --- >> 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 >>> >>> diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm271= 1.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 { >>> }; >>> >>> rng@7e104000 { >>> + compatible =3D "brcm,bcm2711-rng200"; >>> + reg =3D <0x7e104000 0x28>; >>> interrupts =3D ; please take into account that according to the rng200 binding document there is no interrupt or clock. So drop it. >>> - >>> - /* RNG is incompatible with brcm,bcm2835-rng */ >>> - status =3D "disabled"; >>> + status =3D "okay"; >>> }; >>> >>> uart2: serial@7e201400 { >>> diff --git a/arch/arm/boot/dts/bcm2835.dtsi b/arch/arm/boot/dts/bcm283= 5.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" >>> >>> / { >>> diff --git a/arch/arm/boot/dts/bcm2836.dtsi b/arch/arm/boot/dts/bcm283= 6.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" >>> >>> / { >>> diff --git a/arch/arm/boot/dts/bcm2837.dtsi b/arch/arm/boot/dts/bcm283= 7.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" >>> >>> / { >>> 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. Correct. Sorry for the confusion. Regards Stefan >> > Thanks I was just wondering on which tree/patch-set this was based. > > Regards, > Matthias > >> See bcm2835-common.dtsi's header comment: >> >> /* This include file covers the common peripherals and configuration be= tween >> * bcm2835, bcm2836 and bcm2837 implementations. >> */ >> >> Regards, >> Nicolas >> >> >> _______________________________________________ >> linux-arm-kernel mailing list >> linux-arm-kernel@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >> > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel