]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: rockchip: Add rng node to RK3588
authorNicolas Frattaroli <nicolas.frattaroli@collabora.com>
Tue, 4 Feb 2025 15:35:51 +0000 (16:35 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sun, 16 Feb 2025 15:29:12 +0000 (16:29 +0100)
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>
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi

index 5d0fbb6d89ec8a925ab855172e9ac49a52d061d2..a59c194c747956090670fc68016b75d68e39d9f7 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>;