[openwrt/openwrt] bmips: bcm6362/bcm63268: enable HW RNG

LEDE Commits lede-commits at lists.infradead.org
Fri Mar 31 09:55:06 PDT 2023


noltari pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/967520800a8aa45003c1899157309dddbd0317b5

commit 967520800a8aa45003c1899157309dddbd0317b5
Author: Álvaro Fernández Rojas <noltari at gmail.com>
AuthorDate: Fri Mar 31 17:49:58 2023 +0200

    bmips: bcm6362/bcm63268: enable HW RNG
    
    This enables the HW Random Number Generator on the BCM6362 and BCM63268 SoCs,
    which is the same one used on BCM6368 SoC.
    
    Signed-off-by: Álvaro Fernández Rojas <noltari at gmail.com>
---
 target/linux/bmips/dts/bcm63268.dtsi | 12 ++++++++++++
 target/linux/bmips/dts/bcm6362.dtsi  | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/target/linux/bmips/dts/bcm63268.dtsi b/target/linux/bmips/dts/bcm63268.dtsi
index 665b1bfecf..e30cdd862f 100644
--- a/target/linux/bmips/dts/bcm63268.dtsi
+++ b/target/linux/bmips/dts/bcm63268.dtsi
@@ -443,6 +443,18 @@
 			status = "disabled";
 		};
 
+		random: rng at 10002880 {
+			compatible = "brcm,bcm6368-rng";
+			reg = <0x10002880 0x14>;
+
+			clocks = <&periph_clk BCM63268_CLK_IPSEC>;
+			clock-names = "ipsec";
+
+			resets = <&periph_rst BCM63268_RST_IPSEC>;
+
+			power-domains = <&periph_pwr BCM63268_POWER_DOMAIN_IPSEC>;
+		};
+
 		ethernet: ethernet at 1000d800 {
 			compatible = "brcm,bcm63268-enetsw";
 			reg = <0x1000d800 0x80>,
diff --git a/target/linux/bmips/dts/bcm6362.dtsi b/target/linux/bmips/dts/bcm6362.dtsi
index 4f1d23e001..d7fff43c44 100644
--- a/target/linux/bmips/dts/bcm6362.dtsi
+++ b/target/linux/bmips/dts/bcm6362.dtsi
@@ -476,6 +476,18 @@
 			status = "disabled";
 		};
 
+		random: rng at 10002880 {
+			compatible = "brcm,bcm6368-rng";
+			reg = <0x10002880 0x14>;
+
+			clocks = <&periph_clk BCM6362_CLK_IPSEC>;
+			clock-names = "ipsec";
+
+			resets = <&periph_rst BCM6362_RST_IPSEC>;
+
+			power-domains = <&periph_pwr BCM6362_POWER_DOMAIN_IPSEC>;
+		};
+
 		ethernet: ethernet at 1000d800 {
 			compatible = "brcm,bcm6362-enetsw";
 			reg = <0x1000d800 0x80>,




More information about the lede-commits mailing list