-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Ethernet: Add support stm32n6570_dk #87562
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
Ethernet: Add support stm32n6570_dk #87562
Conversation
264dc7a to
091627e
Compare
|
instead of using and extending the internal |
|
the |
|
started something like I described there: #87593 |
ee39d6c to
6d119f4
Compare
6d119f4 to
3656cfe
Compare
3238878 to
3197859
Compare
3197859 to
a016e40
Compare
|
@marwaiehm-st please rebase to current main, now that #87593 is merged |
a016e40 to
51bdac7
Compare
09b9496 to
44f863d
Compare
drivers/ethernet/eth_stm32_hal.c
Outdated
| ((DT_ENUM_HAS_VALUE(node_id, phy_connection_type, mii) ? ETH_MII_MODE : \ | ||
| (DT_ENUM_HAS_VALUE(node_id, phy_connection_type, rmii) ? ETH_RMII_MODE : \ | ||
| (DT_ENUM_HAS_VALUE(node_id, phy_connection_type, gmii) ? ETH_GMII_MODE : \ | ||
| (DT_ENUM_HAS_VALUE(node_id, phy_connection_type, rgmii) ? ETH_RGMII_MODE : \ | ||
| ETH_RMII_MODE))))) |
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.
Since property is required, there is no need to default to ETH_RMII_MODE since there's already a check on ETH_RMII_MODE
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.
Here, we must have a default, so I deleted the check on RMII and kept the default.
Add the Ethernet MAC and MDIO nodes in the device tree. Add Kconfig for Ethernet Support. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
- Added macros `STM32_ETH_PHY_MODE` to determine the PHY mode (RGMII, GMII, RMII, and MII) from the `phy_connection_type` property in the device tree. - Removed previous definitions for ETH_MEDIA_INTERFACE_MII and ETH_MEDIA_INTERFACE_RMII. - Updated STM32_ETH_PHY_MODE macro to use ETH_MII_MODE and ETH_RMII_MODE. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
44f863d to
73d619c
Compare
Add ethernet node of stm32n6570_dk
Integrate GRMII and RMII interfaces
Based on this PR: #87593