Re: [PATCH 19/28] nios2: Device tree support

2014-04-24 Thread Ezequiel Garcia
On Apr 22, Arnd Bergmann wrote: > On Friday 18 April 2014, Ley Foon Tan wrote: > > Are these all synthesized devices, or is there also some hardwired > logic? It often makes sense to split out the reusable parts into > a separate .dtsi file that gets included by every implementation. > In case y

Re: [PATCH 19/28] nios2: Device tree support

2014-04-23 Thread Ley Foon Tan
On Wed, Apr 23, 2014 at 3:35 PM, Arnd Bergmann wrote: >> > for Altera. >> Yes, the vendor prefix should be changed to lower case. FYI, this dts >> file is generated by our dts generator tool called sopc2dts. >> Our tool already aware of this requirement, but haven't support this yet. >> I can edi

Re: [PATCH 19/28] nios2: Device tree support

2014-04-23 Thread Arnd Bergmann
On Wednesday 23 April 2014 14:52:47 Ley Foon Tan wrote: > On Tue, Apr 22, 2014 at 9:42 PM, Arnd Bergmann wrote: > > On Friday 18 April 2014, Ley Foon Tan wrote: > >> diff --git a/arch/nios2/boot/dts/3c120_devboard.dts > >> b/arch/nios2/boot/dts/3c120_devboard.dts > > >> +/dts-v1/; > >> + > >> +/

Re: [PATCH 19/28] nios2: Device tree support

2014-04-22 Thread Ley Foon Tan
On Tue, Apr 22, 2014 at 9:42 PM, Arnd Bergmann wrote: > On Friday 18 April 2014, Ley Foon Tan wrote: >> diff --git a/arch/nios2/boot/dts/3c120_devboard.dts >> b/arch/nios2/boot/dts/3c120_devboard.dts >> +/dts-v1/; >> + >> +/ { >> + model = "ALTR,qsys_ghrd_3c120"; >> + compatible = "ALTR,

Re: [PATCH 19/28] nios2: Device tree support

2014-04-22 Thread Arnd Bergmann
On Friday 18 April 2014, Ley Foon Tan wrote: > diff --git a/arch/nios2/boot/dts/3c120_devboard.dts > b/arch/nios2/boot/dts/3c120_devboard.dts > new file mode 100644 > index 000..cad29a9 > --- /dev/null > +++ b/arch/nios2/boot/dts/3c120_devboard.dts > @@ -0,0 +1,205 @@ > +/* > + * Copyright (C

[PATCH 19/28] nios2: Device tree support

2014-04-18 Thread Ley Foon Tan
Add device tree support to arch/nios2. Signed-off-by: Ley Foon Tan --- arch/nios2/boot/dts/3c120_devboard.dts | 205 + arch/nios2/boot/linked_dtb.S | 19 +++ arch/nios2/include/asm/prom.h | 26 + arch/nios2/kernel/prom.c | 6