Skip to contentSkip to conversation

hwrng: bcm74110 - Add Broadcom BCM74110 RNG driver

PATCH In review Markus Mayer 3 participants 5 messages Nov 1, 2024 – Nov 10, 2024

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

v2 cover hwrng: bcm74110 - Add Broadcom BCM74110 RNG driver

This series adds a driver for the random number generator found on the BCM74110 SoC.

Binding changes from v1:
- renamed binding file to brcm,bcm74110-rng.yaml
- ensure "brcm,bcm74110-rng" is being used instead of "...-trng"
- removed "|" after "description:"
- removed label "rng:"

Code-related changes from v1:
- only enable the driver for ARCH_BRCMSTB || COMPILE_TEST

Markus Mayer (2):
dt-bindings: rng: add binding for BCM74110 RNG
hwrng: bcm74110 - Add Broadcom BCM74110 RNG driver

 .../bindings/rng/brcm,bcm74110-rng.yaml       |  35 +++++
 drivers/char/hw_random/Kconfig                |  13 ++
 drivers/char/hw_random/Makefile               |   1 +
 drivers/char/hw_random/bcm74110-rng.c         | 125 ++++++++++++++++++
 4 files changed, 174 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rng/brcm,bcm74110-rng.yaml
 create mode 100644 drivers/char/hw_random/bcm74110-rng.c
Signature · 1 line
2.47.0
#1 lore raw

PATCH v2 1/2 dt-bindings: rng: add binding for BCM74110 RNG

Add a binding for the random number generator used on the BCM74110.

---
 .../bindings/rng/brcm,bcm74110-rng.yaml       | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rng/brcm,bcm74110-rng.yaml
Documentation/devicetree/bindings/rng/brcm,bcm74110-rng.yaml new file +35 -0
new file mode 100644
index 000000000000..8e89d4a70b53
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/rng/brcm,bcm74110-rng.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: BCM74110 Random number generator
+
+description:
+  Random number generator used on the BCM74110.
+
+maintainers:
+  - Markus Mayer <[email protected]>
+  - Florian Fainelli <[email protected]>
+
+properties:
+  compatible:
+    enum:
+      - brcm,bcm74110-rng
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    rng@83ba000 {
+        compatible = "brcm,bcm74110-rng";
+        reg = <0x83ba000 0x14>;
+    };
Signature · 1 line
2.47.0
Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCH v2 1/2] dt-bindings: rng: add binding for BCM74110 RNG

Quoted 7 lines · Markus Mayer

Add a binding for the random number generator used on the BCM74110.

---
 .../bindings/rng/brcm,bcm74110-rng.yaml       | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rng/brcm,bcm74110-rng.yaml

Best regards,
Krzysztof

#3 lore raw

PATCH v2 2/2 hwrng: bcm74110 - Add Broadcom BCM74110 RNG driver

In reply to Markus Mayer

Add a driver for the random number generator present on the Broadcom BCM74110 SoC.

---
 drivers/char/hw_random/Kconfig        |  13 +++
 drivers/char/hw_random/Makefile       |   1 +
 drivers/char/hw_random/bcm74110-rng.c | 125 ++++++++++++++++++++++++++
 3 files changed, 139 insertions(+)
 create mode 100644 drivers/char/hw_random/bcm74110-rng.c
drivers/char/hw_random/Kconfig +13 -0
index b51d9e243f35..e665581e2324 100644
@@ -99,6 +99,19 @@ config HW_RANDOM_BCM2835
 
 	  If unsure, say Y.
 
+config HW_RANDOM_BCM74110
+	tristate "Broadcom BCM74110 Random Number Generator support"
+	depends on ARCH_BRCMSTB || COMPILE_TEST
+	default HW_RANDOM
+	help
+	  This driver provides kernel-side support for the Random Number
+	  Generator hardware found on the Broadcom BCM74110 SoCs.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called bcm74110-rng
+
+	  If unsure, say Y.
+
 config HW_RANDOM_IPROC_RNG200
 	tristate "Broadcom iProc/STB RNG200 support"
 	depends on ARCH_BCM_IPROC || ARCH_BCM2835 || ARCH_BRCMSTB || COMPILE_TEST
drivers/char/hw_random/Makefile +1 -0
index 01f012eab440..283791f5462d 100644
@@ -31,6 +31,7 @@ obj-$(CONFIG_HW_RANDOM_POWERNV) += powernv-rng.o
 obj-$(CONFIG_HW_RANDOM_HISI)	+= hisi-rng.o
 obj-$(CONFIG_HW_RANDOM_HISTB) += histb-rng.o
 obj-$(CONFIG_HW_RANDOM_BCM2835) += bcm2835-rng.o
+obj-$(CONFIG_HW_RANDOM_BCM74110) += bcm74110-rng.o
 obj-$(CONFIG_HW_RANDOM_IPROC_RNG200) += iproc-rng200.o
 obj-$(CONFIG_HW_RANDOM_ST) += st-rng.o
 obj-$(CONFIG_HW_RANDOM_XGENE) += xgene-rng.o
drivers/char/hw_random/bcm74110-rng.c new file +125 -0

125 lines not on this page · raw message

Signature · 1 line
2.47.0
maintainer
#4 lore raw
In reply to Markus Mayer
Quoted 16 lines · Markus Mayer

This series adds a driver for the random number generator found on the BCM74110 SoC.

Binding changes from v1:
- renamed binding file to brcm,bcm74110-rng.yaml
- ensure "brcm,bcm74110-rng" is being used instead of "...-trng"
- removed "|" after "description:"
- removed label "rng:"

Code-related changes from v1:
- only enable the driver for ARCH_BRCMSTB || COMPILE_TEST

Markus Mayer (2):
dt-bindings: rng: add binding for BCM74110 RNG
hwrng: bcm74110 - Add Broadcom BCM74110 RNG driver

Quoted 10 lines
 .../bindings/rng/brcm,bcm74110-rng.yaml       |  35 +++++
 drivers/char/hw_random/Kconfig                |  13 ++
 drivers/char/hw_random/Makefile               |   1 +
 drivers/char/hw_random/bcm74110-rng.c         | 125 ++++++++++++++++++
 4 files changed, 174 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/rng/brcm,bcm74110-rng.yaml
 create mode 100644 drivers/char/hw_random/bcm74110-rng.c
Signature · 1 line
2.47.0

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