-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
base: main
Are you sure you want to change the base?
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 |
add mdio for legacy stm32 api Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
The api takes care, if the mdio bus_enable and bus_disable are not needed, so there is no need to have tis in the driver. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
add mdio and phy node to every stm32board that supports ethernet. Also set the phy-handle for every ethernet mac. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
mac and mdio are now on the same level, this way phy-handle can be used. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
ee39d6c
to
6d119f4
Compare
3238878
to
3197859
Compare
dts/arm/st/f2/stm32f207.dtsi
Outdated
<&rcc STM32_CLOCK(AHB1, 28U)>; | ||
status = "disabled"; | ||
compatible = "st,stm32-ethernet-parent"; | ||
clock-names = "stmmaceth"; |
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.
Nit: if this clock is remove from mac, then following would be more suited:
clock-names = "stmmaceth"; | |
clock-names = "stm-eth"; |
This would likely require driver update.
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.
changed in #87593
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.
:-D commented in the wrong PR
move stmmaceth clock to parent, so it can also be used by mdio and rename it to ``stm-eth``. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
rewirte code and remove code that use internal phy functions. A few Kconfig options got removed, that are now set by the phy via the DT. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
make stm32 mdio driver more independent Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
unfortunatly HAL_ETH_SetMDIOClockRange() isn't available in the V1 API, so I had to copy the parts from the hal. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
update migration guide for changes of the stm32 ethernet driver. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
Add the Ethernet MAC and MDIO nodes in the device tree. Add Kconfig for Ethernet Support. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
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. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
3197859
to
a016e40
Compare
Add ethernet node of stm32n6570_dk
Integrate GRMII and RMII interfaces
Based on this PR: #87593