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

Since the RNG node was added to the upstream DTSI, let's reuse it.
This change disables HWRNG on RK3566, as done in the kernel[1].

[1]: https://lore.kernel.org/all/302bdae2f4defeefe88ea4018a0be11f@manjaro.org/

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 arch/arm/dts/rk356x.dtsi         | 8 --------
 drivers/hw_random/rockchip-rng.c | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/arch/arm/dts/rk356x.dtsi b/arch/arm/dts/rk356x.dtsi
index fbabf2a6a6..995a9d5d92 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 {
diff --git a/drivers/hw_random/rockchip-rng.c b/drivers/hw_random/rockchip-rng.c
index 990e5fc111..62a21db0e2 100644
--- a/drivers/hw_random/rockchip-rng.c
+++ b/drivers/hw_random/rockchip-rng.c
@@ -194,7 +194,7 @@ static const struct of_device_id rk_rng_dt_match[] = {
 		.data = (void *)&rk_rng_v1_soc_data,
 	},
 	{
-		.compatible = "rockchip,cryptov2-rng",
+		.compatible = "rockchip,rk3568-rng",
 		.data = (void *)&rk_rng_v2_soc_data,
 	},
 	{ },
-- 
2.39.1




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

* Re: [PATCH v2] ARM: dts: rk356x: Use RNG node from upstream DTSI
  2024-12-12  6:43 [PATCH v2] ARM: dts: rk356x: Use RNG node from upstream DTSI Alexander Shiyan
@ 2024-12-12  8:25 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-12-12  8:25 UTC (permalink / raw)
  To: barebox, Alexander Shiyan


On Thu, 12 Dec 2024 09:43:03 +0300, Alexander Shiyan wrote:
> Since the RNG node was added to the upstream DTSI, let's reuse it.
> This change disables HWRNG on RK3566, as done in the kernel[1].
> 
> [1]: https://lore.kernel.org/all/302bdae2f4defeefe88ea4018a0be11f@manjaro.org/
> 
> 

Applied, thanks!

[1/1] ARM: dts: rk356x: Use RNG node from upstream DTSI
      https://git.pengutronix.de/cgit/barebox/commit/?id=0937615585eb (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

end of thread, other threads:[~2024-12-12  8:27 UTC | newest]

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

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