Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1270735

[PATCHv2 1/3] ion: Devicetree bindings for Ion

Path csiph.com!xmission!news.glorb.com!bofh.it!news.nic.it!robomod
From Laura Abbott <laura@labbott.name>
Newsgroups linux.kernel
Subject [PATCHv2 1/3] ion: Devicetree bindings for Ion
Date Tue, 17 Nov 2015 02:00:03 +0100
Message-ID <qvCMP-6dd-31@gated-at.bofh.it> (permalink)
References <qvCMN-6dd-7@gated-at.bofh.it>
X-Original-To Rob Herring <robh+dt@kernel.org>, Frank Rowand <frowand.list@gmail.com>, Sumit Semwal <sumit.semwal@linaro.org>, Andrew Andrianov <andrew@ncrmnt.org>, <arve@android.com>, Riley Andrews <riandrews@android.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=labbott.name; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=o9IHzBXDbq7WSpZDCYxzFhINt47x61VtJOA4uzMH9Yw=; b=Ja4GZqtd9zMHuQne6O/VxDdiBxuQXfXVboQY0PCxAZj2G1ywvqI5iduA8l9PKacfqj DTSd7pmvnogBka9BNmGpdcqtb9Dyu7AEf6dwESesjwr1K58wWGYo/QvoUbBv9sn9Vvc7 7VVbbMk7WnPs0xEpwn2ZyJTsfxs1P8v6MTKSo=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o9IHzBXDbq7WSpZDCYxzFhINt47x61VtJOA4uzMH9Yw=; b=Xl7C1bfkOdJnpTvYcYaTjnC89hEpTp+R+I0LQ/iPX84FSIitcbWVvCDYDBYKk0Ew+v Y6mvHvI7Jn4r7ohsAaPP9A0icawLcIw6J7Cv8QBvLSch8UF9tu5ku1f9MIbYR9DXUyw7 A7g5Rmrx0BrB3ahzfiZUgJ8oSSd/y09nand9cR8dQkzu35kpZkjwGjJVT3WmYKCPVnrX UI/EMqrzonYaWL+TsJXBaZi8DeRXjeyIHXRb2dLLiZ3S/w1R2YIv3VSm7YPS7G5d5etl wu31VMO/c+O/VovQqyRUWNtEHQ5mrbLph5256J0nGNB8DqwYh4v/UnZOW5t1uP7Mkas1 DXDw==
X-Gm-Message-State ALoCoQnF8cZqznzVdWkOJUf5zpyM5NAbg8j9+2VvpV8/yTEDM46P0xUKFI8kcAByn++310Ok7jDI
X-Received by 10.67.5.193 with SMTP id co1mr57920973pad.134.1447721863842; Mon, 16 Nov 2015 16:57:43 -0800 (PST)
X-Mailer git-send-email 2.5.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 75
Organization linux.* mail to news gateway
X-Original-Cc Laura Abbott <laura@labbott.name>, John Stultz <john.stultz@linaro.org>, Grant Likely <grant.likely@linaro.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tom Gall <tom.gall@linaro.org>, Colin Cross <ccross@google.com>, devel@driverdev.osuosl.org, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, romlem@google.com, mitchelh@codeaurora.org, linux-arm-kernel@lists.infradead.org, Feng Tang <feng.tang@intel.com>, Marek Szyprowski <m.szyprowski@samsung.com>
X-Original-Date Mon, 16 Nov 2015 16:57:33 -0800
X-Original-Message-ID <1447721855-7574-2-git-send-email-laura@labbott.name>
X-Original-References <1447721855-7574-1-git-send-email-laura@labbott.name>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1270735

Show key headers only | View raw


This adds a base set of devicetree bindings for the Ion memory
manager. This supports setting up the generic set of heaps and
their properties.

Signed-off-by: Laura Abbott <laura@labbott.name>
---
 drivers/staging/android/ion/devicetree.txt | 50 ++++++++++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 drivers/staging/android/ion/devicetree.txt

diff --git a/drivers/staging/android/ion/devicetree.txt b/drivers/staging/android/ion/devicetree.txt
new file mode 100644
index 0000000..e1ea537
--- /dev/null
+++ b/drivers/staging/android/ion/devicetree.txt
@@ -0,0 +1,50 @@
+Ion Memory Manager
+
+Ion is a memory manager that allows for sharing of buffers via dma-buf.
+Ion allows for different types of allocation via an abstraction called
+a 'heap'. A heap represents a specific type of memory. Each heap has
+a different type. There can be multiple instances of the same heap
+type.
+
+Required properties for Ion
+
+- compatible: "linux,ion" PLUS a compatible property for the device
+
+All child nodes of a linux,ion node are interpreted as heaps
+
+required properties for heaps
+
+- compatible: compatible string for a heap type PLUS a compatible property
+for the specific instance of the heap. Current heap types
+-- linux,ion-heap-system
+-- linux,ion-heap-system-contig
+-- linux,ion-heap-carveout
+-- linux,ion-heap-chunk
+-- linux,ion-heap-dma
+-- linux,ion-heap-custom
+
+Optional properties
+- memory-region: A phandle to a memory region. Required for DMA heap type
+(see reserved-memory.txt for details on the reservation)
+
+Example:
+
+	ion {
+		compatbile = "qcom,msm8916-ion", "linux,ion";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ion-system-heap {
+			compatbile = "qcom,system-heap", "linux,ion-heap-system"
+		};
+
+		ion-camera-region {
+			compatible = "qcom,camera-heap", "linux,ion-heap-dma"
+			memory-region = <&camera_region>;
+		};
+
+		ion-fb-region {
+			compatbile = "qcom,fb-heap", "linux,ion-heap-dma"
+			memory-region = <&fb_region>;
+		};
+	}
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCHv2 0/3] Devicetree bindings for Ion Laura Abbott <laura@labbott.name> - 2015-11-17 02:00 +0100
  [PATCHv2 1/3] ion: Devicetree bindings for Ion Laura Abbott <laura@labbott.name> - 2015-11-17 02:00 +0100
  [PATCHv2 2/3] staging: ion: Add files for parsing the devicetree Laura Abbott <laura@labbott.name> - 2015-11-17 02:00 +0100
    Re: [PATCHv2 2/3] staging: ion: Add files for parsing the devicetree Dan Carpenter <dan.carpenter@oracle.com> - 2015-11-17 07:20 +0100
  Re: [PATCHv2 0/3] Devicetree bindings for Ion Arnd Bergmann <arnd@arndb.de> - 2015-11-17 16:20 +0100
    Re: [PATCHv2 0/3] Devicetree bindings for Ion Laura Abbott <laura@labbott.name> - 2015-11-17 20:10 +0100

csiph-web