From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4] ARM: SPEAr600: Add device-tree support to SPEAr600 boards
Date: Fri, 16 Mar 2012 12:14:35 +0000 [thread overview]
Message-ID: <201203161214.35929.arnd@arndb.de> (raw)
In-Reply-To: <1331890216-8361-1-git-send-email-sr@denx.de>
On Friday 16 March 2012, Stefan Roese wrote:
> v4:
> - Added memory node to all dts/dtsi files
> - Reorganizes bus topology in the dtsi file, to match the
> real SoC layout
Looks good.
> +
> + ahb {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "simple-bus";
> + ranges;
> +
> + vic0: interrupt-controller at f1100000 {
> + compatible = "arm,pl190-vic";
> + interrupt-controller;
> + reg = <0xf1100000 0x1000>;
> + #interrupt-cells = <1>;
> + };
> +
> ...
> + apb {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "simple-bus";
> + ranges;
> +
> + serial at d0000000 {
> + compatible = "arm,pl011", "arm,primecell";
> + reg = <0xd0000000 0x1000>;
> + interrupt-parent = <&vic0>;
> + interrupts = <24>;
> + };
> ...
> + };
> + };
> +};
I would prefer to see non-empty ranges properties here. I expected the
buses to be contiguous address ranges per bus, but apparently that
is not the case -- you have 0xd... and 0xf... on both of them.
The simplest ranges property would be to have in the ahb node:
ranges = <0xd0000000 0xd0000000 0x30000000>;
Which just means that the bus is limited to those addresses (if that is
indeed the case -- I don't know much about ahb and apb).
Arnd
WARNING: multiple messages have this Message-ID (diff)
From: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
To: Stefan Roese <sr-ynQEQJNshbs@public.gmane.org>
Cc: Viresh Kumar <viresh.kumar-qxv4g6HH51o@public.gmane.org>,
devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: [PATCH v4] ARM: SPEAr600: Add device-tree support to SPEAr600 boards
Date: Fri, 16 Mar 2012 12:14:35 +0000 [thread overview]
Message-ID: <201203161214.35929.arnd@arndb.de> (raw)
In-Reply-To: <1331890216-8361-1-git-send-email-sr-ynQEQJNshbs@public.gmane.org>
On Friday 16 March 2012, Stefan Roese wrote:
> v4:
> - Added memory node to all dts/dtsi files
> - Reorganizes bus topology in the dtsi file, to match the
> real SoC layout
Looks good.
> +
> + ahb {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "simple-bus";
> + ranges;
> +
> + vic0: interrupt-controller@f1100000 {
> + compatible = "arm,pl190-vic";
> + interrupt-controller;
> + reg = <0xf1100000 0x1000>;
> + #interrupt-cells = <1>;
> + };
> +
> ...
> + apb {
> + #address-cells = <1>;
> + #size-cells = <1>;
> + compatible = "simple-bus";
> + ranges;
> +
> + serial@d0000000 {
> + compatible = "arm,pl011", "arm,primecell";
> + reg = <0xd0000000 0x1000>;
> + interrupt-parent = <&vic0>;
> + interrupts = <24>;
> + };
> ...
> + };
> + };
> +};
I would prefer to see non-empty ranges properties here. I expected the
buses to be contiguous address ranges per bus, but apparently that
is not the case -- you have 0xd... and 0xf... on both of them.
The simplest ranges property would be to have in the ahb node:
ranges = <0xd0000000 0xd0000000 0x30000000>;
Which just means that the bus is limited to those addresses (if that is
indeed the case -- I don't know much about ahb and apb).
Arnd
next prev parent reply other threads:[~2012-03-16 12:14 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-16 9:30 [PATCH v4] ARM: SPEAr600: Add device-tree support to SPEAr600 boards Stefan Roese
2012-03-16 9:30 ` Stefan Roese
2012-03-16 9:51 ` Viresh Kumar
2012-03-16 9:51 ` Viresh Kumar
2012-03-16 11:51 ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-16 11:51 ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-16 11:50 ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-16 11:50 ` Jean-Christophe PLAGNIOL-VILLARD
2012-03-16 12:09 ` Arnd Bergmann
2012-03-16 12:09 ` Arnd Bergmann
2012-03-16 12:33 ` Stefan Roese
2012-03-16 12:33 ` Stefan Roese
2012-03-16 12:52 ` Arnd Bergmann
2012-03-16 12:52 ` Arnd Bergmann
2012-03-16 12:57 ` Stefan Roese
2012-03-16 12:57 ` Stefan Roese
2012-03-16 12:20 ` Stefan Roese
2012-03-16 12:20 ` Stefan Roese
2012-03-16 12:14 ` Arnd Bergmann [this message]
2012-03-16 12:14 ` Arnd Bergmann
2012-03-16 12:34 ` Stefan Roese
2012-03-16 12:34 ` Stefan Roese
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=201203161214.35929.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.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.