Skip to content
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

boards/rpi_5: add rpi_5_scmi.overlay #37

Open
wants to merge 1 commit into
base: rpi5_dom0_dev
Choose a base branch
from

Conversation

GrygiriiS
Copy link

Add rpi_5_scmi.overlay which allows to build and run zephyr-dom0-xt application when ARM SCMI is enabled.
The RAM layout is changed when ARM SCMI is enabled and Xen loads zephyr-dom0-xt app at different address 0x30000000, so rpi_5_scmi.overlay allows to cover this case. Also, in the future, it can be extended with DT SCMI nodes.

The EXTRA_DTC_OVERLAY_FILE can be used to apply rpi_5_scmi.overlay.

Build:
west build -b rpi_5 -p always zephyr-dom0-xt --
-DEXTRA_DTC_OVERLAY_FILE=boards/rpi_5_scmi.overlay

The EXTRA_DTC_OVERLAY_FILE can be added in rpi5.yaml.

@GrygiriiS
Copy link
Author

#address-cells = <2>;
#size-cells = <1>;

sram0: memory@30000000 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering: should you describe the SCM/SCP here as well? I.e. provide shared memory for SCMI, add scmi node, etc

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our solution for Zephyr was not accepted. So current idea is to make Dom0 work without scmi - it should work the same way as before, without SCMI. So this patch just fixes the boot. The overlay can be extended later for SCMI.

Upstream PR for Zephyr SCMI is here zephyrproject-rtos/zephyr#78293

Copy link
Collaborator

@lorc lorc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, got it. Thanks

Acked-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>

Add rpi_5_scmi.overlay which allows to build and run zephyr-dom0-xt
application when ARM SCMI is enabled.
The RAM layout is changed when ARM SCMI is enabled and Xen loads
zephyr-dom0-xt app at different address 0x30000000, so rpi_5_scmi.overlay
allows to cover this case. Also, in the future, it can be extended with DT
SCMI nodes.

The EXTRA_DTC_OVERLAY_FILE can be used to apply rpi_5_scmi.overlay.

Build:
 west build -b rpi_5 -p always zephyr-dom0-xt -- \
 -DEXTRA_DTC_OVERLAY_FILE=boards/rpi_5_scmi.overlay

Signed-off-by: Grygorii Strashko <grygorii_strashko@epam.com>
Acked-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
@GrygiriiS GrygiriiS force-pushed the rpi5_dom0_dev_scmi_v1 branch from 1aa280b to 8776adf Compare October 7, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants