devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Herring <robh+dt@kernel.org>
To: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: "linux-media@vger.kernel.org" <linux-media@vger.kernel.org>,
	"linux-samsung-soc@vger.kernel.org"
	<linux-samsung-soc@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Sylwester Nawrocki <s.nawrocki@samsung.com>,
	Kamil Debski <k.debski@samsung.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Andrzej Hajda <a.hajda@samsung.com>,
	Kukjin Kim <kgene@kernel.org>,
	Krzysztof Kozlowski <k.kozlowski@samsung.com>,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	Frank Rowand <frowand.list@gmail.com>,
	Grant Likely <grant.likely@linaro.org>
Subject: Re: [PATCH v3 3/7] of: reserved_mem: add support for named reserved mem nodes
Date: Mon, 4 Jan 2016 15:36:29 -0600	[thread overview]
Message-ID: <CAL_JsqJb0z_A0ypZ-0-HTgke5uV2AJxf8cWN1OfiQ334e9MJjw@mail.gmail.com> (raw)
In-Reply-To: <568A7A4A.4000308@samsung.com>

On Mon, Jan 4, 2016 at 7:57 AM, Marek Szyprowski <m.szyprowski@samsung.com> wrote:
> Hi Rob,
>
>
> On 2015-12-31 00:25, Rob Herring wrote:
>>
>> On Wed, Dec 16, 2015 at 9:37 AM, Marek Szyprowski
>> <m.szyprowski@samsung.com> wrote:
>>>
>>> This patch allows device drivers to initialize more than one reserved
>>> memory region assigned to given device. When driver needs to use more
>>> than one reserved memory region, it should allocate child devices and
>>> initialize regions by index or name for each of its child devices.
>>>
>>> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
>>> ---
>>>   .../bindings/reserved-memory/reserved-memory.txt   |   2 +
>>>   .../devicetree/bindings/resource-names.txt         |   1 +
>>>   drivers/of/of_reserved_mem.c                       | 104
>>> +++++++++++++++++----
>>>   include/linux/of_reserved_mem.h                    |  31 +++++-
>>>   4 files changed, 115 insertions(+), 23 deletions(-)
>>>
>>> diff --git
>>> a/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
>>> b/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
>>> index 3da0ebdba8d9..43a14957fd64 100644
>>> ---
>>> a/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
>>> +++
>>> b/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt
>>> @@ -74,6 +74,8 @@ Regions in the /reserved-memory node may be referenced
>>> by other device
>>>   nodes by adding a memory-region property to the device node.
>>>
>>>   memory-region (optional) - phandle, specifier pairs to children of
>>> /reserved-memory
>>> +memory-region-names (optional) - supplemental names property, provide
>>> array of
>>> +                                names to identify memory regions
>>>
>>>   Example
>>>   -------
>>> diff --git a/Documentation/devicetree/bindings/resource-names.txt
>>> b/Documentation/devicetree/bindings/resource-names.txt
>>> index e280fef6f265..51823e99b983 100644
>>> --- a/Documentation/devicetree/bindings/resource-names.txt
>>> +++ b/Documentation/devicetree/bindings/resource-names.txt
>>> @@ -12,6 +12,7 @@ Resource Property     Supplemental Names Property
>>>   reg                    reg-names
>>>   clocks                 clock-names
>>>   interrupts             interrupt-names
>>> +memory-region          memory-region-names
>>
>> The other cases of *-names should correspond to actual h/w names for a
>> h/w block. memory-regions are not really h/w. So I'd prefer to not add
>> memory-region-names. If you want a name for the region, put it in the
>> region node. The name for each client node is not going to be
>> different.
>
>
> There is a difference between a name in the region node and a name assigned
> in client node. Reserved memory region bindings already allows assigning
> given region to more than one device. In such case the name put in the
> region itself is not really useful.
>
> In my case (Exynos MFC device) the names are related to HW names. The memory
> regions are named in the hw documentation (referred as 'left memory bank'
> and 'right memory bank'). Using those names in the binding is also simply
> convenient (no need to remember which regions is at which index number).
>
> Those names might be also convenient for describing Android's ION related
> regions, although I didn't look deep into details of such use case.


>
> Best regards
> --
> Marek Szyprowski, PhD
> Samsung R&D Institute Poland
>

  reply	other threads:[~2016-01-04 21:36 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-16 15:37 [PATCH v3 0/7] Exynos: MFC driver: reserved memory cleanup and IOMMU support Marek Szyprowski
2015-12-16 15:37 ` [PATCH v3 1/7] ARM: Exynos: convert MFC device to generic reserved memory bindings Marek Szyprowski
2015-12-16 15:37 ` [PATCH v3 2/7] ARM: dts: exynos4412-odroid*: enable MFC device Marek Szyprowski
2015-12-16 15:37 ` [PATCH v3 3/7] of: reserved_mem: add support for named reserved mem nodes Marek Szyprowski
2015-12-30 23:25   ` Rob Herring
2016-01-04 13:57     ` Marek Szyprowski
2016-01-04 21:36       ` Rob Herring [this message]
2015-12-16 15:37 ` [PATCH v3 4/7] media: vb2-dma-contig: add helper for setting dma max seg size Marek Szyprowski
2015-12-16 15:37 ` [PATCH v3 5/7] media: set proper max seg size for devices on Exynos SoCs Marek Szyprowski
     [not found] ` <1450280249-24681-1-git-send-email-m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
2015-12-16 15:37   ` [PATCH v3 6/7] media: s5p-mfc: replace custom reserved memory init code with generic one Marek Szyprowski
2015-12-16 15:37 ` [PATCH v3 7/7] media: s5p-mfc: add iommu support Marek Szyprowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAL_JsqJb0z_A0ypZ-0-HTgke5uV2AJxf8cWN1OfiQ334e9MJjw@mail.gmail.com \
    --to=robh+dt@kernel.org \
    --cc=a.hajda@samsung.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=frowand.list@gmail.com \
    --cc=grant.likely@linaro.org \
    --cc=k.debski@samsung.com \
    --cc=k.kozlowski@samsung.com \
    --cc=kgene@kernel.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=s.nawrocki@samsung.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).