Switch KSZ9563 on custom carrier board with Verdin AM62

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Carla,

Thank you for reaching out with your question about configuring the KSZ9563 switch on your Verdin AM62 module. Let’s go through some steps to help you troubleshoot the device tree setup and ensure the switch is recognized correctly.

  1. Device Tree Configuration:

    • Double-check the compatible property for the KSZ9563. The line compatible = "microchip,ksz9563"; should match the expected string for the driver in the kernel.
    • Verify the reg property values for each port. These should align with the correct addresses as per the switch’s datasheet.
    • Ensure the interrupt-parent and interrupts properties are correctly configured for your hardware setup. The GPIO and interrupt numbers should be accurate.
    • Confirm that the phy-mode is set correctly to match your hardware configuration. For RGMII, ensure any necessary delays (e.g., rgmii-rxid) are specified.
  2. Kernel and Driver Support:

    • Verify that the kernel supports the KSZ9563 switch. The kernel configuration (CONFIG_KSZ9477=y) suggests support for a similar family of switches, but ensure specific support for KSZ9563.
    • Check the kernel logs (dmesg) for any errors or warnings related to the switch or PHY during boot.
  3. Testing and Debugging:

    • Use tools like ethtool to query the status of the network interfaces and PHYs. This can provide additional insights into potential issues.
    • If possible, compare your setup with a known working configuration to isolate whether the issue is with the device tree or elsewhere in the system.

By carefully reviewing these aspects, you should be able to identify and resolve the issue with the KSZ9563 switch configuration on your Verdin AM62 module. If you have any further questions or need additional information, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

https://community.nxp.com/t5/i-MX-Processors/Device-tree-configuration-for-Imx8M-Plus-with-Ksz9563-ethernet/td-p/1688755.