AnsweredAssumed Answered

IMX6UL Micrel KSZ8794 RMII :ifconfig: SIOCSIFFLAGS: No such device

Question asked by lvmh on Dec 18, 2017
Latest reply on Dec 20, 2017 by lvmh

Hi ! 

The im6ul enthernet is connected to ksz8794 port 4 interface and is selected for the RMII PHY interface mode, spi communication mode.Spi can communicate normally, but inputting ifconfig eth1 up can't find the device.The driver is officially provided.

Add in .dts:

&fec1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet1>;
phy-handle = <&ethphy0>;
phy-mode = "rmii";
status = "okay";
};

&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <&ethphy1>;
status = "okay";

mdio {
#address-cells = <1>;
#size-cells = <0>;

ethphy0: ethernet-phy@1 {
//compatible = "ethernet-phy-ieee802.3-c22";
compatible = "micrel,ksz8795";
reg = <1>;
fixed-link {
speed = <100>;
full-duplex;
};
};

ethphy1: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0>;
};
};
};

 

&ecspi3 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 12 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi3>;
status = "okay";
switch@0{
compatible = "micrel,ksz8795";
switch-rst-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
//spi-max-frequency = <12500000>;
spi-max-frequency =<48000000>;
reg = <0>;
status = "okay";
ethernet = <&fec1>;
};
};

But it doesn't work,

root@imx6ulevk:~# ifconfig eth1 up
ifconfig: SIOCSIFFLAGS: No such device

Can anyone give some advice?

Outcomes