Unable to access MDIO bus in i.MX7D with fixed-link

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to access MDIO bus in i.MX7D with fixed-link

536 Views
NARAYANASWAMY
Contributor I

Hello NXP team,

We are using MV88E6341 switch connceted to fec2 in our custom carrier card. We are unable to access the MDIO bus with fixed-link node in device tree.

We can able to access the MDIO bus without fixed-link node in DTS but fec2 link is down.

Please suggest us to fix this.

My DTS file contents are pasted below,


&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
//phy-handle = <&switchphy0>;
phy-mode = "rgmii";
fsl,magic-packet;
#if 1

fixed-link {
speed=<1000>;
full-duplex;
};
#endif
#if 1
mdio_bus: mdio {
#address-cells = <1>;
#size-cells = <0>;
reg = <3>;
switch: switch@3 {
compatible = "marvell,mv88e6085";
#address-cells = <1>;
#size-cells = <0>;
reg = <3>;
dsa,member = <0 0>;
ports {
#address-cells = <1>;
#size-cells = <0>;

port@0 {
reg = <0>;
label = "p0";

phy-mode = "rgmii";

ethernet = <&fec2>;
//phy-handle = <&switchphy0>;
fixed-link {
speed=<1000>;
full-duplex;
};

};

port@1 {
reg = <1>;
label = "p1";
phy-handle = <&switchphy1>;


};

port@2 {
reg = <2>;
label = "p2";
phy-handle = <&switchphy2>;
};

port@3 {
reg = <3>;
label = "p3";
phy-handle = <&switchphy3>;
};

port@4 {
reg = <4>;
label = "p4";
phy-handle = <&switchphy4>;
};
};
mdio {
#address-cells = <1>;
#size-cells = <0>;

switchphy1: switchphy@11 {
reg = <0x11>;
};
switchphy2: switchphy@12 {
reg = <0x12>;
};

switchphy3: switchphy@13 {
reg = <0x13>;
};

switchphy4: switchphy@14 {
reg = <0x14>;
};
};

};
};
#endif

};

 

 

Labels (1)
0 Kudos
Reply
0 Replies