Skip to contentSkip to conversation

ARM: dts: rk356x: Use RNG node from upstream DTSI

PATCH Applied Alexander Shiyan 2 participants 2 messages Dec 12, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: rk356x: Use RNG node from upstream DTSI

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/[email protected]/

---
 arch/arm/dts/rk356x.dtsi         | 8 --------
 drivers/hw_random/rockchip-rng.c | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)
arch/arm/dts/rk356x.dtsi +0 -8
index fbabf2a6a6..995a9d5d92 100644
@@ -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 {
drivers/hw_random/rockchip-rng.c +1 -1
index 990e5fc111..62a21db0e2 100644
@@ -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,
 	},
 	{ },
Signature · 1 line
2.39.1