Skip to contentSkip to conversation

hwrng: iproc-rng200: Add support for BCM7278

PATCH In review Florian Fainelli 4 participants 6 messages Nov 1, 2017 – Nov 10, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover hwrng: iproc-rng200: Add support for BCM7278

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(-)
Signature · 1 line
2.9.3
#1 lore raw

PATCH 1/2 dt-bindings: rng: Document BCM7278 RNG200 compatible

BCM7278 includes a RGN200 hardware random number generator, document the compatible string for that version of the IP.

---
 Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt +3 -1
index e25a456664b9..0014da9145af 100644
@@ -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:
Signature · 1 line
2.9.3
#3 lore raw

PATCH 2/2 hwrng: iproc-rng200: Add support for BCM7278

In reply to Florian Fainelli

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).

---
 drivers/char/hw_random/Kconfig        | 6 +++---
 drivers/char/hw_random/iproc-rng200.c | 1 +
 2 files changed, 4 insertions(+), 3 deletions(-)
drivers/char/hw_random/Kconfig +3 -3
index 95a031e9eced..f6e3e5abc117 100644
@@ -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
drivers/char/hw_random/iproc-rng200.c +1 -0
index 3eaf7cb96d36..8b5a20b35293 100644
@@ -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", },
 	{},
 };
Signature · 1 line
2.9.3
Acked-by on the v1 series
#4 lore raw
In reply to Florian Fainelli

Patch series looks fine.

Quoted 9 lines · Florian Fainelli

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

Quoted 9 lines

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(-)
maintainer Acked-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: rng: Document BCM7278 RNG200 compatible

In reply to Florian Fainelli
Quoted 7 lines · Florian Fainelli

BCM7278 includes a RGN200 hardware random number generator, document the compatible string for that version of the IP.

---
 Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
maintainer
#5 lore raw
In reply to Florian Fainelli
Quoted 7 lines · Florian Fainelli

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.

Quoted 5 lines

Thank you

Florian Fainelli (2):
dt-bindings: rng: Document BCM7278 RNG200 compatible
hwrng: iproc-rng200: Add support for BCM7278

All applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt