[PATCH 3/4] rockchip: dts: rk3328: Add rng details to u-boot.dtsi

Kever Yang kever.yang at rock-chips.com
Wed Jul 26 13:08:57 CEST 2023


Hi Peter,

On 2023/6/14 20:43, Peter Robinson wrote:
> Add the rk3328 rng details to the u-boot.dtsi and
> enable the RNG on the Rock64 to be able to provide
> a rnadom seed via UEFI.

typo: random


Thanks,

- Kever

>
> Signed-off-by: Peter Robinson <pbrobinson at gmail.com>
> ---
>
> The DT snippet will allow this to be enabled on other rk3328 devices but
> I only have the Rock54 to test on.
>
>   arch/arm/dts/rk3328-u-boot.dtsi | 6 ++++++
>   configs/rock64-rk3328_defconfig | 2 ++
>   2 files changed, 8 insertions(+)
>
> diff --git a/arch/arm/dts/rk3328-u-boot.dtsi b/arch/arm/dts/rk3328-u-boot.dtsi
> index ce96ce40a73..a9f2536de2a 100644
> --- a/arch/arm/dts/rk3328-u-boot.dtsi
> +++ b/arch/arm/dts/rk3328-u-boot.dtsi
> @@ -26,6 +26,12 @@
>   		       0x0 0xff720000 0x0 0x1000
>   		       0x0 0xff798000 0x0 0x1000>;
>   	};
> +
> +	rng: rng at ff060000 {
> +		compatible = "rockchip,cryptov1-rng";
> +		reg = <0x0 0xff060000 0x0 0x4000>;
> +		status = "okay";
> +	};
>   };
>   
>   &cru {
> diff --git a/configs/rock64-rk3328_defconfig b/configs/rock64-rk3328_defconfig
> index 97ac8734d1b..1820deee373 100644
> --- a/configs/rock64-rk3328_defconfig
> +++ b/configs/rock64-rk3328_defconfig
> @@ -77,6 +77,8 @@ CONFIG_MISC=y
>   CONFIG_ROCKCHIP_EFUSE=y
>   CONFIG_MMC_DW=y
>   CONFIG_MMC_DW_ROCKCHIP=y
> +CONFIG_DM_RNG=y
> +CONFIG_RNG_ROCKCHIP=y
>   CONFIG_SPI_FLASH_GIGADEVICE=y
>   CONFIG_ETH_DESIGNWARE=y
>   CONFIG_GMAC_ROCKCHIP=y


More information about the U-Boot mailing list