[RFC 3/3] powerpc: Add DTS file for the Motorola PrPMC2800 platform

Segher Boessenkool segher at kernel.crashing.org
Wed Apr 4 21:18:41 EST 2007

> Agreed.  Dale Farnsworth suggested a 'ranges' type property at the top
> level that's used for phys->virt mappings.  That is much cleaner IMHO
> and eliminates the need to parse hash tables or add ioremap code to the
> bootwrapper.

I suggest you implement the standard "mmu" binding instead,
or the part that is relevant to you anyway:

/chosen/mmu contains the ihandle for an "mmu" node (for
flat trees, you use a phandle instead);

that node has properties, quoting from the base OF spec:

The property values are as defined for the standard “reg” format,
with single-cell virtual addresses. The regions of virtual address
space denote the virtual address space that is currently unallocated
by the Open Firmware and is available for use by client programs.

The value of this property defines the regions of virtual address
space managed by the MMU in whose package this property is defined
without regard to whether or not these regions are currently in use.
The encodings of virt and len are MMU-specific.

Have a look at the PowerPC binding to find out about that specific


More information about the Linuxppc-dev mailing list