]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rng: rockchip_rng: Update compatible for RK3588
authorJonas Karlman <jonas@kwiboo.se>
Tue, 8 Apr 2025 22:11:45 +0000 (22:11 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 23 Apr 2025 14:12:03 +0000 (22:12 +0800)
Linux commit 6ee0b9ad3995 ("arm64: dts: rockchip: Add rng node to
RK3588") merged for v6.15-rc1 add a proper rng node to the device tree.
The compatible used differs compared to what U-Boot is currently using.

Replace the old trngv1 compatible with the dts/upstream compatible in
the rng driver and remove the old rng node compatible override from SoC
u-boot.dtsi to keep rng working after the driver change.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3588s-u-boot.dtsi
drivers/rng/rockchip_rng.c

index 8880d162b11c03e2253da6b2a7f5cfbef980c69d..5eeb138f3513cbb944be0474965162e2150a5029 100644 (file)
                compatible = "rockchip,rk3588-dmc";
                bootph-all;
        };
-
-       rng: rng@fe378000 {
-               compatible = "rockchip,trngv1";
-               reg = <0x0 0xfe378000 0x0 0x200>;
-       };
 };
 
 #ifdef CONFIG_ROCKCHIP_SPI_IMAGE
index f673e2657c94529c10bdd2067d6037a663a9a1de..6e4e3abf08c8e8c1c20489d09c363a52561f53dc 100644 (file)
@@ -321,7 +321,7 @@ static const struct udevice_id rockchip_rng_match[] = {
                .data = (ulong)&rk_cryptov2_soc_data,
        },
        {
-               .compatible = "rockchip,trngv1",
+               .compatible = "rockchip,rk3588-rng",
                .data = (ulong)&rk_trngv1_soc_data,
        },
        {},