]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: px30: add support for HW RNG for Odroid Go Advance
authorChris Morgan <macromorgan@hotmail.com>
Wed, 25 Aug 2021 16:23:57 +0000 (11:23 -0500)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 24 Dec 2021 02:58:59 +0000 (10:58 +0800)
The Odroid Go Advance has a hardware random number generator present.
The device does not have an upstream Linux driver, but does have a
U-Boot driver. Add the appropriate node so that the hardware RNG can be
used in U-Boot.

Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi

index bffaa3edf334f17db5ca60c482ddaa7efe949372..ea3641800d6b01a4091078ee166247b92d8fc7f4 100644 (file)
                serial2 = &uart2;
                spi0 = &sfc;
        };
+
+       rng: rng@ff0b0000 {
+               compatible = "rockchip,cryptov2-rng";
+               reg = <0x0 0xff0b0000 0x0 0x4000>;
+               status = "okay";
+       };
 };
 
 /* U-Boot clk driver for px30 cannot set GPU_CLK */