]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
rng: rockchip: Use same compatible as linux
authorJonas Karlman <jonas@kwiboo.se>
Sat, 17 Feb 2024 00:22:36 +0000 (00:22 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 14 Mar 2024 03:40:48 +0000 (11:40 +0800)
Replace the rockchip,cryptov1-rng compatible with compatibles used in
the linux device tree for RK3288, RK3328 and RK3399 to ease sync of SoC
device tree from linux.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/dts/rk3328-u-boot.dtsi
arch/arm/dts/rk3399-u-boot.dtsi
drivers/rng/rockchip_rng.c

index 687c16da5135a41bb306b133786011ebce90ce18..ea34bf6b78bbc6aab677c644d7aeb5e99e22c76c 100644 (file)
@@ -28,7 +28,7 @@
        };
 
        rng: rng@ff060000 {
-               compatible = "rockchip,cryptov1-rng";
+               compatible = "rockchip,rk3328-crypto";
                reg = <0x0 0xff060000 0x0 0x4000>;
                status = "okay";
        };
index 3423b882c43733654d2f74a0a58caa604424b9d8..87b173e59579c48edf38c38c1b771edcc52841b0 100644 (file)
@@ -30,7 +30,7 @@
        };
 
        rng: rng@ff8b8000 {
-               compatible = "rockchip,cryptov1-rng";
+               compatible = "rockchip,rk3399-crypto";
                reg = <0x0 0xff8b8000 0x0 0x1000>;
                status = "okay";
        };
index ce390864262a8664c2b7bcebbb000a2bd3fe16e9..2426648fbd570eb92724713390266b3e1134d7a1 100644 (file)
@@ -301,7 +301,15 @@ static const struct dm_rng_ops rockchip_rng_ops = {
 
 static const struct udevice_id rockchip_rng_match[] = {
        {
-               .compatible = "rockchip,cryptov1-rng",
+               .compatible = "rockchip,rk3288-crypto",
+               .data = (ulong)&rk_cryptov1_soc_data,
+       },
+       {
+               .compatible = "rockchip,rk3328-crypto",
+               .data = (ulong)&rk_cryptov1_soc_data,
+       },
+       {
+               .compatible = "rockchip,rk3399-crypto",
                .data = (ulong)&rk_cryptov1_soc_data,
        },
        {