devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/3] Devicetree bindings for Ion
@ 2015-11-17  0:57 Laura Abbott
  2015-11-17  0:57 ` [PATCHv2 2/3] staging: ion: Add files for parsing the devicetree Laura Abbott
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Laura Abbott @ 2015-11-17  0:57 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand, Sumit Semwal, Andrew Andrianov, arve,
	Riley Andrews
  Cc: devel, devicetree, Feng Tang, Tom Gall, romlem,
	Greg Kroah-Hartman, linux-kernel, Colin Cross, John Stultz,
	Grant Likely, Laura Abbott, linux-arm-kernel, Marek Szyprowski



Hi,

This is another attempt at devicetree bindings for Ion. The big complaint from
v1 was that too much unnecessary data was being pushed into devicetree.
v2 takes a different approach of using just compatbile strings for the heaps.
This gets closer to the devicetree philosophy of describing just the hardware.
Each heap ultimately represents some kind of memory that exists in the system.
The compatible string indicates the match for how to handle the type of memory
on this system. The details like heap-id, name etc. are now pushed out to C
files. This makes Ion heaps look closer to something like a quirks framework.
(I'd argue this isn't a complete mischaracterization given the type of setup
Ion gets used for...) The one downside here is that this leads to more new
bindings for each board that gets added.

This version also includes a sample C file which shows what the structure
might look like. As always, your comments and reviews are appreciated.

Thanks,
Laura

Laura Abbott (3):
  ion: Devicetree bindings for Ion
  staging: ion: Add files for parsing the devicetree (WIP)
  NOMERGE: Sample driver

 drivers/staging/android/ion/Kconfig         |  16 +++
 drivers/staging/android/ion/Makefile        |   2 +
 drivers/staging/android/ion/devicetree.txt  |  50 +++++++++
 drivers/staging/android/ion/ion_of.c        | 168 ++++++++++++++++++++++++++++
 drivers/staging/android/ion/ion_of.h        |  35 ++++++
 drivers/staging/android/ion/ion_of_sample.c |  96 ++++++++++++++++
 6 files changed, 367 insertions(+)
 create mode 100644 drivers/staging/android/ion/devicetree.txt
 create mode 100644 drivers/staging/android/ion/ion_of.c
 create mode 100644 drivers/staging/android/ion/ion_of.h
 create mode 100644 drivers/staging/android/ion/ion_of_sample.c

-- 
2.5.0

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

end of thread, other threads:[~2015-11-17 19:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17  0:57 [PATCHv2 0/3] Devicetree bindings for Ion Laura Abbott
2015-11-17  0:57 ` [PATCHv2 2/3] staging: ion: Add files for parsing the devicetree Laura Abbott
2015-11-17  6:15   ` Dan Carpenter
2015-11-17  0:57 ` [PATCHv2 3/3] NOMERGE: Sample driver Laura Abbott
     [not found] ` <1447721855-7574-1-git-send-email-laura-0PSzFVTn/CLa5EbDDlwbIw@public.gmane.org>
2015-11-17  0:57   ` [PATCHv2 1/3] ion: Devicetree bindings for Ion Laura Abbott
2015-11-17 15:15   ` [PATCHv2 0/3] " Arnd Bergmann
2015-11-17 19:02     ` Laura Abbott

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).