[][kernel][mt7987][trng][Port the TRNG driver]

[Description]
Change the compatible in device node and driver

[Release-log]

Change-Id: I2475dd72977d823ccada398565e6cfba5193a65c
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/9889500
diff --git a/21.02/files/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7987.dtsi b/21.02/files/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7987.dtsi
index 772ce83..e5608c0 100644
--- a/21.02/files/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7987.dtsi
+++ b/21.02/files/target/linux/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7987.dtsi
@@ -382,7 +382,7 @@
 		};
 
 		trng: trng@1020f000 {
-			compatible = "mediatek,mt7988-rng";
+			compatible = "mediatek,mt7987-rng";
 			status = "disabled";
 		};
 
diff --git a/21.02/files/target/linux/mediatek/patches-5.4/999-2104-trng-Add-trng-support-for-mt7987.patch b/21.02/files/target/linux/mediatek/patches-5.4/999-2104-trng-Add-trng-support-for-mt7987.patch
new file mode 100644
index 0000000..fda5271
--- /dev/null
+++ b/21.02/files/target/linux/mediatek/patches-5.4/999-2104-trng-Add-trng-support-for-mt7987.patch
@@ -0,0 +1,21 @@
+--- a/drivers/char/hw_random/mtk-rng.c
++++ b/drivers/char/hw_random/mtk-rng.c
+@@ -231,6 +231,10 @@ static const struct mtk_rng_of_data mt79
+ 	.rng_version = 2,
+ };
+ 
++static const struct mtk_rng_of_data mt7987_rng_data = {
++	.rng_version = 2,
++};
++
+ static const struct mtk_rng_of_data mt7988_rng_data = {
+ 	.rng_version = 2,
+ };
+@@ -242,6 +246,7 @@ static const struct mtk_rng_of_data mt76
+ static const struct of_device_id mtk_rng_match[] = {
+ 	{ .compatible = "mediatek,mt7981-rng", .data = &mt7981_rng_data },
+ 	{ .compatible = "mediatek,mt7986-rng", .data = &mt7986_rng_data },
++	{ .compatible = "mediatek,mt7987-rng", .data = &mt7987_rng_data },
+ 	{ .compatible = "mediatek,mt7988-rng", .data = &mt7988_rng_data },
+ 	{ .compatible = "mediatek,mt7623-rng", .data = &mt7623_rng_data },
+ 	{},