From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id CE631B7134 for ; Mon, 15 Jun 2009 12:42:57 +1000 (EST) Received: from bilbo.ozlabs.org (bilbo.ozlabs.org [203.10.76.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bilbo.ozlabs.org", Issuer "CAcert Class 3 Root" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id B8FA3DDD01 for ; Mon, 15 Jun 2009 12:42:57 +1000 (EST) Date: Mon, 15 Jun 2009 12:42:52 +1000 From: David Gibson To: Heiko Schocher Subject: Re: [PATCH v4] 83xx: add support for the kmeter1 board. Message-ID: <20090615024252.GC25444@yookeroo.seuss> References: <20090427180503.GB10292@ld0162-tx32.am.freescale.net> <49F68943.3090800@denx.de> <20090428163540.GA2193@ld0162-tx32.am.freescale.net> <49F7DC0C.3080409@denx.de> <4A30A14D.50907@denx.de> <0AFEA008-BBF6-448B-844F-6EBE3DE24F7B@kernel.crashing.org> <4A3148A1.3030403@denx.de> <20090612011332.GA9084@yookeroo.seuss> <4A31E74E.6090505@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <4A31E74E.6090505@denx.de> Cc: Scott Wood , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Jun 12, 2009 at 07:27:42AM +0200, Heiko Schocher wrote: > Hello David, > > David Gibson wrote: > > On Thu, Jun 11, 2009 at 08:10:41PM +0200, Heiko Schocher wrote: > >> The following series implements basic board support for > >> the kmeter1 board from keymile, based on a MPC8360. > > > > [snip] > >> + par_io@1400 { > >> + reg = <0x1400 0x100>; > >> + device_type = "par_io"; > > > > This should have a compatible value instead of a device_type value. > > compatible = "fsl,mpc8360-par_io"; ? Sounds reasonable, if there isn't an existing precedent to follow. > > [snip] > > > >> + num-ports = <7>; > >> + > >> + pio_ucc1: ucc_pin@00 { > > > > Since these nodes have addresses, they should also have reg > > properties. And the parent should have #address-cells and > > #size-cells. > > added "#address-cells" and "#size-cells", but couldn;t find what > I should write in a "reg" entry ... I think something like that: > > reg = <0x00 0x01>; If you just want a plain index number, which is what it seems you have here, then you'll want #address-cells = 1, #size-cells = 0 and reg will then have one cell (i.e. 1 u32) with the index number so subnode@0 { reg = <0>; } subnode@1 { reg = <1>; } Note also that it's usual for the unit addresses (that's the bits after the @ sign) to be formatted without leading zeroes. > > ? > > > [snip] > >> + qe@100000 { > >> + #address-cells = <1>; > >> + #size-cells = <1>; > >> + device_type = "qe"; > > > > This device_type should not be here. > > deleted. Ok. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson