From: Sekhar Nori <nori.sekhar@gmail.com>
To: linux-samsung-soc@vger.kernel.org
Subject: Re: [PATCH v5] ARM: EXYNOS: Add MFC device tree support
Date: Fri, 14 Dec 2012 11:20:26 +0000 (UTC) [thread overview]
Message-ID: <loom.20121214T121839-194@post.gmane.org> (raw)
In-Reply-To: 1348765784-7508-2-git-send-email-arun.kk@samsung.com
Arun Kumar K <arun.kk <at> samsung.com> writes:
>
> This patch adds device tree entry for MFC v6 in the Exynos5
> SoC. Makes the required changes in the clock files and adds
> MFC to the DT device list.
>
> Signed-off-by: Naveen Krishna Chatradhi <ch.naveen <at> samsung.com>
> Signed-off-by: Arun Kumar K <arun.kk <at> samsung.com>
> ---
> diff --git a/Documentation/devicetree/bindings/media/s5p-mfc.txt
b/Documentation/devicetree/bindings/media/s5p-mfc.txt
> +Required properties:
> + - compatible : value should be either one among the following
> + (a) "samsung,mfc-v5" for MFC v5 present in Exynos4 SoCs
> + (b) "samsung,mfc-v6" for MFC v6 present in Exynos5 SoCs
Sorry for replying on this patch so late, but this thread came
to my attention only recently.
I thought generic comaptibles like this are discouraged and instead
you are supposed to ground the compatible property to a real silicon name.
So you would use something like "samsung,exynos4212-mfc" and so on.
> + - samsung,mfc-r : Base address of the first memory bank used by MFC
> + for DMA contiguous memory allocation and its size.
> +
> + - samsung,mfc-l : Base address of the second memory bank used by MFC
> + for DMA contiguous memory allocation and its size.
> diff --git a/arch/arm/boot/dts/exynos5250-smdk5250.dts
b/arch/arm/boot/dts/exynos5250-smdk5250.dts
> +
> + codec <at> 11000000 {
> + samsung,mfc-r = <0x43000000 0x800000>;
> + samsung,mfc-l = <0x51000000 0x800000>;
> + };
How are these addresses determined? Are they defined by hardware (so they are
not user configurable) or is the user free to choose them depending on where
he intends the contiguous memory to lie? If it is the later, I wonder if it
is considered okay to define this in device tree since it is supposed to be
a description of the hardware.
We have a similar situation on DaVinci and we are wondering how this should
be handled. The ideal choice seems to be module parameters, but there are
some challenges there. See:
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-December/136996.html
I understand I am speaking too late on this patch (seems like it is already
merged into linux-next at the least), but I still wanted to start the
conversation here for future sake.
Thanks,
Sekhar
next prev parent reply other threads:[~2012-12-14 11:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-27 17:09 [PATCH v5] Add MFC device tree support Arun Kumar K
2012-09-27 17:09 ` [PATCH v5] ARM: EXYNOS: " Arun Kumar K
2012-10-12 6:42 ` Arun Kumar K
2012-10-23 7:04 ` 김승우
2012-10-23 10:12 ` Arun Kumar K
2012-10-19 1:39 ` Kukjin Kim
2012-10-23 14:30 ` Kukjin Kim
2012-12-14 11:20 ` Sekhar Nori [this message]
2012-12-18 12:12 ` Arun Kumar K
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=loom.20121214T121839-194@post.gmane.org \
--to=nori.sekhar@gmail.com \
--cc=linux-samsung-soc@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.