devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Variable sized cell support
@ 2011-09-21 20:42 Anton Staaf
       [not found] ` <1316637731-21872-1-git-send-email-robotboy-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Anton Staaf @ 2011-09-21 20:42 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

This patch set adds, tests, and documents support for variable sized cells in
cell arrays.  The new syntax is:

    property = /size/ [8|16|32|64] <0x00 .... 0x12>;

So cell arrays of 8, 16, 32, or 64-bits can now be created.  No padding is
done on the resulting cell array.  So if three 8-bit cells are specified the
resulting property will contain three bytes.

This patch set assumes that the character literals in cell lists patch has
already been applied to your tree as it uses them in it's test case and the
diff will not apply cleanly to TOT without the character literals patch because
both patch sets modify the same locations in the parser.  You do not need to
apply the character literal support in bytestrings patch however.

Anton Staaf (3):
  libfdt: Add fdt16_to_cpu utility function
  dtc: Add data_append_literal function
  dtc: Add support for variable sized cells

 Documentation/dts-format.txt |   18 +++++++-
 data.c                       |   33 ++++++++++++++++
 dtc-lexer.l                  |    6 +++
 dtc-parser.y                 |   59 +++++++++++++++++++----------
 dtc.h                        |    5 ++
 libfdt/libfdt_env.h          |    6 +++
 tests/.gitignore             |    1 +
 tests/Makefile.tests         |    1 +
 tests/run_tests.sh           |    3 +
 tests/sized_cells.c          |   84 ++++++++++++++++++++++++++++++++++++++++++
 tests/sized_cells.dts        |   11 +++++
 tests/testdata.h             |    2 +
 12 files changed, 205 insertions(+), 24 deletions(-)
 create mode 100644 tests/sized_cells.c
 create mode 100644 tests/sized_cells.dts

-- 
1.7.3.1

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2011-09-23 17:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-21 20:42 [PATCH 0/3] Variable sized cell support Anton Staaf
     [not found] ` <1316637731-21872-1-git-send-email-robotboy-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-21 20:42   ` [PATCH 1/3] libfdt: Add fdt16_to_cpu utility function Anton Staaf
     [not found]     ` <1316637731-21872-2-git-send-email-robotboy-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-22  2:25       ` David Gibson
2011-09-21 20:42   ` [PATCH 2/3] dtc: Add data_append_literal function Anton Staaf
     [not found]     ` <1316637731-21872-3-git-send-email-robotboy-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-22  2:33       ` David Gibson
     [not found]         ` <20110922023328.GF22223-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2011-09-22 17:57           ` Anton Staaf
     [not found]             ` <CAF6FioWE+ybLhXmfw8OUMTXiJ3Hi-ErDai_J63trcahSwSLOag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-23  0:13               ` David Gibson
     [not found]                 ` <20110923001345.GA12286-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2011-09-23  3:25                   ` Anton Staaf
     [not found]                     ` <CAF6FioXEh+nACgBV924cPf+MoHUpYdazG8n=JG5dmqSgUu84hg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-23 17:02                       ` Anton Staaf
2011-09-21 20:42   ` [PATCH 3/3] dtc: Add support for variable sized cells Anton Staaf
     [not found]     ` <1316637731-21872-4-git-send-email-robotboy-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org>
2011-09-22  2:42       ` David Gibson
     [not found]         ` <20110922024255.GG22223-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2011-09-22 18:02           ` Anton Staaf
     [not found]             ` <CAF6FioV55CX9wBo5d1nKV=_t4+6BtHS6_hays08ZVgs2eDFvtA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-09-23  0:14               ` David Gibson
2011-09-22  2:26   ` [PATCH 0/3] Variable sized cell support David Gibson
     [not found]     ` <20110922022634.GE22223-787xzQ0H9iQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2011-09-22 17:54       ` Anton Staaf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).