All of lore.kernel.org
 help / color / mirror / Atom feed
From: 21cnbao@gmail.com (Barry Song)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC/PATCH] ARM: PRIMA2: initial support for SiRFmarco dual-core SoC
Date: Wed, 5 Sep 2012 09:56:26 +0800	[thread overview]
Message-ID: <CAGsJ_4wUas7JhDuGgKM0FFQTKqNzj5-nv9JS5-vqgfLNUA5_=g@mail.gmail.com> (raw)
In-Reply-To: <201209041946.47068.arnd@arndb.de>

2012/9/5 Arnd Bergmann <arnd@arndb.de>:
> On Tuesday 04 September 2012, Barry Song wrote:
>
>> >
>> >> +              rstc-iobg {
>> >> +                     compatible = "simple-bus";
>> >> +                     #address-cells = <1>;
>> >> +                     #size-cells = <1>;
>> >> +                     ranges = <0xc2000000 0xc2000000 0x10000>;
>> >> +
>> >> +                     reset-controller at c2000000 {
>> >> +                             compatible = "sirf,marco-rstc";
>> >> +                             reg = <0xc2000000 0x10000>;
>> >> +                     };
>> >> +             };
>> >> +
>> >> +             sys-iobg {
>> >> +                     compatible = "simple-bus";
>> >> +                     #address-cells = <1>;
>> >> +                     #size-cells = <1>;
>> >> +                     ranges = <0xc3000000 0xc3000000 0x30000>;
>> >
>> > It looks to me that the sub-buses all have a size of 0x1000000, so I would
>> > recommend listing that one in the ranges, rather than only enough to
>> > provide the devices that you actually use.
>>
>> these ranges come from the hw spec. it seems you mean something like:
>>                   ranges = <0xcc050000 0xcc050000 0x1000
>>                             0xcc060000 0xcc060000 0x1000
>>                             0xcc190000 0xcc190000 0x1000
>>                             ....>;
>> then the list will be very long. i can't really understand the
>> benefit.  of course, if a driver makes misoperations to map an address
>> not in this list, io mapping will fail for it.
>> here <0xc3000000 0xc3000000 0x30000> is the filter range that will go
>> through sys-iobg in marco SoC. if an address located in this range
>> doesn't locate in a real hardware which exists, the driver should fail
>> due to hw error.
>
> I actually meant
>
>         ranges = <0xc2000000 0xc2000000 0x1000000>;
>
> Since each iobg range seems to be 16MB apart from the previous one,
> I would assume that the actual ranges that get translated are also
> 16 MB, not 64 KB or 192 KB as in the examples above. The rule however
> is that you should model what the hardware does, and if that bus
> has a 192KB window, then you should list that in the DT source.

yes. every iobrg almost begins from a 16MB alignment:
CPURTC IO Bridge: 0xC1000000
RSTC IO Bridge: 0xC2000000
SYS IO Bridge: 0xC3000000
MEM IO Bridge: 0xC4000000
MEM IO Bridge: 0xC5000000
...

i'd like to make sure from SoC guys about the real hardware model.

>
>
>         Arnd

-barry

      reply	other threads:[~2012-09-05  1:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-31 10:35 [RFC/PATCH] ARM: PRIMA2: initial support for SiRFmarco dual-core SoC Barry Song
2012-09-03 14:10 ` Arnd Bergmann
2012-09-04 15:57   ` Barry Song
2012-09-04 19:46     ` Arnd Bergmann
2012-09-05  1:56       ` Barry Song [this message]

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='CAGsJ_4wUas7JhDuGgKM0FFQTKqNzj5-nv9JS5-vqgfLNUA5_=g@mail.gmail.com' \
    --to=21cnbao@gmail.com \
    --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.