dts config:
&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-mode = "rmii";
phy-handle = <ðphy0>;
status = "okay";
mdio {
#address-cells = <1>;
#size-cells = <0>;
ethphy0: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
pinctrl-names = "default";
reg = <0>;
status = "okay";
};
ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};
};
i have been add smsc phy drivers:
when i powerup the imx6ul , and use command "ifconfig eth0 up", i found an error:
ifconfig: SIOCSIFFLAGS: No such device
when i use command "ifconfig -a" , i can find eth0, i seems that MAC layer(fec_main.c) is work well?
i found an error in fec_main.c:
Hi luo
is it working in uboot, it may be configured using example in
uboot/include/configs/mx6slevk.h :
#define CONFIG_PHY_SMSC
Also one can check rmii clocks provided by settings in IOMUXC_GPR_GPR1
ENET_TX_CLK_DIR
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
IOMUXC_GPR_GPR1 ENET_TX_CLK_DIR setting in device tree (pinctrl_enet)?
it can be set in
uboot/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c
Best regards
igor