Go to file
David Gibson 32da475af1 Allow multipart property values
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 <dwg@au1.ibm.com>
Signed-off-by: Jon Loeliger <jdl@freescale.com>
2007-02-08 17:26:41 -06:00
Documentation Add paper on the flattened tree and dtc presented at linux.conf.au 2006 by 2006-01-31 16:17:59 +11:00
tests Add missing file. 2005-07-04 13:51:09 +10:00
.gitignore Add a .gitignore file. 2005-10-21 17:28:42 +10:00
COPYING Initial commit 2005-06-08 17:18:34 +10:00
Makefile Add ftdump utility, contributed by Pantelis Antoniou. 2005-08-29 14:58:27 +10:00
TODO Update TODO 2005-10-19 16:29:52 +10:00
comment-test.dts Initial label support. Also switch to glr-parser mode and get rid of 2005-06-16 14:36:37 +10:00
data.c Allow multipart property values 2007-02-08 17:26:41 -06:00
dtc-lexer.l Allow multipart property values 2007-02-08 17:26:41 -06:00
dtc-parser.y Allow multipart property values 2007-02-08 17:26:41 -06:00
dtc.c Change default output blob version from 3 to 16 2006-11-01 08:15:18 -06:00
dtc.h Allow multipart property values 2007-02-08 17:26:41 -06:00
flat_dt.h Add ftdump utility, contributed by Pantelis Antoniou. 2005-08-29 14:58:27 +10:00
flattree.c dtc: fix endian issue when reading blobs 2006-07-07 09:30:44 -05:00
fstree.c Rework tracking of reserve entries during processing. This is initial work 2005-10-24 18:18:38 +10:00
ftdump.c Add ftdump utility, contributed by Pantelis Antoniou. 2005-08-29 14:58:27 +10:00
libdt.c Add copyright. Fix 80-column line. 2006-06-24 15:52:48 -05:00
livetree.c Bugfix for CHECK_HAVE_WARN_PHANDLE() 2007-01-31 07:39:57 -06:00
test.dts Allow multipart property values 2007-02-08 17:26:41 -06:00
treesource.c Use names for output functions in the form dt_to_*() instead of 2005-10-26 16:56:26 +10:00