KSZ9893 Ethernet Switch on iMX8mq Custom board

cancel
Showing results for 
Search instead for 
Did you mean: 

KSZ9893 Ethernet Switch on iMX8mq Custom board

807 Views
Contributor IV

KSZ9893 is a 3 port ethernet switch; port 1 and 2 incorporate 10/100/1000 Mbps PHYs. Port 3 has interfaces that can be configured as RGMII, MII or RMII. Port 3 is connected directly to iMX8mq. 

pastedImage_1.png

Because Port 3 does not have PHY, so I think cannot treat it as an ethernet tranciver (eg. AR8031 in imx8mq-evk). I do some modify in kernel device tree but it still not working; cannot obtain IP address too.

&fec1 {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_fec1>;
    phy-mode = "rgmii-txid";
    // don't  use PHY handle
    // phy-handle = <&ethphy0>;
    fsl,magic-packet;
    status = "okay";
    // Add Ethernet Fixed link
    fixed-link {
     speed = <1000>;
     full-duplex;
    };
     // Remove MIDO
};

 

There is 125 MHz on both TX Clock and RX Clock; Already measured by oscilloscope. It still cannot obtain IP address.

If anyone who has experience on ethernet switch, please help. My kernel version is 4.9.123.

Thank all,

Labels (2)
0 Kudos
3 Replies

177 Views
Contributor I

Hi Thinh,

i have exactly your problem, same Board and same switch KSZ9893.

you solved?

Thank you so much

Elix

0 Kudos

177 Views
Contributor IV

Hi ELISEO,

Not yet, but try this

imx8mq <-> LAN9500<->KSZ9893, it is posible. Let TX_ER and RX_ER be floating. And Port 2 connected to Internet.

KSZ9897 Switch Evaluation Board with LAN7801 & KSZ9031 

0 Kudos

177 Views
NXP TechSupport
NXP TechSupport

Hi Thinh

one can consider approaches described on

configure the ksz8765 5 port Ethernet switch 

https://community.nxp.com/thread/474582 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos