hwrng: iproc-rng200: Add support for BCM7278
Subsystems (4)
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
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
@@ -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
PATCH 2/2 hwrng: iproc-rng200: Add support for BCM7278
In reply to Florian FainelliBCM7278 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
@@ -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
@@ -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
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
Kconfigoption to make that driver selectable withARCH_BRCMSTBgating 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 BCM7278Documentation/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(-)
Re: [PATCH 1/2] dt-bindings: rng: Document BCM7278 RNG200 compatible
In reply to Florian FainelliQuoted 7 lines · Florian Fainelli
BCM7278 includes a RGN200 hardware random number generator, document the compatible string for that version of the IP.
Signed-off-by Florian Fainelli <[email protected]>--- Documentation/devicetree/bindings/rng/brcm,iproc-rng200.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Herbert Xu
maintainerQuoted 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
Kconfigoption to make that driver selectable withARCH_BRCMSTBgating 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