From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from nommos.sslcatacombnetworking.com (nommos.sslcatacombnetworking.com [67.18.224.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 5A6AEDDFC2 for ; Wed, 7 Feb 2007 15:51:04 +1100 (EST) In-Reply-To: <20070207044616.GF23870@localhost.localdomain> References: <20070207032343.GD23870@localhost.localdomain> <41B393C3-9A8F-46EC-9B47-FCF8E0733994@kernel.crashing.org> <20070207044616.GF23870@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: From: Kumar Gala Subject: Re: [dtc] Allow multipart property values Date: Tue, 6 Feb 2007 22:50:09 -0600 To: David Gibson Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Feb 6, 2007, at 10:46 PM, David Gibson wrote: > On Tue, Feb 06, 2007 at 10:37:25PM -0600, Kumar Gala wrote: >> >> On Feb 6, 2007, at 9:23 PM, David Gibson wrote: >> >>> At present each property definition in a dts file must give as the >>> value either a string ("abc..."), a bytestring ([12abcd...]) or a >>> cell >>> list (<1 2 3 ...>). This patch allows a property value to be >>> given as >>> several of these, comma-separated. The final property value is just >>> the components appended together. So a property could have a >>> list of >>> cells followed by a string, or a bytestring followed by some cells. >>> Cells are always aligned, so if cells are given following a >>> string or >>> bytestring which is not a multiple of 4 bytes long, zero bytes are >>> inserted to align the following cells. >>> >>> The primary motivation for this feature, however, is to allow >>> defining >>> a property as a list of several strings. This is what's needed for >>> defining OF 'compatible' properties, and is less ugly and fiddly >>> than >>> using embedded \0s in the strings. >>> >>> Signed-off-by: David Gibson >> >> Mind adding examples to the testsuite? > > What testsuite...? Well there was a tests/ dir and test.dts :) How about adding something to test.dts or an example.dts that shows various new things you just added. - k