Current state of AM33xx patches

Koen Kooi koen at dominion.thruhere.net
Thu Aug 2 16:20:03 EDT 2012


Op 2 aug. 2012, om 21:56 heeft Daniel Mack <zonque at gmail.com> het volgende geschreven:

> On 02.08.2012 17:37, Koen Kooi wrote:
>> But I still can't get it working:
>> 
>> root at beaglebone:~# dmesg | grep -i cpsw [   13.504425] net eth0:
>> initializing cpsw version 1.12 (0)
>> 
>> root at beaglebone:~# dmesg | grep -i phy [    0.000000] Booting Linux
>> on physical CPU 0 [    0.228496] nop_usb_xceiv phy.17: transceiver
>> type USB2 PHY already exists [   13.512056] libphy: PHY
>> davinci_mdio-0:00 not found [   13.517168] net eth0: phy
>> davinci_mdio-0:00 not found on slave 0 [   13.523516] libphy: PHY
>> davinci_mdio-0:01 not found [   13.528675] net eth0: phy
>> davinci_mdio-0:01 not found on slave 1
>> 
>> root at beaglebone:~# ifconfig -a | grep eth eth0      Link
>> encap:Ethernet  HWaddr 00:04:9F:01:1B:B8
> 
> Ok, I got it up and and running now on my board using the two
> davinci_mdio drivers and the hwmod addition I just posted.
> 
> With those applied on top of Mugunthan work, I can link my cpsw slave
> with the phy id "davinci_mdio.18-:04", but the 18 is just the global
> device counter which will change again once I add more devices. That
> still needs some cleanup.
> 
> Anyway, at least I can boot into my NFS root now :) Koen, can you try
> this on your board and see if that works for you as well?

[koen at Angstrom-F16-vm-rpm kernel]$ git diff
diff --git a/arch/arm/boot/dts/am335x-bone.dts b/arch/arm/boot/dts/am335x-bone.dts
index ac7fab5..c33a05d 100644
--- a/arch/arm/boot/dts/am335x-bone.dts
+++ b/arch/arm/boot/dts/am335x-bone.dts
@@ -33,6 +33,11 @@
                };
        };
 
+       mdio: davinci_mdio at 4a101000 {
+               compatible = "ti,davinci-mdio";
+               ti,hwmods = "davinci_mdio";
+       };
+
        mac: ethernet at 4A100000 {
                compatible = "ti,cpsw";
                ti,hwmods = "cpgmac0";
@@ -49,19 +54,13 @@
                no_bd_ram = <0>;
                rx_descs = <64>;
                mac_control = <0x20>;
-               slaves = <2>;
+               slaves = <1>;
                slave at 0 {
                        slave_reg_ofs = <0x208>;
                        sliver_reg_ofs = <0xd80>;
-                       phy_id = "davinci_mdio-0:00";
+                       phy_id = "davinci_mdio.21-:00";
                        mac-address = [00 04 9F 01 1B B8];
                };
-               slave at 1 {
-                       slave_reg_ofs = <0x308>;
-                       sliver_reg_ofs = <0xdc0>;
-                       phy_id = "davinci_mdio-0:01";
-                       mac-address = [00 04 9F 01 1B B9];
-               };
        };
 };


leads to:

[   14.127177] net eth0: initializing cpsw version 1.12 (0)
[   14.135038] net eth0: phy found : id is : 0x7c0f1
[   17.871215] libphy: davinci_mdio.21-:00 - Link is Up - 100/Full

So you can add my Tested-by: to the patches if you want :)

regards,

Koen


More information about the linux-arm-kernel mailing list