Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4067792pxb; Tue, 17 Nov 2020 10:22:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZ7aIuCJi/vdgJggTAsjoZhlRoMGVDuXZVfwaIuTSaimcJcW9rj7vSuAeRa70kPtp5wEYZ X-Received: by 2002:aa7:d502:: with SMTP id y2mr22443008edq.120.1605637333172; Tue, 17 Nov 2020 10:22:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605637333; cv=none; d=google.com; s=arc-20160816; b=ZHb84Q1OistMFpe3Oc6zhOTCdrmCXKA78xZu7mGFlNFmPlaO63cIE2TucGnjg4SPvX yHvPxjT9t7SIGW0OzUJDBcM/ZHrNH6dByKThkd8ryT2GC4kk9XhQ8MHIpdKDW/DHuedy oeEjXfXYvB5eyfjPhbfLEiE1K4RkNtGjhOp81walbIksKr3GaG1LPD8bW7Dk7pVpDrxv gg3HwKGBsn6RTTurd6FzwrDx3/9IwORrRdRz71Wgk3M8YAE2EfvCN69/lUiuLzlK9TBr ByG+NKhfLPydt7Yo02DU78QYn6+ritg+hbOejt9Taf+bF/kJXgY1QB8xIdcd1ovyIZ8c QSGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:sender :dkim-signature; bh=FbR8FBZ8v9oRIOK3rZ6XdWYjeIbKFf31XDvQwkSkmGg=; b=xSbV6vLU33wQXixuON9hilEMEJGsEb50sAwHIP+sxBlZInHV3ve9d8oc+sJxJDl10G c1pLkVpCHYrFYHcLDBa/IhYUzdKGN1Lvb6BU9Mq24DHbEXFR2eQ2/divTAVgq3xmSWhr y04JsQ0l00nnoW4dYUZorrqtX1cn4MZRJy33qtq7wrpM0oAzQ3zh97bcnHfFjWr4p97N Cx7BPDDHAnD4qRNohcpPsZFbkmZ2H+GajjJA8WL8o7hnw1riq1p4+x0Yqu/zlCCI5/Vo HUUXzpY1PPlxbFA1VvsCl3ZOSIn5g+7bfe6UztJEennXjpPqKMBiHvpgcv5Y80mfdT0N +acQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ONymwN4v; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz19si3738279ejb.238.2020.11.17.10.21.43; Tue, 17 Nov 2020 10:22:13 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=ONymwN4v; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730523AbgKQST5 (ORCPT + 99 others); Tue, 17 Nov 2020 13:19:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730534AbgKQSTz (ORCPT ); Tue, 17 Nov 2020 13:19:55 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2577C0613CF; Tue, 17 Nov 2020 10:19:55 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id f18so16563831pgi.8; Tue, 17 Nov 2020 10:19:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FbR8FBZ8v9oRIOK3rZ6XdWYjeIbKFf31XDvQwkSkmGg=; b=ONymwN4v702ZwagKvnMijNuBl6CFcG6m7iSi/X/p3JHQERk+7YhRRnwIsAQnzbzLrn JszoxS2Govb2yKO3jW7iuS6PpImRZPjbxPC21Stn1Pp+mYa+oRhcodUSyxKYBxWhanf8 Nf6U1Bh38Ij8hrlEWj3tacl+yhlsE82tB3P1oHIv4MLpFGgFjSKIZUV69pDHusbBWt2U iCNCCHZWZj3ibUzIZP5mkcY03yF7ceeljrKL03zVouTD9zdw0lvKP//ukKZaVh52XC+e Wp4HWWtYV2F7XkuK13BPNKQhGkYONBSiE8gNSU1BiuWGXNBZZWxV6kmVVofoQu1slgvI Tluw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=FbR8FBZ8v9oRIOK3rZ6XdWYjeIbKFf31XDvQwkSkmGg=; b=RJ3Klbw2ymcZDPDBMj5cKf0cdohx3E360G+pojgd4XWJjloDlr+QJjj7R9MWI9Hqz9 whdAnLAjUv12y5HZMqLc7YYDx7JoC/XxdJ8/FEytU0S3E241D0wQJ9Ki61v/jv7PSfOn 6bRj9e0rxlaA2s7yLJjD5PIYweu0BmXiVFZzZ4JDw6T4XIrPopbOeTh4qy/s+geHFnMY ZmS482/GD8Wy18o9ae+W+nQlhctBEMo5ZvRqyZtA282jXYpfvNC8vg67+5x5Y2MZn3Is PC18nhqco4LvCCtgcJ/0K8Cr9NWSy7ZzQ+t0wbEU73oEZ9hIe2JbOYxKsndJkf9He6WX zAKQ== X-Gm-Message-State: AOAM5324katgqzXD7EEcj+c3xrykP9mjuMXo6JPvPSo6C8Yyv4q8PxWS 4BqcaKsk+nJqSPsgXLkWxgU= X-Received: by 2002:a62:d11b:0:b029:18b:b3e:95aa with SMTP id z27-20020a62d11b0000b029018b0b3e95aamr554667pfg.3.1605637195227; Tue, 17 Nov 2020 10:19:55 -0800 (PST) Received: from bbox-1.mtv.corp.google.com ([2620:15c:211:201:7220:84ff:fe09:5e58]) by smtp.gmail.com with ESMTPSA id h8sm4302639pjc.54.2020.11.17.10.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Nov 2020 10:19:54 -0800 (PST) Sender: Minchan Kim From: Minchan Kim To: Andrew Morton Cc: LKML , linux-mm , hyesoo.yu@samsung.com, willy@infradead.org, david@redhat.com, iamjoonsoo.kim@lge.com, vbabka@suse.cz, surenb@google.com, pullip.cho@samsung.com, joaodias@google.com, hridya@google.com, sumit.semwal@linaro.org, john.stultz@linaro.org, Brian.Starkey@arm.com, linux-media@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, christian.koenig@amd.com, linaro-mm-sig@lists.linaro.org, Minchan Kim Subject: [PATCH 4/4] dma-heap: Devicetree binding for chunk heap Date: Tue, 17 Nov 2020 10:19:35 -0800 Message-Id: <20201117181935.3613581-5-minchan@kernel.org> X-Mailer: git-send-email 2.29.2.299.gdc1121823c-goog In-Reply-To: <20201117181935.3613581-1-minchan@kernel.org> References: <20201117181935.3613581-1-minchan@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hyesoo Yu Document devicetree binding for chunk heap on dma heap framework Signed-off-by: Hyesoo Yu Signed-off-by: Minchan Kim --- .../bindings/dma-buf/chunk_heap.yaml | 52 +++++++++++++++++++ 1 file changed, 52 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 000000000000..f382bee02778 --- /dev/null +++ b/Documentation/devicetree/bindings/dma-buf/chunk_heap.yaml @@ -0,0 +1,52 @@ +# 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 + + memory-region: + maxItems: 1 + + alignment: + maxItems: 1 + +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.29.2.299.gdc1121823c-goog