-
Notifications
You must be signed in to change notification settings - Fork 8.4k
stm32: perform stm32n6 RIF configuration in a centralized soc function #100695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
avolmat-st
wants to merge
2
commits into
zephyrproject-rtos:main
Choose a base branch
from
avolmat-st:pr-stm32n6-rif-config
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
stm32: perform stm32n6 RIF configuration in a centralized soc function #100695
avolmat-st
wants to merge
2
commits into
zephyrproject-rtos:main
from
avolmat-st:pr-stm32n6-rif-config
+55
−100
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
erwango
previously approved these changes
Dec 9, 2025
mathieuchopstm
previously approved these changes
Dec 9, 2025
Contributor
mathieuchopstm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM w/ two minor nits
Perform all the IPs RIF configuration at init time in case of this isn't yet performed by an earlier entity during the boot sequence. This configuration depends on TRUSTED_EXECUTION_SECURE which is currently always enabled on STM32N6x but will be configurable in future. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
RIF configuration is now done at soc init time in a centralized way so it is no more necessary for drivers to perform this configuration. Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
b0ca186
1284297 to
b0ca186
Compare
|
mathieuchopstm
approved these changes
Dec 9, 2025
erwango
approved these changes
Dec 9, 2025
maass-hamburg
approved these changes
Dec 9, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: Boards/SoCs
area: Display
area: Ethernet
area: Video
Video subsystem
platform: STM32
ST Micro STM32
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Currently the RIF configuration of the STM32N6 is performed in each related driver. This requires to add those dedicated call in each driver and moreover this might not always be needed.
Currently Zephyr is running in priviledge mode so is able to perform such configuration and needs to perform configuration this way but this is not always the case especially if Zephyr is not running in secure mode.
For this reason, move all those RIF configuration in a dedicated SOC specific function which is only called if Zephyr is "alone" running on the SOC.
In case of another entity has already run before (such as TF-M), this entity will have already set the RIF prior to reaching Zephyr and Zephyr will most probably not have enough right to set those, in such case the function will not be called.