Skip to contentSkip to conversation

rockchip: px30: add support for HW RNG for Odroid Go Advance

PATCH In review Chris Morgan 2 participants 2 messages Aug 25, 2021 – Oct 15, 2021 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rockchip: px30: add support for HW RNG for Odroid Go Advance

From: Chris Morgan <[email protected]>

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.

---
 arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi +6 -0
index 741e8dd935..6d4edc5855 100644
@@ -16,6 +16,12 @@
 		serial2 = &uart2;
 		spi0 = &sfc;
 	};
+
+	rng: rng@ff0b0000 {
+		compatible = "rockchip,cryptov2-rng";
+		reg = <0x0 0xff0b0000 0x0 0x4000>;
+		status = "okay";
+	};
 };
 
 &cru {
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

Thanks,
- Kever

Quoted 33 lines · Chris Morgan <[email protected]> 于2021年8月26日周四 上午12:24写道:

From: Chris Morgan <[email protected]>

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.

---
 arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/dts/rk3326-odroid-go2-u-boot.dtsi +6 -1
index 741e8dd935..6d4edc5855 100644
@@ -16,6 +16,12 @@
                serial2 = &uart2;
                spi0 = &sfc;
        };
+
+       rng: rng@ff0b0000 {
+               compatible = "rockchip,cryptov2-rng";
+               reg = <0x0 0xff0b0000 0x0 0x4000>;
+               status = "okay";
+       };
 };
 
 &cru {
--

2.25.1