From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 14536DDFE9 for ; Tue, 16 Oct 2007 05:02:15 +1000 (EST) Date: Mon, 15 Oct 2007 13:53:40 -0500 From: Scott Wood To: Grant Likely Subject: Re: [PATCH 2/2] i2c: Add devtree-aware iic support for PPC4xx Message-ID: <20071015185340.GB4474@loki.buserror.net> References: <200710151529.11485.sr@denx.de> <20071015163216.GA8127@gate.ebshome.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: Jean Delvare , linuxppc-dev@ozlabs.org, Stefan Roese , i2c@lm-sensors.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Oct 15, 2007 at 10:57:48AM -0600, Grant Likely wrote: > Segher is recommending that we use an aliases node as per the open > firmware example for this. I think in this case it would look > something like this (but I'm not the expert): > > aliases { > IIC0 = "/path/to/bus/iic@0x2000"; > IIC1 = "/path/to/bus/iic@0x2000"; > }; I think this is overly complicated; something like linux,i2c-index in the i2c adapter node would be simpler. Though, I don't see what the problem with the original approach is, as long as the numbers are chosen in the same way when registering i2c clients based on the children of the adapter node. There's no concept in the hardware itself of a bus number. -Scott