Driver for ksz8863 switch?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-22 11:16 AM
Hi, does ST have it's own driver implementation of the ksz8863 switch. If yes where can i download it. I like to have an link up/down feedback. Need to have connection to the internal register of that switch. For now i just use the lan8742 driver provided by ST.
- Labels:
-
Ethernet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-22 3:28 PM
Take the existing driver and modify. For the link detection it's just a few constants:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-22 4:21 PM
KSZ8863 is a 3-port switch. The MCU is connected to the "internal" port of it which does not have transceivers. This is quite similar to a simple PHY like in the ST examples, with few differences.
- The internal port is always connected, always with same speed and duplex 100/FDX. So you don't need to track the connection state and speed
- Especially, you don't rely on connect/disconnect events for DHCP and do not pass anything to the network software (LwIp or whatever).
- Two external ports can connect and disconnect as usual, the switch manages them without your actions. You can check what is connected there if you want to.
The rest is as @Piranha​ answered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-25 7:33 AM
Hi thank you for reply,
I have digged in the manual of that switch and found out that it's posible to set some interrupts upon link change of certain ports. Does ST makes it easy to read&write to that registers via RMII. I have that INTRN pin with no use right now might consider changing that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-02-25 12:30 PM
Through RMII you can accesss 32 registers. Other registers require connection through other interface, I2C or SPI.
