Hot!getting link status updates for KSZ8873RLL switch Ethernet ports

Author
phani046
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2017/12/18 23:32:49
  • Location: 0
  • Status: offline
2018/01/09 02:30:50 (permalink)
0

getting link status updates for KSZ8873RLL switch Ethernet ports

I have KSZ8873RLL switch as Ethernet PHY connected to iMX6 board. We have two external Ethernet ports through this switch. The PHY is directly connected to board MAC and MII (RMII) interface is available for any PHY port configurations. Right now, the switch is operating in fixed link mode.
 
Now, I am trying to get link status updates for both the Ethernet ports. For this, I have added the following 'mdio' nodes in the borad DTS file. I have given the 'ethphy1' for 'phy-handle'. I am getting link up/down status for only one port like this.
 
Can anyone please help on how to get link up/down events for both the Ethernet ports ?
 
&fec {
 pinctrl-names = "default";
 pinctrl-0 = <&pinctrl_enet>;
 phy-mode = "rmii";
       phy-handle = <&ethphy1>;
       fsl,magic-packet;
       status = "okay";
    mdio
    {
        #address-cells = <1>;
        #size-cells = <0>;
        ethphy1: ethernet-phy@0 {
            compatible = "micrel, ksz8873mll switch";
            device_type = "ethernet-phy";
            reg = <1>;
           };
        ethphy2: ethernet-phy@1 {
            compatible = "micrel, ksz8873mll switch";
            device_type = "ethernet-phy";
            reg = <2>;
           };
    };
    
    /*fixed-link {
       speed = <100>;
       full-duplex;
 };*/
};

 
Thanks,
Phani
 
#1

0 Replies Related Threads

    Jump to:
    © 2018 APG vNext Trial Version 4.5