Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752684Ab1FSHud (ORCPT ); Sun, 19 Jun 2011 03:50:33 -0400 Received: from tx2ehsobe004.messaging.microsoft.com ([65.55.88.14]:58279 "EHLO TX2EHSOBE009.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752323Ab1FSHub (ORCPT ); Sun, 19 Jun 2011 03:50:31 -0400 X-SpamScore: -13 X-BigFish: VS-13(zz4015L1432N98dKzz1202hzzz2dh2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:70.37.183.190;KIP:(null);UIP:(null);IPVD:NLI;H:mail.freescale.net;RD:none;EFVD:NLI Date: Sun, 19 Jun 2011 15:55:53 +0800 From: Shawn Guo To: Arnd Bergmann CC: , Shawn Guo , , , , Jason Liu , , "David S. Miller" Subject: Re: [PATCH 2/3] net/fec: add device tree support Message-ID: <20110619075552.GE23171@S2100-06.ap.freescale.net> References: <1308410354-21387-1-git-send-email-shawn.guo@linaro.org> <1308410354-21387-3-git-send-email-shawn.guo@linaro.org> <201106182027.22974.arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <201106182027.22974.arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginatorOrg: freescale.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1702 Lines: 47 On Sat, Jun 18, 2011 at 08:27:22PM +0200, Arnd Bergmann wrote: > On Saturday 18 June 2011 17:19:13 Shawn Guo wrote: > > diff --git a/Documentation/devicetree/bindings/net/fsl-fec.txt b/Documentation/devicetree/bindings/net/fsl-fec.txt > > new file mode 100644 > > index 0000000..705111d > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/net/fsl-fec.txt > > @@ -0,0 +1,14 @@ > > +* Freescale Fast Ethernet Controller (FEC) > > + > > +Required properties: > > +- compatible : should be "fsl,-fec", "fsl,fec" > > +- reg : address and length of the register set for the device > > +- interrupts : should contain fec interrupt > > + > > +Example: > > + > > +fec@83fec000 { > > + compatible = "fsl,imx51-fec", "fsl,fec"; > > + reg = <0x83fec000 0x4000>; > > + interrupts = <87>; > > +}; > > How about also adding device_type="network" as required here, so you > inherit the attributes like "local-mac-address". > > I would also suggest adding a call to of_get_mac_address() so you > can read the address out of the device tree when it is not configured > in hardware. Today, the driver relies on a module parameter or > platform_data on hardware with a mac address set. > > The other information that is currently encoded in platform_data > is the phy mode. How about adding a property that enables RMII mode > when present? > Ah, yes. I missed that. Will add support for local-mac-address and phy-mode. Thanks, Arnd. -- Regards, Shawn -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/