2024-05-16 15:28:45

by Gabriel FERNANDEZ

[permalink] [raw]
Subject: [PATCH v2 0/3] Use STM32 access controller for STM32MP25 clocks

From: Gabriel Fernandez <[email protected]>

Use an STM32 access controller to filter the registration of clocks.
Don't register a clock if this clock is secured or declared as shared (this
clock is generally managed by the security world).

This series depends on the stm32_firewall framework (merged since
next-20240419) notably for the include file 'linux/bus/stm32_firewall_device.h'.

Changes in v2:
- rebased on next-20240514
- YAML patch was apllied on next
- use appropriate include
- manage the case if 'access-contoller' property is not present in the DT
- rename DT patch (RCC support part was merged)

Gabriel Fernandez (3):
clk: stm32mp2: use of STM32 access controller
clk: stm32mp25: add security clocks
arm64: dts: st: enable STM32 access controller for RCC

arch/arm64/boot/dts/st/stm32mp251.dtsi | 1 +
drivers/clk/stm32/clk-stm32-core.c | 2 +-
drivers/clk/stm32/clk-stm32-core.h | 2 +-
drivers/clk/stm32/clk-stm32mp13.c | 2 +-
drivers/clk/stm32/clk-stm32mp25.c | 516 +++++++++++++++----------
5 files changed, 325 insertions(+), 198 deletions(-)

--
2.25.1



2024-05-16 15:38:02

by Gabriel FERNANDEZ

[permalink] [raw]
Subject: [PATCH v2 3/3] arm64: dts: st: enable STM32 access controller for RCC

From: Gabriel Fernandez <[email protected]>

Use an STM32 access controller to filter the registration of clocks.

Signed-off-by: Gabriel Fernandez <[email protected]>
---
arch/arm64/boot/dts/st/stm32mp251.dtsi | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/st/stm32mp251.dtsi b/arch/arm64/boot/dts/st/stm32mp251.dtsi
index dcd0656d67a8..602d02efc202 100644
--- a/arch/arm64/boot/dts/st/stm32mp251.dtsi
+++ b/arch/arm64/boot/dts/st/stm32mp251.dtsi
@@ -441,6 +441,7 @@ rcc: clock-controller@44200000 {
<&scmi_clk CK_SCMI_TIMG2>,
<&scmi_clk CK_SCMI_PLL3>,
<&clk_dsi_txbyte>;
+ access-controllers = <&rifsc 156>;
};

exti1: interrupt-controller@44220000 {
--
2.25.1