imx6 dm9000 no work,kernel is 3.14.28,linux system

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

imx6 dm9000 no work,kernel is 3.14.28,linux system

923 Views
jianfeichang
Contributor IV

I'm  work dm9000 in imx6,CS0 is 08000000,interrupt is gpio4_io5   imx6qdl-sabresd.dtsi  is

+MX6QDL_PAD_GPIO_19__GPIO4_IO05  0x80000000

+

ethernet@18000040 {
compatible = "davicom,dm9000";
reg = <0x18000040 0x2 0x18000044 0x2>;
interrupt-parent = <&gpio4>;
interrupts = <5 2>;
local-mac-address = [00 00 de ad be ef];
davicom,no-eeprom;
};

make menuconfig add dm9000

logo is

OF: no ranges; cannot translate
CAN device driver interface
dm9000 8000040.ethernet: read wrong id 0x01010101
eth0: dm9000a at c08fe040,c0912044 IRQ 261 MAC: 00:00:de:ad:be:ef (platform data
)
2188000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
fec 2188000.ethernet (unregistered net_device): Invalid MAC address: 00:00:00:00
:00:00
fec 2188000.ethernet (unregistered net_device): Using random MAC address: 92:ec:
77:7f:30:81
libphy: fec_enet_mii_bus: probed
fec 2188000.ethernet eth1: registered PHC device 0
RTL871X: module init start
usbcore: registered new interface driver rtl8188eu
usbcore: registered new interface driver rtl8188eu

root@imx6dlsabresd:~# ifconfig eth0 192.168.88.186
root@imx6dlsabresd:~# ping 192.168.88.221
PING 192.168.88.221 (192.168.88.221): 56 data bytes

no ping。。。。。

Labels (4)
0 Kudos
2 Replies

512 Views
igorpadykov
NXP Employee
NXP Employee

Hi jianfei

log error "dm9000 8000040.ethernet: read wrong id 0x01010101"

may mean that dm9000 is not read correctly from i.MX6Q side, one can check

timings with oscilloscope and adjust them using imx6qdl-sabreauto.dtsi

example &weim { "weim-cs-timing " :

linux-2.6-imx.git - Freescale i.MX Linux Tree 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

512 Views
jianfeichang
Contributor IV

thank you!igorpadykov

  dm9000, Now, it can work! EIM is OK 

&weim {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_weim_nor_1>;
#address-cells = <1>;
#size-cells = <1>;
status = "okay";

nor@0,0 { compatible = "cfi-flash";
reg = <0 0x02000000>;
//#address-cells = <1>;
//#size-cells = <1>;
bank-width = <2>;
fsl,weim-cs-timing = <0x00620081 0x00000001 0x1c022000 0x0000c000 0x1404a38e 0x00000000>; };
};

add dm9000

ethernet@0800040 {
compatible = "davicom,dm9000";
reg = <0x08000040 0x2 0x08000044 0x2>;
interrupt-parent = <&gpio4>;
pinctrl-0 = <&dm9000_gpio>;
interrupts = <5 4>;//4 表示 触发类型 2 低电平 1 高电平
local-mac-address = [00 00 de ad be ef];
// davicom,no-eeprom;
// wakeup-gpios = <&gpio4 5 2>; 0是低电平 唤醒
// gpio_int = <&gpio4 5 2>;
};
/*add dm9000 cjf*/
dm9000_gpio:dm9000{
fsl,pins = <
MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x80000000
>;
};

OK!

0 Kudos