mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
a158e7ed43
Testing turned out that the HWRNG quality varies greatly on RK3566, even on supposedly identical boards and SoC revisions. Hence enable the HWRNG driver only on RK3568 for now. Allow users to simply tune sample_count and quality to allow easily testing results on different boards and SoCs. Link: https://patchwork.kernel.org/project/linux-arm-kernel/cover/cover.1720969799.git.daniel@makrotopia.org/ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
50 lines
1.4 KiB
Diff
50 lines
1.4 KiB
Diff
From 756e7d3251ad8f6c72e7bf4c476537a89f673e38 Mon Sep 17 00:00:00 2001
|
|
From: Aurelien Jarno <aurelien@aurel32.net>
|
|
Date: Sun, 21 Jul 2024 01:48:38 +0100
|
|
Subject: [PATCH 3/3] arm64: dts: rockchip: add DT entry for RNG to RK356x
|
|
|
|
Enable the just added Rockchip RNG driver for RK356x SoCs.
|
|
|
|
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
|
|
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
|
|
---
|
|
arch/arm64/boot/dts/rockchip/rk3568.dtsi | 7 +++++++
|
|
arch/arm64/boot/dts/rockchip/rk356x.dtsi | 10 ++++++++++
|
|
2 files changed, 17 insertions(+)
|
|
|
|
--- a/arch/arm64/boot/dts/rockchip/rk3568.dtsi
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk3568.dtsi
|
|
@@ -257,6 +257,13 @@
|
|
};
|
|
};
|
|
|
|
+&rng {
|
|
+ rockchip,sample-count = <1000>;
|
|
+ quality = <900>;
|
|
+
|
|
+ status = "okay";
|
|
+};
|
|
+
|
|
&usb_host0_xhci {
|
|
phys = <&usb2phy0_otg>, <&combphy0 PHY_TYPE_USB3>;
|
|
phy-names = "usb2-phy", "usb3-phy";
|
|
--- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi
|
|
+++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi
|
|
@@ -1105,6 +1105,16 @@
|
|
status = "disabled";
|
|
};
|
|
|
|
+ rng: rng@fe388000 {
|
|
+ compatible = "rockchip,rk3568-rng";
|
|
+ reg = <0x0 0xfe388000 0x0 0x4000>;
|
|
+ clocks = <&cru CLK_TRNG_NS>, <&cru HCLK_TRNG_NS>;
|
|
+ clock-names = "core", "ahb";
|
|
+ resets = <&cru SRST_TRNG_NS>;
|
|
+ reset-names = "reset";
|
|
+ status = "disabled";
|
|
+ };
|
|
+
|
|
i2s0_8ch: i2s@fe400000 {
|
|
compatible = "rockchip,rk3568-i2s-tdm";
|
|
reg = <0x0 0xfe400000 0x0 0x1000>;
|