arm64: dts: rockchip: Add rng node to RK3588
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Tue, 8 Apr 2025 22:11:44 +0000 (22:11 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 23 Apr 2025 14:12:02 +0000 (22:12 +0800)
Add the RK3588's standalone hardware random number generator node to its
device tree, and enable it.

Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Link: https://lore.kernel.org/r/20250204-rk3588-trng-submission-v2-6-608172b6fd91@collabora.com
[changed reset-id to its numeric value while the constant makes its
 way through the crypto tree]
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
[ upstream commit: 6ee0b9ad3995ee5fa229035c69013b7dd0d3634b ]

(cherry picked from commit 4800c4aaad00ffdc053850f130e8504a04dd110d)
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
dts/upstream/src/arm64/rockchip/rk3588-base.dtsi

index c3abdfb..2623afa 100644 (file)
                status = "disabled";
        };
 
+       rng@fe378000 {
+               compatible = "rockchip,rk3588-rng";
+               reg = <0x0 0xfe378000 0x0 0x200>;
+               interrupts = <GIC_SPI 400 IRQ_TYPE_LEVEL_HIGH 0>;
+               clocks = <&scmi_clk SCMI_HCLK_SECURE_NS>;
+               resets = <&scmi_reset 48>;
+       };
+
        i2s0_8ch: i2s@fe470000 {
                compatible = "rockchip,rk3588-i2s-tdm";
                reg = <0x0 0xfe470000 0x0 0x1000>;