From patchwork Mon Jan 11 21:39:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laura Abbott X-Patchwork-Id: 8011601 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id A15479F88A for ; Mon, 11 Jan 2016 21:41:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CAE8320173 for ; Mon, 11 Jan 2016 21:41:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 044D820172 for ; Mon, 11 Jan 2016 21:41:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aIkC9-0003fC-Iz; Mon, 11 Jan 2016 21:40:09 +0000 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aIkBv-0002or-1f for linux-arm-kernel@lists.infradead.org; Mon, 11 Jan 2016 21:39:55 +0000 Received: by mail-pf0-x234.google.com with SMTP id n128so50695544pfn.3 for ; Mon, 11 Jan 2016 13:39:34 -0800 (PST) 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=DKEEXkwZ4hW+bBn2EhdFi6TXgS+fuggVNO7siW6Z0kSnfJH8LJEOzLEsc/dNocLNbk Yr5Bpx1dXvR68UZydWjznennkiW6Fj0Duu1UOfUcnAIcoYYq973DVrROQOu0yp9w4nov HMp2X9CZOdxGm/DfuwLIfQ1gNp1FIXCeTyBes= 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=QThFiyZlLtlnZ11Qb89GAmL7XmMsM6xB5vXnuUl55j8MNT+f+VFkRREHXGWwZjgj5f 53onVM/fVi91C6ArCElPxodzd1CFFOF6ztqGWYG5CDwpNjuEi03xadLGEU54mAE9EpBY wT6Ldl1kfpQwL67e7d87SrhsJmGh4uSAp2CptflKY2pbWhOSvxkn/TGGvR94pafXEjXw ytENEWxXysURyjOKRXYECYrRGQv80ppngcDDcfroQ8LAY7yZJVkmcNogAEXi6s0s5p47 EnKeBZD2PMsIDZeKVgsYnI8Gd9AZzUFZYHzRMK2vwtHOOo3qU+SRsszrJLNw8bHY+BBT l9yw== X-Gm-Message-State: ALoCoQnX+1lXUkT9NLvlqDIQFEPm+xSdRACGnDl2jQmAeH26HlCSz89gkhQHjCLHJyJ4mOP5qRlR8rnWbOkeHg4CwJVUKM3Atw== X-Received: by 10.98.68.211 with SMTP id m80mr29447840pfi.117.1452548374335; Mon, 11 Jan 2016 13:39:34 -0800 (PST) Received: from localhost.net ([2601:602:8b00:aef6:da97:baff:fe80:3e00]) by smtp.gmail.com with ESMTPSA id fl9sm187847396pab.33.2016.01.11.13.39.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jan 2016 13:39:33 -0800 (PST) From: Laura Abbott To: Rob Herring , Frank Rowand , Sumit Semwal , Andrew Andrianov , , Riley Andrews Subject: [RESEND][PATCHv2 1/3] ion: Devicetree bindings for Ion Date: Mon, 11 Jan 2016 13:39:22 -0800 Message-Id: <1452548364-9522-2-git-send-email-laura@labbott.name> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1452548364-9522-1-git-send-email-laura@labbott.name> References: <1452548364-9522-1-git-send-email-laura@labbott.name> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160111_133955_168106_8E3D1A34 X-CRM114-Status: GOOD ( 12.59 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org, Feng Tang , Tom Gall , romlem@google.com, Greg Kroah-Hartman , Mark Rutland , linux-kernel@vger.kernel.org, Colin Cross , John Stultz , Grant Likely , Laura Abbott , mitchelh@codeaurora.org, linux-arm-kernel@lists.infradead.org, Marek Szyprowski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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>; + }; + }