Device Tree setup for 8272-based board

Scott Wood scottwood at freescale.com
Fri Jan 23 04:05:26 EST 2009


On Thu, Jan 22, 2009 at 06:47:01PM +1100, Daniel Ng wrote:
> Thanks Scott. What is the meaning of the Ethernet reg field?:
> 
> reg = <0x11300 0x20 0x8400 0x100 0x11390 0x1>;
> 
> Is it-
> 
> 0x11300-> GFMR1 ie. the GFMR for FCC1?
> 0x20-> GFMR1 Fields are a total of 32 bits?
> 0x8400-> initial value of bits 0-15 of GFMR1?
> 0x100-> initial value of bits 16-31 of GFMR1?
> 0x11390-> GFEMR1?
> 0x1-> length of GFEMR1 is 1 bit in size?? (this doesn't make sense
> because it's a 3-bit field)
> Where would we specify the initial value of GFEMR1?

No, it's 3 pairs of offset/length (reg is *always* a list of
address/size pairs, with the number of cells per address or size
component depending on #address-cells/#size-cells in the parent node). 
Length is in bytes, not bits.

The first is the FCC register block, the second is the parameter RAM, and
the third is GFEMR.

There are no "initial values" in the device tree -- it describes what the
hardware is, not how to program it.  fsl,cpm-command may seem like the
latter, but it describes how a specific device is identified to the CPM
core.

-Scott



More information about the Linuxppc-dev mailing list