Skip to content

Commit

Permalink
dts: stm32mp15: harden RCC secure configuration on ST boards
Browse files Browse the repository at this point in the history
Enable STM32MP15 RCC secure hardening configuration on ST boards
(DK1, DK2, ED1 and EV1) to assign SoC clocks, reset controllers
and PWR regulators to OP-TEE secure world.

This change removes setting of &rcc node status property from
stm32mp157a-dk1.dts, stm32mp157c-dk2.dts as the property is
set from stm32mp15xx-dkx.dtsi that is included from the 2 former
DTS files.

Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com>
  • Loading branch information
etienne-lms committed Nov 23, 2023
1 parent c7f9abc commit 2f63248
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions core/arch/arm/dts/stm32mp157a-dk1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,3 @@
reg = <0xf0 0x10>;
};
};

&rcc {
status = "okay";
};
4 changes: 0 additions & 4 deletions core/arch/arm/dts/stm32mp157c-dk2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@
};
};

&rcc {
status = "okay";
};

&usart2 {
pinctrl-names = "default", "sleep", "idle";
pinctrl-0 = <&usart2_pins_c>;
Expand Down
1 change: 1 addition & 0 deletions core/arch/arm/dts/stm32mp157c-ed1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
};

&rcc {
compatible = "st,stm32mp1-rcc-secure";
status = "okay";
};

Expand Down
5 changes: 5 additions & 0 deletions core/arch/arm/dts/stm32mp15xx-dkx.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,11 @@
vdd_3v3_usbfs-supply = <&vdd_usb>;
};

&rcc {
compatible = "st,stm32mp1-rcc-secure";
status = "okay";
};

&rng1 {
status = "okay";
};
Expand Down

0 comments on commit 2f63248

Please sign in to comment.