Re: Device Tree setup for 8272-based board

2009-01-22 Thread Scott Wood
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 val

Re: Device Tree setup for 8272-based board

2009-01-21 Thread Daniel Ng
On Thu, Jan 22, 2009 at 4:52 AM, Scott Wood wrote: >> 3) In the PIC: interrupt-control...@10c00 node- >> reg = <0x10c00 0x80>; > > Offset and length of PIC registers. Thanks Scott. What is the meaning of the Ethernet reg field?: reg = <0x11300 0x20 0x8400 0x100 0x11390 0x1>; Is it- 0x11300-> G

Re: Device Tree setup for 8272-based board

2009-01-21 Thread Scott Wood
On Wed, Jan 21, 2009 at 06:37:32PM +1100, Daniel Ng wrote: > I think the of_get_gpio() error messages are a result of the following > code in cpm_uart_init_port()- > > for (i = 0; i < NUM_GPIOS; i++) > pinfo->gpios[i] = of_get_gpio(np, i); > > -why is this code here? Is it for processing mo

Re: Device Tree setup for 8272-based board

2009-01-20 Thread Daniel Ng
Hi Scott, On Wed, Jan 21, 2009 at 3:41 AM, Scott Wood wrote: > On Tue, Jan 20, 2009 at 06:23:08PM +1100, Daniel Ng wrote: >> PID hash table entries: 128 (order: 7, 512 bytes) >> time_init: decrementer frequency = 16.50 MHz >> time_init: processor frequency = 330.00 MHz >> clocksource: t

Re: Device Tree setup for 8272-based board

2009-01-20 Thread Scott Wood
On Tue, Jan 20, 2009 at 06:23:08PM +1100, Daniel Ng wrote: > PID hash table entries: 128 (order: 7, 512 bytes) > time_init: decrementer frequency = 16.50 MHz > time_init: processor frequency = 330.00 MHz > clocksource: timebase mult[f26c9b2] shift[22] registered > clockevent: decrementer

Re: Device Tree setup for 8272-based board

2009-01-19 Thread Daniel Ng
Hi Scott, By #defining DEBUG in setup-32.c and setting the following in my kernel config- CONFIG_PPC_EARLY_DEBUG=y CONFIG_PPC_EARLY_DEBUG_CPM=y CONFIG_PPC_EARLY_DEBUG_CPM_ADDR=0xf0001ff8 -I have been able to get the following boot messages: ## Booting kernel from Legacy Image at 0020 ...

Re: Device Tree setup for 8272-based board

2009-01-19 Thread Scott Wood
On Mon, Jan 19, 2009 at 12:58:41PM +1100, Daniel Ng wrote: > Hi Scott, > On Sat, Jan 17, 2009 at 5:14 AM, Scott Wood wrote: > > > >> /dts-v1/; > >> > >> / { > >> model = "HPXRED"; > >> compatible = "fsl,mpc8272ads"; > > > > Is it 100% compatible? If not, change the compatible to something else >

Re: Device Tree setup for 8272-based board

2009-01-18 Thread Daniel Ng
Hi Scott, On Sat, Jan 17, 2009 at 5:14 AM, Scott Wood wrote: > >> /dts-v1/; >> >> / { >> model = "HPXRED"; >> compatible = "fsl,mpc8272ads"; > > Is it 100% compatible? If not, change the compatible to something else > (and make sure your board code matches it). My board is similar to the mpc8272

Re: Device Tree setup for 8272-based board

2009-01-16 Thread Scott Wood
On Fri, Jan 16, 2009 at 02:40:03PM +1100, Daniel Ng wrote: > I've tried various values for 'console' but I'm quite certain 'ttyCPM0' is the > one to use as this is what I was using when it was working with Linux 2.6.14 > and an old (pre-Device Tree) version of u-boot. Yes, that is correct. You ca

Device Tree setup for 8272-based board

2009-01-15 Thread Daniel Ng
Hi Scott, > Scott Wood freescale.com> writes: > > Yes, if u-boot is providing junk, then you'll probably want to hack up > > the wrapper to ignore it. Or just upgrade u-boot to one that works. So, I've gotten the latest u-boot installed and working. Here's my boot sequence- ## Booting kernel fro

Re: Device Tree setup for 8272-based board

2009-01-15 Thread Daniel Ng
Hi Scott, > Scott Wood freescale.com> writes: > > Yes, if u-boot is providing junk, then you'll probably want to hack up > > the wrapper to ignore it. Or just upgrade u-boot to one that works. So, I've gotten the latest u-boot installed and working. Here's my boot sequence- ## Booting kernel fro