From patchwork Thu Aug 2 20:20:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koen Kooi X-Patchwork-Id: 1268071 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 5C8C33FCFC for ; Thu, 2 Aug 2012 20:20:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751676Ab2HBUUM (ORCPT ); Thu, 2 Aug 2012 16:20:12 -0400 Received: from mail-ey0-f174.google.com ([209.85.215.174]:39262 "EHLO mail-ey0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752399Ab2HBUUL convert rfc822-to-8bit (ORCPT ); Thu, 2 Aug 2012 16:20:11 -0400 Received: by eaac11 with SMTP id c11so1024372eaa.19 for ; Thu, 02 Aug 2012 13:20:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=XgA71wdFR33A+pzYDH5lupvABFX/PHav84bRUQpmXg4=; b=bZKiQVWRB4kWb3V+1J/dalhIfgZx9M3YbD7SPVS7ZzPVRK9V/6hG7zGuPsE8k/BVsF Z1WaHPL1Rc9nfN4dtV4RUOrOLyN0OhunIN49L5oStVyKdC/ifNVo+r3+7uC/xAMHx+JE 7uttU2ORALRpgkiX3IvFQ540XsTQL5T9mnvR8Rl+7AcolbF2h7jnNbssPcM9a8TSQHl7 z5iTwDmIJjnUSr8mxMaVy84QxypfBPXQBu4hnwwEA0IfoL5iPHJQ7TcBNht5O8WK2ixm 6BQptHTYw5dGVbQkdh69GCCv0Bu6Q5N/0Kj3+FroTlEh7CVZ1aMGtQOgx6U8LJDX3g9v Mxmg== Received: by 10.14.175.5 with SMTP id y5mr28126657eel.40.1343938806639; Thu, 02 Aug 2012 13:20:06 -0700 (PDT) Received: from [172.20.0.10] (ip4da2a5ae.direct-adsl.nl. [77.162.165.174]) by mx.google.com with ESMTPS id w3sm20126351eep.2.2012.08.02.13.20.04 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Aug 2012 13:20:05 -0700 (PDT) Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1485\)) Subject: Re: Current state of AM33xx patches From: Koen Kooi In-Reply-To: <501ADB89.4030405@gmail.com> Date: Thu, 2 Aug 2012 22:20:03 +0200 Cc: "N, Mugunthan V" , "Hiremath, Vaibhav" , Paul Walmsley , "Nori, Sekhar" , Jason Kridner , Tony Lindgren , "Hilman, Kevin" , "Hernandez, Carlos" , "Maupin, Chase" , "linux-omap@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "Kridner, Jason" Message-Id: References: <4FD5BA4C.9070706@gmail.com> <4FE9A00B.6010908@ti.com> <79CD15C6BA57404B839C016229A409A83EA5B7FD@DBDE01.ent.ti.com> <4FEC7394.9030208@gmail.com> <79CD15C6BA57404B839C016229A409A83EA5FBC1@DBDE01.ent.ti.com> <4FEDF54D.4030609@gmail.com> <4FEEC7F2.8070507@gmail.com> <79CD15C6BA57404B839C016229A409A83EA635DC@DBDE01.ent.ti.com> <4FF42761.2000701@gmail.com> <500CEF97.4050207@gmail.com> <501159C3.3020109@gmail.com> <704C899A-606B-41A3-99E8-6D92C0EA5BC5@dominion.thruhere.net> <50116926.4060309@gmail.com> <587C7FB9-2DD3-48EE-B74D-BEBDF199BE23@dominion.thruhere.net> <50118272.1050209@gmail.com> <9F9237B3-55BD-471B-ADD1-1A18F3644387@dominion.thruhere.net> <501A9D1C.8080305@gmail.com> <98DC2F80-9AD6-4A65-8FA8-3B2AABF72692@dominion.thruhere.net> <501ADB89.4030405@gmail.com> To: Daniel Mack X-Mailer: Apple Mail (2.1485) X-Gm-Message-State: ALoCoQnwkzkh7+lzeggrgChC8k1MrK/sqDChOZUeAFPZCoVvglK7eskeO1gyUsOVuzxu1kdcACMb Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Op 2 aug. 2012, om 21:56 heeft Daniel Mack het volgende geschreven: > On 02.08.2012 17:37, Koen Kooi wrote: >> But I still can't get it working: >> >> root@beaglebone:~# dmesg | grep -i cpsw [ 13.504425] net eth0: >> initializing cpsw version 1.12 (0) >> >> root@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@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@Angstrom-F16-vm-rpm kernel]$ git diff 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-- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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@4a101000 { + compatible = "ti,davinci-mdio"; + ti,hwmods = "davinci_mdio"; + }; + mac: ethernet@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@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@1 { - slave_reg_ofs = <0x308>; - sliver_reg_ofs = <0xdc0>; - phy_id = "davinci_mdio-0:01"; - mac-address = [00 04 9F 01 1B B9]; - }; }; };