Skip to content

Commit

Permalink
dts: stm32: add SAES dependency on RNG firewall configuration for stm…
Browse files Browse the repository at this point in the history
…32mp13

SAES is connected to RNG by an internal RNG bus to be DPA resistant.
We must ensure that RNG is allocated to the secure world to prevent
the non secure to shut down the RNG peripheral.
Therefore add RNG to the access-controllers of SAES node in stm32mp13
SoC DTSI files.

Signed-off-by: Thomas Bourgoin <[email protected]>
Reviewed-by: Etienne Carriere <[email protected]>
Reviewed-by: Gatien Chevallier <[email protected]>
  • Loading branch information
tbourgoi authored and jforissier committed Jan 27, 2025
1 parent 1474416 commit 9a3ddeb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/arch/arm/dts/stm32mp13xc.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
clocks = <&rcc SAES_K>, <&rcc RNG1_K>;
clock-names = "bus", "rng";
resets = <&rcc SAES_R>;
access-controllers = <&etzpc STM32MP1_ETZPC_SAES_ID>;
access-controllers = <&etzpc STM32MP1_ETZPC_SAES_ID>, <&etzpc STM32MP1_ETZPC_RNG_ID>;
status = "disabled";
};

Expand Down
2 changes: 1 addition & 1 deletion core/arch/arm/dts/stm32mp13xf.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
clocks = <&rcc SAES_K>, <&rcc RNG1_K>;
clock-names = "bus", "rng";
resets = <&rcc SAES_R>;
access-controllers = <&etzpc STM32MP1_ETZPC_SAES_ID>;
access-controllers = <&etzpc STM32MP1_ETZPC_SAES_ID>, <&etzpc STM32MP1_ETZPC_RNG_ID>;
status = "disabled";
};

Expand Down

0 comments on commit 9a3ddeb

Please sign in to comment.