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: dts: nordic: SysCtrl IPC configuration #71265

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

57300
Copy link
Contributor

@57300 57300 commented Apr 9, 2024

Add DT nodes to be used for communicating with SysCtrl on nRF54H20.

Copy link
Member

@decsny decsny left a comment

Choose a reason for hiding this comment

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

can you please add dts/common/nordic to the nrf platforms in the maintainer yml, I think this is why kumar was assigned, but it really should be the nordic maintainer assigned

@57300
Copy link
Contributor Author

57300 commented Apr 10, 2024

can you please add dts/common/nordic to the nrf platforms in the maintainer yml, I think this is why kumar was assigned, but it really should be the nordic maintainer assigned

Thanks for the suggestion. Updated maintainers and reassigned this PR.

anangl
anangl previously approved these changes Apr 10, 2024
Add a VEVIF node to be used for communicating with SysCtrl (cpusys).
This is the only part of the SysCtrl VPR exposed to local domains.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
Add the default `zephyr,ipc-icmsg` nodes for communication with
Application and Radiocore.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
Files in `dts/common/nordic` and `dts/riscv/nordic` belong to this area,
now that Nordic's devicetrees span multiple architectures. Use a glob to
cover all paths.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
@57300
Copy link
Contributor Author

57300 commented Apr 16, 2024

Rebased and added nodes for Radiocore <-> SysCtrl.

Copy link
Contributor

@tmon-nordic tmon-nordic left a comment

Choose a reason for hiding this comment

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

Should there be some proper error message (instead of cryptic compile error) when zephyr,ipc-icmsg compatible (here: cpuapp_cpusys_ipc) has status = "okay"; but any of its mboxes (here: cpuapp_bellboard and cpusys_vevif) have status = "disabled";?

@57300
Copy link
Contributor Author

57300 commented Apr 16, 2024

Should there be some proper error message (instead of cryptic compile error) when zephyr,ipc-icmsg compatible (here: cpuapp_cpusys_ipc) has status = "okay"; but any of its mboxes (here: cpuapp_bellboard and cpusys_vevif) have status = "disabled";?

Sounds reasonable to me. I'm just not familiar enough with Zephyr IPC to know how and where this should be validated, if it isn't already.

@tmon-nordic
Copy link
Contributor

Should there be some proper error message (instead of cryptic compile error) when zephyr,ipc-icmsg compatible (here: cpuapp_cpusys_ipc) has status = "okay"; but any of its mboxes (here: cpuapp_bellboard and cpusys_vevif) have status = "disabled";?

Sounds reasonable to me. I'm just not familiar enough with Zephyr IPC to know how and where this should be validated, if it isn't already.

It is not validated. I stumbled across the cryptic error at

.mbox_tx = MBOX_DT_SPEC_INST_GET(i, tx), \
.mbox_rx = MBOX_DT_SPEC_INST_GET(i, rx), \

Not sure if the MBOX_DT_SPEC_INST_GET or DEFINE_BACKEND_DEVICE should get the check if the check is to be done at compile level. Alternative approach would be to make devicetree generator to check it. But I don't quite know what would be the correct place.

57300 added a commit to 57300/sdk-zephyr that referenced this pull request Apr 17, 2024
Upstream PR: zephyrproject-rtos/zephyr#71265

Add a VEVIF node to be used for communicating with SysCtrl (cpusys).
This is the only part of the SysCtrl VPR exposed to local domains.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit 801a13f8cf5c5b08908757b7e1f3b08d6b8ea667)
57300 added a commit to 57300/sdk-zephyr that referenced this pull request Apr 17, 2024
…SysCtrl

Upstream PR: zephyrproject-rtos/zephyr#71265

Add the default `zephyr,ipc-icmsg` nodes for communication with
Application and Radiocore.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit f10a45e62c19413e0dcbea881527436c3a87e387)
@aescolar aescolar merged commit e9562b6 into zephyrproject-rtos:main Apr 17, 2024
21 checks passed
57300 added a commit to 57300/sdk-zephyr that referenced this pull request Apr 19, 2024
Upstream PR: zephyrproject-rtos/zephyr#71265

Add a VEVIF node to be used for communicating with SysCtrl (cpusys).
This is the only part of the SysCtrl VPR exposed to local domains.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit 801a13f8cf5c5b08908757b7e1f3b08d6b8ea667)
57300 added a commit to 57300/sdk-zephyr that referenced this pull request Apr 19, 2024
…SysCtrl

Upstream PR: zephyrproject-rtos/zephyr#71265

Add the default `zephyr,ipc-icmsg` nodes for communication with
Application and Radiocore.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit f10a45e62c19413e0dcbea881527436c3a87e387)
57300 added a commit to 57300/sdk-zephyr that referenced this pull request Apr 23, 2024
Upstream PR: zephyrproject-rtos/zephyr#71265

Add a VEVIF node to be used for communicating with SysCtrl (cpusys).
This is the only part of the SysCtrl VPR exposed to local domains.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit 801a13f8cf5c5b08908757b7e1f3b08d6b8ea667)
57300 added a commit to 57300/sdk-zephyr that referenced this pull request Apr 23, 2024
…SysCtrl

Upstream PR: zephyrproject-rtos/zephyr#71265

Add the default `zephyr,ipc-icmsg` nodes for communication with
Application and Radiocore.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit f10a45e62c19413e0dcbea881527436c3a87e387)
57300 added a commit to 57300/sdk-zephyr that referenced this pull request Apr 25, 2024
Upstream PR: zephyrproject-rtos/zephyr#71265

Add a VEVIF node to be used for communicating with SysCtrl (cpusys).
This is the only part of the SysCtrl VPR exposed to local domains.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit 801a13f8cf5c5b08908757b7e1f3b08d6b8ea667)
57300 added a commit to 57300/sdk-zephyr that referenced this pull request Apr 25, 2024
…SysCtrl

Upstream PR: zephyrproject-rtos/zephyr#71265

Add the default `zephyr,ipc-icmsg` nodes for communication with
Application and Radiocore.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
(cherry picked from commit f10a45e62c19413e0dcbea881527436c3a87e387)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Devicetree area: Process area: RISCV RISCV Architecture (32-bit & 64-bit) platform: nRF Nordic nRFx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants