在线时间19 小时
UID3173502
注册时间2015-10-21
NXP金币0
TA的每日心情 | 开心 2021-2-25 16:17 |
---|
签到天数: 2 天 连续签到: 1 天 [LV.1]初来乍到
注册会员

- 积分
- 179
- 最后登录
- 2021-11-3
|

楼主 |
发表于 2016-10-27 17:52:06
|
显示全部楼层
OK 经过了2天多的时间终于搞定了!!!
&fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet_1>; phy-mode = "rgmii"; status = "okay"; };
http://lxr.free-electrons.com/
查看设备树增加文档,很重要啊
ls Documentation/devicetree/bindings/net/davicom-dm9000.txt
Required properties:
- compatible = "davicom,dm9000";
- reg : physical addresses and sizes of registers, must contain 2 entries:
first entry : address register,
second entry : data register.
- interrupt-parent : interrupt controller to which the device is connected
- interrupts : interrupt specifier specific to interrupt controller
Optional properties:
- local-mac-address : A bytestring of 6 bytes specifying Ethernet MAC address
to use (from firmware or bootloader)
- davicom,no-eeprom : Configuration EEPROM is not available
- davicom,ext-phy : Use external PHY
Example:
ethernet@18000000 {
compatible = "davicom,dm9000";
reg = <0x18000000 0x2 0x18000004 0x2>;
interrupt-parent = <&gpn>;
interrupts = <7 4>;
local-mac-address = [00 00 de ad be ef];
davicom,no-eeprom;
}; |
|