Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2906807pxa; Tue, 18 Aug 2020 00:49:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeLiadUusCQI8HNH8gNQRCTyTkc3Qbie3iH9Yn3X5dn3lR6L6qv6uPSJSdzJUSPC4N6cd0 X-Received: by 2002:a17:906:6cd:: with SMTP id v13mr18443608ejb.307.1597736995193; Tue, 18 Aug 2020 00:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597736995; cv=none; d=google.com; s=arc-20160816; b=j4kGsDTp33q/yZgoXhLzNIZrv0YY9YT4lBe/TJ8tBChhdF9U+xidb2PNfoF34qeyIe RE9gOwkEKRhAfbZhmNMrhURLxbxkAlDqptUrELBZeggK81rDeVlFm1fkBW/GuUGWM8M4 JSCzD64UzbO9tUHL3AqVX45n/KDg9BrK4ZyaUcEosoztdOEzPUB8HLIe2PQ7w5hGKIKA zNOfukLkq/4vpNuKbM1dKQw2kAoIdPii0hLNi1fQxIyc7FHkHtH4jmIZeUdvG3ooU7G1 S7E045XpmGvn9N1dP3j4Gs6UPioFhn/T0TNZle47XnkVXOOOvEJfSUPpduOsS3mMiPZS lHxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:dlp-filter:cms-type :content-transfer-encoding:mime-version:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=NYk4vyq4/Af59A9O7MoR71/hiPLvorK8FswSuJrxYj0=; b=ya2RtkKGWt875uQeF4A22XzNK52o0MN4aBldv+fazhzBKrr0hUzBGeoq/dtqrTccj/ oLFR51L1QKBKjmpoFENtqHmqB4vL2jlJEXf3v5Ultso2rOi3epXEiPm0xMct9y2JUlU/ 5t38OAO+3DNyVJi8r3rTwy14Z0bovPAm442Qx3Ie6ximV5WXYDONVsUMAVX+6N94nfWB mAFQbD1/RBo2UOLf2Q/D8TILwut79upfojGcBilhn0kTrcwHeHJiQTrgAG5MpEGdoAjW NoW+7ZKPEqr9fO6jdwciJxciNU9ojVVrUoEkLn3U9W0uhGbj8rQUWaxOpxsXvLD/H4Ky YCFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AjkfkoJu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lk1si12980586ejb.504.2020.08.18.00.49.30; Tue, 18 Aug 2020 00:49:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=AjkfkoJu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726675AbgHRHqP (ORCPT + 99 others); Tue, 18 Aug 2020 03:46:15 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:58895 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726624AbgHRHqA (ORCPT ); Tue, 18 Aug 2020 03:46:00 -0400 Received: from epcas2p1.samsung.com (unknown [182.195.41.53]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20200818074557epoutp022ddb8d0c0b184546dab586136d0c5b66~sTR2Jw3582464824648epoutp026 for ; Tue, 18 Aug 2020 07:45:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20200818074557epoutp022ddb8d0c0b184546dab586136d0c5b66~sTR2Jw3582464824648epoutp026 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1597736757; bh=NYk4vyq4/Af59A9O7MoR71/hiPLvorK8FswSuJrxYj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AjkfkoJuNOTE90C4RP+PWEQApHAmmym/NgxeiJXkE5wXPBAQKz6sH67YU4blpc0lR stBa292lreWLA+Ln8I1wSB7AdVxYXo+dRyXeyGq2UsUMxsbN5KDKoWp3FPzo5pJ71/ aGb/7dhLy88ZWuPBMR3QRzk3lfOGgaJ0SR4pa+n8= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20200818074556epcas2p3e533cf487e0aedafeb49bf98bb3f95af~sTR1fFhvt3189631896epcas2p3O; Tue, 18 Aug 2020 07:45:56 +0000 (GMT) Received: from epsmges2p4.samsung.com (unknown [182.195.40.190]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4BW2yq0g06zMqYkw; Tue, 18 Aug 2020 07:45:55 +0000 (GMT) Received: from epcas2p2.samsung.com ( [182.195.41.54]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id B2.7B.27013.2378B3F5; Tue, 18 Aug 2020 16:45:54 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas2p2.samsung.com (KnoxPortal) with ESMTPA id 20200818074554epcas2p2702e648ba975ea6fbe33c84396b152a9~sTRz60yJF2912929129epcas2p2P; Tue, 18 Aug 2020 07:45:54 +0000 (GMT) Received: from epsmgms1p2.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200818074554epsmtrp2a90715301aa5475ea0eb05387cb4b51a~sTRz5weJW3172931729epsmtrp2Y; Tue, 18 Aug 2020 07:45:54 +0000 (GMT) X-AuditID: b6c32a48-d1fff70000006985-f0-5f3b8732f518 Received: from epsmtip2.samsung.com ( [182.195.34.31]) by epsmgms1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 79.78.08303.2378B3F5; Tue, 18 Aug 2020 16:45:54 +0900 (KST) Received: from Dabang.dsn.sec.samsung.com (unknown [12.36.155.59]) by epsmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200818074554epsmtip2c2421d264027b33b380a1078e7784644~sTRzmy3cy2522425224epsmtip2U; Tue, 18 Aug 2020 07:45:54 +0000 (GMT) From: Hyesoo Yu To: sumit.semwal@linaro.org Cc: minchan@kernel.org, akpm@linux-foundation.org, iamjoonsoo.kim@lge.com, joaodias@google.com, linux-mm@kvack.org, pullip.cho@samsung.com, surenb@google.com, vbabka@suse.cz, afd@ti.com, benjamin.gaignard@linaro.org, lmark@codeaurora.org, labbott@redhat.com, Brian.Starkey@arm.com, john.stultz@linaro.org, christian.koenig@amd.com, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, linux-kernel@vger.kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, Hyesoo Yu Subject: [PATCH 3/3] dma-heap: Devicetree binding for chunk heap Date: Tue, 18 Aug 2020 17:04:15 +0900 Message-Id: <20200818080415.7531-4-hyesoo.yu@samsung.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200818080415.7531-1-hyesoo.yu@samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA01Te0xTVxze6e29LWrNteg4wh7dZUYhFlqk5YAwcBBzI86RYJzbEruO3hVm abu2sMmEuclDKiU8ssEKatkcUh5jIDgG4gRJCgQV5ZG6DRUQkjEBlTEmL9dSzPjv+32/7zvf +f1ODhfj53I8uQlqA6NTy1UUsY596ZqPVLgra7dMNPsmmu7O56DS2moCfdXeTaCR7l6AJu+1 4Ohcxw0c9c9OE2gpuxdH1tMnCTRnGcFQz4IQWS//y0J/9w+zUF9zKYFyfmrE0d3qZzgydw2y UPnsNActm9oAymjt4KDuoRkOKrxtIVDJl7kg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Irqd51QR9XnJsyvWcJg32o ZJoEXSkBgs3lkp3GcP2lQJAnfV1kjMgEP+O+L3SdccllFUPtMSKLITLzg7T7jX+cz4JmuH6t 0/60a15BZs2yF9qYd9ApxJUJ4hARS6EU/wVwY7QAXAMAAA== X-CMS-MailID: 20200818074554epcas2p2702e648ba975ea6fbe33c84396b152a9 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: AUTO_CONFIDENTIAL CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20200818074554epcas2p2702e648ba975ea6fbe33c84396b152a9 References: <20200818080415.7531-1-hyesoo.yu@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document devicetree binding for chunk heap on dma heap framework Signed-off-by: Hyesoo Yu --- .../devicetree/bindings/dma-buf/chunk_heap.yaml | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma-buf/chunk_heap.yaml diff --git a/Documentation/devicetree/bindings/dma-buf/chunk_heap.yaml b/Documentation/devicetree/bindings/dma-buf/chunk_heap.yaml new file mode 100644 index 0000000..1ee8fad --- /dev/null +++ b/Documentation/devicetree/bindings/dma-buf/chunk_heap.yaml @@ -0,0 +1,46 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/dma-buf/chunk_heap.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Device tree binding for chunk heap on DMA HEAP FRAMEWORK + +maintainers: + - Sumit Semwal + +description: | + The chunk heap is backed by the Contiguous Memory Allocator (CMA) and + allocates the buffers that are made up to a list of fixed size chunks + taken from CMA. Chunk sizes are configurated when the heaps are created. + +properties: + compatible: + enum: + - dma_heap,chunk + +required: + - compatible + - memory-region + - alignment + +additionalProperties: false + +examples: + - | + reserved-memory { + #address-cells = <2>; + #size-cells = <1>; + + chunk_memory: chunk_memory { + compatible = "shared-dma-pool"; + reusable; + size = <0x10000000>; + }; + }; + + chunk_default_heap: chunk_default_heap { + compatible = "dma_heap,chunk"; + memory-region = <&chunk_memory>; + alignment = <0x10000>; + }; -- 2.7.4