-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Develop/nxp imx8m rdc setup #67886
Develop/nxp imx8m rdc setup #67886
Conversation
5ec8ca1
to
f7c7d53
Compare
Update:
|
soc/arm64/nxp_imx/mimx8m/soc.c
Outdated
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.
Could we create a "driver" for this in zephyr/drivers/
, instead of going back to SoC specific files?
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.
Thanks for your comments!
The Resource Domain Controller (RDC) is used to control the resources (MEM, peripherals) access permission of the Cores and other bus masters, and generally it won't be changed once setup. So, I think it should be more likely classed to SoC/board setup than a driver.
f7c7d53
to
35e1ddf
Compare
6ea9cd6
to
f108a40
Compare
Please ignore the previous 2 updates and just help to review the latest update, which changes the RDC compatible string to "nxp,rdc". Thanks |
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.
Needs to be migrated to hwmv2
@JiafeiPan is working on hwmv2 migrating: #69400 |
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.
Currently platforms have been moved to hardware v2, please rebase your PR.
Add device tree binding file for the Resource Domain Controller (RDC) on i.MX SoCs. Signed-off-by: Hou Zhiqiang <[email protected]>
Add RDC device tree node for i.MX8M SoCs Cortex-A core dtsi. Signed-off-by: Hou Zhiqiang <[email protected]>
The new property is used to set the access permission for the IUART device. Signed-off-by: Hou Zhiqiang <[email protected]>
Assign the UART devices to both the Cortex-A and Cortex-M cores. Signed-off-by: Hou Zhiqiang <[email protected]>
Add domain ID definition for Cortex-A53 core on i.MX8M SoCs. Signed-off-by: Hou Zhiqiang <[email protected]>
Add MMU mapping for RDC MMIO on i.MX8M SoCs. Signed-off-by: Hou Zhiqiang <[email protected]>
2593dba
f108a40
to
2593dba
Compare
rebased, thanks! |
|
||
static int soc_init(void) | ||
{ | ||
soc_rdc_init(); |
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.
this is a shortcut though. We have a node with a compatible for the RDC, with its own memory map and yet we do not have a driver for it. Why?
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.
Please refer to #67886 (comment)
Thanks!
Add SoC initialization to set the UART RDC permission in the early phase, so that the it can be used by Zephyr on Cortex-A cores. Signed-off-by: Hou Zhiqiang <[email protected]>
As the RDC setup has been added in SoC initialization code. Signed-off-by: Hou Zhiqiang <[email protected]>
2593dba
to
00a213d
Compare
This series is to add Resource Domain Conteroller (RDC) setup for NXP i.MX8M SoCx Cortex-A53 core, to make sure the Zephyr running on A core has permission to access the UART ports enabled in DTS.