Hi,
I am RGMII interface on jetson agx orin to communicate with ksz9896c switch.
pinmux,gpio configuration and dts file are correct. i verified with clocks coming from Rx and Tx.
From KSZ9896c i am able to get RXCLK and From orin TXCLK.
In ifconfig tool i am able to see eth0 .
But I am facing pinging issue.
I contacted the microchip people they said
please take care of this point, this is an important point. As per the forum link that I shared yesterday Nvidia Soc does not provide TXC timing delay. Please check with your MAC vendor to know if it follows RGMII v1.3 or v2.0 specifications and check if there is a delay provided by the TXC pin or not. if not, then provide a delay in either PCB trace (or) use ingress delay of KSZ9896 TXC through register writing to KSZ9896 switch
so,Can i use MDIO and MDC pins as I2C pins for configuration.
In my hardare MDIO and MDC are connected to (MIIM/i2C/SPI) multiplex pin of KSZ9896c.
Nvidia Soc does not provide TXC timing delay. Please check with your MAC vendor to know if it follows RGMII v1.3 or v2.0 specifications and check if there is a delay provided by the TXC pin or not. if not, then provide a delay in either PCB trace (or) use ingress delay of KSZ9896 TXC through register writing to KSZ9896 switch that I mentioned yesterday in the messages, please refer to this knowledge base article for better clarity Microchip Lightning Support
I am using custom board,jetpack 6 version.
In KSZ9896C MDIO/SDI/SDA are multiplexed on pin 97 and MDC/SDL are multiplexed on pin100.
KSZ9896C is stand alone ethernet switch no need of driver for it,
I want to configure one register in KSZ9896C through the I2C.
For I2C communication i want to change the MDIO and MDC to I2C.
In pinmux spreed sheet there is not provision for o change the MDIO and MDC to I2C.
tried in available I2C bus its working.
i gone through pinmux in TRM document, In theMDIO and MDCC pins cannot use as I2C bus. @KevinFFF thanks for response.
but I am facing issue with pinging.
in ifconfig eth0 is showing.
TXCLK from orin generating 125MHz and RXCLK from KSZ switch also generating 125MHz.
Please use Figure 8-1 Ethernet Connections in the AGX Orin Design Guide as reference for RGMII interface connectivity and refer to Note 2 below Table 8-3 RGMII Signal Routing Requirements for RGMII-ID is not supported.
From device tree file you seem to be configuring RGMII MAC to PHY mode since you are using phy-handle.
Please configure the RGMII in MAC to MAC since you are using KSZ9896 switch. To confirm the MAC to MAC mode, please ensure Device Tree explicitly contains a “fixed-link” sub node under the Nvidia Ethernet MAC node without any PHY references (phy-handle), you could remove the phy-handle line.