arm: dts: rockchip: rk3399: enable rng at the SoC level
PATCH 1/2 arm: dts: rockchip: rk3399: enable rng at the SoC level
The rng is embedded in the SoC so enable it in the device tree universally, the use of it can be controlled by enabling/disabling at the device config level.
Signed-off-by Peter Robinson <[email protected]>
Cc Kever Yang <[email protected]>
--- arch/arm/dts/rk3399-evb-u-boot.dtsi | 4 ---- arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi | 4 ---- arch/arm/dts/rk3399-rockpro64-u-boot.dtsi | 4 ---- arch/arm/dts/rk3399-u-boot.dtsi | 2 +- 4 files changed, 1 insertion(+), 13 deletions(-)
arch/arm/dts/rk3399-evb-u-boot.dtsi +0 -4
@@ -13,10 +13,6 @@ }; }; -&rng { - status = "okay"; -}; - &i2c0 { u-boot,dm-pre-reloc; };
arch/arm/dts/rk3399-pinebook-pro-u-boot.dtsi +0 -4
@@ -28,10 +28,6 @@ u-boot,dm-pre-reloc; }; -&rng { - status = "okay"; -}; - &sdhci { max-frequency = <25000000>; u-boot,dm-pre-reloc;
arch/arm/dts/rk3399-rockpro64-u-boot.dtsi +0 -4
@@ -15,10 +15,6 @@ }; }; -&rng { - status = "okay"; -}; - &spi1 { spi_flash: flash at 0 { u-boot,dm-pre-reloc;
arch/arm/dts/rk3399-u-boot.dtsi +1 -1
@@ -32,7 +32,7 @@ rng: rng at ff8b8000 { compatible = "rockchip,cryptov1-rng"; reg = <0x0 0xff8b8000 0x0 0x1000>; - status = "disabled"; + status = "okay"; }; dmc: dmc {
Signature · 1 line
2.29.2
PATCH 2/2 configs: rk3399: enable rng on firefly/rock960/rockpro64
Enable the RNG on the Firefly, rock960 and RockPro64 devices to enable KASLR on devices that support it.
Signed-off-by Peter Robinson <[email protected]>
Cc Akash Gajjar <[email protected]>
Cc Jagan Teki <[email protected]>
Cc Kever Yang <[email protected]>
Cc Manivannan Sadhasivam <[email protected]>
--- configs/firefly-rk3399_defconfig | 2 ++ configs/rock960-rk3399_defconfig | 2 ++ configs/rockpro64-rk3399_defconfig | 2 ++ 3 files changed, 6 insertions(+)
configs/firefly-rk3399_defconfig +2 -0
@@ -35,6 +35,8 @@ CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_DM_RNG=y +CONFIG_RNG_ROCKCHIP=y CONFIG_SF_DEFAULT_SPEED=20000000 CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y
configs/rock960-rk3399_defconfig +2 -0
@@ -39,6 +39,8 @@ CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_SDMA=y CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_DM_RNG=y +CONFIG_RNG_ROCKCHIP=y CONFIG_DM_ETH=y CONFIG_NVME=y CONFIG_PCI=y
configs/rockpro64-rk3399_defconfig +2 -0
@@ -42,6 +42,8 @@ CONFIG_MMC_DW=y CONFIG_MMC_DW_ROCKCHIP=y CONFIG_MMC_SDHCI=y CONFIG_MMC_SDHCI_ROCKCHIP=y +CONFIG_DM_RNG=y +CONFIG_RNG_ROCKCHIP=y CONFIG_SF_DEFAULT_BUS=1 CONFIG_SPI_FLASH_GIGADEVICE=y CONFIG_DM_ETH=y
Signature · 1 line
2.29.2