setup PHY addresses KERNEL Flattened Device Tree

651 views
Skip to first unread message

Иван Арищенко

unread,
Oct 24, 2013, 7:15:48 AM10/24/13
to beagl...@googlegroups.com
Hello,

   I am working on custom board based on Beagle Bone Black. The board has a 
different PHY chip (DP83640). The PHY address is 31 (0x1f).

   I have a issue with ethernet support in Linux kernel (3.8.13  Flattened Device Tree).
 
[   52.892438] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[   52.898851] davinci_mdio 4a101000.mdio: detected phy mask ffdfffff
[   52.907354] libphy: 4a101000.mdio: probed
[   52.911624] davinci_mdio 4a101000.mdio: phy[21]: device 4a101000.mdio:15, driver NatSemi DP83640
[   52.921194] Detected MACID = 00:17:ea:98:9b:00
[   52.925872] cpsw 4a100000.ethernet: NAPI disabled
[   52.932588] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:02:20 UTC (946684940)
[   52.949319] net eth0: initializing cpsw version 1.12 (0)
[   52.956522] libphy: PHY 4a101000.mdio:00 not found
[   52.961563] net eth0: phy 4a101000.mdio:00 not found on slave 0
[   52.967764] libphy: PHY 4a101000.mdio:01 not found
[   52.972785] net eth0: phy 4a101000.mdio:01 not found on slave 1

The ethernet interface works in previous kernel (3.2.0)
I think the issue is wrong PHY address. I can not find a place in Linux kernel 3.8.13 source 
where i can set up PHY address; 

Could you please help me to find the place where i can set up PHY address?

Best Regards,
Ivan Arishchenko

Иван Арищенко

unread,
Oct 28, 2013, 6:09:05 PM10/28/13
to beagl...@googlegroups.com
ununtu-dev@ununtudev-VirtualBox:/workspace/beagle_bone/kernel/kernel/arch/arm/boot$ find -type f | xargs grep phy_id -n
Binary file ./dts/am335x-bone.dtb matches
Binary file ./dts/am335x-tester.dtb matches
./dts/am335x-tester.dts:454: phy_id = <&davinci_mdio>, <0>;
./dts/am335x-tester.dts:458: phy_id = <&davinci_mdio>, <1>;
./dts/am335x-bone-common.dtsi:514: phy_id = <&davinci_mdio>, <0>;
./dts/am335x-bone-common.dtsi:518: phy_id = <&davinci_mdio>, <1>;
Binary file ./dts/am335x-boneblack.dtb matches
./dts/am335x-evm.dts:308: phy_id = <&davinci_mdio>, <0>;
./dts/am335x-evm.dts:312: phy_id = <&davinci_mdio>, <1>;
Binary file ./dts/am335x-evm.dtb matches
Binary file ./Image matches


четверг, 24 октября 2013 г., 15:15:48 UTC+4 пользователь Иван Арищенко написал:

Maxim Podbereznyy

unread,
Oct 30, 2013, 12:05:13 AM10/30/13
to beagleboard
why don't you just change <0> to <0x1f> and recompile the dts file?


2013/10/29 Иван Арищенко <iaris...@gmail.com>

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Reply all
Reply to author
Forward
0 new messages