openwrt/target/linux
Daniel Golle b7a2f80740 mediatek: replace downstream TRNGv2 driver
Replace the downstream mtk-rng-v2 driver which was acquires random bytes
from TF-A via SMC. A new approach is needed as TF-A for MT7986 has
changed and now requires to use SMC instead of directly accessing the
TRNG via MMIO. However, we can't know whether we are on old or new TF-A,
many devices (like the BananaPi BPi-R3) allow updating TF-A BL3 in the
field, so it may be of the old or new type, and the RNG driver will have
to figure it out somehow.

This currently means that MT7986 with newer TF-A has broken/non-working
HWRNG in Linux:
root@OpenWrt:~# hexdump -C /dev/hwrng
hexdump: /dev/hwrng: I/O error

Fix this by creating a new combined driver which replaces the previous
mtk-rng-v2 driver, and is able to auto-detect which convention to use
on MT7986.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2026-03-05 02:26:41 +00:00
..
airoha
apm821xx
armsr kernel: lift CONFIG_REGULATOR_VEXPRESS 'not set' to generic 2026-02-28 10:12:15 +01:00
at91
ath79 ath79: mikrotik: fix DEVICE_PACKAGES 2026-02-24 14:37:33 +01:00
bcm27xx
bcm47xx
bcm53xx bcm53xx: fix switch standalone ports (like "wan") 2026-02-27 20:42:24 +01:00
bcm4908
bmips
d1
econet econet: en7528: add missing flash partition for DASAN H660GM-A Generic 2026-03-01 17:36:01 +01:00
gemini
generic packages: add PSE (PoE) packages 2026-03-01 10:59:19 +01:00
imx Revert "imx: cortexa53: remove KSZ9477 static driver" 2026-03-02 18:05:45 +01:00
ipq40xx ipq40xx: re-enable MeshPoint.One target 2026-03-04 12:35:57 +01:00
ipq806x generic: add CONFIG_REGULATOR_QCOM_LABIBB 2026-02-27 11:16:55 +01:00
ixp4xx
kirkwood
lantiq lantiq: dm200: Fix loading PHY firmware 2026-02-28 14:36:16 +01:00
layerscape
loongarch64
malta
mediatek mediatek: replace downstream TRNGv2 driver 2026-03-05 02:26:41 +00:00
microchipsw
mpc85xx
mvebu mvebu: use libdeflate for FitImage 2026-02-24 11:47:22 +01:00
mxs
octeon
omap
pistachio
qoriq
qualcommax generic: add CONFIG_REGULATOR_QCOM_LABIBB 2026-02-27 11:16:55 +01:00
qualcommbe generic: add CONFIG_REGULATOR_QCOM_LABIBB 2026-02-27 11:16:55 +01:00
ramips ramips: modules: build I2C driver package for MT7621 2026-03-03 13:07:58 +01:00
realtek realtek: dsa: drop rtldsa_get_mib_desc() 2026-03-03 13:06:32 +01:00
rockchip
sifiveu
siflower
starfive
stm32
sunxi
tegra
uml
x86
zynq kernel: lift CONFIG_REGULATOR_VEXPRESS 'not set' to generic 2026-02-28 10:12:15 +01:00
Makefile