Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-22 Thread Ludovic Desroches
On Fri, Feb 20, 2015 at 10:48:18AM -0800, Guenter Roeck wrote: > On Fri, Feb 20, 2015 at 01:09:58PM -0500, Peter Hurley wrote: > > Hi Guenter, > > > > On 02/20/2015 11:47 AM, Guenter Roeck wrote: > > > > [...] > > > > > I am open to hearing your suggestions for our use case, where the CPU > >

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-22 Thread Ludovic Desroches
Hi Rob, On Fri, Feb 20, 2015 at 11:30:12AM -0600, Rob Herring wrote: > On Fri, Feb 20, 2015 at 8:35 AM, Ludovic Desroches > wrote: > > On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: > >> On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: > >> > > >> >> On Feb 19, 2015, at 19:30 ,

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-22 Thread Ludovic Desroches
Hi Rob, On Fri, Feb 20, 2015 at 11:30:12AM -0600, Rob Herring wrote: On Fri, Feb 20, 2015 at 8:35 AM, Ludovic Desroches ludovic.desroc...@atmel.com wrote: On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: On Feb 19, 2015, at

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-22 Thread Ludovic Desroches
On Fri, Feb 20, 2015 at 10:48:18AM -0800, Guenter Roeck wrote: On Fri, Feb 20, 2015 at 01:09:58PM -0500, Peter Hurley wrote: Hi Guenter, On 02/20/2015 11:47 AM, Guenter Roeck wrote: [...] I am open to hearing your suggestions for our use case, where the CPU card with the

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Guenter Roeck
On Fri, Feb 20, 2015 at 01:09:58PM -0500, Peter Hurley wrote: > Hi Guenter, > > On 02/20/2015 11:47 AM, Guenter Roeck wrote: > > [...] > > > I am open to hearing your suggestions for our use case, where the CPU card > > with > > the eeprom is manufactured separately from its carier cards. > >

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
Hi Guenter, On 02/20/2015 11:47 AM, Guenter Roeck wrote: [...] > I am open to hearing your suggestions for our use case, where the CPU card > with > the eeprom is manufactured separately from its carier cards. I think your use case may be more compelling than two flavors of Beaglebone (one of

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Rob, > On Feb 20, 2015, at 19:30 , Rob Herring wrote: > > On Fri, Feb 20, 2015 at 8:35 AM, Ludovic Desroches > wrote: >> On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: >>> On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: > On Feb 19, 2015, at 19:30 , Frank Rowand

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Rob Herring
On Fri, Feb 20, 2015 at 8:35 AM, Ludovic Desroches wrote: > On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: >> On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: >> > >> >> On Feb 19, 2015, at 19:30 , Frank Rowand wrote: >> >> >> >> On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: >>

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Peter, > On Feb 20, 2015, at 18:34 , Peter Hurley wrote: > > On 02/20/2015 10:38 AM, Pantelis Antoniou wrote: >> Hi Peter, >> >>> On Feb 20, 2015, at 17:24 , Peter Hurley wrote: >>> >>> On 02/20/2015 10:02 AM, Pantelis Antoniou wrote: Hi Peter, > On Feb 20, 2015, at 17:00 ,

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Guenter Roeck
On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: > On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: > > > >> On Feb 19, 2015, at 19:30 , Frank Rowand wrote: > >> > >> On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: > >>> Hi Frank, > >>> > On Feb 19, 2015, at 18:48 , Frank Rowand

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/20/2015 10:38 AM, Pantelis Antoniou wrote: > Hi Peter, > >> On Feb 20, 2015, at 17:24 , Peter Hurley wrote: >> >> On 02/20/2015 10:02 AM, Pantelis Antoniou wrote: >>> Hi Peter, >>> On Feb 20, 2015, at 17:00 , Peter Hurley wrote: On 02/20/2015 09:35 AM, Ludovic Desroches

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Peter, > On Feb 20, 2015, at 17:24 , Peter Hurley wrote: > > On 02/20/2015 10:02 AM, Pantelis Antoniou wrote: >> Hi Peter, >> >>> On Feb 20, 2015, at 17:00 , Peter Hurley wrote: >>> >>> On 02/20/2015 09:35 AM, Ludovic Desroches wrote: On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/20/2015 10:02 AM, Pantelis Antoniou wrote: > Hi Peter, > >> On Feb 20, 2015, at 17:00 , Peter Hurley wrote: >> >> On 02/20/2015 09:35 AM, Ludovic Desroches wrote: >>> On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: >

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/20/2015 09:35 AM, Ludovic Desroches wrote: > On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: >> On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: >>> On Feb 19, 2015, at 19:30 , Frank Rowand wrote: On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: > Hi Frank,

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Peter, > On Feb 20, 2015, at 17:00 , Peter Hurley wrote: > > On 02/20/2015 09:35 AM, Ludovic Desroches wrote: >> On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: >>> On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: > On Feb 19, 2015, at 19:30 , Frank Rowand wrote:

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Peter, > On Feb 20, 2015, at 16:21 , Peter Hurley wrote: > > On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: >> >>> On Feb 19, 2015, at 19:30 , Frank Rowand wrote: >>> >>> On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: Hi Frank, > On Feb 19, 2015, at 18:48 , Frank Rowand

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Ludovic Desroches
On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: > On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: > > > >> On Feb 19, 2015, at 19:30 , Frank Rowand wrote: > >> > >> On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: > >>> Hi Frank, > >>> > On Feb 19, 2015, at 18:48 , Frank Rowand

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: > >> On Feb 19, 2015, at 19:30 , Frank Rowand wrote: >> >> On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: >>> Hi Frank, >>> On Feb 19, 2015, at 18:48 , Frank Rowand wrote: On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: > Hi

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/19/2015 09:41 AM, Pantelis Antoniou wrote: > Hi Frank, > >> On Feb 19, 2015, at 04:08 , Frank Rowand wrote: >> >> On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: >>> Implement a method of applying DT quirks early in the boot sequence. >>> >>> A DT quirk is a subtree of the boot DT that can

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Ludovic Desroches
On Thu, Feb 19, 2015 at 12:01:14PM -0600, Rob Herring wrote: > On Wed, Feb 18, 2015 at 8:08 PM, Frank Rowand wrote: > > On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: > >> Implement a method of applying DT quirks early in the boot sequence. > >> > >> A DT quirk is a subtree of the boot DT that

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Ludovic Desroches
On Thu, Feb 19, 2015 at 09:30:58AM -0800, Frank Rowand wrote: > On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: > > Hi Frank, > > > >> On Feb 19, 2015, at 18:48 , Frank Rowand wrote: > >> > >> On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: > >>> Hi Mark, > >>> > On Feb 18, 2015, at 19:31 ,

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Ludovic Desroches
On Thu, Feb 19, 2015 at 09:30:58AM -0800, Frank Rowand wrote: On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at 18:48 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: Hi Mark, On Feb 18, 2015, at 19:31 , Mark

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Ludovic Desroches
On Thu, Feb 19, 2015 at 12:01:14PM -0600, Rob Herring wrote: On Wed, Feb 18, 2015 at 8:08 PM, Frank Rowand frowand.l...@gmail.com wrote: On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/19/2015 09:41 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at 04:08 , Frank Rowand frowand.l...@gmail.com wrote: On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot DT that

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: On Feb 19, 2015, at 19:30 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at 18:48 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 6:29 AM, Pantelis Antoniou

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Ludovic Desroches
On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: On Feb 19, 2015, at 19:30 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at 18:48 , Frank Rowand

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Peter, On Feb 20, 2015, at 16:21 , Peter Hurley pe...@hurleysoftware.com wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: On Feb 19, 2015, at 19:30 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Peter, On Feb 20, 2015, at 17:00 , Peter Hurley pe...@hurleysoftware.com wrote: On 02/20/2015 09:35 AM, Ludovic Desroches wrote: On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: On Feb 19, 2015, at 19:30 , Frank Rowand

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/20/2015 09:35 AM, Ludovic Desroches wrote: On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: On Feb 19, 2015, at 19:30 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: Hi Frank,

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Peter, On Feb 20, 2015, at 17:24 , Peter Hurley pe...@hurleysoftware.com wrote: On 02/20/2015 10:02 AM, Pantelis Antoniou wrote: Hi Peter, On Feb 20, 2015, at 17:00 , Peter Hurley pe...@hurleysoftware.com wrote: On 02/20/2015 09:35 AM, Ludovic Desroches wrote: On Fri, Feb 20, 2015

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/20/2015 10:02 AM, Pantelis Antoniou wrote: Hi Peter, On Feb 20, 2015, at 17:00 , Peter Hurley pe...@hurleysoftware.com wrote: On 02/20/2015 09:35 AM, Ludovic Desroches wrote: On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Guenter Roeck
On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: On Feb 19, 2015, at 19:30 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at 18:48 , Frank Rowand

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Rob Herring
On Fri, Feb 20, 2015 at 8:35 AM, Ludovic Desroches ludovic.desroc...@atmel.com wrote: On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: On Feb 19, 2015, at 19:30 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 9:00

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
On 02/20/2015 10:38 AM, Pantelis Antoniou wrote: Hi Peter, On Feb 20, 2015, at 17:24 , Peter Hurley pe...@hurleysoftware.com wrote: On 02/20/2015 10:02 AM, Pantelis Antoniou wrote: Hi Peter, On Feb 20, 2015, at 17:00 , Peter Hurley pe...@hurleysoftware.com wrote: On 02/20/2015 09:35 AM,

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Rob, On Feb 20, 2015, at 19:30 , Rob Herring robherri...@gmail.com wrote: On Fri, Feb 20, 2015 at 8:35 AM, Ludovic Desroches ludovic.desroc...@atmel.com wrote: On Fri, Feb 20, 2015 at 09:21:38AM -0500, Peter Hurley wrote: On 02/19/2015 12:38 PM, Pantelis Antoniou wrote: On Feb 19,

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Pantelis Antoniou
Hi Peter, On Feb 20, 2015, at 18:34 , Peter Hurley pe...@hurleysoftware.com wrote: On 02/20/2015 10:38 AM, Pantelis Antoniou wrote: Hi Peter, On Feb 20, 2015, at 17:24 , Peter Hurley pe...@hurleysoftware.com wrote: On 02/20/2015 10:02 AM, Pantelis Antoniou wrote: Hi Peter, On Feb

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Peter Hurley
Hi Guenter, On 02/20/2015 11:47 AM, Guenter Roeck wrote: [...] I am open to hearing your suggestions for our use case, where the CPU card with the eeprom is manufactured separately from its carier cards. I think your use case may be more compelling than two flavors of Beaglebone (one of

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-20 Thread Guenter Roeck
On Fri, Feb 20, 2015 at 01:09:58PM -0500, Peter Hurley wrote: Hi Guenter, On 02/20/2015 11:47 AM, Guenter Roeck wrote: [...] I am open to hearing your suggestions for our use case, where the CPU card with the eeprom is manufactured separately from its carier cards. I think your

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Maxime Bizon
On Thu, 2015-02-19 at 19:12 +0100, Sylvain Rochet wrote: > Or use a 1-wire or I2C EEPROM to store your board information. no, you don't reduce the human error probability. eeprom needs to be preprogrammed, factory will at some point have a lot of eeprom with different version, and will

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Guenter Roeck
On Thu, Feb 19, 2015 at 12:01:14PM -0600, Rob Herring wrote: > On Wed, Feb 18, 2015 at 8:08 PM, Frank Rowand wrote: > > On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: > >> Implement a method of applying DT quirks early in the boot sequence. > >> > >> A DT quirk is a subtree of the boot DT that

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Sylvain Rochet
Hello, On Thu, Feb 19, 2015 at 07:01:59PM +0100, Maxime Bizon wrote: > On Thu, 2015-02-19 at 19:38 +0200, Pantelis Antoniou wrote: > > > Having to boot and tweak the bootloader settings to select the correct > > dtb (even if it’s present on the flash medium) takes time and is > > error-prone. >

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Maxime Bizon
On Thu, 2015-02-19 at 19:38 +0200, Pantelis Antoniou wrote: > Having to boot and tweak the bootloader settings to select the correct > dtb (even if it’s present on the flash medium) takes time and is > error-prone. Dedicate a set of GPIO for board/PCB revision detection (it only costs a few

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Rob Herring
On Wed, Feb 18, 2015 at 8:08 PM, Frank Rowand wrote: > On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: >> Implement a method of applying DT quirks early in the boot sequence. >> >> A DT quirk is a subtree of the boot DT that can be applied to >> a target in the base DT resulting in a modification

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Pantelis Antoniou
> On Feb 19, 2015, at 19:30 , Frank Rowand wrote: > > On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: >> Hi Frank, >> >>> On Feb 19, 2015, at 18:48 , Frank Rowand wrote: >>> >>> On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: Hi Mark, > On Feb 18, 2015, at 19:31 , Mark Rutland

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Frank Rowand
On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: > Hi Frank, > >> On Feb 19, 2015, at 18:48 , Frank Rowand wrote: >> >> On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: >>> Hi Mark, >>> On Feb 18, 2015, at 19:31 , Mark Rutland wrote: >>> +While this may in theory work, in practice it

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Pantelis Antoniou
Hi Frank, > On Feb 19, 2015, at 18:48 , Frank Rowand wrote: > > On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: >> Hi Mark, >> >>> On Feb 18, 2015, at 19:31 , Mark Rutland wrote: >>> >> +While this may in theory work, in practice it is very cumbersome >> +for the following reasons:

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Frank Rowand
On 2/19/2015 8:40 AM, Frank Rowand wrote: > On 2/19/2015 6:41 AM, Pantelis Antoniou wrote: >> Hi Frank, >> >>> On Feb 19, 2015, at 04:08 , Frank Rowand wrote: >>> >>> On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence.

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Frank Rowand
On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: > Hi Mark, > >> On Feb 18, 2015, at 19:31 , Mark Rutland wrote: >> > +While this may in theory work, in practice it is very cumbersome > +for the following reasons: > + > +1. The act of selecting a different boot device tree blob

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Frank Rowand
On 2/19/2015 6:41 AM, Pantelis Antoniou wrote: > Hi Frank, > >> On Feb 19, 2015, at 04:08 , Frank Rowand wrote: >> >> On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: >>> Implement a method of applying DT quirks early in the boot sequence. >>> >>> A DT quirk is a subtree of the boot DT that can be

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Pantelis Antoniou
Hi Frank, > On Feb 19, 2015, at 04:08 , Frank Rowand wrote: > > On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: >> Implement a method of applying DT quirks early in the boot sequence. >> >> A DT quirk is a subtree of the boot DT that can be applied to >> a target in the base DT resulting in a

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Pantelis Antoniou
Hi Mark, > On Feb 18, 2015, at 19:31 , Mark Rutland wrote: > +While this may in theory work, in practice it is very cumbersome +for the following reasons: + +1. The act of selecting a different boot device tree blob requires +a reasonably advanced bootloader with some

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Pantelis Antoniou
Hi Mark, On Feb 18, 2015, at 19:31 , Mark Rutland mark.rutl...@arm.com wrote: +While this may in theory work, in practice it is very cumbersome +for the following reasons: + +1. The act of selecting a different boot device tree blob requires +a reasonably advanced bootloader with some

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Guenter Roeck
On Thu, Feb 19, 2015 at 12:01:14PM -0600, Rob Herring wrote: On Wed, Feb 18, 2015 at 8:08 PM, Frank Rowand frowand.l...@gmail.com wrote: On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Maxime Bizon
On Thu, 2015-02-19 at 19:38 +0200, Pantelis Antoniou wrote: Having to boot and tweak the bootloader settings to select the correct dtb (even if it’s present on the flash medium) takes time and is error-prone. Dedicate a set of GPIO for board/PCB revision detection (it only costs a few

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Maxime Bizon
On Thu, 2015-02-19 at 19:12 +0100, Sylvain Rochet wrote: Or use a 1-wire or I2C EEPROM to store your board information. no, you don't reduce the human error probability. eeprom needs to be preprogrammed, factory will at some point have a lot of eeprom with different version, and will

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Sylvain Rochet
Hello, On Thu, Feb 19, 2015 at 07:01:59PM +0100, Maxime Bizon wrote: On Thu, 2015-02-19 at 19:38 +0200, Pantelis Antoniou wrote: Having to boot and tweak the bootloader settings to select the correct dtb (even if it’s present on the flash medium) takes time and is error-prone.

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Frank Rowand
On 2/19/2015 6:41 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at 04:08 , Frank Rowand frowand.l...@gmail.com wrote: On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot DT that

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Frank Rowand
On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at 18:48 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: Hi Mark, On Feb 18, 2015, at 19:31 , Mark Rutland mark.rutl...@arm.com wrote: +While this may in theory work, in

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Pantelis Antoniou
Hi Frank, On Feb 19, 2015, at 04:08 , Frank Rowand frowand.l...@gmail.com wrote: On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot DT that can be applied to a target in the base DT

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Frank Rowand
On 2/19/2015 8:40 AM, Frank Rowand wrote: On 2/19/2015 6:41 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at 04:08 , Frank Rowand frowand.l...@gmail.com wrote: On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Frank Rowand
On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: Hi Mark, On Feb 18, 2015, at 19:31 , Mark Rutland mark.rutl...@arm.com wrote: +While this may in theory work, in practice it is very cumbersome +for the following reasons: + +1. The act of selecting a different boot device tree blob requires

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Pantelis Antoniou
Hi Frank, On Feb 19, 2015, at 18:48 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: Hi Mark, On Feb 18, 2015, at 19:31 , Mark Rutland mark.rutl...@arm.com wrote: +While this may in theory work, in practice it is very cumbersome +for the

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Pantelis Antoniou
On Feb 19, 2015, at 19:30 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 9:00 AM, Pantelis Antoniou wrote: Hi Frank, On Feb 19, 2015, at 18:48 , Frank Rowand frowand.l...@gmail.com wrote: On 2/19/2015 6:29 AM, Pantelis Antoniou wrote: Hi Mark, On Feb 18, 2015, at 19:31 ,

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-19 Thread Rob Herring
On Wed, Feb 18, 2015 at 8:08 PM, Frank Rowand frowand.l...@gmail.com wrote: On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot DT that can be applied to a target in the base DT resulting in a

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Frank Rowand
On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: > Implement a method of applying DT quirks early in the boot sequence. > > A DT quirk is a subtree of the boot DT that can be applied to > a target in the base DT resulting in a modification of the live > tree. The format of the quirk nodes is that

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Guenter Roeck
On Wed, Feb 18, 2015 at 05:31:16PM +, Mark Rutland wrote: > > >> +While this may in theory work, in practice it is very cumbersome > > >> +for the following reasons: > > >> + > > >> +1. The act of selecting a different boot device tree blob requires > > >> +a reasonably advanced bootloader

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Mark Rutland
> >> +While this may in theory work, in practice it is very cumbersome > >> +for the following reasons: > >> + > >> +1. The act of selecting a different boot device tree blob requires > >> +a reasonably advanced bootloader with some kind of configuration or > >> +scripting capabilities. Sadly this

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Matt Porter
On Wed, Feb 18, 2015 at 05:53:50PM +0200, Pantelis Antoniou wrote: > Hi Mark, > > > On Feb 18, 2015, at 17:41 , Mark Rutland wrote: > > > > Hi Pantelis, > > > > On Wed, Feb 18, 2015 at 02:59:34PM +, Pantelis Antoniou wrote: > >> Implement a method of applying DT quirks early in the boot

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Ludovic Desroches
On Wed, Feb 18, 2015 at 06:39:01PM +0200, Pantelis Antoniou wrote: > Hi Ludovic, > > > On Feb 18, 2015, at 18:32 , Ludovic Desroches > > wrote: > > > > Hi, > > > > Great something we are waiting for a long time! > > > > On Wed, Feb 18, 2015 at 05:53:50PM +0200, Pantelis Antoniou wrote: > >>

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Pantelis Antoniou
Hi Ludovic, > On Feb 18, 2015, at 18:32 , Ludovic Desroches > wrote: > > Hi, > > Great something we are waiting for a long time! > > On Wed, Feb 18, 2015 at 05:53:50PM +0200, Pantelis Antoniou wrote: >> Hi Mark, >> >>> On Feb 18, 2015, at 17:41 , Mark Rutland wrote: >>> >>> Hi Pantelis,

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Ludovic Desroches
Hi, Great something we are waiting for a long time! On Wed, Feb 18, 2015 at 05:53:50PM +0200, Pantelis Antoniou wrote: > Hi Mark, > > > On Feb 18, 2015, at 17:41 , Mark Rutland wrote: > > > > Hi Pantelis, > > > > On Wed, Feb 18, 2015 at 02:59:34PM +, Pantelis Antoniou wrote: > >>

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Pantelis Antoniou
Hi Mark, > On Feb 18, 2015, at 17:41 , Mark Rutland wrote: > > Hi Pantelis, > > On Wed, Feb 18, 2015 at 02:59:34PM +, Pantelis Antoniou wrote: >> Implement a method of applying DT quirks early in the boot sequence. >> >> A DT quirk is a subtree of the boot DT that can be applied to >> a

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Mark Rutland
Hi Pantelis, On Wed, Feb 18, 2015 at 02:59:34PM +, Pantelis Antoniou wrote: > Implement a method of applying DT quirks early in the boot sequence. > > A DT quirk is a subtree of the boot DT that can be applied to > a target in the base DT resulting in a modification of the live > tree. The

[PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Pantelis Antoniou
Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot DT that can be applied to a target in the base DT resulting in a modification of the live tree. The format of the quirk nodes is that of a device tree overlay. For details please refer to

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Mark Rutland
+While this may in theory work, in practice it is very cumbersome +for the following reasons: + +1. The act of selecting a different boot device tree blob requires +a reasonably advanced bootloader with some kind of configuration or +scripting capabilities. Sadly this is not the case

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Guenter Roeck
On Wed, Feb 18, 2015 at 05:31:16PM +, Mark Rutland wrote: +While this may in theory work, in practice it is very cumbersome +for the following reasons: + +1. The act of selecting a different boot device tree blob requires +a reasonably advanced bootloader with some kind of

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Pantelis Antoniou
Hi Mark, On Feb 18, 2015, at 17:41 , Mark Rutland mark.rutl...@arm.com wrote: Hi Pantelis, On Wed, Feb 18, 2015 at 02:59:34PM +, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot DT that can be applied

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Mark Rutland
Hi Pantelis, On Wed, Feb 18, 2015 at 02:59:34PM +, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot DT that can be applied to a target in the base DT resulting in a modification of the live tree. The format

[PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Pantelis Antoniou
Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot DT that can be applied to a target in the base DT resulting in a modification of the live tree. The format of the quirk nodes is that of a device tree overlay. For details please refer to

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Ludovic Desroches
Hi, Great something we are waiting for a long time! On Wed, Feb 18, 2015 at 05:53:50PM +0200, Pantelis Antoniou wrote: Hi Mark, On Feb 18, 2015, at 17:41 , Mark Rutland mark.rutl...@arm.com wrote: Hi Pantelis, On Wed, Feb 18, 2015 at 02:59:34PM +, Pantelis Antoniou wrote:

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Pantelis Antoniou
Hi Ludovic, On Feb 18, 2015, at 18:32 , Ludovic Desroches ludovic.desroc...@atmel.com wrote: Hi, Great something we are waiting for a long time! On Wed, Feb 18, 2015 at 05:53:50PM +0200, Pantelis Antoniou wrote: Hi Mark, On Feb 18, 2015, at 17:41 , Mark Rutland

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Ludovic Desroches
On Wed, Feb 18, 2015 at 06:39:01PM +0200, Pantelis Antoniou wrote: Hi Ludovic, On Feb 18, 2015, at 18:32 , Ludovic Desroches ludovic.desroc...@atmel.com wrote: Hi, Great something we are waiting for a long time! On Wed, Feb 18, 2015 at 05:53:50PM +0200, Pantelis Antoniou

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Matt Porter
On Wed, Feb 18, 2015 at 05:53:50PM +0200, Pantelis Antoniou wrote: Hi Mark, On Feb 18, 2015, at 17:41 , Mark Rutland mark.rutl...@arm.com wrote: Hi Pantelis, On Wed, Feb 18, 2015 at 02:59:34PM +, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the

Re: [PATCH 2/4] of: DT quirks infrastructure

2015-02-18 Thread Frank Rowand
On 2/18/2015 6:59 AM, Pantelis Antoniou wrote: Implement a method of applying DT quirks early in the boot sequence. A DT quirk is a subtree of the boot DT that can be applied to a target in the base DT resulting in a modification of the live tree. The format of the quirk nodes is that of a