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: 1268091 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 85D143FC71 for ; Thu, 2 Aug 2012 20:22:47 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sx1sQ-0004O5-UC; Thu, 02 Aug 2012 20:20:10 +0000 Received: from mail-ey0-f177.google.com ([209.85.215.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sx1sO-0004NT-QN for linux-arm-kernel@lists.infradead.org; Thu, 02 Aug 2012 20:20:09 +0000 Received: by eaai12 with SMTP id i12so348587eaa.36 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=T1NxnW9be8mGg+GVScJBl8k0dchO+nfY9p/idl3YmeXtbf8Ld/Nar3f/PH/HH3nhXe T2EYiitzkt+ZHyjBXYa7IN+3VHZ8zSmtq2EiTEF7/soY5zjjlh2AiEeTdv7ocOgbC550 oaB4qGGQLnv0Vi+NH2FnWG0P1WSl+3+7qF1jaK6OUxbjmMJfF0niW50bR1sZ4G3AHefl jGgAlgLsVUUEYoWc6UmVOiVNJkgUOSZqI0sh0l5+FnohGf4Lja/UmZ+duaWeP5djTRVz u+xef1QJWB0GI+0gWJ9lEocX+B7pS2EPmbXVdMcn+zQZeM6e/ZlypXFui+VDc08yhwva p8mQ== 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 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: ALoCoQkC58dOeEZvUobNRpvhgI526sXwYFZuh9F9ZtWjjMz1NafDmbEScQMQ1siaTjaObYcQW1Si X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: "Hilman, Kevin" , "N, Mugunthan V" , Paul Walmsley , "Maupin, Chase" , Tony Lindgren , "Nori, Sekhar" , "Hiremath, Vaibhav" , Jason Kridner , "Hernandez, Carlos" , "linux-omap@vger.kernel.org" , "Kridner, Jason" , "linux-arm-kernel@lists.infradead.org" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 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]; - }; }; };