From patchwork Fri Oct 25 22:50:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 177795 Delivered-To: patches@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp168692ill; Fri, 25 Oct 2019 15:50:17 -0700 (PDT) X-Received: by 2002:a63:4d0d:: with SMTP id a13mr2915600pgb.451.1572043817593; Fri, 25 Oct 2019 15:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572043817; cv=none; d=google.com; s=arc-20160816; b=f0Sm569uxfdPfETWhHJAakvlNanj3GG8ojWFVix1s8PXa8y1vDpQXzLKMpHAWGeAFU P7Tu6fr/DnW8RnbYWuEWzGJP/QcRKQgOBt5Fvz8+FYz4KNif9+dPKWFF1pfvHJX8U8pM ZS6hPNF7aH7amBTHiIh4cLycqedwv9YEQrCDhYraIHpaDBFp4CQ/mHxPEn9TJxuewIgR qYH3Hm50AFRbnGAHOPwgBLIN3dmqTLMNPRdF2Qc8EAyyut5RSxt0mLQ+t8k8L6BRNbQT 2sUtJiy9kLMZeiAzOYh6TZ1s0bQcKJca5XTz8Owkq4UO+eOrfTnNT9xLN1AxqRZ3YT1c lDDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/QsSnbqT/vxBzyqQX0KdepymXuDj6dGQtXlO9dbOSkk=; b=hBvAC37/JhXeV+w2r4PFDZZFJU9gcIfmCeNDwawxpmg9P7JAs7Kf/1dZXH793Y3Qth R3XftkmiWjc8iXoTTpcMNMKghsXRTtN/hewGAoFRpF9gggrrG49IDh+jI7/Mu9velxPu dRWi1HCvQEy1KhanVuEBat5MOA6LjjGwWJnqcfger/V+8q/Q95PbZ/+NcssIBoJK+WGE 9GZOc3Myw2OS//Iw7F3O/1ILCTFYIdPAWXc/fkQchxU408cbCkF4zux8ade2ctbW35HC 9P24/sOtW02gsXKpDyX9lWDXNmfB2m0TNbME3b0llihXTlu63pPRM6Oc9DnTZpgP0QMe ObvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QuTmYOTq; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id a30sor3551658pgb.48.2019.10.25.15.50.17 for (Google Transport Security); Fri, 25 Oct 2019 15:50:17 -0700 (PDT) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QuTmYOTq; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/QsSnbqT/vxBzyqQX0KdepymXuDj6dGQtXlO9dbOSkk=; b=QuTmYOTqrurVmJ/xuipLBhM7GLFY5pGr1iJX3QKVdcKK/H8I/5AdYHQwYMY2NUiqXc AxSegHg7VxQ7X/0azpl7Q8w46j+KDFXLJrEkkWcH6302yTkS51/vcbuJFQHzVwUgBWj6 JzKzOF5iC3EH7xZqAoCQULcCl2yXADIIzruVCenqNO7lW51zLg2HmLfFuT1VYsYAmSL3 3hnxUHcxN+1kHcPwaaGoAQ+jv/eXxBlLQUSk4/h9aGt3i0AK0wdV7K8dTsU2mZ3h+46J Faj4npHwJnvDE245x+lkyKBoXHWzL1LDqC/pK//cfEiAkdcXSCixwBIguLUCDpUHNjem amjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/QsSnbqT/vxBzyqQX0KdepymXuDj6dGQtXlO9dbOSkk=; b=rvn/Kqs1/2+Dz7xIVgWcZevkmKCbH2wg6kSa0MyM3dGWCDjJe4iC+hzXIN48oIW3Wy kHDTBgXDA90oToWyxSmWbYY/uoN6cKLtVcMoYk9sucXaLOAG+HJQD2uZPEBCwQ4A9R1h M6iLFBd7AQvLXgipjNZ17NHuK2gbbzMRNfyTa/Cs5FwuEa59dmb8e3LrBD5Zl2Q+lvLX c4eWKd9EKBgkofcJkJJWKLegzX4SlKmKEwIESiwzTKoFaqjiGfdriHd2YT8qxUwj0ZBp ORAgiBw4a0p9Qub5mv7NiM5q3ExlQZeEtYpmE+1dBw273fHRpla6AbOyAIUg0DGNmWD8 wPuQ== X-Gm-Message-State: APjAAAVQ0gfY93JDQ3YjWWTvRqoc8Smu4DxWt6F+u17y1UWfcBp/hhnF gD3qfCCSodmIxDVPg6/O9DqSPt9L X-Google-Smtp-Source: APXvYqziC/rX8OG0ZvE60odRUgM4+OMxyzH9YT1VE6orCRtoxz0Nkzr2UbFad4Lx05yIE7lyxETSEw== X-Received: by 2002:a63:5c21:: with SMTP id q33mr7104380pgb.78.1572043817153; Fri, 25 Oct 2019 15:50:17 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id o15sm2758018pjs.14.2019.10.25.15.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 15:50:16 -0700 (PDT) From: John Stultz To: lkml Cc: John Stultz , Rob Herring , Mark Rutland , Laura Abbott , Benjamin Gaignard , Sumit Semwal , Liam Mark , Pratik Patel , Brian Starkey , "Andrew F . Davis" , Chenbo Feng , Alistair Strachan , Sandeep Patil , Hridya Valsaraju , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [RFC][PATCH 1/3] dt-bindings: dma-buf: heaps: Describe CMA regions to be added to dmabuf heaps interface. Date: Fri, 25 Oct 2019 22:50:07 +0000 Message-Id: <20191025225009.50305-2-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191025225009.50305-1-john.stultz@linaro.org> References: <20191025225009.50305-1-john.stultz@linaro.org> This binding specifies which CMA regions should be added to the dmabuf heaps interface. Cc: Rob Herring Cc: Mark Rutland Cc: Laura Abbott Cc: Benjamin Gaignard Cc: Sumit Semwal Cc: Liam Mark Cc: Pratik Patel Cc: Brian Starkey Cc: Andrew F. Davis Cc: Chenbo Feng Cc: Alistair Strachan Cc: Sandeep Patil Cc: Hridya Valsaraju Cc: devicetree@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: John Stultz --- .../bindings/dma/dmabuf-heap-cma.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/dma/dmabuf-heap-cma.txt -- 2.17.1 diff --git a/Documentation/devicetree/bindings/dma/dmabuf-heap-cma.txt b/Documentation/devicetree/bindings/dma/dmabuf-heap-cma.txt new file mode 100644 index 000000000000..bde7b1f1c269 --- /dev/null +++ b/Documentation/devicetree/bindings/dma/dmabuf-heap-cma.txt @@ -0,0 +1,31 @@ +* DMA-BUF CMA Heap + +Specifies a CMA region that should be added to the dma-buf heaps +interface. + +Required properties: +- compatible: Must be "dmabuf-heap-cma" +- memory-region: phandle to a CMA reserved memory node + +Example: +This example has a camera CMA node in reserved memory, which is then +referenced by the dmabuf-heap-cma node. + + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + ... + cma_camera: cma-camera { + compatible = "shared-dma-pool"; + reg = <0x0 0x24C00000 0x0 0x4000000>; + reusable; + }; + ... + }; + + cma_heap { + compatible = "dmabuf-heap-cma"; + memory-region = <&cma_camera>; + };