[PATCH V2 2/2] Input: spear-keyboard: add device tree bindings

Dmitry Torokhov dmitry.torokhov at gmail.com
Tue Mar 27 18:51:52 EST 2012


On Tue, Mar 27, 2012 at 01:07:51PM +0530, Viresh Kumar wrote:
> On 3/27/2012 12:43 PM, Dmitry Torokhov wrote:
> > I think the opposite order woudl make more sense - if pdata is supplied
> > by the platform code then we should use it, otherwise try to see if
> > there is OF data available instead. This way one can easily override OF
> > data, if needed.
> 
> Okay.
> 
> Just for better understanding, why should we give more preference to pdata?
> 
> I thought, a single image with pdata can be booted with or without DT
> support for keyboard. So, if we are booting without of DT for keyboard,
> then use pdata, otherwise use DT data.

My reasoning is that device tree is in firmware and it might be
desirable to override firmware in certain cases.

Thanks.

-- 
Dmitry


More information about the devicetree-discuss mailing list