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

KSZ8863 - add support of SMI (IDFGH-11859) #20

Open
kostaond opened this issue Jan 9, 2024 · 1 comment
Open

KSZ8863 - add support of SMI (IDFGH-11859) #20

kostaond opened this issue Jan 9, 2024 · 1 comment
Assignees
Labels
Status: Selected for Development Issue is selected for development Type: Feature Request New feature or request

Comments

@kostaond
Copy link
Collaborator

kostaond commented Jan 9, 2024

Add support of SMI to access registers on KSZ8863.

@kostaond kostaond added the Type: Feature Request New feature or request label Jan 9, 2024
@kostaond kostaond self-assigned this Jan 9, 2024
@github-actions github-actions bot changed the title KSZ8863 - add support of SMI KSZ8863 - add support of SMI (IDFGH-11859) Jan 9, 2024
@kostaond
Copy link
Collaborator Author

kostaond commented Jan 9, 2024

After deeper look, I found out that it's not possible to access the KSZ8863 registers via SMI from ESP32 (and that was the reason why it wasn't implemented in past :D).

In terms of KSZ8863 terminology, SMI is non-standard version of IEEE 802.3 MII Management Interface (MIIM), see section 3.3.10 and 3.3.11 of KSZ8863 datasheet. The main differences between these two interfaces are "OP code" numbering and address format. MIIM's read OP code is 10b and write OP code is 01b. While SMI read and write have both OP code 00b. Since the ESP32 EMAC follows the IEEE 802.3 MII Management Interface standard, we are not able to set OP code to 00b, see ESP32 EMACMIIADDR_REG register. There is no such option.

The scope of this issue could be changed to document above observation in the code and so prevent any confusion in the future.

@espressif-bot espressif-bot assigned kostaond and unassigned kostaond Jan 12, 2024
@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development and removed Status: Opened labels Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Selected for Development Issue is selected for development Type: Feature Request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants