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

Bug? Can't use specific ethernet port as gpio #1

Open
stel87 opened this issue Nov 5, 2019 · 0 comments
Open

Bug? Can't use specific ethernet port as gpio #1

stel87 opened this issue Nov 5, 2019 · 0 comments

Comments

@stel87
Copy link

stel87 commented Nov 5, 2019

I am writing regarding an issue I found with the ethernet ports and their use as gpio.
I do not know though if it's the right place to report it.
My company is developing two products based on MT7688KN and MT7628DAN.
Both are using more than 2 ethernet ports. I am responsible for the software part. I have successfully used your u-boot mainline version for MT7628DAN and now I am trying to do the same with this repo, the linux kernel. I got it running but I have an issue with the alternative configuration of the Ethernet ports.
According to the datasheet , in the AGPIO_CFG register you can set the mode for ports p1 to p4 by using bits in EPHY_GPIO_AIO_EN. However, there is a note that if you set one of the bits then the rest of the bits in EPHY_GPIO_AIO_EN are also set. So that means that someone can't use a specific ethernet port as gpio. Is this a hardware bug? If so, are you aware of a workaround (e.g via DMA) ?
I hope you can help me with this issue. If you need more information or have questions, then please let me know.
I am looking forward to your reply. Thank you in advance.

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

No branches or pull requests

1 participant