arm: dts: rockchip: rk3399: add and enable rng node
authorLin Jinhan <troy.lin@rock-chips.com>
Tue, 31 Mar 2020 09:39:57 +0000 (17:39 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 29 Apr 2020 02:30:40 +0000 (10:30 +0800)
Add rng node in rk3399-u-boot.dtsi and enable it in
rk3399-evb-u-boot.dtsi.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3399-evb-u-boot.dtsi
arch/arm/dts/rk3399-u-boot.dtsi

index ccb33d34d12d0ed20856b0c042a37d80a8962e0e..f68a56fdd0bdb40b516bd430933e41526138e11a 100644 (file)
@@ -11,3 +11,7 @@
                u-boot,spl-boot-order = &sdhci, &sdmmc;
        };
 };
+
+&rng {
+       status = "okay";
+};
index 8b857ccfc79726b76dbfa2f4e5effa30635c7fe8..757b8c10a245ba8ff1f7e238690187c4bb205c7e 100644 (file)
                clock-names = "pclk_ddr_mon";
        };
 
+       rng: rng@ff8b8000 {
+               compatible = "rockchip,cryptov1-rng";
+               reg = <0x0 0xff8b8000 0x0 0x1000>;
+               status = "disabled";
+       };
+
        dmc: dmc {
                u-boot,dm-pre-reloc;
                compatible = "rockchip,rk3399-dmc";