All of lore.kernel.org
 help / color / mirror / Atom feed
* Virtual addresses in arch/powerpc/boot/dts/tqm8548*.dts ?
@ 2011-08-30 21:43 ` Paul Walmsley
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Walmsley @ 2011-08-30 21:43 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov, Kumar Gala, Wolfgang Grandegger
  Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ,
	linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ


Hi,

Looking at some of the PPC DTS files in arch/powerpc/boot/dts, there are 
some files that are mostly identical, except for some strange 
differences.

For example, tqm8548.dts and tqm8548-bigflash.dts differ mostly in that 
the former file claims that the SoC registers start at 0xe0000000[1], but 
the latter file claims that the SoC registers start at 0xa0000000[2].

Commit 02b8a3d1eb2ae6353cfbce627ded22e299cf1989 ("powerpc/85xx: support 
for the TQM8548 module using the big Flash") claims that:

    Some TQM85xx boards could be equipped with up to 1 GiB (NOR) flash
    memory and therefore a modified memory map is required and setup by
    the board loader. This patch adds an appropriate DTS file.

So are these addresses virtual?  My (perhaps incorrect) understanding of 
the device tree files was that they were intended to describe the physical 
memory map, rather than the virtual memory map.  Or does this PowerPC 
variant have the ability to dynamically change its own physical address 
decoding?  Or is something else going on?


thanks for any clarification,

- Paul

1. arch/powerpc/boot/dts/tqm8548.dts line 53, as of Linux v3.1-rc3:
   http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/powerpc/boot/dts/tqm8548.dts;h=619776f72c904c611e9507d44db4bee1200e6688;hb=HEAD#l53

2. arch/powerpc/boot/dts/tqm8548-bigflash.dts line 53, as of Linux 
   v3.1-rc3:
   http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/powerpc/boot/dts/tqm8548-bigflash.dts;h=9452c3c05114e523033eebb278d7f78811890a87;hb=HEAD#l53

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Virtual addresses in arch/powerpc/boot/dts/tqm8548*.dts ?
@ 2011-08-30 21:43 ` Paul Walmsley
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Walmsley @ 2011-08-30 21:43 UTC (permalink / raw)
  To: Dmitry Eremin-Solenikov, Kumar Gala, Wolfgang Grandegger
  Cc: devicetree-discuss, linuxppc-dev


Hi,

Looking at some of the PPC DTS files in arch/powerpc/boot/dts, there are 
some files that are mostly identical, except for some strange 
differences.

For example, tqm8548.dts and tqm8548-bigflash.dts differ mostly in that 
the former file claims that the SoC registers start at 0xe0000000[1], but 
the latter file claims that the SoC registers start at 0xa0000000[2].

Commit 02b8a3d1eb2ae6353cfbce627ded22e299cf1989 ("powerpc/85xx: support 
for the TQM8548 module using the big Flash") claims that:

    Some TQM85xx boards could be equipped with up to 1 GiB (NOR) flash
    memory and therefore a modified memory map is required and setup by
    the board loader. This patch adds an appropriate DTS file.

So are these addresses virtual?  My (perhaps incorrect) understanding of 
the device tree files was that they were intended to describe the physical 
memory map, rather than the virtual memory map.  Or does this PowerPC 
variant have the ability to dynamically change its own physical address 
decoding?  Or is something else going on?


thanks for any clarification,

- Paul

1. arch/powerpc/boot/dts/tqm8548.dts line 53, as of Linux v3.1-rc3:
   http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/powerpc/boot/dts/tqm8548.dts;h=619776f72c904c611e9507d44db4bee1200e6688;hb=HEAD#l53

2. arch/powerpc/boot/dts/tqm8548-bigflash.dts line 53, as of Linux 
   v3.1-rc3:
   http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/powerpc/boot/dts/tqm8548-bigflash.dts;h=9452c3c05114e523033eebb278d7f78811890a87;hb=HEAD#l53

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Virtual addresses in arch/powerpc/boot/dts/tqm8548*.dts ?
  2011-08-30 21:43 ` Paul Walmsley
  (?)
@ 2011-08-30 22:39 ` Gary Thomas
  2011-08-31  1:55   ` Paul Walmsley
  -1 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2011-08-30 22:39 UTC (permalink / raw)
  To: Paul Walmsley; +Cc: Dmitry Eremin-Solenikov, devicetree-discuss, linuxppc-dev

On 2011-08-30 15:43, Paul Walmsley wrote:
>
> Hi,
>
> Looking at some of the PPC DTS files in arch/powerpc/boot/dts, there are
> some files that are mostly identical, except for some strange
> differences.
>
> For example, tqm8548.dts and tqm8548-bigflash.dts differ mostly in that
> the former file claims that the SoC registers start at 0xe0000000[1], but
> the latter file claims that the SoC registers start at 0xa0000000[2].
>
> Commit 02b8a3d1eb2ae6353cfbce627ded22e299cf1989 ("powerpc/85xx: support
> for the TQM8548 module using the big Flash") claims that:
>
>      Some TQM85xx boards could be equipped with up to 1 GiB (NOR) flash
>      memory and therefore a modified memory map is required and setup by
>      the board loader. This patch adds an appropriate DTS file.
>
> So are these addresses virtual?  My (perhaps incorrect) understanding of
> the device tree files was that they were intended to describe the physical
> memory map, rather than the virtual memory map.  Or does this PowerPC
> variant have the ability to dynamically change its own physical address
> decoding?  Or is something else going on?

These addresses correspond to the internal registers which can be moved.
The default address is set by hardware at reset time (check out the documentation
on the hardware reset word).  Obviously one board is strapped for the IMMR
at one address, another board at a different address.  I almost always configure
my boards to use 0xF0000000 for the IMMR.

>
>
> thanks for any clarification,
>
> - Paul
>
> 1. arch/powerpc/boot/dts/tqm8548.dts line 53, as of Linux v3.1-rc3:
>     http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/powerpc/boot/dts/tqm8548.dts;h=619776f72c904c611e9507d44db4bee1200e6688;hb=HEAD#l53
>
> 2. arch/powerpc/boot/dts/tqm8548-bigflash.dts line 53, as of Linux
>     v3.1-rc3:
>     http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=arch/powerpc/boot/dts/tqm8548-bigflash.dts;h=9452c3c05114e523033eebb278d7f78811890a87;hb=HEAD#l53
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Virtual addresses in arch/powerpc/boot/dts/tqm8548*.dts ?
  2011-08-30 22:39 ` Gary Thomas
@ 2011-08-31  1:55   ` Paul Walmsley
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Walmsley @ 2011-08-31  1:55 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Dmitry Eremin-Solenikov, devicetree-discuss, linuxppc-dev

On Tue, 30 Aug 2011, Gary Thomas wrote:

> On 2011-08-30 15:43, Paul Walmsley wrote:
> 
> > So are these addresses virtual?  My (perhaps incorrect) understanding of
> > the device tree files was that they were intended to describe the physical
> > memory map, rather than the virtual memory map.  Or does this PowerPC
> > variant have the ability to dynamically change its own physical address
> > decoding?  Or is something else going on?
> 
> These addresses correspond to the internal registers which can be moved. 
> The default address is set by hardware at reset time (check out the 
> documentation on the hardware reset word).  Obviously one board is 
> strapped for the IMMR at one address, another board at a different 
> address.  I almost always configure my boards to use 0xF0000000 for the 
> IMMR.

Got it.  Thanks Gary.


- Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-31  1:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-30 21:43 Virtual addresses in arch/powerpc/boot/dts/tqm8548*.dts ? Paul Walmsley
2011-08-30 21:43 ` Paul Walmsley
2011-08-30 22:39 ` Gary Thomas
2011-08-31  1:55   ` Paul Walmsley

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.