openwrt/package/boot/uboot-mediatek/patches/194-mediatek-mt7988-add-RNG-node.patch
Daniel Golle 2a9dce2d9e uboot-mediatek: port RNG drivers and enable them
Port drivers for the hardware true random number generator found in
MediaTek SoCs and enable them for all boards.
This has the side-effect of U-Boot now providing '/chosen/kaslr-seed'
to Linux which is required to enabled KASLR.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-03-05 02:28:32 +00:00

28 lines
713 B
Diff

From 12a3ccb90a3e88ac60ccb06ea3e5aa1eabe565ac Mon Sep 17 00:00:00 2001
From: Daniel Golle <daniel@makrotopia.org>
Date: Wed, 4 Mar 2026 01:32:35 +0000
Subject: [PATCH 7/8] mediatek: mt7988: add RNG node
Add node representing the hardware random number generator
found in the MediaTek MT7988 SoC family to the corresponding
device tree.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
---
arch/arm/dts/mt7988.dtsi | 4 ++++
1 file changed, 4 insertions(+)
--- a/arch/arm/dts/mt7988.dtsi
+++ b/arch/arm/dts/mt7988.dtsi
@@ -92,6 +92,10 @@
reg = <0 0x8000000 0 0x1000>;
};
+ rng {
+ compatible = "mediatek,mt7988-rng";
+ };
+
timer {
compatible = "arm,armv8-timer";
interrupt-parent = <&gic>;