* [PATCH 1/2] dt-bindings: rng: Document BCM7278 RNG200 compatible
2017-11-01 23:20 [PATCH 0/2] hwrng: iproc-rng200: Add support for BCM7278 Florian Fainelli
@ 2017-11-01 23:20 ` Florian Fainelli
2017-11-06 20:26 ` Rob Herring
2017-11-01 23:20 ` [PATCH 2/2] hwrng: iproc-rng200: Add support for BCM7278 Florian Fainelli
` (2 subsequent siblings)
3 siblings, 1 reply; 6+ messages in thread
From: Florian Fainelli @ 2017-11-01 23:20 UTC (permalink / raw)
To: linux-kernel
Cc: Florian Fainelli, Matt Mackall, Herbert Xu, Rob Herring,
Mark Rutland, Ray Jui, Scott Branden, Jon Mason,
maintainer:BROADCOM IPROC ARM ARCHITECTURE,
PrasannaKumar Muralidharan, Sean Wang, Russell King,
Krzysztof Kozlowski, Harald Freudenberger, Martin Kaiser,
open list:HARDWARE RANDOM NUMBER GENERATOR CORE,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:BROADCOM IPROC ARM ARCHITECTURE
BCM7278 includes a RGN200 hardware random number generator, document the
compatible string for that version of the IP.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt b/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt
index e25a456664b9..0014da9145af 100644
--- a/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt
+++ b/Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt
@@ -1,7 +1,9 @@
HWRNG support for the iproc-rng200 driver
Required properties:
-- compatible : "brcm,iproc-rng200"
+- compatible : Must be one of:
+ "brcm,bcm7278-rng200"
+ "brcm,iproc-rng200"
- reg : base address and size of control register block
Example:
--
2.9.3
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 1/2] dt-bindings: rng: Document BCM7278 RNG200 compatible
2017-11-01 23:20 ` [PATCH 1/2] dt-bindings: rng: Document BCM7278 RNG200 compatible Florian Fainelli
@ 2017-11-06 20:26 ` Rob Herring
0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2017-11-06 20:26 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-kernel, Matt Mackall, Herbert Xu, Mark Rutland, Ray Jui,
Scott Branden, Jon Mason,
maintainer:BROADCOM IPROC ARM ARCHITECTURE,
PrasannaKumar Muralidharan, Sean Wang, Russell King,
Krzysztof Kozlowski, Harald Freudenberger, Martin Kaiser,
open list:HARDWARE RANDOM NUMBER GENERATOR CORE,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:BROADCOM IPROC ARM ARCHITECTURE
On Wed, Nov 01, 2017 at 04:20:05PM -0700, Florian Fainelli wrote:
> BCM7278 includes a RGN200 hardware random number generator, document the
> compatible string for that version of the IP.
>
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
> ---
> Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
Acked-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] hwrng: iproc-rng200: Add support for BCM7278
2017-11-01 23:20 [PATCH 0/2] hwrng: iproc-rng200: Add support for BCM7278 Florian Fainelli
2017-11-01 23:20 ` [PATCH 1/2] dt-bindings: rng: Document BCM7278 RNG200 compatible Florian Fainelli
@ 2017-11-01 23:20 ` Florian Fainelli
2017-11-02 19:35 ` [PATCH 0/2] " Scott Branden
2017-11-10 11:36 ` Herbert Xu
3 siblings, 0 replies; 6+ messages in thread
From: Florian Fainelli @ 2017-11-01 23:20 UTC (permalink / raw)
To: linux-kernel
Cc: Florian Fainelli, Matt Mackall, Herbert Xu, Rob Herring,
Mark Rutland, Ray Jui, Scott Branden, Jon Mason,
maintainer:BROADCOM IPROC ARM ARCHITECTURE,
PrasannaKumar Muralidharan, Sean Wang, Russell King,
Krzysztof Kozlowski, Harald Freudenberger, Martin Kaiser,
open list:HARDWARE RANDOM NUMBER GENERATOR CORE,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:BROADCOM IPROC ARM ARCHITECTURE
BCM7278 features a RNG200 hardware random number generator block, add
support for this chip by matching the chip-specific compatible string
and extending the Kconfig dependencies to allow building on ARCH_BRCMSTB
(base platform for 7278).
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
drivers/char/hw_random/Kconfig | 6 +++---
drivers/char/hw_random/iproc-rng200.c | 1 +
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index 95a031e9eced..f6e3e5abc117 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -100,12 +100,12 @@ config HW_RANDOM_BCM2835
If unsure, say Y.
config HW_RANDOM_IPROC_RNG200
- tristate "Broadcom iProc RNG200 support"
- depends on ARCH_BCM_IPROC
+ tristate "Broadcom iProc/STB RNG200 support"
+ depends on ARCH_BCM_IPROC || ARCH_BRCMSTB
default HW_RANDOM
---help---
This driver provides kernel-side support for the RNG200
- hardware found on the Broadcom iProc SoCs.
+ hardware found on the Broadcom iProc and STB SoCs.
To compile this driver as a module, choose M here: the
module will be called iproc-rng200
diff --git a/drivers/char/hw_random/iproc-rng200.c b/drivers/char/hw_random/iproc-rng200.c
index 3eaf7cb96d36..8b5a20b35293 100644
--- a/drivers/char/hw_random/iproc-rng200.c
+++ b/drivers/char/hw_random/iproc-rng200.c
@@ -220,6 +220,7 @@ static int iproc_rng200_probe(struct platform_device *pdev)
}
static const struct of_device_id iproc_rng200_of_match[] = {
+ { .compatible = "brcm,bcm7278-rng200", },
{ .compatible = "brcm,iproc-rng200", },
{},
};
--
2.9.3
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 0/2] hwrng: iproc-rng200: Add support for BCM7278
2017-11-01 23:20 [PATCH 0/2] hwrng: iproc-rng200: Add support for BCM7278 Florian Fainelli
2017-11-01 23:20 ` [PATCH 1/2] dt-bindings: rng: Document BCM7278 RNG200 compatible Florian Fainelli
2017-11-01 23:20 ` [PATCH 2/2] hwrng: iproc-rng200: Add support for BCM7278 Florian Fainelli
@ 2017-11-02 19:35 ` Scott Branden
2017-11-10 11:36 ` Herbert Xu
3 siblings, 0 replies; 6+ messages in thread
From: Scott Branden @ 2017-11-02 19:35 UTC (permalink / raw)
To: Florian Fainelli, linux-kernel
Cc: Matt Mackall, Herbert Xu, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, Jon Mason,
maintainer:BROADCOM IPROC ARM ARCHITECTURE,
PrasannaKumar Muralidharan, Sean Wang, Russell King,
Krzysztof Kozlowski, Harald Freudenberger, Martin Kaiser,
open list:HARDWARE RANDOM NUMBER GENERATOR CORE,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:BROADCOM IPROC ARM ARCHITECTURE
Patch series looks fine.
On 17-11-01 04:20 PM, Florian Fainelli wrote:
> Hi,
>
> This patch series adds support for the RNG200 block found on the BCM7278 SoC.
> This requires us to update the compatible string (and associated binding
> document) as well as the Kconfig option to make that driver selectable with
> ARCH_BRCMSTB gating the enabling of such SoCs.
>
> Thank you
>
> Florian Fainelli (2):
> dt-bindings: rng: Document BCM7278 RNG200 compatible
> hwrng: iproc-rng200: Add support for BCM7278
>
> Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt | 4 +++-
> drivers/char/hw_random/Kconfig | 6 +++---
> drivers/char/hw_random/iproc-rng200.c | 1 +
> 3 files changed, 7 insertions(+), 4 deletions(-)
>
Acked-by: Scott Branden <scott.branden@broadcom.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 0/2] hwrng: iproc-rng200: Add support for BCM7278
2017-11-01 23:20 [PATCH 0/2] hwrng: iproc-rng200: Add support for BCM7278 Florian Fainelli
` (2 preceding siblings ...)
2017-11-02 19:35 ` [PATCH 0/2] " Scott Branden
@ 2017-11-10 11:36 ` Herbert Xu
3 siblings, 0 replies; 6+ messages in thread
From: Herbert Xu @ 2017-11-10 11:36 UTC (permalink / raw)
To: Florian Fainelli
Cc: linux-kernel, Matt Mackall, Rob Herring, Mark Rutland, Ray Jui,
Scott Branden, Jon Mason,
maintainer:BROADCOM IPROC ARM ARCHITECTURE,
PrasannaKumar Muralidharan, Sean Wang, Russell King,
Krzysztof Kozlowski, Harald Freudenberger, Martin Kaiser,
open list:HARDWARE RANDOM NUMBER GENERATOR CORE,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:BROADCOM IPROC ARM ARCHITECTURE
On Wed, Nov 01, 2017 at 04:20:04PM -0700, Florian Fainelli wrote:
> Hi,
>
> This patch series adds support for the RNG200 block found on the BCM7278 SoC.
> This requires us to update the compatible string (and associated binding
> document) as well as the Kconfig option to make that driver selectable with
> ARCH_BRCMSTB gating the enabling of such SoCs.
>
> Thank you
>
> Florian Fainelli (2):
> dt-bindings: rng: Document BCM7278 RNG200 compatible
> hwrng: iproc-rng200: Add support for BCM7278
All applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 6+ messages in thread