mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: rk356x: Use RNG node from upstream DTSI
@ 2024-12-11  6:32 Alexander Shiyan
  2024-12-11  6:51 ` Ahmad Fatoum
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2024-12-11  6:32 UTC (permalink / raw)
  To: barebox; +Cc: Alexander Shiyan

Since the RNG node was added to the upstream DTSI, let's reuse it.
Keep the compatibility string to support the barebox HWRNG driver.

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 arch/arm/dts/rk356x.dtsi | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/arch/arm/dts/rk356x.dtsi b/arch/arm/dts/rk356x.dtsi
index fbabf2a6a6..1a51b9f1b9 100644
--- a/arch/arm/dts/rk356x.dtsi
+++ b/arch/arm/dts/rk356x.dtsi
@@ -44,14 +44,6 @@ cpu_id: id@a {
 			reg = <0x0a 0x10>;
 		};
 	};
-
-	rng: rng@fe388000 {
-		compatible = "rockchip,rk3568-rng", "rockchip,cryptov2-rng";
-		reg = <0x0 0xfe388000 0x0 0x2000>;
-		clocks = <&cru CLK_TRNG_NS>, <&cru HCLK_TRNG_NS>;
-		clock-names = "trng_clk", "trng_hclk";
-		resets = <&cru SRST_TRNG_NS>;
-	};
 };
 
 &pmugrf {
@@ -62,3 +54,7 @@ reboot_mode_pmugrf: reboot-mode {
 		mode-serial = <0xef08a53c>; /* rk-usb-loader */
 	};
 };
+
+&rng {
+	compatible = "rockchip,rk3568-rng", "rockchip,cryptov2-rng";
+};
-- 
2.39.1




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-11  6:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-11  6:32 [PATCH] ARM: dts: rk356x: Use RNG node from upstream DTSI Alexander Shiyan
2024-12-11  6:51 ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox