bmips: bcm6362/bcm63268: enable HW RNG
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 31 Mar 2023 15:49:58 +0000 (17:49 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Fri, 31 Mar 2023 15:52:03 +0000 (17:52 +0200)
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@gmail.com>
target/linux/bmips/dts/bcm63268.dtsi
target/linux/bmips/dts/bcm6362.dtsi

index 665b1bfecf01079c55a06294c5d340e2c7bfa684..e30cdd862f68762265a9509648e77fd8c8158d48 100644 (file)
                        status = "disabled";
                };
 
+               random: rng@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@1000d800 {
                        compatible = "brcm,bcm63268-enetsw";
                        reg = <0x1000d800 0x80>,
index 4f1d23e0019421afcd65453f7a79f8f232a03a9c..d7fff43c441f6cdd448361781a733c1cf0759655 100644 (file)
                        status = "disabled";
                };
 
+               random: rng@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@1000d800 {
                        compatible = "brcm,bcm6362-enetsw";
                        reg = <0x1000d800 0x80>,