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

orangepi5: initial motorcomm phy #8

Open
wants to merge 1 commit into
base: v2017.09-rk3588
Choose a base branch
from

Conversation

apowers313
Copy link

Adds MotorComm PHY support. Code compiles and boots, but PHY and Ethernet aren't recognized on boot.

@apowers313
Copy link
Author

I believe the MotorComm PHY is working, but U-Boot shows "Net: No ethernet found." because the right Ethernet MAC isn't compiled in to call phy_connect().

I have tried CONFIG_RGMII, CONFIG_GMAC_ROCKCHIP, and CONFIG_ETH_DESIGNWARE but none of the those three seem to detect the rk3588 Ethernet MAC.

Any ideas would be helpful.

@apowers313
Copy link
Author

apowers313 commented May 18, 2023

It looks like this might require CONFIG_SPL_ETH_SUPPORT.

@apowers313
Copy link
Author

Might also require updating the device tree in rk3588s-orangepi-5.dts.

When Linux boots, it appears to pick up the second ethernet port from the device tree (as denoted by the device fe1c0000.ethernet):

[ 15.718173] rk_gmac-dwmac fe1c0000.ethernet eth0: PHY [stmmac-1:01] driver [YT8531 Gigabit Ethernet] (irq=POLL)

This device can be found in rk3588s.dtsi in the Linux device tree. A similar (but not identical) rk3588s.dtsi exists in the U-Boot tree but isn't currently included in rk3588s-orangepi-5.dts in U-Boot like it is in Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant