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 = <ðphy0>;
phy-mode = "rmii";
status = "okay";
};
&fec2 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_enet2>;
phy-mode = "rmii";
phy-handle = <ðphy1>;
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?
Hi Ivmh
please check helpful links
for debugging issues one can use AN4553 Using Open Source
Debugging Tools for Linux on i.MX Processors
http://www.nxp.com/assets/documents/data/en/application-notes/AN4553.pdf
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi,igorpadykov
I've tried it before, but it can't solve this problem.