From: Álvaro Fernández Rojas Date: Fri, 31 Mar 2023 15:49:58 +0000 (+0200) Subject: bmips: bcm6362/bcm63268: enable HW RNG X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=967520800a8aa45003c1899157309dddbd0317b5;p=openwrt%2Fstaging%2Fblocktrron.git 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 --- 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@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>, 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@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>,