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

Enable NETC support for i.MX95 EKV M7 #81113

Merged
merged 10 commits into from
Mar 25, 2025

Conversation

yangbolu1991
Copy link
Contributor

This PR is to enable NETC support for i.MX95 EKV M7.
There are dependencies of this PR.

Current PR already cherry-pick scmi changes and updated west.yml to address the dependency for CI.
And will drop them once they are merged.

Thanks.

@zephyrbot
Copy link
Collaborator

zephyrbot commented Nov 8, 2024

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_nxp zephyrproject-rtos/hal_nxp@9dc7449 zephyrproject-rtos/hal_nxp@8375b98 zephyrproject-rtos/hal_nxp@9dc74490..8375b982

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@yangbolu1991
Copy link
Contributor Author

Updated to v2. Changes,

  • Rebased on latest scmi patches. And addressed west.yml conflict.

Thanks.

@decsny decsny requested review from LaurentiuM1234 and removed request for yvanderv December 17, 2024 17:33
@yangbolu1991
Copy link
Contributor Author

Rebased to try CI again.
Thanks.

@yangbolu1991
Copy link
Contributor Author

Rebased, thanks.

@mmahadevan108
Copy link
Collaborator

@JiafeiPan , can you help review this PR.

pinctrl-names = "default";
phy-handle = <&phy0>;
phy-connection-type = "rgmii";
status = "okay";
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest to disable all related nodes by default in board dts, and enable them in dts overlay, then can use "-DEXTRA_DTC_OVERLAY_FILE=enet1.overlay" if needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks Jiafei. Will do that.

@yangbolu1991
Copy link
Contributor Author

Updated to v7. Changes include,

  • Created overlay file for enetc psi0 instead, and doc it.

Thanks.

@@ -0,0 +1,17 @@
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

We may have the other overlay for other features, I suggest to put all of them in "dts" sub-directory just like what the other platforms are using.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, updated.
Thanks.

@@ -23,6 +23,24 @@
};
};

&emdio {
pinctrl-0 = <&emdio_default>;
pinctrl-names = "default";
Copy link
Contributor

Choose a reason for hiding this comment

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

I know these nodes are disabled in soc dts, but I prefer to put explict "disabled" status for these nodes to make it more readable for the user to know it is disabled currently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

okay, updated.
Thanks.

@yangbolu1991
Copy link
Contributor Author

Updated to v8. Changes include,

  • moved overlay file to dts/ directory.
  • put explicit disabled status in dts.

Thanks.

Updated hal_nxp to support i.MX95 NETC.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Added support to get irq from dts node, because some platforms may
use multi-level interrupts, and the system INTID may not be connected
directly to interrupt controller.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Added power domain node and i.MX95 power domain header file.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Added NETC device tree node, and IRQSTEER node.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Enabled multi-level interrupts for m7 since IRQSTEER is used.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
i.MX95 M7 is using multi-level interrupts with custom
interrupt handling. So, arm_custom_interrupt and
arm_irq_vector_table tests should exclude it.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Added support for soc init for NETC.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Added board init for NETC.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Enabled NETC PSI0 for M7.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Updated imx95_evk doc and yml for NETC support on M7.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
@kartben kartben merged commit 660035d into zephyrproject-rtos:main Mar 25, 2025
31 checks passed
@mmahadevan108 mmahadevan108 deleted the feature/imx95_netc branch March 25, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants