From: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
To: Shaik Ameer Basha <shaik.ameer@samsung.com>
Cc: linux-samsung-soc@vger.kernel.org, kgene.kim@samsung.com,
olofj@google.com, prashanth.g@samsung.com, joshi@samsung.com,
ameersk@gmail.com, thomas.ab@samsung.com,
devicetree-discuss@lists.ozlabs.org
Subject: Re: [PATCH 2/2] ARM: EXYNOS5: Add gscalar device from DT
Date: Fri, 06 Jul 2012 20:50:22 +0200 [thread overview]
Message-ID: <4FF7336E.4030007@gmail.com> (raw)
In-Reply-To: <1341578702-10263-3-git-send-email-shaik.ameer@samsung.com>
Hi Shaik,
On 07/06/2012 02:45 PM, Shaik Ameer Basha wrote:
> Adding all 4 gscalar devices from DT device list in machine file.
nit: s/gscalar/gscaler
The above sentence doesn't quite parse though.
> Signed-off-by: Abhilash Kesavan<a.kesavan@samsung.com>
> Signed-off-by: Leela Krishna Amudala<l.krishna@samsung.com>
> Signed-off-by: Shaik Ameer Basha<shaik.ameer@samsung.com>
> ---
> arch/arm/boot/dts/exynos5250.dtsi | 31 +++++++++++++++++++++++++++++++
> arch/arm/mach-exynos/mach-exynos5-dt.c | 8 ++++++++
> 2 files changed, 39 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi
> index 4272b29..b945c00 100644
> --- a/arch/arm/boot/dts/exynos5250.dtsi
> +++ b/arch/arm/boot/dts/exynos5250.dtsi
> @@ -23,6 +23,13 @@
> compatible = "samsung,exynos5250";
> interrupt-parent =<&gic>;
>
> + aliases {
> + gsc0 =&gsc_0;
> + gsc1 =&gsc_1;
> + gsc2 =&gsc_2;
> + gsc3 =&gsc_3;
> + };
> +
What are these aliases useful for ?
Also I think all DT related patches should be posted to
devicetree-discuss@lists.ozlabs.org as well.
> gic:interrupt-controller@10481000 {
> compatible = "arm,cortex-a9-gic";
> #interrupt-cells =<3>;
> @@ -424,4 +431,28 @@
> #gpio-cells =<4>;
> };
> };
> +
> + gsc_0: gsc@0x13e00000 {
> + compatible = "samsung,exynos-gsc";
> + reg =<0x13e00000 0x1000>;
> + interrupts =<0 85 0>;
> + };
> +
> + gsc_1: gsc@0x13e10000 {
> + compatible = "samsung,exynos-gsc";
> + reg =<0x13e10000 0x1000>;
> + interrupts =<0 86 0>;
> + };
> +
> + gsc_2: gsc@0x13e20000 {
> + compatible = "samsung,exynos-gsc";
> + reg =<0x13e20000 0x1000>;
> + interrupts =<0 87 0>;
> + };
> +
> + gsc_3: gsc@0x13e30000 {
> + compatible = "samsung,exynos-gsc";
> + reg =<0x13e30000 0x1000>;
> + interrupts =<0 88 0>;
> + };
> };
> diff --git a/arch/arm/mach-exynos/mach-exynos5-dt.c b/arch/arm/mach-exynos/mach-exynos5-dt.c
> index 7b1e11a..76b081c 100644
> --- a/arch/arm/mach-exynos/mach-exynos5-dt.c
> +++ b/arch/arm/mach-exynos/mach-exynos5-dt.c
> @@ -50,6 +50,14 @@ static const struct of_dev_auxdata exynos5250_auxdata_lookup[] __initconst = {
> OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA0, "dma-pl330.0", NULL),
> OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_PDMA1, "dma-pl330.1", NULL),
> OF_DEV_AUXDATA("arm,pl330", EXYNOS5_PA_MDMA1, "dma-pl330.2", NULL),
> + OF_DEV_AUXDATA("samsung,exynos-gsc", 0x13E00000,
> + "exynos-gsc.0", NULL),
> + OF_DEV_AUXDATA("samsung,exynos-gsc", 0x13E10000,
> + "exynos-gsc.1", NULL),
> + OF_DEV_AUXDATA("samsung,exynos-gsc", 0x13E20000,
> + "exynos-gsc.2", NULL),
> + OF_DEV_AUXDATA("samsung,exynos-gsc", 0x13E30000,
> + "exynos-gsc.3", NULL),
It's probably better to add relevant entry at
arch/arm/mach-exynos/include/mach/map. It's just a one line, e.g.
/* x = 0...3 */
#define EXYNOS5_PA_GSC(x) (0x13e00000 + ((x) * 0x10000))
And use it here instead of plain numbers.
--
Thanks,
Sylwester
next prev parent reply other threads:[~2012-07-06 18:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-06 12:45 [PATCH 0/2] Add device tree and clock support for Gscaler Shaik Ameer Basha
2012-07-06 12:45 ` [PATCH 1/2] ARM: EXYNOS5: Add " Shaik Ameer Basha
2012-07-06 15:00 ` Sachin Kamat
2012-07-06 12:45 ` [PATCH 2/2] ARM: EXYNOS5: Add gscalar device from DT Shaik Ameer Basha
2012-07-06 18:50 ` Sylwester Nawrocki [this message]
2012-07-07 6:28 ` Sachin Kamat
-- strict thread matches above, loose matches on Subject: below --
2012-07-11 13:06 AMEER BASHA SHAIK
2012-07-11 18:12 ` Sylwester Nawrocki
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=4FF7336E.4030007@gmail.com \
--to=sylvester.nawrocki@gmail.com \
--cc=ameersk@gmail.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=joshi@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=olofj@google.com \
--cc=prashanth.g@samsung.com \
--cc=shaik.ameer@samsung.com \
--cc=thomas.ab@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 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.