Skip to main content
MOtto.2
Associate II
February 22, 2023
Question

Driver for ksz8863 switch?

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.

This topic has been closed for replies.

4 replies

Pavel A.
February 23, 2023

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.

MOtto.2
MOtto.2Author
Associate II
February 25, 2023

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.

Pavel A.
February 25, 2023

Through RMII you can accesss 32 registers. Other registers require connection through other interface, I2C or SPI.