From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by ozlabs.org (Postfix) with ESMTP id DB1FFB6F6B for ; Thu, 11 Aug 2011 04:23:48 +1000 (EST) Message-ID: <4E42CCB0.8090803@grandegger.com> Date: Wed, 10 Aug 2011 20:23:44 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 To: Robin Holt Subject: Re: [PATCH v10 5/5] [powerpc] Fix up fsl-flexcan device tree binding. References: <1312945564-6626-1-git-send-email-holt@sgi.com> <1312945564-6626-6-git-send-email-holt@sgi.com> <4E428BFF.7060402@grandegger.com> <20110810141550.GQ4926@sgi.com> <9C64B7751C3BCA41B64A68E23005A7BE1C6A21@039-SN1MPN1-002.039d.mgd.msft.net> <20110810160054.GT4926@sgi.com> In-Reply-To: <20110810160054.GT4926@sgi.com> Content-Type: text/plain; charset=ISO-8859-1 Cc: Wood Scott-B07421 , "netdev@vger.kernel.org" , U Bhaskar-B22300 , "socketcan-core@lists.berlios.de" , PPC list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 08/10/2011 06:00 PM, Robin Holt wrote: > On Wed, Aug 10, 2011 at 02:36:20PM +0000, U Bhaskar-B22300 wrote: ... > It looks like the way to do that is to assign a label to those devices > and then associate the label with an alias. I have no idea how that > works under the hood, but it is the way other files are set up. Take a > look at arch/powerpc/boot/dts/bamboo.dts for how they define the serial > interfaces. With a label you mean "label:" at the beginning of a node. Such labels are translated by the device tree compiler in node handles, which can be referenced within nodes by using <&label>, e.g.: UIC0: interrupt-controller0 { ... }; UIC1: interrupt-controller1 { ... interrupt-parent = <&UIC0>; ... }; It has nothing to do with the name of the node. Wolfgang. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Grandegger Subject: Re: [PATCH v10 5/5] [powerpc] Fix up fsl-flexcan device tree binding. Date: Wed, 10 Aug 2011 20:23:44 +0200 Message-ID: <4E42CCB0.8090803@grandegger.com> References: <1312945564-6626-1-git-send-email-holt@sgi.com> <1312945564-6626-6-git-send-email-holt@sgi.com> <4E428BFF.7060402@grandegger.com> <20110810141550.GQ4926@sgi.com> <9C64B7751C3BCA41B64A68E23005A7BE1C6A21@039-SN1MPN1-002.039d.mgd.msft.net> <20110810160054.GT4926@sgi.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Wood Scott-B07421 , "netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , U Bhaskar-B22300 , Kumar Gala , "socketcan-core-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org" , Marc Kleine-Budde , PPC list To: Robin Holt Return-path: In-Reply-To: <20110810160054.GT4926-sJ/iWh9BUns@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: socketcan-core-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org Errors-To: socketcan-core-bounces-0fE9KPoRgkgATYTw5x5z8w@public.gmane.org List-Id: netdev.vger.kernel.org On 08/10/2011 06:00 PM, Robin Holt wrote: > On Wed, Aug 10, 2011 at 02:36:20PM +0000, U Bhaskar-B22300 wrote: ... > It looks like the way to do that is to assign a label to those devices > and then associate the label with an alias. I have no idea how that > works under the hood, but it is the way other files are set up. Take a > look at arch/powerpc/boot/dts/bamboo.dts for how they define the serial > interfaces. With a label you mean "label:" at the beginning of a node. Such labels are translated by the device tree compiler in node handles, which can be referenced within nodes by using <&label>, e.g.: UIC0: interrupt-controller0 { ... }; UIC1: interrupt-controller1 { ... interrupt-parent = <&UIC0>; ... }; It has nothing to do with the name of the node. Wolfgang.