From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id CDB2ADDEDE for ; Wed, 15 Aug 2007 06:37:37 +1000 (EST) In-Reply-To: <46C1EDAA.3070402@freescale.com> References: <1187044669.10295.4.camel@server> <3FE16C0A-892F-4481-999A-A699C0C70BF9@kernel.crashing.org> <013b01c7de23$5baa7d70$6f00a8c0@ESIDT> <1B668DF2-9909-4D43-AAFF-3A2ADFA283B2@freescale.com> <46C1D553.4000201@freescale.com> <018801c7de93$43390e80$6f00a8c0@ESIDT> <46C1EDAA.3070402@freescale.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <66FE71AE-6AF2-4A2F-91D0-6517B0702C13@freescale.com> From: Andy Fleming Subject: Re: [PATCH] [UPDATED] tsec: Allow Ten Bit Interface to be configurable Date: Tue, 14 Aug 2007 15:37:28 -0500 To: Scott Wood Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Aug 14, 2007, at 13:00, Scott Wood wrote: > Joe Hamman wrote: >> ethernet@24000 { >> #address-cells = <1>; >> #size-cells = <0>; >> device_type = "network"; >> model = "eTSEC"; >> compatible = "gianfar"; >> reg = <24000 1000>; >> mac-address = [ 00 E0 0C 00 73 00 ]; >> interrupts = <1d 2 1e 2 22 2>; >> interrupt-parent = <&mpic>; >> phy-handle = <&phy1f>; >> tbi-handle = <&tbi1e>; >> }; > > Is any given board going to have at runtime (i.e. not jumper > selectable) both a phy and a tbi (I'm not very familiar with the > latter, so I apologize if this is a dumb question). If not, I'd > stick with phy-handle and have something in the phy node to > indicate that it's tbi. Yes. That will be the more common case. The TBI PHYs are connected to the MDIO pins of each TSEC. The TBIPA register defines what address it sits on. It is used to configure non MII-style data connections, usually to another PHY. For instance, to configure a TSEC for SGMII, you first configure the attached TBI to communicate with the on-chip SERDES. While the TBI devices technically all sit on MDIO busses, only the TBI PHY connected to the first TSEC will interfere with MDIO transactions. I don't think we need to create nodes for each of the TBIs. They exist as a secondary part of the ethernet controller, and their address is only really important to that controller. I still think it should just be a property of the ethernet node. We aren't describing the TBI, we're describing a setting for the ethernet controller's register. Andy